/* ──────────────────────────────────────────────────────────────
   Leonardo Cotta — Portfolio
   editorial / kinetic / dark warm
   ────────────────────────────────────────────────────────────── */

:root {
  --bg: oklch(14% 0.012 60);
  --bg-2: oklch(18% 0.014 60);
  --bg-3: oklch(22% 0.015 60);
  --fg: oklch(96% 0.008 80);
  --fg-2: oklch(78% 0.012 70);
  --fg-3: oklch(55% 0.014 65);
  --line: oklch(28% 0.012 60);
  --line-2: oklch(34% 0.014 60);

  --accent: oklch(78% 0.17 65);          /* amber */
  --accent-2: oklch(72% 0.16 280);       /* iris */
  --accent-ink: oklch(18% 0.04 60);

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", "Cormorant Garamond", serif;

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.65, 0, .12, 1);
  --ease-out: cubic-bezier(.16, .68, .32, 1);
}

[data-theme="light"] {
  --bg: oklch(97% 0.006 80);
  --bg-2: oklch(94% 0.008 80);
  --bg-3: oklch(90% 0.010 80);
  --fg: oklch(18% 0.012 60);
  --fg-2: oklch(35% 0.012 60);
  --fg-3: oklch(55% 0.014 65);
  --line: oklch(85% 0.010 80);
  --line-2: oklch(78% 0.012 80);
  --accent-ink: oklch(18% 0.04 60);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  cursor: none;
}

@media (max-width: 720px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Custom cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: white;
  transition: width .2s var(--ease-out), height .2s var(--ease-out);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .12s linear, width .25s var(--ease-out), height .25s var(--ease-out), border-color .2s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--accent);
}
.cursor-dot.hover { width: 0; height: 0; }
@media (max-width: 720px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: white;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.nav__brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(78% 0.17 65 / 0.7); }
  70% { box-shadow: 0 0 0 12px oklch(78% 0.17 65 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(78% 0.17 65 / 0); }
}
.nav__links {
  display: flex; gap: 28px;
}
.nav__link {
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__num {
  opacity: 0.5; margin-right: 6px;
}
.nav__time {
  font-variant-numeric: tabular-nums;
}
.nav__right {
  display: flex; align-items: center; gap: 10px;
}
.nav__lang {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: currentColor;
  opacity: 0.45;
  padding: 4px 2px;
  transition: opacity .2s var(--ease);
}
.nav__lang.on { opacity: 1; }
.nav__lang:hover { opacity: 1; }
.nav__lang-sep { opacity: 0.3; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__time { display: none; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding: 120px var(--pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.hero__top-r {
  text-align: right;
}
.hero__top .label { color: var(--fg); display: block; margin-bottom: 4px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-top: 60px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: kineticUp 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) span { animation-delay: .1s; }
.hero__title .line:nth-child(2) span { animation-delay: .25s; }
.hero__title .line:nth-child(3) span { animation-delay: .4s; }
.hero__title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

@keyframes kineticUp {
  to { transform: translateY(0); }
}

.hero__bottom {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero__lede {
  max-width: 540px;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--fg-2);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) .8s forwards;
}
.hero__lede strong { color: var(--fg); font-weight: 500; }
.hero__lede em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero__meta {
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-3);
  letter-spacing: 0.05em;
}
.hero__meta strong { color: var(--fg); font-weight: 500; }

.hero__scroll {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 8px;
  justify-self: end;
}
.hero__scroll .arrow {
  display: inline-block;
  width: 1px; height: 32px; background: currentColor;
  position: relative;
  animation: scrollHint 2s var(--ease) infinite;
}
.hero__scroll .arrow::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-50%, 50%) rotate(45deg);
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__top-r { text-align: left; }
}

/* ── Marquee strip ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.marquee__track {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-right: 40px;
}
.marquee__track span {
  margin: 0 24px;
}
.marquee__track .star {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section base ── */
section {
  position: relative;
}
.section-pad {
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 80px);
  align-items: end;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  align-self: end;
  padding-bottom: 10px;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-kicker { text-align: left; }
}

/* reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ── About ── */
.about {
  border-top: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__lede {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.about__lede em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.about__lede .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  color: var(--fg-3);
}
.about__body {
  display: flex; flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  padding-top: 18px;
}
.about__body p strong { color: var(--fg); font-weight: 500; }

.about__stats {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat__num .plus {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.6em;
}
.stat__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Skills ── */
.skills {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.skill {
  position: relative;
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 12px;
  min-height: 280px;
  overflow: hidden;
  transition: background .4s var(--ease);
}
.skill:last-child { border-right: none; }
.skill:hover { background: var(--bg-3); }
.skill:hover .skill__icon { transform: rotate(-8deg) scale(1.05); }
.skill__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.skill__icon {
  align-self: flex-start;
  margin-top: auto;
  width: 56px; height: 56px;
  transition: transform .5s var(--ease);
  color: var(--accent);
}
.skill__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.skill__desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .skills__grid { grid-template-columns: repeat(3, 1fr); }
  .skill:nth-child(3) { border-right: none; }
  .skill:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .skill { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; min-height: 220px; }
  .skill:nth-child(2n) { border-right: none !important; }
  .skill:nth-last-child(-n+2) { border-bottom: none !important; }
}

.skills__tech {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.skills__tech-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.skills__tech-list {
  display: flex; flex-wrap: wrap;
  gap: 10px 14px;
}
.skills__tech-list .chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  transition: all .25s var(--ease);
}
.skills__tech-list .chip:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.skills__tech--ai {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed var(--line);
}
.skills__tech-list .chip--ai {
  border-color: oklch(50% 0.04 65);
  color: var(--fg);
  position: relative;
}
.skills__tech-list .chip--ai::before {
  content: '✦';
  margin-right: 6px;
  color: var(--accent);
  font-family: var(--font-serif);
}
.skills__tech-label {
  white-space: pre-line;
}
@media (max-width: 720px) {
  .skills__tech { grid-template-columns: 1fr; }
}

/* ── Network ── */
.net {
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.net__intro {
  max-width: 920px;
  margin-bottom: 60px;
}
.net__lede {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 500;
}
.net__lede em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.net__lede strong { color: var(--fg); font-weight: 600; }

.net__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 100px;
}
.net__stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.net__stat:last-child { border-right: none; }
.net__stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline;
  color: var(--accent);
}
.net__stat-num .plus {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.55em;
  color: var(--fg);
  margin-left: 2px;
}
.net__stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

/* network wall — kinetic categories */
.net__wall {
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.net__row {
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.net__row--a { border-bottom: 1px solid var(--line); }
.net__track {
  display: inline-flex;
  align-items: center;
  animation: netMarquee 40s linear infinite;
}
.net__track--rev {
  animation: netMarqueeRev 35s linear infinite;
}
.net__track-inner {
  display: inline-flex;
  align-items: center;
  padding-right: 40px;
}
.net__word {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 28px;
  color: var(--fg);
  transition: color .3s, transform .3s;
  cursor: default;
}
.net__word:hover {
  color: var(--accent);
}
.net__word--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.net__word--accent:hover { color: var(--fg); }
.net__sep {
  font-family: var(--font-serif);
  color: var(--fg-3);
  font-size: clamp(24px, 3vw, 48px);
  margin: 0 4px;
}

@keyframes netMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes netMarqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.net__closing {
  margin-top: 80px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 800px;
  color: var(--fg);
}
.net__closing em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

@media (max-width: 1000px) {
  .net__stats { grid-template-columns: repeat(2, 1fr); }
  .net__stat:nth-child(2) { border-right: none; }
  .net__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── Experience ── */
.exp {
  border-top: 1px solid var(--line);
}
.exp__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.exp__list {
  border-right: 1px solid var(--line);
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.exp__list::-webkit-scrollbar { width: 4px; }
.exp__list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.exp__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease);
}
.exp__row:last-child { border-bottom: none; }
.exp__row:hover {
  background: var(--bg-2);
}
.exp__row.active {
  background: var(--bg-3);
}
.exp__row.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.exp__date {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.exp__rowtitle {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.exp__company {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.exp__arrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.exp__row:hover .exp__arrow,
.exp__row.active .exp__arrow {
  color: var(--accent);
  transform: translateX(6px);
}

.exp__detail {
  padding: 40px;
  position: sticky;
  top: 0;
  align-self: start;
  background: var(--bg);
  min-height: 70vh;
  display: flex; flex-direction: column;
}
.exp__detail-date {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.exp__detail-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 8px;
}
.exp__detail-company {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--fg-2);
  margin-bottom: 32px;
}
.exp__detail-desc {
  color: var(--fg-2);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 16px;
}
.exp__detail-more {
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}
.exp__detail-links {
  margin-top: auto;
  padding-top: 24px;
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.exp__detail-link {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.exp__detail-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .exp__grid { grid-template-columns: 1fr; }
  .exp__list { border-right: none; border-bottom: 1px solid var(--line); max-height: 50vh; }
  .exp__detail { position: static; min-height: auto; padding: 32px 24px; }
  .exp__row { grid-template-columns: 90px 1fr auto; padding: 18px 18px; }
}

/* ── Projects ── */
.projects {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.proj {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  padding: 24px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: transform .5s var(--ease), border-color .3s;
  cursor: pointer;
}
.proj:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.proj:hover .proj__title { color: var(--accent); }
.proj:hover .proj__img-wrap { transform: scale(1.06); }
.proj__img-wrap {
  position: absolute;
  inset: 0;
  transition: transform .9s var(--ease-out);
  z-index: 0;
}
.proj__img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transition: opacity .4s var(--ease);
}
.proj:hover .proj__img { opacity: 0.32; }
.proj__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, oklch(14% 0.012 60 / 0.7) 100%);
  z-index: 1;
}
.proj__content {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.proj__top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.proj__date {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.proj__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}
.proj__bottom {
  display: flex; flex-direction: column; gap: 8px;
}
.proj__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color .3s;
}
.proj__desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj--xl { grid-column: span 7; grid-row: span 2; }
.proj--xl .proj__title { font-size: clamp(32px, 4vw, 56px); }
.proj--xl .proj__desc { font-size: 15px; -webkit-line-clamp: 4; max-width: 540px; }

.proj--l { grid-column: span 5; grid-row: span 2; }
.proj--l .proj__title { font-size: 32px; }

.proj--m { grid-column: span 6; grid-row: span 1; }
.proj--s { grid-column: span 4; grid-row: span 1; }
.proj--xs { grid-column: span 3; grid-row: span 1; }

@media (max-width: 1100px) {
  .projects__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; }
  .proj--xl { grid-column: span 6; grid-row: span 2; }
  .proj--l { grid-column: span 6; grid-row: span 1; }
  .proj--m { grid-column: span 3; grid-row: span 1; }
  .proj--s { grid-column: span 3; grid-row: span 1; }
  .proj--xs { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 640px) {
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .proj, .proj--xl, .proj--l, .proj--m, .proj--s, .proj--xs {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.projects__more {
  margin-top: 24px;
  display: flex; justify-content: center;
}

/* ── Contact ── */
.contact {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.contact__lead {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 24px;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.contact__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.contact__title .underline {
  position: relative;
  display: inline-block;
}
.contact__title .underline::after {
  content: ''; position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.contact__title .underline.in::after { transform: scaleX(1); }

.contact__cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 60px;
  padding: 22px 32px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all .35s var(--ease);
  background: var(--fg);
  color: var(--bg);
}
.contact__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.contact__cta .dot {
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.contact__grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.contact__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.contact__col a, .contact__col span {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
  transition: color .25s;
}
.contact__col a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ── */
.footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer span strong { color: var(--fg); font-weight: 500; }
@media (max-width: 640px) {
  .footer { flex-direction: column; gap: 8px; }
}

/* ── Loading ── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.loader.gone { opacity: 0; visibility: hidden; }
.loader__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.loader__text .blob {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blob 1s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

/* utility */
.bg-noise::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
