/* omerwasiq.com — dark dither-laser system
   Near-black surfaces, fine dither grain, one ember laser, glass-dark panels
   with gradient borders, Inter Tight + Instrument Serif + JetBrains Mono,
   GSAP/Lenis choreography. Static first frame is complete without JS. */

/* ------------------------------------------------------------ tokens --- */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);

  --ink: #f1ede6;
  --ink-2: #b8b3aa;
  --ink-3: #78736c;

  --ember: #ff5a2e;
  --ember-2: #ffb38a;
  --ember-glow: rgba(255, 90, 46, 0.38);
  --ember-soft: rgba(255, 90, 46, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1280px;
  --pad: clamp(20px, 4.5vw, 64px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* ------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, figure, blockquote, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mono .em { color: var(--ember); }
.serif { font-family: var(--serif); font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------------------------------------------------------- atmosphere --- */
.dither {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.55px, transparent 0.8px);
  background-size: 3px 3px;
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 20%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 20%, transparent 100%);
}
.gradient-blur { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 96px; pointer-events: none; }
.gradient-blur > div, .gradient-blur::before, .gradient-blur::after { position: absolute; inset: 0; }
.gradient-blur::before { content: ""; z-index: 1; backdrop-filter: blur(0.5px); -webkit-backdrop-filter: blur(0.5px); mask: linear-gradient(to top, rgba(0,0,0,0) 0%, #000 12.5%, #000 25%, rgba(0,0,0,0) 37.5%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 0%, #000 12.5%, #000 25%, rgba(0,0,0,0) 37.5%); }
.gradient-blur > div:nth-of-type(1) { z-index: 2; backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask: linear-gradient(to top, rgba(0,0,0,0) 12.5%, #000 25%, #000 37.5%, rgba(0,0,0,0) 50%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 12.5%, #000 25%, #000 37.5%, rgba(0,0,0,0) 50%); }
.gradient-blur > div:nth-of-type(2) { z-index: 3; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask: linear-gradient(to top, rgba(0,0,0,0) 25%, #000 37.5%, #000 50%, rgba(0,0,0,0) 62.5%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 25%, #000 37.5%, #000 50%, rgba(0,0,0,0) 62.5%); }
.gradient-blur > div:nth-of-type(3) { z-index: 4; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); mask: linear-gradient(to top, rgba(0,0,0,0) 37.5%, #000 50%, #000 62.5%, rgba(0,0,0,0) 75%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 37.5%, #000 50%, #000 62.5%, rgba(0,0,0,0) 75%); }
.gradient-blur > div:nth-of-type(4) { z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); mask: linear-gradient(to top, rgba(0,0,0,0) 50%, #000 62.5%, #000 75%, rgba(0,0,0,0) 87.5%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 50%, #000 62.5%, #000 75%, rgba(0,0,0,0) 87.5%); }
.gradient-blur > div:nth-of-type(5) { z-index: 6; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask: linear-gradient(to top, rgba(0,0,0,0) 62.5%, #000 75%, #000 87.5%, rgba(0,0,0,0) 100%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 62.5%, #000 75%, #000 87.5%, rgba(0,0,0,0) 100%); }
.gradient-blur::after { content: ""; z-index: 7; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); mask: linear-gradient(to top, rgba(0,0,0,0) 80%, #000 100%); -webkit-mask: linear-gradient(to top, rgba(0,0,0,0) 80%, #000 100%); }

/* ------------------------------------------------------------ preloader --- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader-in { display: grid; gap: 18px; width: min(70vw, 360px); }
.preloader .count { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.preloader .count small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: 12px; vertical-align: super; }
.preloader .bar { height: 1px; background: var(--line); position: relative; overflow: visible; }
.preloader .bar i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px 1px var(--ember), 0 0 30px 6px var(--ember-glow); }
html:not(.has-motion) .preloader { display: none; }

/* ------------------------------------------------------------- cursor --- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%; background: var(--ember);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px 2px var(--ember-glow);
  opacity: 0;
}
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
}
html.has-motion.fine.cursor-on .cursor, html.has-motion.fine.cursor-on .cursor-ring { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor, .cursor-ring { display: none; } }

/* ---------------------------------------------------------------- nav --- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none;
}
.nav-in {
  pointer-events: auto;
  width: min(100%, var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 16px;
  position: relative;
  background: rgba(10, 10, 13, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.nav-in::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,90,46,0.28) 45%, rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; }
.brand .mono { font-size: 0.64rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 10px 12px; border-radius: 10px;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links .pill {
  color: #0a0a0a; background: var(--ink); margin-left: 6px;
  transition: transform 0.45s var(--ease), background 0.35s;
}
.nav-links .pill:hover { background: #fff; color: #0a0a0a; }
@media (max-width: 720px) { .brand .mono, .nav-links .hide-sm { display: none; } .nav-in { padding-left: 16px; } }

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: clamp(120px, 18vh, 180px) 0 clamp(36px, 6vh, 64px);
  overflow: clip;
  isolation: isolate;
}
.hero-scene {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero-scene.is-live { opacity: 1; }
.hero-canvas { width: 100%; height: 100%; display: block; }
.hero-poster {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 72% 46%, rgba(255, 90, 46, 0.18), transparent 70%),
    radial-gradient(60% 60% at 70% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
}
@media (max-width: 900px) {
  .hero-poster { background: radial-gradient(60% 40% at 50% 30%, rgba(255, 90, 46, 0.16), transparent 70%); }
  .hero-scene.is-live { opacity: 0.55; }
}
.laser {
  position: absolute; left: -10%; right: -10%; top: 60%; z-index: -1; pointer-events: none;
  height: 1px; transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 25%, #fff 50%, rgba(255,255,255,0.7) 75%, transparent 100%);
  box-shadow: 0 0 8px 1px var(--ember), 0 0 40px 6px var(--ember-glow), 0 0 120px 20px rgba(255, 90, 46, 0.12);
  opacity: 0.75;
  animation: breathe 6s ease-in-out infinite;
}
.laser::after {
  content: ""; position: absolute; left: 20%; right: 20%; top: -60px; height: 120px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 90, 46, 0.16), transparent 70%);
  filter: blur(18px);
}
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.95; } }

.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); }
.hero-top .tick { width: 36px; height: 1px; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
h1 {
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(3rem, 8.6vw, 8.4rem);
  max-width: 11.5ch;
  text-wrap: balance;
}
h1 em { font-size: 1.06em; color: var(--ember-2); letter-spacing: -0.02em; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 80px);
  align-items: end; margin-top: clamp(28px, 4vw, 48px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ember); color: #0a0a0a; border: 1px solid var(--ember);
  box-shadow: 0 0 0 0 var(--ember-glow);
  transition: box-shadow 0.5s var(--ease), background 0.35s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 0 34px 2px var(--ember-glow); background: var(--ember-2); border-color: var(--ember-2); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); background: var(--panel-2); }
.hero-meta { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; align-content: end; font-size: 0.92rem; }
.hero-meta dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.hero-meta dd { color: var(--ink-2); }
.hero-meta dd.live { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.hero-meta dd.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 2px var(--ember-glow); animation: pulse 2.4s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.scroll-cue { position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 48px; background: var(--line-2); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ember); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------- marquee --- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; position: relative; z-index: 1; background: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ------------------------------------------------------------ sections --- */
section { position: relative; z-index: 1; }
.sec { padding: clamp(96px, 14vw, 180px) 0; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ember); }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec-head .t { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(2.4rem, 5.4vw, 5rem); text-wrap: balance; }
h2 em { font-size: 1.06em; color: var(--ember-2); }
h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.body { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.body b { color: var(--ink); font-weight: 600; }
.body + .body { margin-top: 1rem; }

/* problem: pinned scrubbed statement */
.problem { min-height: 100svh; display: grid; align-items: center; padding: 80px 0; }
.statement { font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; font-size: clamp(1.6rem, 3.6vw, 3.4rem); max-width: 30ch; }
.statement em { color: var(--ember-2); font-size: 1.05em; }
.statement .wm { overflow: visible; }
html.has-motion .statement .w { opacity: 0.16; filter: blur(5px); transform: translateY(0.12em); }
.statement-note { margin-top: 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------------------------------------------------------- instrument --- */
.instrument {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(rgba(14, 14, 18, 0.82), rgba(14, 14, 18, 0.82)) padding-box,
              linear-gradient(145deg, rgba(255,255,255,0.32), rgba(255,90,46,0.42) 40%, rgba(255,255,255,0.06) 80%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}
.instrument::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}
.inst-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.inst-head h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.inst-head h3 b { color: var(--ember); font-weight: 500; margin-right: 12px; }
.inst-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 7vw, 120px); padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 32px); }
@media (max-width: 760px) { .inst-grid { grid-template-columns: 1fr; gap: 26px; } }
.col-title { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.thread .glow { fill: none; stroke: var(--ember); stroke-width: 7; opacity: 0.22; filter: blur(3px); }
.thread .core { fill: none; stroke: #fff; stroke-width: 1.4; }
.thread path { stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 700ms var(--ease) forwards; }
.thread circle { fill: #fff; filter: drop-shadow(0 0 6px var(--ember)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.claim {
  display: grid; grid-template-columns: 40px 1fr; gap: 10px; width: 100%; text-align: left;
  padding: 16px 18px; margin: 0 0 10px; border-radius: 14px; cursor: pointer; position: relative; z-index: 1;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.5s var(--ease);
}
.claim:hover { border-color: var(--line-2); background: var(--panel-2); }
.claim[aria-pressed="true"] { border-color: var(--ember); box-shadow: 0 0 30px -6px var(--ember-glow), inset 0 0 0 1px rgba(255,90,46,0.3); background: rgba(255, 90, 46, 0.06); }
.claim .ix { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--ink-3); padding-top: 4px; }
.claim[aria-pressed="true"] .ix { color: var(--ember); }
.claim .txt { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.ev {
  padding: 16px 18px; margin-bottom: 10px; border-radius: 14px; position: relative; z-index: 1;
  border: 1px solid var(--line); background: var(--panel); font-size: 0.96rem; line-height: 1.45; color: var(--ink-2);
  transition: border-color 0.35s, background 0.35s, color 0.35s, box-shadow 0.5s var(--ease);
}
.ev.lit { border-color: var(--ember); color: var(--ink); background: rgba(255, 90, 46, 0.06); box-shadow: 0 0 30px -6px var(--ember-glow); }
.ev .loc { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ink-3); }
.ev.lit .loc { color: var(--ember-2); }
.ev.lit .loc::before { content: "\2713\00a0 "; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 16px clamp(18px, 3vw, 32px); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-2); min-height: 52px; }
.verdict .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background 0.3s, box-shadow 0.3s; }
.verdict.ok .dot { background: var(--ember); box-shadow: 0 0 12px 2px var(--ember-glow); }
.verdict.bad .dot { background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,0.3); }
.verdict b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------- sticky stack --- */
.stack { position: relative; display: grid; gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.card {
  position: sticky; top: 13vh;
  min-height: 62vh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius);
  background: linear-gradient(rgba(16, 16, 20, 0.96), rgba(16, 16, 20, 0.96)) padding-box,
              linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,90,46,0.22) 45%, rgba(255,255,255,0.05)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
  transform-origin: center top;
  will-change: transform;
}
.card .k { display: flex; justify-content: space-between; align-items: center; }
.card .k .n { font-family: var(--serif); font-size: 2.4rem; color: var(--ember-2); line-height: 1; }
.card h3 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; max-width: 16ch; align-self: center; }
.card p { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 54ch; }
.card .laser-rule { height: 1px; margin-top: 22px; background: linear-gradient(90deg, #fff, var(--ember) 40%, transparent); box-shadow: 0 0 10px var(--ember-glow); width: 40%; }

/* --------------------------------------------------------- horizontal --- */
.record { padding: clamp(96px, 14vw, 180px) 0 0; }
.hscroll { position: relative; overflow: hidden; }
.htrack { display: flex; gap: 20px; padding: 0 var(--pad) clamp(64px, 10vw, 140px); width: max-content; will-change: transform; }
.role {
  flex: none; width: min(78vw, 440px); min-height: 380px; display: grid; grid-template-rows: auto 1fr auto; gap: 22px;
  padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.4s, background 0.4s;
}
.role:hover { border-color: var(--line-2); background: var(--panel-2); }
.role.now { background: linear-gradient(rgba(16, 16, 20, 0.96), rgba(16, 16, 20, 0.96)) padding-box, linear-gradient(145deg, rgba(255,255,255,0.3), var(--ember) 50%, rgba(255,255,255,0.06)) border-box; border-color: transparent; }
.role .yr { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.role.now .yr { color: var(--ember); }
.role.now .yr::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2.4s ease-in-out infinite; }
.role h3 { font-size: 1.5rem; }
.role .at { color: var(--ink-3); font-size: 0.9rem; margin-top: 6px; }
.role p:not(.at) { color: var(--ink-2); font-size: 0.95rem; }
.role.intro { width: min(78vw, 380px); background: transparent; border-color: transparent; padding-left: 0; }
.role.intro h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.role.intro p { color: var(--ink-3); }
.progress { height: 1px; background: var(--line); margin: 0 var(--pad) 28px; position: relative; }
.progress i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: linear-gradient(90deg, #fff, var(--ember)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--ember-glow); }
@media (max-width: 900px) {
  .htrack { flex-direction: column; width: auto; padding-bottom: 64px; }
  .role, .role.intro { width: auto; min-height: 0; }
  .progress { display: none; }
}

/* ------------------------------------------------------------ research --- */
.research { background: radial-gradient(60% 40% at 50% 0%, rgba(255, 90, 46, 0.09), transparent 70%); }
.research .big { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 22ch; }
.research .big .hot { color: var(--ember-2); }
.research-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .research-grid { grid-template-columns: 1fr; } }
.define {
  display: grid; grid-template-columns: max-content 1fr; gap: 16px 24px; padding: 24px 26px; border-radius: 18px;
  background: linear-gradient(rgba(16,16,20,0.9), rgba(16,16,20,0.9)) padding-box, linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,90,46,0.4) 45%, rgba(255,255,255,0.06)) border-box;
  border: 1px solid transparent; margin-top: 28px;
}
@media (max-width: 520px) { .define { grid-template-columns: 1fr; gap: 8px; } }
.define dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ember); padding-top: 2px; }
.define dd { color: var(--ink-2); font-size: 0.98rem; }
.define dd b { color: var(--ink); font-weight: 600; }
.wp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .wp { grid-template-columns: 1fr; } }
.wp article { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; align-content: start; transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease); }
.wp article:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.wp .n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--ember); }
.wp h3 { font-size: 1.15rem; }
.wp p { color: var(--ink-2); font-size: 0.94rem; }
.status { margin-top: 14px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: max-content 1fr; gap: 20px; align-items: baseline; }
@media (max-width: 520px) { .status { grid-template-columns: 1fr; gap: 8px; } }
.status .mono { color: var(--ember); display: flex; align-items: center; gap: 10px; }
.status .mono::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 2px var(--ember-glow); animation: pulse 2.4s ease-in-out infinite; }
.status p { color: var(--ink-2); font-size: 0.96rem; }

/* ------------------------------------------------------- credentials --- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.creds { border-top: 1px solid var(--line); margin-top: 28px; }
.creds div { display: grid; grid-template-columns: 130px 1fr; gap: 12px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .creds div { grid-template-columns: 1fr; gap: 6px; } }
.creds dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.creds dd { font-weight: 600; }
.creds dd span { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-3); font-size: 0.9rem; }
.creds.plain dd { font-weight: 400; color: var(--ink-2); }
.creds.plain dt { color: var(--ember); }
.voices { display: grid; gap: 18px; margin-top: 18px; }
.voices figure { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 18px; }
.voices blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.voices blockquote::before { content: "\201C"; color: var(--ember); }
.voices blockquote::after { content: "\201D"; color: var(--ember); }
.voices figcaption { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.voices figcaption b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; }

/* ------------------------------------------------------------- contact --- */
.contact { padding-bottom: clamp(96px, 14vw, 180px); }
.reach {
  display: inline-block; margin-top: 28px; text-decoration: none;
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(1.9rem, 6.2vw, 6.4rem);
  background: linear-gradient(90deg, var(--ember), var(--ember-2)) left bottom / 0 3px no-repeat;
  transition: background-size 0.7s var(--ease), color 0.4s;
  will-change: transform;
  word-break: break-all;
}
.reach:hover { background-size: 100% 3px; color: #fff; }
.contact-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(3, max-content); gap: 24px 56px; }
@media (max-width: 720px) { .contact-meta { grid-template-columns: 1fr; gap: 18px; } }
.contact-meta dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.contact-meta dd { color: var(--ink-2); font-size: 0.95rem; }
.contact-meta dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.contact-meta dd a:hover { border-color: var(--ember); }

/* -------------------------------------------------------------- footer --- */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.foot { padding: clamp(48px, 7vw, 96px) 0 32px; display: grid; gap: 40px; }
.foot .mark { font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 12rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.foot .mark em { color: var(--ember-2); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-laser { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); box-shadow: 0 0 12px 1px var(--ember), 0 0 60px 8px var(--ember-glow); opacity: 0.8; }

/* ---------------------------------------------------------------- CV --- */
.cv-hero { padding: clamp(150px, 22vh, 220px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: clip; isolation: isolate; }
.cv-hero .hero-poster { background: radial-gradient(50% 50% at 80% 30%, rgba(255, 90, 46, 0.14), transparent 70%); }
.cv-hero h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.cv-hero .who { margin-top: 22px; color: var(--ink-2); font-size: 1.1rem; }
.cv-sec { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.cv-sec .split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 5vw, 72px); }
@media (max-width: 860px) { .cv-sec .split { grid-template-columns: 1fr; gap: 20px; } }
.cv-sec h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cv-sec .n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ember); display: block; margin-bottom: 12px; }
.cv-sec .creds { margin-top: 0; }
.job { padding: 20px 0; border-bottom: 1px solid var(--line); }
.job:first-child { padding-top: 0; }
.job:last-child { border-bottom: 0; }
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.job-top h3 { font-size: 1.1rem; }
.job-top h3 small { font-weight: 400; color: var(--ink-3); font-size: 0.9rem; }
.job .when { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; }
.job .at { color: var(--ink-3); font-size: 0.9rem; margin: 2px 0 10px; }
.job ul { padding-left: 18px; color: var(--ink-2); font-size: 0.96rem; }
.job li + li { margin-top: 5px; }
.kit-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-list span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); }
.back { margin-top: 18px; }

/* ---------------------------------------------------------------- stub --- */
.stub { min-height: 100svh; display: grid; align-items: center; padding: 140px 0 80px; position: relative; isolation: isolate; }
.stub .n { color: var(--ember); margin-bottom: 18px; display: block; }
.stub h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.stub p:not(.n) { margin-top: 20px; color: var(--ink-2); max-width: 52ch; font-size: 1.05rem; }
.stub .btn { margin-top: 30px; }

/* ------------------------------------------------------------- motion --- */
html.has-motion [data-words], html.has-motion [data-reveal], html.has-motion [data-reveal-group] > [data-item], html.has-motion [data-hero] [data-intro], html.has-motion [data-hero] h1 { visibility: hidden; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wm .w { display: inline-block; will-change: transform, opacity, filter; }
@media (prefers-reduced-motion: reduce) {
  .laser, .scroll-cue i::after, .hero-meta dd.live::before, .status .mono::before, .role.now .yr::before { animation: none; }
  .thread path { animation: none; stroke-dashoffset: 0; }
  .card { position: static; }
}

/* -------------------------------------------------------------- print --- */
@media print {
  body { background: #fff; color: #111; }
  .nav, .dither, .gradient-blur, .cursor, .cursor-ring, .preloader, footer, .hero-poster, .laser { display: none !important; }
  .cv-hero { padding-top: 20px; }
  * { color: #111 !important; border-color: #ccc !important; background: none !important; box-shadow: none !important; }
  html.has-motion [data-words], html.has-motion [data-reveal], html.has-motion [data-reveal-group] > [data-item], html.has-motion [data-hero] [data-intro], html.has-motion [data-hero] h1 { visibility: visible; }
}
