
/* =============================================================
   Variant Mix, foundation from V2, typography signature from V3,
   intro and topbar voice from V1.
   ============================================================= */

:root {
  /* color */
  --bg: #06070C;
  --bg-elev: #0A0C13;
  --aurora-1: #1a2540;
  --text: #F2F4F8;
  --text-2: rgba(242, 244, 248, 0.60);
  --text-3: rgba(242, 244, 248, 0.38);
  --text-4: rgba(242, 244, 248, 0.22);
  --accent: #7AB6FF;
  --accent-soft: rgba(122, 182, 255, 0.18);
  --accent-10: rgba(122, 182, 255, 0.10);
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.14);
  --inner: rgba(255, 255, 255, 0.04);

  /* shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --gutter: 28px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 480ms var(--ease-out);

  /* type */
  --serif: "Instrument Serif", "DM Serif Display", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
  /* cursor: none is applied via body.cursor-active by the scope-cursor JS once
     it successfully initialises. If JS errors out, the default cursor survives. */
}
body.cursor-active { cursor: none; }
@media (pointer: coarse) { body, body.cursor-active { cursor: auto; } }
@media (prefers-reduced-motion: reduce) { body, body.cursor-active { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
body.cursor-active button { cursor: none; }
@media (pointer: coarse) { button, body.cursor-active button { cursor: pointer; } }
img, svg, canvas { display: block; max-width: 100%; }

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

/* ---------- Atmosphere ---------- */
.bg-fixed { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 60% at 50% -10%, var(--aurora-1) 0%, rgba(26, 37, 64, 0.55) 22%, rgba(26, 37, 64, 0) 60%),
    radial-gradient(60% 40% at 10% 0%, rgba(122, 182, 255, 0.10) 0%, transparent 60%),
    radial-gradient(60% 40% at 90% 0%, rgba(122, 182, 255, 0.06) 0%, transparent 60%);
  opacity: 0.95;
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ---------- Cursor (V2 dot + V3 mask blob) — superseded by .scope-cursor below ---------- */
.cursor-dot { display: none !important; }

/* ---------- Container ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Intro (V1) ---------- */
#intro {
  position: fixed; inset: 0; z-index: 1000;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); padding: 24px;
  transition: opacity 400ms ease, transform 600ms var(--ease-out);
}
#intro.gone {
  opacity: 0; transform: translateY(-100%); pointer-events: none;
}
#intro .stack { width: min(560px, 92vw); }
#intro .row {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
#intro .row .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
  margin-right: 10px; vertical-align: middle;
  animation: blink 1s infinite;
}
#intro h1 {
  font-family: var(--mono);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.22em;
  margin: 8px 0 22px;
  line-height: 1;
  min-height: 1em;
  color: #fff;
}
#intro h1 .c {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.08s linear, transform 0.08s linear;
}
#intro h1 .c.on { opacity: 1; transform: translateY(0); }
#intro .bar { height: 2px; width: 100%; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
#intro .bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: var(--accent);
  box-shadow: 0 0 18px var(--accent-soft);
}
#intro .pct {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
#intro .log {
  margin-top: 20px; font-size: 11px; line-height: 1.7;
  color: rgba(255,255,255,0.55); height: 120px; overflow: hidden;
}
#intro .log .l {
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s linear, transform 0.2s linear;
}
#intro .log .l.on { opacity: 1; transform: translateY(0); }
#intro .log .l b { color: var(--accent); font-weight: 500; }
#intro .log .l .ok { color: #9aff9a; }
#intro .corner {
  position: absolute; font-size: 10px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.2em; text-transform: uppercase;
}
#intro .c-tl { top: 18px; left: 18px; }
#intro .c-tr { top: 18px; right: 18px; }
#intro .c-bl { bottom: 18px; left: 18px; }
#intro .c-br { bottom: 18px; right: 18px; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Topbar (V1 coordinates) ---------- */
.topbar {
  position: relative; z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 14px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  /* Liquid-glass bar: saturation lift makes content colors bloom through
     the blur; the inset hairline reads as the glass's top edge. */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0) 60%),
    rgba(6, 7, 12, 0.42);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: var(--bg-elev);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.topbar .l { color: var(--text-3); }
.topbar .m {
  color: var(--text);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.topbar .m span { color: var(--accent); font-weight: 400; margin-left: 8px; }
.topbar .r { text-align: right; color: var(--text-3); }
.topbar .r .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #9aff9a;
  box-shadow: 0 0 10px rgba(154,255,154,0.6);
  margin-right: 8px; vertical-align: middle;
  animation: blink 1.4s infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
}
.hero-grid {
  display: block;
  position: relative;
}
.hero-grid > div.hero-text {
  position: relative;
  overflow: visible;
}
.hero-grid::after { content: ''; display: block; clear: both; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--accent);
  margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 12px var(--accent-soft);
}

/* Massive italic display name (V3 signature) */
.display-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 32px 0;
  user-select: none;
}
.display-name .line { display: block; white-space: nowrap; }
.display-name .line.indent { padding-left: clamp(40px, 12vw, 220px); }
.display-name .letter {
  display: inline-block;
  will-change: transform, opacity;
  transform-origin: 50% 60%;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}
.display-name .period { color: var(--accent); }

.hero-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 36ch;
  margin: 0 0 36px 0;
}
.hero-tag em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  color: var(--text);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: border-color 240ms var(--ease-out), background-color 240ms var(--ease-out), transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.pill:hover { border-color: var(--accent); background: var(--accent-10); }
.pill.primary { border-color: var(--accent); background: var(--accent-10); }
.pill .arrow { color: var(--accent); }

/* ---------- Liquid-glass material ----------
   Web approximation of Apple's Liquid Glass (HIG "Materials"): backdrop
   blur + saturation lift, a top specular highlight, and a 1px refraction
   edge. Not the official Apple material; an honest CSS approximation.
   Applied to interactive surfaces only: hero pills, channel handles,
   the topbar, and floating chips. Solid fallbacks below. */
.lg-glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 46%, rgba(255,255,255,0.06) 100%),
    rgba(10, 12, 19, 0.34);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 8px 28px rgba(0,0,0,0.35);
}
/* Specular sweep: a soft light pool that glides on hover */
.lg-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255,255,255,0.16), transparent 42%);
  opacity: 0.8;
  transition: opacity 320ms var(--ease-out), transform 480ms var(--ease-out);
  pointer-events: none;
}
.lg-glass:hover::before {
  opacity: 1;
  transform: translateX(8%);
}
.lg-glass:active { transform: scale(0.98); }

/* Glass tint variants keep the accent language intact */
.pill.lg-glass:hover,
.connect-handle.lg-glass:hover,
.pill.lg-glass.primary {
  background:
    linear-gradient(160deg, rgba(122,182,255,0.16) 0%, rgba(122,182,255,0.05) 50%, rgba(255,255,255,0.05) 100%),
    rgba(10, 12, 19, 0.34);
  border-color: rgba(122,182,255,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(122,182,255,0.10),
    0 8px 28px rgba(0,0,0,0.35),
    0 0 24px rgba(122,182,255,0.10);
}

/* Honest fallbacks: no blur support, or user opted out of transparency */
@supports not (backdrop-filter: blur(1px)) {
  .lg-glass { background: var(--bg-elev); }
}
@media (prefers-reduced-transparency: reduce) {
  .lg-glass,
  .pill.lg-glass:hover,
  .pill.lg-glass.primary {
    background: var(--bg-elev);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 26px; max-width: 560px; }
.contact-form[data-state="gone"] { display: none; }
.cf-lead { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.cf-grid { display: grid; gap: 14px; }
.cf-field { display: grid; gap: 6px; }
.cf-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3);
}
.cf-input {
  font: inherit; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.cf-input:hover { border-color: var(--line-3); }
.cf-input:focus { outline: none; border-color: var(--accent); background: rgba(122,182,255,0.05); }
.cf-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cf-area { resize: vertical; min-height: 96px; }
.cf-error { font-size: 12.5px; color: #ff9d9d; margin: 0; }
.cf-input[aria-invalid="true"] { border-color: rgba(255,120,120,0.55); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.cf-send {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text); cursor: pointer;
  padding: 11px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.cf-send .arrow { color: var(--accent); }
.cf-send:hover { border-color: var(--accent); transform: translateY(-1px); }
.cf-send:active { transform: scale(0.97); }
.cf-send[disabled] { opacity: 0.55; pointer-events: none; }
.cf-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-status { font-size: 13.5px; color: var(--text-2); margin: 0; }
.cf-status.ok { color: #9ef0b1; }

/* ---------- Static timeline (no-JS / crawler fallback) ---------- */
.timeline-static { list-style: none; margin: 0; padding: 0; }
.timeline-static .ts-item { border-top: 1px solid var(--line); padding: 22px 0; }
.timeline-static .ts-co { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.timeline-static .ts-year { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-left: 10px; }
.timeline-static .ts-role { color: var(--text-2); font-size: 14px; margin: 4px 0 10px; }
.timeline-static .ts-points { list-style: none; margin: 0; padding: 0; }
.timeline-static .ts-points li { color: var(--text-2); font-size: 14px; padding: 4px 0 4px 16px; position: relative; }
.timeline-static .ts-points li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--accent); }

/* ---------- Partners band ---------- */
.partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}
.partners-wrap {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}
.partners-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}
.partners-marks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(32px, 7vw, 88px);
}
.partner-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.85;
  transition: opacity 280ms var(--ease-out);
}
.partner-mark:hover { opacity: 1; }
.partner-ninans {
  font-family: 'Anton', var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  color: var(--text);
}
.partner-ninans .ap { color: var(--text); }
.partner-ninans-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-2);
  /* optically center under the wordmark despite the trailing tracking */
  padding-left: 0.42em;
}
@media (max-width: 640px) {
  .partners { padding: 40px 0; }
  .partners-wrap { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* Hero portrait (warrior coat) - floats right of name, text wraps around */
.hero-portrait {
  float: right;
  width: clamp(220px, 38vw, 460px);
  aspect-ratio: 2 / 3;
  margin: 0 0 16px clamp(20px, 4vw, 48px);
  position: relative;
  shape-outside: inset(0);
  -webkit-mask-image:
    radial-gradient(ellipse 80% 88% at 60% 50%, #000 50%, transparent 92%);
          mask-image:
    radial-gradient(ellipse 80% 88% at 60% 50%, #000 50%, transparent 92%);
}
.hero-portrait img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.94);
}
.hero-portrait .frame-anno {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,244,248,0.55);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(6,7,12,0.7);
}
.hero-portrait .frame-anno.tl { top: 18px; left: 18px; }
.hero-portrait .frame-anno.br { bottom: 18px; right: 18px; }
@media (max-width: 520px) {
  .hero-portrait {
    width: 46%;
    margin: 6px 0 8px 16px;
  }
  .hero-portrait .frame-anno { font-size: 8px; }
}

/* EF App animated login mockup (iframe blocked by X-Frame-Options, so faithful stylized preview) */
.ef-mock {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0b0d12 0%, #06070c 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ef-mock .live-badge {
  position: absolute;
  top: 16px; left: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #9aff9a;
  padding: 5px 10px;
  background: rgba(154,255,154,0.06);
  border: 1px solid rgba(154,255,154,0.22);
  border-radius: 999px;
  pointer-events: none;
}
.ef-mock .live-badge .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: #9aff9a;
  box-shadow: 0 0 10px rgba(154,255,154,0.7);
  animation: efPulse 1.6s infinite ease-in-out;
}
@keyframes efPulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:0.5; transform:scale(0.75)} }
.ef-mock .url {
  position: absolute;
  top: 16px; right: 16px; z-index: 4;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: lowercase; color: rgba(242,244,248,0.45);
  pointer-events: none;
}
.ef-mock .phone {
  position: relative;
  width: 39%; aspect-ratio: 9 / 19.5;
  background: #0F1115;
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}
@media (max-width: 540px) {
  .ef-mock .phone { width: 44%; }
}
.ef-mock .notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 18px;
  background: #06070c; border-radius: 999px;
}
.ef-mock .ef-shot {
  position: absolute; inset: 32px 0 0 0;
  width: 100%; height: calc(100% - 32px);
  object-fit: contain; object-position: center top;
  background: #06070c;
  display: block;
  border-radius: 0 0 22px 22px;
  animation: efSlideshow 3s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
.ef-mock .ef-shot.shot-2 { animation-delay: -1.5s; }
@keyframes efSlideshow {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-mock .ef-shot { animation: none; }
  .ef-mock .ef-shot.shot-2 { display: none; }
}
.ef-mock .screen {
  position: absolute; inset: 36px 18px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.ef-mock .brand {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: #F2F4F8; letter-spacing: -0.02em;
  text-align: center; margin-top: 8px;
}
.ef-mock .brand .dot { color: #7AB6FF; }
.ef-mock .hint {
  font-family: var(--sans); font-size: 9px; color: rgba(242,244,248,0.5);
  text-align: center; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ef-mock .field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(242,244,248,0.9);
  position: relative; min-height: 16px;
  display: flex; align-items: center;
}
.ef-mock .field.is-active { border-color: rgba(122,182,255,0.4); box-shadow: 0 0 0 3px rgba(122,182,255,0.08); }
.ef-mock .field .lbl {
  position: absolute; top: -8px; left: 10px;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(242,244,248,0.55);
  background: #0F1115; padding: 0 4px;
}
.ef-mock .typed { color: #F2F4F8; }
.ef-mock .caret {
  display: inline-block; width: 1px; height: 12px; background: #7AB6FF;
  margin-left: 1px; animation: efBlink 1s infinite step-end;
  vertical-align: middle;
}
@keyframes efBlink { 50% { opacity: 0; } }
.ef-mock .cta {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #7AB6FF 0%, #5b97e0 100%);
  color: #061327;
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 22px rgba(122,182,255,0.25);
}
.ef-mock .cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 60%);
  opacity: 0; transform: scale(0.5);
  animation: efCtaPulse 3.4s 1.6s infinite ease-out;
  pointer-events: none;
}
@keyframes efCtaPulse {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(2.2); }
}
.ef-mock .alt {
  font-family: var(--sans); font-size: 10px; color: rgba(242,244,248,0.55);
  text-align: center;
}
.ef-mock .alt a { color: #7AB6FF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ef-mock .scanline {
  position: absolute; left: 0; right: 0; top: -40px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(122,182,255,0.10) 80%, rgba(122,182,255,0.25) 100%);
  pointer-events: none; z-index: 3;
  animation: efScan 6s infinite linear;
}
@keyframes efScan {
  0% { top: -40px; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-mock .live-badge .pulse, .ef-mock .caret, .ef-mock .cta::after, .ef-mock .scanline { animation: none; }
  .ef-mock .scanline { display: none; }
}

/* Draggable floating glass icosahedron */
.floater {
  position: fixed;
  z-index: 25;
  width: 180px; height: 180px;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  user-select: none; -webkit-user-select: none;
  transform: translate3d(0,0,0);
  transition: filter 220ms ease;
}
.floater:active { cursor: grabbing; }
.floater.is-dragging { filter: drop-shadow(0 8px 24px rgba(122,182,255,0.35)); }
.floater .stage {
  position: relative; width: 100%; height: 100%;
  pointer-events: none;
}
.floater canvas { display: block; width: 100% !important; height: 100% !important; pointer-events: none; }
.floater .stage-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(122, 182, 255, 0.22) 0%, transparent 70%);
  filter: blur(22px); pointer-events: none;
}
.floater .hint {
  position: absolute; left: 50%; bottom: -22px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(242,244,248,0.45);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 380ms ease;
}
.floater:hover .hint, .floater.is-dragging .hint { opacity: 0.9; }
@media (max-width: 720px) {
  .floater { width: 132px; height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  /* floater remains visible: users can still grab it as a scroll wheel */
}

/* Trajectory: ML-cutout figure pops out of a cream circle (per IMG_7180 reference) */
.trajectory-photo {
  float: left;
  width: 230px;
  max-width: 34%;
  margin: 6px 32px 24px 0;
  position: relative;
  /* No shape-outside: rectangular wrap so text never overlaps figcaption */
}
.trajectory-photo .composition {
  position: relative;
  width: 100%;
  /* Matches the cutout's intrinsic aspect to avoid CLS and dead space */
  aspect-ratio: 615 / 1160;
  isolation: isolate;
}
.trajectory-photo .circle-bg {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 95%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 35%, #f1ead7 0%, #d8cfb5 100%);
  border-radius: 50%;
  z-index: 0;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 168, 106, 0.18),
    inset 0 -28px 50px rgba(0, 0, 0, 0.08);
}
.trajectory-photo .circle-ring {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 99%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
/* Picture wrapper must be block + sized so the img inside lays out at 100%
   of the composition (commit 5f2010e wrapped the img in <picture> for the
   AVIF source without restyling; inline <picture> collapsed the figure). */
.trajectory-photo picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.trajectory-photo .figure {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45));
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.trajectory-photo:hover .figure { transform: translateY(-4px); }
.trajectory-photo figcaption {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242,244,248,0.55);
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .trajectory-photo {
    float: left;
    width: 130px;
    max-width: 38%;
    margin: 4px 18px 14px 0;
  }
  .trajectory-photo .circle-bg { bottom: 8px; }
  .trajectory-photo .circle-ring { bottom: 2px; }
  .trajectory-photo figcaption { margin-top: 10px; font-size: 8px; }
}

/* Torus knot ornament (V3, recolored) */
.ornament {
  position: fixed;
  top: 56px; right: var(--gutter);
  width: 80px; height: 80px;
  z-index: 40;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.ornament:active { cursor: grabbing; }
.ornament.is-dragging { filter: drop-shadow(0 6px 14px rgba(122, 182, 255, 0.4)); }
@media (max-width: 720px) {
  .ornament { width: 56px; height: 56px; top: 56px; right: 14px; }
}

/* ---------- Section labels ---------- */
.section { padding: clamp(64px, 10vw, 132px) 0; }
.section-tag {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 44px;
}
.section-tag .num { color: var(--accent); }
.section-tag .rule { flex: 1; height: 1px; background: var(--line-2); }

.section-title {
  /* Geist display - sits with the rest of the EF brand surface
     (Plate, EF web, waitlist). Italic is dropped because Geist's
     italic doesn't read as a serif-style emphasis; weight + tighter
     tracking do the hierarchy work instead. */
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 56px 0;
  max-width: 22ch;
  color: var(--text);
}

/* 04 / Writing teaser list (editorial, no cards) */
.writing-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.writing-item { border-bottom: 1px solid var(--line); }
.writing-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
  transition: padding-left 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.writing-link:hover { padding-left: 10px; }
.writing-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-top: 8px;
  line-height: 1.6;
}
.writing-meta .sep { margin: 0 8px; opacity: 0.5; }
.writing-meta .tag { color: var(--accent); }
.writing-title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 200ms ease;
}
.writing-link:hover .writing-title { color: var(--accent); }
.writing-title .period { color: var(--accent); }
.writing-dek {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
}
.writing-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none !important;
  text-decoration-line: none !important;
  padding: 6px 0;
}
.writing-all .arrow { transition: transform 240ms ease; }
.writing-all:hover .arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .writing-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .writing-meta { padding-top: 0; }
}

/* ---------- Marquee (V3) ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
  background: rgba(255,255,255,0.01);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee-track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Work grid (V3 asymmetric, V2 glass) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: clamp(56px, 9vh, 110px);
}
.card {
  position: relative;
  color: var(--text);
  transform-style: preserve-3d;
  will-change: transform;
}
body.cursor-active .card { cursor: none; }
.card.c1 { grid-column: 1 / span 8; }
.card.c2 { grid-column: 9 / span 4; margin-top: clamp(80px, 14vh, 180px); }
.card.c3 { grid-column: 2 / span 5; }
.card.c4 { grid-column: 7 / span 6; margin-top: clamp(40px, 8vh, 100px); }

@media (max-width: 900px) {
  .card.c1, .card.c2, .card.c3, .card.c4 {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .card { transform: none !important; }
}

.card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 380ms var(--ease-out);
}
.card.c2 .card-frame { aspect-ratio: 3 / 4; }
.card.c3 .card-frame { aspect-ratio: 5 / 4; }
.card.c4 .card-frame { aspect-ratio: 16 / 10; }
.card:hover .card-frame { border-color: rgba(122, 182, 255, 0.28); }
.card-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}

.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer svg { width: 100%; height: 100%; display: block; }
.layer-base { z-index: 1; }
.layer-reveal {
  z-index: 2;
  -webkit-mask-image: radial-gradient(circle at -200px -200px, #000 0px, transparent 1px);
          mask-image: radial-gradient(circle at -200px -200px, #000 0px, transparent 1px);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: opacity 200ms ease;
}
.card.is-revealed .layer-reveal {
  -webkit-mask-image: none;
          mask-image: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .layer-reveal { display: none !important; }
}

.card-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
  margin-top: 18px;
  font-family: var(--sans);
}
.card-meta .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}
.card-meta .chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
}
.card-meta .year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.card-meta .live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.card-meta .live:hover { color: var(--text); border-bottom-color: var(--text); }
.card-meta .live .arrow { margin-left: 4px; }

.card-stat {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.card:hover .card-stat { opacity: 1; transform: translateY(0); }

/* Case-study rows: the real outcomes already published on the blog,
   promoted onto the work cards (work <-> writing internal links). */
.card-story {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  max-width: max-content;
  transition: color 200ms ease, border-color 200ms ease;
}
.card-story .arrow { color: var(--accent); transition: transform 240ms var(--ease-out); }
.card-story:hover { color: var(--text); border-bottom-color: var(--accent); }
.card-story:hover .arrow { transform: translateX(3px); }
@media (pointer: coarse) { .card-stat { opacity: 1; transform: none; } }

/* ---------- Trajectory ---------- */
.trajectory-prose {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 64px 0;
}
.trajectory-prose p { margin: 0 0 20px 0; }
.trajectory-prose p:last-child { margin-bottom: 0; }
.trajectory-prose em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--text);
}

.timeline {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.timeline-item {
  border-bottom: 1px solid var(--line);
}
.timeline-row {
  display: grid;
  grid-template-columns: 180px 28px 1fr 1.2fr 24px;
  gap: 16px;
  padding: 18px 0;
  align-items: baseline;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.timeline-row:hover { background: rgba(255,255,255,0.015); }
.timeline-row:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.timeline-row .year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline-row .company {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.timeline-row .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.timeline-row .row-cue {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  justify-self: end;
  transition: color 240ms var(--ease-out), transform 320ms var(--ease-out);
}
.timeline-row[aria-expanded="true"] .row-cue {
  color: var(--accent);
  transform: rotate(45deg);
}
.timeline-row[aria-expanded="true"] .company { color: var(--accent); }

.timeline-row .monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}
.timeline-row .monogram svg { display: block; }
@media (max-width: 720px) {
  .timeline-row .monogram svg { width: 18px; height: 18px; }
}

/* Expand/collapse panel via CSS grid trick */
.vinyl-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--ease-out);
}
.vinyl-panel > .vinyl-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.timeline-item.is-open .vinyl-panel { grid-template-rows: 1fr; }

/* Open vinyl stays pinned at the top of the viewport while the visitor
   scrolls past, so the record keeps "playing" in view. Rows below stay
   tappable in normal flow. */
.timeline-item.is-open {
  position: sticky;
  top: 48px;
  z-index: 5;
  background: var(--bg);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.85);
}
/* On mobile the open row is taller than the viewport, so sticky would block
   the closed rows underneath. Let it scroll in normal flow instead. */
@media (max-width: 720px) {
  .timeline-item.is-open {
    position: static;
    top: auto;
    box-shadow: none;
  }
}

.vinyl-stage {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 28px 0 36px 0;
  align-items: start;
}
.vinyl-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}
.vinyl-disc {
  position: absolute;
  inset: 20px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform-origin: 50% 50%;
}
.vinyl-disc.is-spinning { animation: vinyl-spin 4s linear infinite; }
@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.vinyl-tonearm {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 200px;
  transform-origin: 88% 12%;
  /* Angle is a state variable: parked at -26deg, JS maps the active track
     to a groove position between --arm-out and --arm-in. One source of
     truth, one composited transform — no WebGL scene layered on top. */
  transform: rotate(var(--arm, -26deg));
  transition: transform 620ms var(--ease-out);
  pointer-events: none;
}
/* Needle-drop wobble on every cue */
.vinyl-wrap.is-cueing .vinyl-tonearm { animation: needle-drop 480ms var(--ease-out); }
@keyframes needle-drop {
  0%   { translate: 0 -3px; }
  55%  { translate: 0 1px; }
  100% { translate: 0 0; }
}
/* Playback pauses (spin + cycle) when the open deck scrolls out of view */
.timeline-item.is-paused .vinyl-disc.is-spinning { animation-play-state: paused; }

.tracklist {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.tracklist .side-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tracklist .side-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.tracklist .side + .side { margin-top: 22px; }
.tracklist ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tracklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 4px 0;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  transition: background 220ms ease;
}
.tracklist li:hover { background: var(--accent-10); }
.tracklist li:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.tracklist li .num {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tracklist li .text {
  color: var(--text-2);
  transition: color 220ms ease;
}
/* Per-track progress hairline: scaleX driven by --p (0..1) from the
   rAF clock — replaces the old fixed 64px underline. */
.tracklist li .text::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 4px;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.tracklist li.is-playing .text { color: var(--text); }
.tracklist li.is-playing .num { color: var(--accent); }

.now-playing {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 20px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.now-playing .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
  opacity: 0;
  transition: opacity 240ms ease;
}
.timeline-item.is-open .now-playing .dot {
  opacity: 1;
  animation: np-pulse 1.4s ease-in-out infinite;
}
@keyframes np-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 720px) {
  .timeline-row {
    grid-template-columns: auto 1fr 24px;
    gap: 6px;
    padding: 16px 0;
  }
  .timeline-row .year { grid-column: 1 / span 2; }
  .timeline-row .monogram { grid-column: 1; grid-row: 2; align-self: center; }
  .timeline-row .company { grid-column: 2; grid-row: 2; }
  .timeline-row .role { grid-column: 1 / span 2; grid-row: 3; }
  .timeline-row .row-cue {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .vinyl-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: left;
  }
  .vinyl-wrap {
    width: 200px;
    height: 200px;
  }
  .vinyl-disc {
    inset: 16px;
    width: 168px;
    height: 168px;
  }
  .vinyl-tonearm {
    width: 124px;
    height: 156px;
  }
  .tracklist { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl-panel { transition: none; }
  .vinyl-disc.is-spinning { animation: none; }
  .vinyl-tonearm { transition: none; }
  .timeline-item.is-open .now-playing .dot { animation: none; }
  .tracklist li .text::after { transition: none; }
  .timeline-row .row-cue { transition: none; }
}

/* ---------- Adverts: on-screen credits ---------- */
.tvc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .tvc-grid { grid-template-columns: 1fr; gap: 18px; }
}
.tvc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 600ms var(--ease-out), border-color 400ms ease, box-shadow 400ms ease;
  isolation: isolate;
}
.tvc-card:hover,
.tvc-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(122, 182, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(122, 182, 255, 0.18);
  outline: none;
}
.tvc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c14;
  overflow: hidden;
}
.tvc-thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.tvc-card:hover .tvc-thumb img { transform: scale(1.04); }
.tvc-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background:
    radial-gradient(ellipse 70% 50% at 60% 35%, rgba(122, 182, 255, 0.18), transparent 70%),
    linear-gradient(140deg, #161a26, #0a0c14 70%);
}
.tvc-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(54px, 7vw, 72px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tvc-mark-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.tvc-platform {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    rgba(6, 7, 12, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.85);
}
.tvc-meta {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.tvc-brand {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tvc-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tvc-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.tvc-open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 280ms ease;
}
.tvc-card:hover .tvc-open { gap: 10px; }
.tvc-credits {
  margin-top: 28px;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  font-style: italic;
}

/* ---------- Connect (V2 LinkedIn + Champion poster) ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1080px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .connect-grid { grid-template-columns: 1fr; gap: 14px; max-width: 720px; }
}
.connect-grid > * { min-width: 0; }

.connect-card {
  position: relative;
  display: block;
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 380ms var(--ease-out);
}
.connect-card:hover { border-color: rgba(122, 182, 255, 0.32); }
.connect-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 30% 0%, rgba(122, 182, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.connect-roundel {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 22px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 10px 40px rgba(122, 182, 255, 0.25);
}
.connect-roundel svg { width: 40px; height: 40px; fill: var(--bg); }
.connect-eyebrow {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.connect-title {
  position: relative;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 18px 0;
  max-width: 22ch;
}
/* Wrap the two channel handles so they flow inline and stack on narrow widths */
.connect-handles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.connect-handle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out), color 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.connect-handle:hover {
  background: rgba(122, 182, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.connect-handle-glyph {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.85;
}

/* Live-feeling follower counter: pulsing green dot + tabular number + label */
.connect-counter-link { text-decoration: none !important; color: inherit; transition: opacity 200ms ease; }
.connect-counter-link:hover { opacity: 0.78; }
.connect-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.connect-counter-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: counter-pulse 2.4s ease-in-out infinite;
}
@keyframes counter-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}
.connect-counter-num {
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.connect-counter-num.is-incrementing {
  color: var(--accent);
  transform: translateY(-1px);
}
.connect-counter-label { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .connect-counter-dot { animation: none; }
}

/* Featured posts embed: visual proof inside the LinkedIn card */
.connect-featured {
  position: relative;
  display: block;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.connect-featured-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.connect-featured img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 380ms var(--ease-out), transform 460ms var(--ease-out), box-shadow 460ms var(--ease-out);
}
.connect-card:hover .connect-featured img {
  border-color: rgba(122, 182, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(122, 182, 255, 0.18);
}
.connect-mail {
  position: relative;
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
  border-bottom: 1px solid transparent;
  transition: color 240ms ease, border-color 240ms ease;
  padding-bottom: 1px;
  width: max-content;
}
.connect-mail:hover { color: var(--text); border-bottom-color: var(--accent); }

/* Poster card: full-bleed image with subtle caption at the bottom */
.connect-poster {
  position: relative;
  display: block;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a0d14;
  /* Ambient back glow — warm gold rim + cool blue halo, matching the
     champion-page trainer card so the two surfaces feel related. */
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(122, 182, 255, 0.18),
    0 0 70px rgba(243, 217, 127, 0.12);
  transition: border-color 380ms var(--ease-out),
              transform 700ms var(--ease-out),
              box-shadow 460ms var(--ease-out);
  isolation: isolate;
}
.connect-poster:hover {
  border-color: rgba(122, 182, 255, 0.4);
  /* On approach, ramp the accent halo and warm the gold for a "card you can almost feel" lift */
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(122, 182, 255, 0.38),
    0 0 100px rgba(243, 217, 127, 0.20);
}
.connect-poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1200ms var(--ease-out);
}
.connect-poster:hover img { transform: scale(1.025); }
.connect-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 7, 12, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.connect-poster .poster-cap {
  position: absolute;
  left: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(16px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.poster-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.poster-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
@media (max-width: 760px) {
  .connect-poster { aspect-ratio: 4 / 5; }
  .connect-poster img { object-position: center 22%; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter) 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.18em;
  transition: color 240ms ease;
}
.footer-social:hover, .footer-social:focus-visible {
  color: var(--accent);
  outline: none;
}
.footer-social svg { display: block; }
.footer-dot { color: var(--text-4); }
.footer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.footer-meta .l { text-align: left; }
.footer-meta .m { text-align: center; }
.footer-meta .r { text-align: right; color: var(--text-4); }

@media (max-width: 720px) {
  .footer-meta { grid-template-columns: 1fr; gap: 8px; text-align: left !important; }
  .footer-meta .m, .footer-meta .r { text-align: left; }
  .footer-socials { justify-content: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px var(--gutter);
    font-size: 9px;
    letter-spacing: 0.14em;
    /* Reserve room on the right so the ornament drifter has clearance */
    padding-right: 78px;
  }
  .topbar .l { display: none; }
  .topbar .m { text-align: left; letter-spacing: 0.18em; }
  .topbar .r { text-align: right; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stage { max-width: 220px; margin-left: 0; margin-right: auto; aspect-ratio: 1 / 1; }
  .display-name { font-size: 64px; }
  .display-name .line.indent { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #intro { display: none !important; }
  .display-name .letter { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ----- Scope reticle cursor (desktop only, replaces native cursor) ----- */
/* Gated behind body.cursor-active so a JS failure does not leave the whole site cursorless. */
@media (pointer: fine) {
  body.cursor-active,
  body.cursor-active a,
  body.cursor-active button,
  body.cursor-active [role="button"],
  body.cursor-active [data-hover],
  body.cursor-active input,
  body.cursor-active textarea,
  body.cursor-active select { cursor: none; }
}
.scope-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  pointer-events: none;
  z-index: 99999;
  color: #f3d97f;
  mix-blend-mode: difference;
  opacity: 1;
  transition: color 200ms ease;
  will-change: transform;
  filter: drop-shadow(0 0 4px rgba(243, 217, 127, 0.55));
}
.scope-cursor .reticle {
  width: 100%; height: 100%;
  display: block;
  animation: scope-spin 14s linear infinite;
  transform-origin: 50% 50%;
}
.scope-cursor.is-locked { color: #7AB6FF; }
.scope-cursor.is-locked .reticle { animation-duration: 4s; }
@keyframes scope-spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) {
  .scope-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scope-cursor .reticle { animation: none; }
}
