/* ==========================================================================
   DARSHAN C S — portfolio
   Warm black, ember light. Anton for the shouting, Instrument Serif for the
   whispering, Manrope for the reading, JetBrains Mono for the labels.
   ========================================================================== */

:root {
  --bg: #070403;
  --bg-2: #0c0705;
  --surface: #110a07;
  --line: rgba(255, 214, 190, .08);
  --line-2: rgba(255, 214, 190, .15);
  --text: #f4ece4;
  --muted: #b09f93;
  --dim: #74645a;
  --faint: #3a2c25;

  --ember: #ff4d12;
  --flame: #ff8a3d;
  --gold: #ffc24b;
  --crimson: #d7142e;
  --maroon: #5c0f1c;
  --ice: #8ab8ff;
  --go: #5fe0a0;

  --fire: linear-gradient(100deg, #ffd27a 0%, #ff9a2e 24%, #ff4d12 55%, #d7142e 85%, #9b0b26 100%);
  --fire-text: linear-gradient(100deg, #ffe0a0 0%, #ffae45 22%, #ff5a1f 52%, #e8173a 82%, #ffae45 100%);

  --f-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --gutter: clamp(16px, 5vw, 80px);
  --nav-h: 84px;
  --maxw: 1600px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.scroll-lock { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
::selection { background: var(--ember); color: #140502; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ember); color: #140502; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* fire gradient text */
.fx {
  background-image: var(--fire-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
}
.fx.is-split { background-image: none; }
.fx.is-split .wi, .fx.is-split .c {
  background-image: var(--fire-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
}
@keyframes flame-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* split-text wrappers (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .08em .15em 0; margin: -.06em -.08em -.15em 0; }
.wi { display: inline-block; will-change: transform; }
.c { display: inline-block; }

/* ==========================================================================
   Atmosphere
   ========================================================================== */
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: .07;
  background: url("../img/grain.png") repeat; background-size: 180px 180px;
}
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 38% at 50% 118%, rgba(255, 77, 18, .07), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--fire); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 77, 18, .8); }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='3.4' fill='%23ffd7a8'/%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23ff6a2a' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E") 8 8, auto !important; }
.cursor__dot { display: none !important; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; border-radius: 50%;
}
/* inside the viewer (video controls, fullscreen) the real system cursor takes over */
html.has-cursor.lb-open .cursor { display: none; }
html.has-cursor.lb-open, html.has-cursor.lb-open * { cursor: auto !important; }
html.has-cursor.lb-open .lightbox button, html.has-cursor.lb-open .lightbox__backdrop { cursor: pointer !important; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: #ffd7a8; box-shadow: 0 0 10px 2px rgba(255, 110, 40, .9);
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 138, 61, .45);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out),
              background-color .35s, border-color .35s, opacity .3s;
}
.cursor__label {
  font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #160603;
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease-out);
}
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(255, 138, 61, .85); }
.cursor.is-label .cursor__ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--fire); border-color: transparent;
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-flame .cursor__ring { opacity: 0; transform: scale(.4); }
.cursor.is-flame .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.85); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { display: none; }
.js .loader {
  display: block; position: fixed; inset: 0; z-index: 200;
  background: var(--bg); color: var(--text); overflow: hidden;
}
.loader__grid {
  position: absolute; inset: 0; opacity: .6;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255, 77, 18, .045) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 77, 18, .045) 47px 48px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%);
}
.loader__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px var(--gutter);
}
.loader__top, .loader__bottom {
  display: flex; justify-content: space-between;
  font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.loader__center { display: grid; justify-items: center; gap: 18px; }
.loader__kicker { font: italic 400 clamp(22px, 2.4vw, 34px)/1 var(--f-serif); color: var(--muted); }
.loader__num {
  font-family: var(--f-display); font-size: clamp(110px, 22vw, 320px); line-height: .8;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  background-image: var(--fire-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 77, 18, .35));
}
.loader__bar { width: min(320px, 60vw); height: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--fire); transform-origin: left; transform: scaleX(0); }
.loader__status { font: 500 12px/1 var(--f-mono); color: var(--flame); letter-spacing: .06em; min-height: 1em; }
.loader__curtain {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, #ffe2a8 0%, #ff9a2e 22%, #ff4d12 45%, #b30f28 75%, #3a0610 100%);
  clip-path: inset(100% 0 0 0);
}

/* ---------- ignite gate (first thing in the loader) ---------- */
.loader__gate { display: none; }
.loader.is-gated .loader__gate { display: grid; justify-items: center; gap: 26px; }
.loader.is-gated .loader__center { display: none; }
.gate__btn {
  position: relative; width: clamp(170px, 22vmin, 220px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #170603; isolation: isolate;
}
.gate__ring {
  position: absolute; inset: -16px; border-radius: 50%; z-index: -2;
  background: conic-gradient(from 0deg, #ffd27a, #ff4d12, #d7142e, #ff9a2e, #ffd27a);
  filter: blur(18px); opacity: .55; animation: spin 6s linear infinite; pointer-events: none;
}
.gate__core {
  position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  display: grid; place-content: center; justify-items: center;
  background: radial-gradient(circle at 50% 35%, #ffe6ad 0%, #ffb347 22%, #ff5a1f 52%, #c8102e 88%);
  box-shadow: 0 0 0 1px rgba(255, 220, 170, .4) inset, 0 30px 80px -20px rgba(255, 77, 18, .8);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.gate__btn::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%; z-index: -3;
  border: 1px solid rgba(255, 150, 90, .5); animation: ping 2.4s var(--ease-out) infinite; pointer-events: none;
}
.gate__btn:hover .gate__core, .gate__btn:focus-visible .gate__core { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(255, 220, 170, .5) inset, 0 30px 100px -10px rgba(255, 77, 18, 1); }
.gate__label { font-family: var(--f-display); font-size: clamp(36px, 4.6vmin, 46px); line-height: .9; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- navbar transition: fire × electrons → chip ---------- */
.xfer { position: fixed; inset: 0; z-index: 150; display: none; overflow: hidden; --chip: clamp(200px, 32vmin, 320px); }
.xfer__dim { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(18, 9, 7, .965), rgba(4, 2, 2, .995)); }
.xfer__volt, .xfer__fire { position: absolute; inset: 0; width: 100%; height: 100%; }
.xfer__firefb { display: none; }
.xfer.no-gl .xfer__firefb {
  display: block; position: absolute; left: 50%; top: 0; width: calc(var(--chip) * .4); height: calc(50% - var(--chip) / 2);
  transform: translateX(-50%); background: linear-gradient(to bottom, rgba(215, 20, 46, 0), #ff4d12 55%, #ffd27a);
  filter: blur(10px); opacity: .9;
}
.xfer__ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--chip) * 1.2); aspect-ratio: 1; margin: calc(var(--chip) * -.6) 0 0 calc(var(--chip) * -.6);
  border-radius: 50%; border: 2px solid rgba(255, 200, 150, .8);
  box-shadow: 0 0 40px rgba(255, 120, 60, .6), inset 0 0 40px rgba(110, 200, 255, .45); opacity: 0;
}
.xfer__chip { position: absolute; left: 50%; top: 50%; width: var(--chip); aspect-ratio: 1; margin: calc(var(--chip) / -2) 0 0 calc(var(--chip) / -2); }
/* glow where the fire lands (top) and where the electrons land (bottom) */
.xfer__chip::before, .xfer__chip::after {
  content: ''; position: absolute; left: 8%; right: 8%; height: 34%; border-radius: 50%; opacity: 0; transition: opacity .35s; pointer-events: none;
}
.xfer__chip::before { top: -22%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 50, .75), transparent 70%); }
.xfer__chip::after { bottom: -22%; background: radial-gradient(ellipse at 50% 0%, rgba(110, 190, 255, .7), transparent 70%); }
.xfer.is-on .xfer__chip::before, .xfer.is-on .xfer__chip::after { opacity: 1; }
.xfer__pkg {
  position: absolute; inset: 0; border-radius: 14%; padding: 12%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 200, 140, .05) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(255, 200, 140, .04) 0 1px, transparent 1px 11px),
    linear-gradient(145deg, #2c211b, #120c09 60%, #1c1310);
  border: 1px solid rgba(255, 214, 190, .2);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 5px rgba(0, 0, 0, .25);
}
.xfer__die {
  position: relative; width: 100%; height: 100%; border-radius: 9%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  background: radial-gradient(circle at 30% 22%, #34313a 0%, #18161c 55%, #0c0b0e 100%);
  border: 1px solid rgba(255, 200, 140, .35);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), inset 0 0 30px rgba(0, 0, 0, .6);
  transition: box-shadow .4s, border-color .4s;
}
.xfer__mark { position: absolute; left: 8%; top: 8%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 214, 190, .25); }
.xfer__brand, .xfer__meta { font: 500 calc(var(--chip) * .042)/1 var(--f-mono); letter-spacing: .28em; color: #8f7c6f; text-transform: uppercase; }
.xfer__name {
  font-family: var(--f-display); line-height: .9; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: #3b302b; text-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: color .3s;
}
.xfer__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(to bottom, transparent, rgba(255, 220, 170, .22), transparent); opacity: 0; }
.xfer.is-on .xfer__scan { animation: scan .9s var(--ease-out) .05s forwards; }
@keyframes scan { 0% { top: -30%; opacity: 1; } 100% { top: 105%; opacity: 0; } }
.xfer.is-on .xfer__die { border-color: rgba(255, 190, 120, .8); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), inset 0 0 40px rgba(255, 110, 40, .25), 0 0 60px rgba(255, 100, 40, .35); }
.xfer.is-on .xfer__name {
  background: linear-gradient(100deg, #ffe0a0, #ffae45 25%, #ff5a1f 55%, #ffd27a);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 120, 40, .7));
}
.xfer.is-on .xfer__mark { background: #ffb347; box-shadow: 0 0 10px #ff7a26; }
.xfer.is-on .xfer__brand, .xfer.is-on .xfer__meta { color: #ffcfae; }
/* pins: copper, lighting to gold one by one on power-up */
.xfer__pins { position: absolute; display: flex; justify-content: space-between; }
.xfer__pins--t, .xfer__pins--b { left: 11%; right: 11%; height: 7%; }
.xfer__pins--t { bottom: 100%; } .xfer__pins--b { top: 100%; }
.xfer__pins--l, .xfer__pins--r { top: 11%; bottom: 11%; width: 7%; flex-direction: column; }
.xfer__pins--l { right: 100%; } .xfer__pins--r { left: 100%; }
.xfer__pins i { display: block; background: #6a4a2c; border-radius: 1px; transition: background-color .25s, box-shadow .25s; transition-delay: calc(var(--i) * 22ms); }
.xfer__pins--t i, .xfer__pins--b i { width: 3.2%; height: 100%; }
.xfer__pins--l i, .xfer__pins--r i { height: 3.2%; width: 100%; }
.xfer.is-on .xfer__pins i { background: #ffd27a; box-shadow: 0 0 8px rgba(255, 170, 80, .9); }
.xfer.is-on .xfer__pins--b i { background: #bfeaff; box-shadow: 0 0 8px rgba(110, 200, 255, .9); }

/* ---------- sound toggle ---------- */
.snd {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(22, 13, 9, 0.82);
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: border-color .3s, color .3s;
}
.snd:hover { border-color: var(--ember); color: var(--text); }
.snd__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.snd__bars i { width: 2.5px; height: 14px; border-radius: 1px; background: currentColor; transform: scaleY(.22); transform-origin: bottom; transition: transform .3s; }
.snd[aria-pressed="true"] { color: var(--text); border-color: rgba(255, 77, 18, .45); }
.snd[aria-pressed="true"] .snd__bars i { background: var(--ember); animation: eq 1s ease-in-out infinite; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(2) { animation-delay: -.3s; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(3) { animation-delay: -.6s; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 4, 3, .85), transparent);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__pill { grid-column: 2; }
.nav__mark { grid-column: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 21px; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.nav__mark em { font: italic 400 22px/1 var(--f-serif); text-transform: none; color: var(--flame); letter-spacing: 0; }
.nav__flame {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, #fff1c9, var(--ember));
  box-shadow: 0 0 12px 3px rgba(255, 77, 18, .7);
  animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; transform: scale(1); } 40% { opacity: .7; transform: scale(.85); } 60% { opacity: 1; transform: scale(1.1); } }
.nav__pill {
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(22, 13, 9, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nav__pill a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .3s, background-color .3s;
}
.nav__pill a:hover { color: var(--text); }
.nav__pill a.is-active { color: var(--text); background: rgba(255, 77, 18, .16); box-shadow: inset 0 0 0 1px rgba(255, 77, 18, .3); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  background: rgba(22, 13, 9, 0.82);
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__cta:hover { background: var(--ember); border-color: var(--ember); color: #160603; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; background: rgba(22, 13, 9, 0.82); }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease-out); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 77, 18, .35), transparent 60%), rgba(7, 4, 3, .97);
  clip-path: circle(0% at calc(100% - 40px) 42px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 42px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__links { display: grid; gap: 6px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 13vw, 88px); line-height: 1;
  text-decoration: none; color: var(--text);
}
.menu__links small { font: 500 12px/1 var(--f-mono); color: var(--ember); }
.menu__foot { display: grid; gap: 10px; font: 500 13px/1.4 var(--f-mono); color: var(--muted); }
.menu__foot a { text-decoration: none; }

/* ==========================================================================
   Shared pieces
   ========================================================================== */
main { position: relative; z-index: 2; }

.section {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(100px, 16vh, 180px) var(--gutter);
}
.sec-head {
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
  margin-bottom: clamp(26px, 4vh, 44px);
}
.sec-head__num { color: var(--ember); }
.sec-head__label { color: var(--text); }
.sec-head__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); transform-origin: left; }
.sec-head__note { font: italic 400 17px/1 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--muted); }

.title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(50px, 8.2vw, 148px); line-height: .9; letter-spacing: -.004em;
  margin-bottom: clamp(44px, 8vh, 96px);
  max-width: 15ch; text-wrap: balance;
}
.title em, .contact__title em, .scene__line em, .feature__title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: 1.1em; line-height: .8; letter-spacing: -.02em;
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ember); }

.status {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 77, 18, .32); background: rgba(255, 77, 18, .08);
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #ffa27a;
}
.status i, .pulse {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); display: inline-block;
}
.status i::after, .pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(255, 77, 18, .45);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font: 700 12.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: box-shadow .4s, border-color .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--fire { background: var(--fire); color: #170603; box-shadow: 0 12px 40px -12px rgba(255, 77, 18, .7); }
.btn--fire::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--fire:hover::before { transform: translateX(120%); }
.btn--fire:hover { box-shadow: 0 16px 60px -10px rgba(255, 77, 18, .9); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(22, 13, 9, 0.82); }
.btn--ghost:hover { border-color: var(--ember); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin-top: 18px; }
.chips li {
  font: 500 11px/1 var(--f-mono); padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .02);
  transition: color .3s, border-color .3s;
}
.chips li:hover { color: var(--text); border-color: rgba(255, 77, 18, .5); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge--gold { border-color: rgba(255, 194, 75, .42); color: var(--gold); background: rgba(255, 194, 75, .07); }
.badge--hot { border-color: rgba(255, 77, 18, .45); color: #ff9a70; background: rgba(255, 77, 18, .08); }

/* cursor spotlight + glowing border on cards */
[data-glow] { position: relative; overflow: hidden; }
[data-glow]::before, [data-glow]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
[data-glow]::before {
  padding: 1px;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 150, 70, .95), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
[data-glow]::after { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 100, 40, .09), transparent 45%); }
[data-glow]:hover::before, [data-glow]:hover::after { opacity: 1; }

/* ==========================================================================
   Hero — the name is the masthead; the portrait stands in front of it
   ========================================================================== */
.hero {
  --name-h: 22vw;
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1vh) var(--gutter) 0;
  max-width: var(--maxw); margin-inline: auto;
}
.hero::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  right: -8vw; top: 12vh; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 77, 18, .13), rgba(215, 20, 46, .05) 38%, transparent 64%);
}
.hero__top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }

.hero__name {
  position: relative; z-index: 1; pointer-events: auto;
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: 3vh; white-space: nowrap;
}
.hero__word {
  position: relative; display: block;
  font-family: var(--f-display); font-size: 18vw; line-height: .8; letter-spacing: -.005em;
  color: var(--text);
  text-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.hero__word .c { display: inline-block; }
.hero__molten {
  will-change: transform; transform: translateZ(0);
  position: absolute; inset: 0; color: transparent; pointer-events: none; text-shadow: none;
  --mx: -999px; --my: -999px; --mr: 26vw;
  background: radial-gradient(circle var(--mr) at var(--mx) var(--my), #fff6de 0%, #ffcf6a 7%, #ff7a26 17%, #ff4d12 26%, rgba(215, 20, 46, .9) 36%, rgba(215, 20, 46, 0) 52%);
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transition: opacity .8s;
}
.hero__molten.is-on { opacity: 1; }
.hero__cs {
  font: italic 400 5vw/1 var(--f-serif); margin: .05em 0 0 .18em;
  background-image: var(--fire-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 100% 100%;
}

.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4vw; align-items: start;
}
.hero__copy { display: grid; gap: 18px; align-content: start; padding-top: clamp(18px, 3vh, 34px); max-width: 720px; }
.hero__role { font: 400 clamp(34px, 3.3vw, 58px)/1.02 var(--f-serif); letter-spacing: -.015em; text-wrap: balance; }
.hero__role em { font-style: italic; }
.hero__type { font: 500 clamp(14px, 1.15vw, 17px)/1.4 var(--f-mono); color: var(--muted); }
.typer { color: var(--text); }
.typer::after {
  content: ''; display: inline-block; width: .55em; height: 2px; margin-left: 3px; vertical-align: -2px;
  background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lede { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero__portrait {
  position: relative; width: clamp(210px, min(20vw, 35vh), 320px);
  margin-top: calc(var(--name-h) * -.58);
}
.hero__frame {
  position: relative; aspect-ratio: 844 / 1500; border-radius: 22px; overflow: hidden;
  background: #1b0906;
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px rgba(255, 138, 61, .35), 0 50px 120px -30px rgba(255, 77, 18, .6);
}
.hero__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 4, 3, .35), transparent 22%);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__img--color {
  --rr: 0px;
  -webkit-mask-image: radial-gradient(circle var(--rr) at var(--px, 50%) var(--py, 40%), #000 60%, transparent 100%);
  mask-image: radial-gradient(circle var(--rr) at var(--px, 50%) var(--py, 40%), #000 60%, transparent 100%);
}
.hero__portrait figcaption {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 16px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.hero__portrait figcaption span:first-child { color: var(--ember); }

/* a glass capsule floating on the flames */
.hero__foot {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  margin: 3vh 0 22px; padding: 14px 16px 14px 26px; border-radius: 999px;
  background: rgba(16, 9, 6, 0.82); border: 1px solid rgba(255, 214, 190, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .8);
  font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #cdbcb0;
}
.hero__foot b { color: var(--text); font-weight: 500; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 77, 18, .14); text-decoration: none; color: var(--text); }
.hero__scroll i { position: relative; width: 1px; height: 18px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 50%;
  background: var(--ember); animation: drip 1.8s var(--ease-io) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* ==========================================================================
   Ribbons
   ========================================================================== */
.ribbons { position: relative; z-index: 3; padding: clamp(40px, 8vh, 90px) 0; overflow: hidden; }
.ribbon { width: 112vw; margin-left: -6vw; padding: 16px 0; overflow: hidden; }
.ribbon--fire {
  background: var(--fire); color: #1a0603; transform: rotate(-2.4deg);
  box-shadow: 0 20px 60px -20px rgba(255, 77, 18, .6);
}
.ribbon--ghost {
  position: relative; margin-top: 34px; transform: rotate(1.4deg);
  background: rgba(14, 8, 6, .92); border-block: 1px solid var(--line-2); color: var(--muted);
}
.ribbon__track {
  display: flex; align-items: center; gap: 26px; width: max-content; white-space: nowrap; will-change: transform;
  font-family: var(--f-display); font-size: clamp(22px, 2.5vw, 40px); line-height: 1.1; text-transform: uppercase;
}
.ribbon__track b { font-weight: 400; opacity: .75; }
.ribbon--ghost .ribbon__track { font: italic 400 clamp(24px, 2.7vw, 44px)/1.1 var(--f-serif); text-transform: none; }
.ribbon--ghost .ribbon__track b { color: var(--ember); font-style: normal; }

/* ==========================================================================
   01 About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.deck { position: sticky; top: 14vh; }
.deck__stack { position: relative; width: min(100%, 440px); aspect-ratio: 3 / 4; margin-inline: auto; touch-action: pan-y; }
.deck__card {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #140b08;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2);
  will-change: transform; user-select: none; -webkit-user-select: none;
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

.about__copy { display: grid; gap: 26px; }
.about__statement { font: 400 clamp(27px, 2.75vw, 46px)/1.2 var(--f-serif); letter-spacing: -.01em; color: var(--text); }
.about__body { color: var(--muted); font-size: 16.5px; line-height: 1.8; max-width: 60ch; }
.traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 10px; }
.trait { padding: 20px 0; border-top: 1px solid var(--line); }
.trait dt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.trait dd { margin-top: 10px; font: italic 400 clamp(24px, 2.1vw, 32px)/1.1 var(--f-serif); color: var(--text); }
.trait p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   Highlight reel
   ========================================================================== */
.reel { position: relative; z-index: 3; }
.reel__stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 115%, rgba(255, 77, 18, .28), transparent 65%), rgba(3, 1, 0, .72);
}
.reel__bars i { position: absolute; left: 0; right: 0; height: 7vh; background: #000; z-index: 5; }
.reel__bars i:first-child { top: 0; }
.reel__bars i:last-child { bottom: 0; }
.reel__frame i { position: absolute; width: 26px; height: 26px; z-index: 5; border: 0 solid rgba(255, 255, 255, .55); }
.reel__frame i:nth-child(1) { top: calc(7vh + 22px); left: 4vw; border-width: 1px 0 0 1px; }
.reel__frame i:nth-child(2) { top: calc(7vh + 22px); right: 4vw; border-width: 1px 1px 0 0; }
.reel__frame i:nth-child(3) { bottom: calc(7vh + 22px); left: 4vw; border-width: 0 0 1px 1px; }
.reel__frame i:nth-child(4) { bottom: calc(7vh + 22px); right: 4vw; border-width: 0 1px 1px 0; }
.reel__hud {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 16px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.reel__hud--tl { top: calc(7vh + 30px); left: calc(4vw + 38px); }
.reel__hud--tr { top: calc(7vh + 30px); right: calc(4vw + 38px); font-variant-numeric: tabular-nums; }
.reel__hud--bl { bottom: calc(7vh + 30px); left: calc(4vw + 38px); }
.reel__hud--br { bottom: calc(7vh + 30px); right: calc(4vw + 38px); }
.rec { display: inline-flex; align-items: center; gap: 8px; color: #ff6a4a; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; animation: blink 1.2s steps(1) infinite; }
.reel__flash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 55%, #ffe7b8 0%, #ff7a26 35%, rgba(255, 77, 18, 0) 75%);
}
.reel__scenes { list-style: none; padding: 0; position: absolute; inset: 0; z-index: 3; }
.scene {
  position: absolute; inset: 0; padding: 0 8vw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.4vh, 26px);
  text-align: center;
}
.js .scene { visibility: hidden; }
.scene__kicker { font: italic 400 clamp(22px, 2.3vw, 36px)/1 var(--f-serif); color: var(--muted); }
.scene__line {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(56px, 10.2vw, 184px); line-height: .88; max-width: 13ch; text-wrap: balance;
}
.scene--long .scene__line { font-size: clamp(44px, 7.4vw, 136px); max-width: 16ch; }
.scene__num { display: inline-block; font-variant-numeric: tabular-nums; }
.scene__num .wi, .scene__num.wi {
  background-image: var(--fire-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.no-js .scene__num, .reel.is-static .scene__num {
  background-image: var(--fire-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.scene__sub { text-wrap: balance; font: 500 clamp(11px, .95vw, 13px)/1.7 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); max-width: 64ch; }
.scene--final .scene__line { max-width: 12ch; }
.reel__progress { position: absolute; z-index: 6; left: calc(4vw + 38px); right: calc(4vw + 38px); bottom: calc(7vh + 58px); height: 2px; background: rgba(255, 255, 255, .1); }
.reel__progress i { display: block; height: 100%; background: var(--fire); transform-origin: left; transform: scaleX(0); }

/* static fallback (no JS / reduced motion) */
.no-js .reel__stage, .reel.is-static .reel__stage { height: auto; padding: 16vh 0; }
.no-js .reel__scenes, .reel.is-static .reel__scenes { position: relative; display: grid; gap: 10vh; }
.no-js .scene, .reel.is-static .scene { position: relative; visibility: visible; }

/* ==========================================================================
   02 Experience
   ========================================================================== */
.xp__list { --when: 190px; position: relative; display: grid; gap: clamp(26px, 4.5vh, 44px); }
.xp__fuse { position: absolute; left: calc(var(--when) + 30px); top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.xp__fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(to bottom, var(--gold), var(--ember) 40%, var(--crimson));
  box-shadow: 0 0 14px rgba(255, 77, 18, .55);
}
.xp__spark {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff4d8;
  box-shadow: 0 0 10px 4px #ffb347, 0 0 34px 12px rgba(255, 77, 18, .75), 0 0 90px 30px rgba(255, 77, 18, .28);
  animation: flicker 1s ease-in-out infinite;
}
.xp__item { position: relative; display: grid; grid-template-columns: var(--when) minmax(0, 1fr); gap: 62px; }
.xp__item::before {
  content: ''; position: absolute; left: calc(var(--when) + 31px); top: 14px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); z-index: 1;
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.xp__item.is-lit::before { background: var(--ember); border-color: #ffb18a; box-shadow: 0 0 18px 2px rgba(255, 77, 18, .8); }
.xp__when { text-align: right; padding-top: 8px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.xp__when span { display: block; color: var(--text); }
.xp__when small { display: block; color: var(--dim); font-size: 10.5px; margin-top: 4px; }
.xp__card {
  padding: clamp(22px, 2.8vw, 38px); border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
  transition: border-color .5s, transform .6s var(--ease-out);
}
.xp__item.is-lit .xp__card { border-color: var(--line-2); }
.xp__card--hot { background: radial-gradient(ellipse at 100% 0%, rgba(255, 77, 18, .14), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.xp__card h3 { font: 400 clamp(26px, 2.4vw, 40px)/1.08 var(--f-serif); letter-spacing: -.01em; }
.xp__org { margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--flame); }
.xp__org span { display: block; font-weight: 400; font-size: 13.5px; color: var(--dim); margin-top: 2px; }
.xp__points { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.xp__points li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.xp__points li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--ember); }
.xp__points b { color: var(--text); font-weight: 600; }
.xp__cert {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 194, 75, .4); background: rgba(255, 194, 75, .06); color: var(--gold);
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.xp__cert svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.xp__cert:hover { background: var(--gold); color: #160603; }

/* ==========================================================================
   03 Work
   ========================================================================== */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(24px, 4vw, 60px); border-radius: 30px; border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 77, 18, .16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(215, 20, 46, .1), transparent 55%),
    linear-gradient(180deg, rgba(20, 11, 8, .92), rgba(10, 6, 4, .92));
  margin-bottom: clamp(70px, 12vh, 140px);
}
.feature__copy { display: grid; gap: 16px; align-content: start; }
.feature__num { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.feature__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 6.3vw, 112px); line-height: .88; }
.feature__tag { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 44ch; }
.feature__modules { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; counter-reset: mod; }
.feature__modules li { counter-increment: mod; font: italic 400 21px/1.3 var(--f-serif); color: var(--muted); }
.feature__modules li::before { content: '0' counter(mod); font: 500 10px/1 var(--f-mono); font-style: normal; color: var(--ember); margin-right: 6px; vertical-align: 4px; }


/* horizontal rail */
.work { position: relative; z-index: 2; padding-bottom: clamp(100px, 16vh, 180px); }
.work__intro { padding-bottom: 0; }
.rail { --rail-pad: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); position: relative; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--rail-pad); margin-bottom: 26px; }
.rail__hint { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.rail__hint i { width: 40px; height: 1px; background: var(--ember); position: relative; }
.rail__hint i::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--ember); border-right: 1px solid var(--ember); transform: rotate(45deg); }
.rail__progress { width: min(280px, 30vw); height: 2px; background: var(--line-2); }
.rail__progress i { display: block; height: 100%; background: var(--fire); transform-origin: left; transform: scaleX(0); }
.rail__track { display: flex; gap: clamp(16px, 1.8vw, 26px); width: max-content; padding: 0 var(--rail-pad); will-change: transform; }

.pcard {
  position: relative; flex: none; width: clamp(300px, 29vw, 440px);
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #130b08, #0b0605);
  transform-style: preserve-3d;
  transition: border-color .4s;
}
.pcard:hover { border-color: rgba(255, 110, 50, .45); }
.pcard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 200, 150, .09) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform 1s var(--ease-out);
}
.pcard:hover::after { transform: translateX(100%); }
.pcard__viz {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: radial-gradient(ellipse at 50% 130%, rgba(255, 77, 18, .2), transparent 62%), #0a0504;
  border-bottom: 1px solid var(--line);
}
.pcard__viz > svg { width: 100%; height: 100%; }
.pcard__viz--demo { display: flex; padding: 14px; }

/* real-UI demo player: browser chrome + screenshots + a cursor that clicks through them */
.demo {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden; background: #0d0706; border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
}
.demo__chrome { flex: none; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 6px 0 12px; background: #160d0a; border-bottom: 1px solid var(--line); }
.demo__dots { display: flex; gap: 5px; }
.demo__dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; opacity: .8; }
.demo__dots i:nth-child(2) { background: #febc2e; }
.demo__dots i:nth-child(3) { background: #28c840; }
.demo__url {
  flex: 1; min-width: 0; height: 20px; display: flex; align-items: center; gap: 1px; padding: 0 10px;
  border-radius: 6px; background: rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden;
  font: 500 10.5px/1 var(--f-mono); color: var(--muted);
}
.demo__url b { color: var(--text); font-weight: 500; }
.demo__path { color: var(--flame); }
.demo__expand { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); transition: color .3s, background-color .3s; }
.demo__expand svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.demo__expand:hover { color: var(--ember); background: rgba(255, 77, 18, .1); }
.demo__screen { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f4f2ef; cursor: zoom-in; }
.demo__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; opacity: 0; will-change: transform, opacity;
}
.demo__shot:first-of-type { opacity: 1; }
.demo__cursor {
  position: absolute; left: 0; top: 0; z-index: 3; width: 20px; height: 20px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5 19 14h-6.6l3.8 7.4-2.9 1.4-3.7-7.5L5 20z' fill='white' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.demo__cursor::after {
  content: ''; position: absolute; left: -9px; top: -10px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ember); background: rgba(255, 77, 18, .18); opacity: 0; transform: scale(.3);
}
.demo__cursor.is-click::after { animation: demo-ripple .65s var(--ease-out); }
@keyframes demo-ripple { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.demo--feature .demo__screen { flex: none; aspect-ratio: 16 / 10; }
.feature__visual .demo { height: auto; border-radius: 18px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(255, 77, 18, .35); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__num { font: 500 12px/1 var(--f-mono); color: var(--ember); }
.pcard h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 2.9vw, 48px); line-height: .95; margin-top: 6px; }
.pcard__tag { font: italic 400 20px/1.25 var(--f-serif); color: var(--flame); }
.pcard__body p:not(.pcard__tag) { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.pcard .chips { margin-top: auto; padding-top: 10px; }
.pcard--end {
  justify-content: space-between; padding: 32px; text-decoration: none;
  background: var(--fire); color: #160603; border-color: transparent;
}
.pcard--end__k { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.pcard--end__t { font-family: var(--f-display); font-size: clamp(40px, 3.6vw, 60px); line-height: .95; text-transform: uppercase; }
.pcard--end__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pcard--end__u { font: 600 13px/1.3 var(--f-mono); word-break: break-all; }
.pcard--end__arrow { width: 64px; height: 64px; border-radius: 50%; background: #160603; display: grid; place-items: center; color: var(--gold); transition: transform .5s var(--ease-out); }
.pcard--end__arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard--end:hover .pcard--end__arrow { transform: rotate(45deg) scale(1.08); }

/* --- project visuals --- */
.vz-h { fill: var(--dim); font: 500 10.5px var(--f-mono); letter-spacing: .12em; }
/* TwinCode */
.viz-twin .vz-pill rect { fill: rgba(255, 255, 255, .035); stroke: var(--line-2); }
.viz-twin .vz-pill--r rect { stroke: rgba(255, 77, 18, .45); fill: rgba(255, 77, 18, .06); }
.viz-twin .vz-pill text { fill: var(--text); font: 500 12.5px var(--f-body); }
.viz-twin .vz-links path { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash-flow 1.1s linear infinite; opacity: .85; }
.viz-twin .vz-links path:nth-child(2) { animation-duration: 1.4s; stroke: var(--gold); }
.viz-twin .vz-links path:nth-child(3) { animation-duration: 1.25s; }
.viz-twin .vz-links path:nth-child(4) { animation-duration: 1.6s; stroke: var(--gold); }
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
/* Academic WDB — WhatsApp (dark theme) */
.viz-wa { display: grid; justify-items: center; align-items: end; padding: 14px 0 0; }
.wa {
  width: min(62%, 260px); height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px 24px 0 0; border: 6px solid #1d1512; border-bottom: 0; background: #0b141a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.wa__head { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 9px; background: #202c33; color: #e9edef; }
.wa__back { font-size: 18px; line-height: 1; color: #aebac1; }
.wa__avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font: 700 12px/1 system-ui, sans-serif; }
.wa__who { flex: 1; min-width: 0; line-height: 1.15; }
.wa__who b { display: block; font-size: 11.5px; font-weight: 600; }
.wa__status { font-size: 9.5px; color: #8696a0; }
.wa__icons { display: flex; gap: 9px; }
.wa__icons i { width: 11px; height: 11px; border: 1.5px solid #aebac1; border-radius: 3px; }
.wa__icons i:last-child { border-radius: 50%; }
.wa__chat {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.wa__list { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; }
.js .wa__list > :not(.is-shown) { display: none; }
.wa__day { align-self: center; margin: 0 0 2px; padding: 4px 8px; border-radius: 6px; background: #182229; color: #8696a0; font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; }
.wa__msg { position: relative; max-width: 86%; margin: 0; padding: 5px 7px 15px; border-radius: 8px; font-size: 10.5px; line-height: 1.38; color: #e9edef; }
.wa__msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 0; }
.wa__msg--in { align-self: flex-start; background: #202c33; border-top-left-radius: 0; }
.wa__msg b { font-weight: 600; }
.wa__meta { position: absolute; right: 6px; bottom: 3px; display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: rgba(233, 237, 239, .6); }
.wa__tick {
  width: 13px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5 3.8 8.3 9.6 1.6M6.2 8.3 12.4 1.6' fill='none' stroke='%2353bdeb' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wa__doc, .wa__link { display: flex; align-items: center; gap: 7px; padding: 6px 7px 16px; }
.wa__doc b, .wa__link b { display: block; font-size: 10px; }
.wa__doc small, .wa__link small { display: block; margin-top: 2px; font-size: 8.5px; color: #8696a0; }
.wa__pdf { flex: none; width: 24px; height: 30px; border-radius: 3px; background: #e5484d; color: #fff; font: 700 7px/30px system-ui, sans-serif; text-align: center; }
.wa__thumb { flex: none; width: 38px; height: 28px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(135deg, #ff2d3a, #8b0a14); color: #fff; font-size: 10px; }
.wa__typing { align-self: flex-start; display: flex; gap: 3px; margin: 0; padding: 8px 10px; border-radius: 8px; border-top-left-radius: 0; background: #202c33; }
.wa__typing i { width: 5px; height: 5px; border-radius: 50%; background: #8696a0; animation: wa-typing 1s ease-in-out infinite; }
.wa__typing i:nth-child(2) { animation-delay: .15s; }
.wa__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.wa__input { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 7px 12px; background: #0b141a; }
.wa__input span { flex: 1; padding: 7px 10px; border-radius: 16px; background: #202c33; color: #8696a0; font-size: 10px; }
.wa__input i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #00a884; }
/* ==========================================================================
   04 Wins — whichever card you hover grows into the headline
   ========================================================================== */
.wins__rows { display: grid; gap: 16px; }
.wins__row { display: flex; gap: 16px; height: clamp(300px, 38vh, 360px); }
.win {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 26px; border-radius: 22px; border: 1px solid var(--line-2); outline: none;
  background: linear-gradient(180deg, rgba(20, 11, 8, .92), rgba(10, 6, 4, .92));
  transition: flex-grow .85s var(--ease-out), border-color .5s;
}
.win.is-active { flex-grow: 2.7; border-color: rgba(255, 120, 60, .45); }
.win:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.win__glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .7s;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255, 77, 18, .42), transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(215, 20, 46, .28), transparent 55%);
}
.win.is-active .win__glow { opacity: 1; }
.win__big {
  position: absolute; top: -.04em; right: .06em; pointer-events: none;
  font-family: var(--f-display); font-size: clamp(120px, 12vw, 220px); line-height: 1;
  background-image: var(--fire-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .9s var(--ease-out);
}
.win.is-active .win__big { opacity: .95; transform: none; }
.win > :not(.win__big):not(.win__glow):not(.win__media):not(.win__view) { position: relative; z-index: 2; }
.win[data-photo] { cursor: zoom-in; }
/* the frame rises while the photo counter-slides, so the picture stays put and is wiped into view */
.win__media {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none;
  transform: translateY(101%); transition: transform .9s var(--ease-out);
}
.win__media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(-101%) scale(1.14); transition: transform .9s var(--ease-out); }
.win__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 4, 3, .97) 0%, rgba(7, 4, 3, .82) 34%, rgba(7, 4, 3, .28) 68%, rgba(7, 4, 3, .08) 100%),
    linear-gradient(to right, rgba(40, 8, 4, .35), transparent 60%);
}
.win.is-hover .win__media { transform: none; }
.win.is-hover .win__media img { transform: none; }
.win.is-hover .win__big { opacity: 0; transform: translateY(-16px); }
.win__view {
  position: absolute; top: 16px; right: 16px; z-index: 2; padding: 8px 12px; border-radius: 999px;
  background: rgba(10, 6, 4, 0.82);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s .25s, transform .5s .25s var(--ease-out);
}
.win.is-hover .win__view { opacity: 1; transform: none; }
.win__rank { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.win__rank::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.win h3 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .98;
  font-size: clamp(21px, 1.6vw, 27px); max-width: 16ch; transition: font-size .75s var(--ease-out);
}
.win.is-active h3 { font-size: clamp(32px, 2.9vw, 50px); max-width: 17ch; }
.win p {
  color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 46ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.win.is-active p { -webkit-line-clamp: 4; color: #d8c8bc; font-size: 15px; }
.win p b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   05 Speaking & leadership — podcast trailers and event photos
   ========================================================================== */
.kicker { font: 500 10.5px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ember); }
.podcast {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  padding-bottom: clamp(50px, 8vh, 90px); margin-bottom: clamp(50px, 8vh, 90px); border-bottom: 1px solid var(--line);
}
.podcast__intro { position: sticky; top: 16vh; }
.podcast__intro h3 { font: 400 clamp(32px, 3.2vw, 52px)/1.04 var(--f-serif); letter-spacing: -.01em; margin: 14px 0 16px; }
.podcast__intro p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 42ch; }
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ep { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 11, 8, .92), rgba(10, 6, 4, .92)); }
.ep__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #140b08; }
.ep__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.8); transition: transform 1.2s var(--ease-out), filter .6s; }
.ep__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 4, 3, .75), transparent 55%); }
.ep__media:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(.9); }
.ep__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fire); box-shadow: 0 16px 40px -8px rgba(255, 77, 18, .75);
  transition: transform .5s var(--ease-out);
}
.ep__play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 150, 90, .55); animation: ping 2.2s var(--ease-out) infinite; }
.ep__play svg { width: 24px; height: 24px; margin-left: 3px; fill: #160603; }
.ep__media:hover .ep__play { transform: scale(1.1); }
.ep__dur { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(10, 6, 4, 0.82); font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ep__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.ep__num { font: 500 10.5px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.ep h4 { font: 400 clamp(22px, 1.8vw, 28px)/1.15 var(--f-serif); }
.ep p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.ep__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.ep__btn, .ep__full {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  font: 600 12px/1 var(--f-body); letter-spacing: .04em; text-decoration: none;
}
.ep__btn { background: var(--fire); color: #160603; }
.ep__btn svg { width: 13px; height: 13px; fill: currentColor; }
.ep__full { border: 1px dashed var(--line-2); color: var(--text); transition: border-color .3s, background-color .3s; }
.ep__full small { font: 500 10px/1 var(--f-mono); color: var(--dim); }
.ep__full svg { width: 16px; height: 16px; fill: #ff3d2e; }
.ep__full:hover { border-color: var(--ember); background: rgba(255, 77, 18, .1); }

.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 11, 8, .92), rgba(10, 6, 4, .92)); }
.event--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.event__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #140b08; }
.event__media button { display: block; width: 100%; height: 100%; overflow: hidden; }
.event__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease-out), filter .6s; }
.event__media button:hover img { transform: scale(1.05); filter: saturate(1.05); }
.event__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: auto; height: clamp(280px, 30vw, 430px); }
.event__body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
.event--wide .event__body { align-content: center; padding: clamp(24px, 3vw, 44px); }
.event h3 { font: 400 clamp(22px, 1.8vw, 30px)/1.15 var(--f-serif); }
.event--wide h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(36px, 3.6vw, 60px); line-height: .95; }
.event p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ==========================================================================
   06 Research
   ========================================================================== */
.paper {
  padding: clamp(24px, 4vw, 60px); border-radius: 30px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 12, 9, .92), rgba(10, 6, 4, .92));
}
.paper__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font: 500 11.5px/1.5 var(--f-mono); color: var(--muted); }
.paper__title { font: 400 clamp(28px, 3.3vw, 54px)/1.08 var(--f-serif); letter-spacing: -.012em; margin: 24px 0 14px; max-width: 30ch; }
.paper__authors { color: var(--muted); font-size: 15px; }
.paper__authors b { color: var(--text); font-weight: 700; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 100% 2px no-repeat; padding-bottom: 1px; }
.paper__abs { color: #d3c3b7; font-size: 16.5px; line-height: 1.8; max-width: 72ch; }
.paper__contrib { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: c; }
.paper__contrib li { counter-increment: c; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text); background: rgba(255, 255, 255, .02); }
.paper__contrib li::before { content: counter(c, decimal-leading-zero); font: 500 10px/1 var(--f-mono); color: var(--ember); margin-right: 8px; }
.paper--sm { margin-top: 16px; padding: clamp(22px, 3vw, 40px); }
.paper--sm .paper__title { font-size: clamp(24px, 2.4vw, 36px); margin: 16px 0 10px; }

.ghost {
  position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 44px); align-items: center;
  margin: 34px 0; padding: clamp(18px, 2.6vw, 32px); border-radius: 22px;
  border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .28); overflow: hidden;
}
.ghost::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 18, .8), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.ghost__traces { position: relative; display: grid; gap: 8px; }
.ghost__traces span {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #0d0706; font: 500 11.5px/1 var(--f-mono); color: var(--muted);
  animation: trace 5s infinite;
}
.ghost__traces span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.ghost__traces span:nth-child(2) { animation-delay: .5s; }
.ghost__traces span:nth-child(3) { animation-delay: 1s; }
.ghost__traces span:nth-child(4) { animation-delay: 1.5s; }
.ghost__traces span:nth-child(5) { animation-delay: 2s; }
@keyframes trace { 0%, 100% { border-color: var(--line-2); color: var(--muted); } 10%, 25% { border-color: rgba(255, 194, 75, .6); color: var(--text); } }
.ghost__layers { position: relative; display: grid; gap: 8px; }
.ghost__layers div {
  position: relative; overflow: hidden; padding: 12px 16px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(255, 77, 18, .16), rgba(255, 77, 18, .03));
  border: 1px solid rgba(255, 77, 18, .28); font-size: 14.5px; font-weight: 600;
}
.ghost__layers div::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 190, 120, .25), transparent);
  animation: layer-scan 4s var(--ease-io) infinite;
}
.ghost__layers div:nth-child(2)::after { animation-delay: .35s; }
.ghost__layers div:nth-child(3)::after { animation-delay: .7s; }
.ghost__layers div:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes layer-scan { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.ghost__layers small { font: 500 10px/1 var(--f-mono); color: var(--ember); margin-right: 10px; }
.ghost__out { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ghost__file {
  width: 100%; max-width: 220px; padding: 22px 14px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .28);
  display: grid; gap: 6px; animation: ghosting 3.4s ease-in-out infinite;
}
.ghost__file span { font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ghost__file b { font-family: var(--f-display); font-weight: 400; font-size: 34px; letter-spacing: .04em; color: var(--crimson); text-decoration: line-through; text-decoration-thickness: 3px; }
@keyframes ghosting { 0%, 100% { opacity: .35; filter: blur(1.5px); } 50% { opacity: .95; filter: blur(0); } }
.ghost__out p { font: italic 400 21px/1.2 var(--f-serif); color: var(--flame); }

/* ==========================================================================
   07 Skills
   ========================================================================== */
.skills__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.skills__copy .title { margin-bottom: 36px; }
.orbit-wrap { container-type: inline-size; width: min(100%, 600px); margin-inline: auto; }
.orbit { --r1: 20cqi; --r2: 33cqi; --r3: 46cqi; position: relative; width: 100cqi; height: 100cqi; }
.orbit__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26cqi; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 40% 35%, #fff2cf, #ffb347 16%, #ff4d12 44%, #8f0b24 76%, #2a0508);
  box-shadow: 0 0 60px 12px rgba(255, 77, 18, .45), 0 0 160px 50px rgba(255, 77, 18, .16);
  animation: core 4.5s ease-in-out infinite;
}
@keyframes core { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
.orbit__core span { font-family: var(--f-display); text-transform: uppercase; font-size: 3.1cqi; line-height: 1; color: #1a0503; }
.orbit__core em { font: italic 400 1.2em/1 var(--f-serif); text-transform: none; }
.orbit__ring { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.orbit__ring::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2); translate: -50% -50%;
  border-radius: 50%; border: 1px dashed rgba(255, 214, 190, .13);
}
.orbit__ring > span { position: absolute; left: 50%; top: 50%; transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--r)) rotate(calc(-360deg / var(--n) * var(--i))); }
.orbit__ring b {
  position: absolute; translate: -50% -50%; display: block; white-space: nowrap;
  padding: 1.3cqi 2cqi; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(20, 11, 8, .92); color: var(--text);
  font: 500 clamp(9px, 2cqi, 12.5px)/1 var(--f-mono);
  animation: spin var(--dur) linear infinite reverse;
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.orbit__ring--2 { animation-direction: reverse; }
.orbit__ring--2 b { animation-direction: normal; }
.orbit__ring--1 b { border-color: rgba(255, 77, 18, .45); color: #ffc1a0; }
.orbit:hover .orbit__ring, .orbit:hover .orbit__ring b { animation-play-state: paused; }
.orbit__ring b:hover { border-color: var(--ember); box-shadow: 0 0 18px rgba(255, 77, 18, .5); }
@keyframes spin { to { transform: rotate(360deg); } }
.stack__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.stack__row dt { font: 500 10.5px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.stack__row dd { color: var(--text); font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   08 Education
   ========================================================================== */
.edu__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.edu__schools { display: grid; gap: 16px; }
.school { padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 11, 8, .9), rgba(10, 6, 4, .9)); }
.school__when { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.school h3 { font: 400 clamp(26px, 2.3vw, 36px)/1.1 var(--f-serif); margin: 10px 0 4px; }
.school p { color: var(--muted); font-size: 14.5px; }
.school .school__deg { color: var(--text); font-weight: 600; margin-top: 10px; }
.school__score { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; }
.school__score b, .school__split b {
  font-family: var(--f-display); font-weight: 400; line-height: .9;
  background-image: var(--fire-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.school__score b { font-size: 72px; }
.school__score span { font: 500 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.school__split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.school__split b { display: block; font-size: 52px; }
.school__split span { display: block; margin-top: 6px; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.pass {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  border-radius: 22px; overflow: hidden; color: #1c0d08;
  background: linear-gradient(135deg, #fbf0e3, #f1dfcb);
  box-shadow: 0 50px 110px -40px rgba(255, 77, 18, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  transform-style: preserve-3d;
}
.pass::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform 1.2s var(--ease-out);
}
.pass:hover::after { transform: translateX(120%); }
.pass__main { padding: 24px 28px; }
.pass__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed rgba(28, 13, 8, .22); font: 600 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #9a4a2a; }
.pass__route { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 16px; margin: 20px 0 18px; }
.pass__route small { display: block; font: 600 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #a0715c; }
.pass__route b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 5vw, 72px); line-height: 1; margin: 4px 0; }
.pass__route span { font-size: 12px; color: #5a3a2c; }
.pass__to { text-align: right; }
.pass__arc { width: 100%; height: auto; overflow: visible; }
.pass__arc path { fill: none; stroke: #c43d17; stroke-width: 1.5; stroke-dasharray: 3 5; }
.pass__arc .plane { fill: #c43d17; stroke: none; }
.pass__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.pass__grid dt { font: 600 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #a0715c; }
.pass__grid dd { margin-top: 5px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.pass__grid .hot { color: #c43d17; }
.pass__topics { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(28, 13, 8, .22); font: italic 400 19px/1.3 var(--f-serif); color: #5a3a2c; }
.pass__stub {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 24px 20px;
  border-left: 2px dashed rgba(28, 13, 8, .25);
  background: linear-gradient(180deg, #ffd8b0, #ffb88a);
}
.pass__stub::before, .pass__stub::after { content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.pass__stub::before { top: -11px; }
.pass__stub::after { bottom: -11px; }
.pass__stub small { font: 600 9.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8a4a2a; }
.pass__stub b { font-size: 14.5px; margin-top: 10px; }
.pass__stub span { font-size: 12px; color: #6a3a2a; }
.pass__barcode {
  margin: auto 0 10px; padding-top: 18px; height: 70px;
  background: repeating-linear-gradient(90deg, #1c0d08 0 2px, transparent 2px 4px, #1c0d08 4px 5px, transparent 5px 8px, #1c0d08 8px 11px, transparent 11px 12px, #1c0d08 12px 13px, transparent 13px 16px);
  background-clip: content-box; opacity: .85;
}

.certs { margin-top: clamp(50px, 8vh, 90px); }
.certs__k { font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }
.certs__k span { font: italic 400 15px/1 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--dim); }
.certs__list { list-style: none; padding: 0; margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cert {
  display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; text-align: left;
  padding: 12px 12px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(14, 8, 6, .85);
  transition: border-color .4s, transform .6s var(--ease-out);
}
.cert:hover { border-color: rgba(255, 194, 75, .5); transform: translateY(-4px); }
.cert__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; border-radius: 10px; background: #f3efe8; }
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--ease-out); }
.cert:hover .cert__thumb img { transform: scale(1.06); }
.cert b { padding: 0 4px; font: 400 18px/1.18 var(--f-serif); }
.cert > span:not(.cert__thumb) { padding: 0 4px; font: 500 10.5px/1.5 var(--f-mono); color: var(--muted); }
.pass__cert {
  align-self: flex-start; margin-top: 14px; padding: 8px 12px; border-radius: 999px;
  background: #1c0d08; color: #ffd8b0; font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .3s;
}
.pass__cert:hover { background: #c43d17; color: #fff; }

/* ==========================================================================
   09 Contact
   ========================================================================== */
.contact {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(110px, 18vh, 200px) var(--gutter) 0;
  max-width: var(--maxw); margin-inline: auto;
}
.contact__eyebrow span { color: var(--ember); }
.contact__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(58px, 10.4vw, 196px); line-height: .88; margin: 22px 0 44px; max-width: 12ch;
}
.contact__mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.contact__mail {
  font: italic 400 clamp(26px, 4.3vw, 72px)/1.1 var(--f-serif); color: var(--text); text-decoration: none; word-break: break-all;
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size .7s var(--ease-out);
}
.contact__mail:hover { background-size: 100% 2px; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14, 8, 6, 0.82);
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy:hover { border-color: var(--ember); color: var(--ember); }
.contact__links { list-style: none; padding: 0; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.clink {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14, 8, 6, 0.82);
  font: 600 14px/1 var(--f-body); text-decoration: none; color: var(--text);
  transition: border-color .3s, background-color .3s, color .3s;
}
.clink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clink svg.fill { fill: currentColor; stroke: none; }
.clink:hover { border-color: var(--ember); background: rgba(255, 77, 18, .12); }
.clink--fire { background: var(--fire); color: #160603; border-color: transparent; }
.clink--fire:hover { background: var(--fire); color: #000; box-shadow: 0 12px 40px -10px rgba(255, 77, 18, .8); }

.footer { position: relative; z-index: 2; margin-top: auto; padding-top: clamp(60px, 10vh, 110px); }
.term { font: 500 13px/1.6 var(--f-mono); color: var(--muted); margin-bottom: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.term__p { color: var(--ember); }
.term__caret { display: inline-block; width: 8px; height: 15px; background: var(--ember); vertical-align: -3px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
}
.footer__row a { text-decoration: none; color: var(--muted); }
.footer__row a:hover { color: var(--ember); }
.clock { color: var(--text); font-variant-numeric: tabular-nums; }
.contact__fire {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  height: clamp(170px, 28vh, 300px);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.footfire { display: block; width: 100%; height: 100%; }
.contact__giant {
  position: relative; z-index: 1; pointer-events: none; user-select: none;
  margin: 0 calc(-1 * var(--gutter)) -.04em; text-align: center; white-space: nowrap;
  font-family: var(--f-display); font-size: 23vw; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 214, 190, .24);
  background: linear-gradient(to top, rgba(255, 110, 40, .55), rgba(255, 77, 18, .1) 50%, transparent 78%);
  -webkit-background-clip: text; background-clip: text;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; translate: -50% 0;
  padding: 12px 20px; border-radius: 999px; background: var(--fire); color: #160603;
  font: 600 13px/1 var(--f-body); box-shadow: 0 16px 50px -12px rgba(255, 77, 18, .8);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Lightbox — certificates, photos, podcast trailers, project screens
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 3, 2, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox__panel { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: min(1240px, 100%); max-height: 100%; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img, .lightbox__stage video {
  display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  border-radius: 14px; background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2);
}
.lightbox__stage video { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox__caption { font: 500 12px/1.5 var(--f-mono); letter-spacing: .03em; color: var(--muted); }
.lightbox__nav { display: flex; align-items: center; gap: 10px; flex: none; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { min-width: 52px; text-align: center; font: 500 11px/1 var(--f-mono); color: var(--dim); }
.lightbox__btn, .lightbox__close {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(22, 13, 9, .7); color: var(--text); transition: border-color .3s, color .3s;
}
.lightbox__btn svg, .lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover, .lightbox__close:hover { border-color: var(--ember); color: var(--ember); }
.lightbox__close {
  position: fixed; top: 18px; right: 18px; z-index: 3;
  width: auto; height: 46px; padding: 0 18px 0 14px; gap: 8px; display: inline-flex; align-items: center;
  border-radius: 999px; background: rgba(22, 13, 9, .85);
  font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
  .nav__pill a { padding: 9px 10px; letter-spacing: .08em; }
}

@media (max-width: 1180px) {
  .nav__pill { display: none; }
  .nav__burger { display: block; }
  .nav { gap: 12px; }
  .certs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .orbit-wrap { width: min(100%, 520px); }
  .edu__grid { grid-template-columns: 1fr; }
  .podcast { grid-template-columns: 1fr; }
  .podcast__intro { position: relative; top: 0; }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event--wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__cta { display: none; }
  .snd { height: 46px; padding: 0 14px; }
  .snd__label { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero__top { flex-direction: column; align-items: flex-start; }
  .hero__name { margin-top: 18px; }
  .hero__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__portrait { order: -1; justify-self: center; width: min(56vw, 260px); margin-top: calc(var(--name-h) * -.14); }
  .hero__copy { padding-top: 0; gap: 16px; }
  .hero__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; border-radius: 22px; padding: 16px 18px; }
  .hero__scroll { justify-self: start; }

  .about__grid { grid-template-columns: 1fr; }
  .deck { position: relative; top: 0; }
  .deck__stack { width: min(78vw, 400px); }

  .reel__hud--bl, .reel__frame { display: none; }
  .reel__hud--tl { left: var(--gutter); }
  .reel__hud--tr { right: var(--gutter); }
  .reel__hud--br { right: var(--gutter); }
  .reel__progress { left: var(--gutter); right: var(--gutter); }
  .scene { padding: 0 var(--gutter); }

  .xp__list { --when: 0px; }
  .xp__fuse { left: 7px; }
  .xp__item { grid-template-columns: 1fr; gap: 12px; padding-left: 34px; }
  .xp__item::before { left: 8px; top: 8px; }
  .xp__when { text-align: left; padding-top: 0; }
  .xp__when span, .xp__when small { display: inline; }
  .xp__when small::before { content: ' · '; }

  .rail { --rail-pad: var(--gutter); }
  .rail__head { display: none; }
  .rail__track { flex-direction: column; width: auto; }
  .pcard { width: 100%; }

  .wins__row { flex-direction: column; height: auto; }
  .win, .win.is-active { flex: none; min-height: 0; }
  .win h3, .win.is-active h3 { font-size: 28px; max-width: none; }
  .win p, .win.is-active p { -webkit-line-clamp: unset; }
  .win__big { font-size: 96px; }
  .win.is-hover { min-height: 360px; }
  .win .win__big { opacity: .14; transform: none; }
  .win.is-active .win__big { opacity: .5; }
  .win.is-active h3 { max-width: 12ch; }

  .ghost { grid-template-columns: 1fr; }
  .ghost::before { display: none; }
  .ghost__traces { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  .pass { grid-template-columns: 1fr; }
  .pass__stub { border-left: 0; border-top: 2px dashed rgba(28, 13, 8, .25); }
  .pass__stub::before, .pass__stub::after { top: -12px; left: auto; }
  .pass__stub::before { left: -11px; }
  .pass__stub::after { right: -11px; bottom: auto; }
  .pass__barcode { height: 50px; }
  .pass__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
  .sec-head__note { display: none; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .traits { grid-template-columns: 1fr; }
  .episodes, .events { grid-template-columns: 1fr; }
  .event__media--pair { height: 260px; }
  .stack__row { grid-template-columns: 1fr; gap: 6px; }
  .certs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert b { font-size: 16px; }
  .school__split b { font-size: 40px; }
  .pass__route b { font-size: 44px; }
  .pass__main { padding: 22px 20px; }
  .contact__links .clink { padding: 13px 16px; font-size: 13px; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
