:root {
  --night: #15121c;
  --card: #1a1624;
  --card-hi: #211b2e;
  --ink: #ede8f2;
  --muted: #8c8499;
  --line: #2a2433;
  --peach: #e8b4a0;
  --lilac: #b7a4f0;
  --sky: #8fc6e0;
  --gold: #f0c27b;
  --mint: #8fd3b0;
  --edge: linear-gradient(100deg, var(--peach), var(--lilac) 50%, var(--sky));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1120px;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lilac); color: var(--night); }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
h1 em, h2 em, .footer-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--peach); color: var(--night); padding: 0.6em 1em; border-radius: 8px; }
.skip-link:focus { left: 1rem; top: 1rem; }

section[id], footer[id] { scroll-margin-top: 5.5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 780px; }

.grad {
  background: linear-gradient(100deg, var(--peach), var(--lilac), var(--sky), var(--peach));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--edge); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Header: sits on the same grid as the page, clear at the top, a blurred bar once you scroll */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease); }
.site-header.hide { transform: translateY(-110%); opacity: 0; }
.site-header.scrolled { background: rgba(21, 18, 28, 0.72); border-bottom-color: rgba(237, 232, 242, 0.07); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 0.7rem 1.25rem; }
@media (min-width: 640px) { .header-inner { padding: 0.8rem 2rem; } }
.wordmark { font-weight: 600; letter-spacing: -0.03em; text-decoration: none; font-size: 1.05rem; display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.wordmark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.site-header nav { display: flex; align-items: center; gap: 0.1rem; }
.site-header nav a {
  position: relative; text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.75rem; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.3rem; height: 1px; background: var(--peach); }
.site-header nav .nav-cta { margin-left: 0.4rem; background: var(--ink); color: var(--night); padding: 0.5rem 1rem; font-weight: 600; }
.site-header nav .nav-cta:hover { background: var(--peach); color: var(--night); }
@media (max-width: 639px) { .site-header nav .nav-li { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem; overflow: hidden; isolation: isolate;
  cursor: crosshair;
}
.hero a, .hero p { cursor: auto; }
.hero a { cursor: pointer; }
.bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.95; }
@media (max-width: 639px) { .bg-net { opacity: 0.8; } }
.aurora { position: absolute; inset: -10%; z-index: -2; pointer-events: none; transform: translate3d(0, var(--sy, 0px), 0); }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; will-change: transform; }
.b1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(232, 180, 160, 0.36), transparent 62%); animation: drift1 22s var(--ease) infinite alternate; }
.b2 { width: 60vmax; height: 60vmax; right: -25vmax; top: -10vmax; background: radial-gradient(circle, rgba(183, 164, 240, 0.34), transparent 62%); animation: drift2 26s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-14vmax, 10vmax, 0) scale(0.9); } }
.grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; width: 100%; pointer-events: none;
  transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1));
  opacity: var(--ho, 1);
  transform-origin: 20% 50%;
}
.hero-inner a, .hero-inner .eyebrow { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(26, 22, 36, 0.55);
  margin-bottom: 1.75rem;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: 0 0 auto; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sky); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.roles { display: inline-grid; overflow: hidden; color: var(--ink); }
.roles span { grid-area: 1 / 1; opacity: 0; animation: role 7.5s var(--ease) infinite; }
.roles span:nth-child(2) { animation-delay: 2.5s; }
.roles span:nth-child(3) { animation-delay: 5s; }
@keyframes role { 0% { opacity: 0; transform: translateY(70%); } 5%, 28% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-70%); } }

.hero-title { font-size: clamp(2.35rem, 7.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; margin-bottom: 1.5rem; }
.hero-title em { font-size: 1.08em; }
.name-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin: 1.75rem 0 0; }
.hero-sub { max-width: 35rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

.js .hero-title .w {
  display: inline-block; opacity: 0;
  transform: translateY(0.45em) rotate(2deg); filter: blur(12px);
  animation: wordIn 1.1s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.055s);
}
.hero-title em .w {
  background: linear-gradient(100deg, var(--peach), var(--lilac), var(--sky), var(--peach));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.js .hero-title em .w { animation: wordIn 1.1s var(--ease) forwards, shimmer 9s linear infinite; animation-delay: calc(0.15s + var(--i) * 0.055s), 1.5s; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

.spread-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.4rem; margin: 0; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; animation: hintIn 1s var(--ease) 2.4s both; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn-primary { background: var(--peach); color: var(--night); box-shadow: 0 10px 40px -12px rgba(232, 180, 160, 0.55); }
.btn-primary:hover { background: #f1c7b7; box-shadow: 0 16px 50px -12px rgba(232, 180, 160, 0.75); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(26, 22, 36, 0.5); }
.btn-ghost:hover { border-color: var(--lilac); }
.btn-ghost svg { transition: transform 0.4s var(--ease); }
.btn-ghost:hover svg { transform: translateY(3px); }
.magnetic { transition: transform 0.5s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* Stats */
.stats { padding: 0 0 5rem; }
.stat-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stat-strip li { background: var(--card); padding: 1.4rem 1.25rem; display: flex; flex-direction: column; }
.stat-num { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.35; }

/* Section heads */
.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); margin-bottom: 1rem; }
.section-title { font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -0.045em; }
.section-title em { font-size: 1.08em; color: var(--lilac); }
.section-sub { color: var(--muted); max-width: 38rem; font-size: 1.05rem; margin-bottom: 2.5rem; }

/* Built: a pinned fly-through, see makeFly in motion.js */
.built { position: relative; padding: 3rem 0 0; }

/* Fly-through: a pinned scene. Scrolling moves a camera forward through a tunnel, past VIPER, then each
   product in turn. The text sits beside the thing it describes. Without JS or with reduced motion
   there is no scene: just the stacked text. */
.fly { position: relative; }
.fly-on { height: calc(100svh + 4 * 70vh); }
.fly-stage { position: relative; }
.fly-cam, .fly-nav, .fly-hint { display: none; }
.fly-texts { display: grid; gap: 3rem; padding: 0 1.25rem 4rem; }
.fly-on .fly-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.fly-scene { display: none; }
.fly-on .fly-scene { display: block; position: absolute; inset: 0; perspective: 1100px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
.fly-on .fly-cam, .fly-on .fly-world { position: absolute; inset: 0; transform-style: preserve-3d; }
.fly-on .fly-cam { display: block; }
.fly-on .fly-texts { display: block; padding: 0; }

/* Each stop is a small 3D scene made of flat planes at different depths (.fl). The object itself
   never gets opacity or filter, which would flatten it: fading is a variable the planes read. */
.fly-obj {
  --u: clamp(6px, 1.45vmin, 13px); --accent: var(--lilac);
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), calc(var(--i) * -1000px)) rotateY(-16deg) rotateX(5deg);
  transform-style: preserve-3d; pointer-events: none;
}
.k-viper { --accent: var(--lilac); } .k-2kodi { --accent: var(--gold); } .k-tools { --accent: var(--sky); } .k-edit { --accent: var(--peach); } .k-lipi { --accent: var(--mint); }
.fl {
  position: absolute; left: 0; top: 0; opacity: var(--o, 1);
  transform: translate3d(calc(var(--x, 0) * var(--u) - 50%), calc(var(--y, 0) * var(--u) - 50%), calc(var(--z, 0) * var(--u)));
}

/* VIPER is private: no screenshot, just the name in three layers of depth */
.vword { font-size: calc(var(--u) * 11); font-weight: 700; letter-spacing: 0.14em; line-height: 1; white-space: nowrap; }
.vword.w1 { background: linear-gradient(100deg, var(--peach), var(--lilac) 50%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vtag { font-size: calc(var(--u) * 1.5); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* The other four are the real thing: a live screenshot in a floating browser window, with a faint
   frame behind it and a glow under it so the three layers sit at different depths */
.bw {
  width: calc(var(--u) * 42); overflow: hidden; border-radius: calc(var(--u) * 1.3); background: #15121c;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.16));
  box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 8) rgba(0, 0, 0, 0.55), 0 0 calc(var(--u) * 6) color-mix(in srgb, var(--accent) 28%, transparent);
}
.bw .bar { display: flex; align-items: center; gap: calc(var(--u) * 0.7); height: calc(var(--u) * 3); padding: 0 calc(var(--u) * 1.2); background: #1c1826; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: calc(var(--u) * 1.2); color: var(--muted); }
.bw .bar i { width: calc(var(--u) * 0.9); height: calc(var(--u) * 0.9); border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.bw .bar span { margin: 0 auto; padding-right: calc(var(--u) * 4); white-space: nowrap; }
.bw img { display: block; width: 100%; height: auto; }
.bw::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.09) 50%, transparent 62%); transform: translateX(-120%); animation: sheen 6s var(--ease) infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ghost { width: calc(var(--u) * 42); height: calc(var(--u) * 29); border-radius: calc(var(--u) * 1.3); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, rgba(21, 18, 28, 0.55)); }
.glow { width: calc(var(--u) * 54); height: calc(var(--u) * 38); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 36%, transparent), transparent); }


.fly-on .fly-text {
  position: absolute; z-index: 5; max-width: 440px; margin: 0; padding: 0; border: 0; gap: 1.1rem; grid-template-columns: 1fr;
  left: max(1.25rem, calc(50% - 540px)); width: min(440px, 44vw); top: 50%; translate: 0 -50%;
}
.fly-on .fly-text .spec-dl { gap: 0.8rem; }
.fly-on .fly-text .detail-lede { font-size: 1rem; margin-bottom: 0.75rem; }

.fly-nav { position: absolute; z-index: 6; right: 1rem; top: 50%; translate: 0 -50%; flex-direction: column; gap: 0.2rem; }
.fly-on .fly-nav { display: flex; }
.fly-dot { --accent: var(--lilac); width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.fly-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 1px solid var(--muted); transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.fly-dot:hover::before { transform: scale(1.4); border-color: var(--accent); }
.fly-dot.on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.5); box-shadow: 0 0 12px var(--accent); }
.fly-hint { position: absolute; z-index: 6; left: 50%; bottom: 1.4rem; transform: translateX(-50%); margin: 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: opacity 0.4s var(--ease); }
.fly-on .fly-hint { display: block; }
.fly-hint::after { content: ""; display: block; width: 1px; height: 26px; margin: 0.5rem auto 0; background: linear-gradient(var(--muted), transparent); animation: hintDrop 1.8s var(--ease) infinite; }
@keyframes hintDrop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; } }

/* Detail: plain text for each product, no card */
.detail { --accent: var(--lilac); max-width: 860px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.75rem; }
.detail[hidden] { display: none; }
.d-2kodi { --accent: var(--gold); } .d-tools { --accent: var(--sky); } .d-edit { --accent: var(--peach); } .d-lipi { --accent: var(--mint); }
.card-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.detail h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.035em; margin-bottom: 0.5rem; }
.detail-lede { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 0.55rem 0.95rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card-link span { transition: transform 0.4s var(--ease); display: inline-block; }
.card-link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.card-link:hover span { transform: translate(2px, -2px); }
.card-private { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.card-private::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); }
.spec-dl { margin: 0; display: grid; gap: 1.1rem; align-content: start; }
.spec-dl div { display: grid; gap: 0.25rem; padding-left: 1rem; border-left: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.spec-dl dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.spec-dl dd { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }

/* VIPER: request to live */
.node { display: inline-flex; padding: 0.35rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; animation: nodeLit 5s var(--ease) infinite; }
@keyframes nodeLit { 0% { border-color: var(--lilac); color: var(--ink); box-shadow: 0 0 18px rgba(183, 164, 240, 0.45); } 22%, 100% { border-color: var(--line); color: var(--muted); box-shadow: none; } }


/* What I do: a plain grid, stacked on phones, three columns on large screens.
   Scrolling stays native here; nothing pins or hijacks the scroll direction. */
.hscroll { position: relative; padding: 3rem 0 4rem; }
.hscroll .section-title, .hscroll .section-sub { margin-top: 0; }
.hscroll .section-sub { margin-bottom: 2.5rem; }
.h-track { display: grid; gap: 1.25rem; }
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem; overflow: hidden; }
.panel-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--peach); margin-bottom: 1rem; }
.panel h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.panel > p:not(.panel-num):not(.legend):not(.kicker) { color: var(--muted); max-width: 32rem; }

.chart { display: block; width: 100%; height: auto; margin: 1.25rem 0 0.75rem; overflow: visible; }
.axis { stroke: var(--line); stroke-width: 1.5; }
.draw { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 0.2s; }
.panel.in .draw { stroke-dashoffset: 0; }
.earned { stroke: var(--lilac); }
.steady { stroke: var(--sky); }
.spike { stroke: var(--gold); }
.paid { stroke: var(--peach); stroke-width: 6; stroke-linecap: round; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 0.8s var(--ease-spring) calc(1.3s + var(--k) * 0.35s); }
.panel.in .paid { transform: scaleY(1); }
.paid-dot { fill: var(--peach); opacity: 0; transition: opacity 0.4s var(--ease) calc(1.8s + var(--k) * 0.35s); }
.panel.in .paid-dot { opacity: 1; }
.band { fill: rgba(143, 198, 224, 0.07); stroke: rgba(143, 198, 224, 0.3); stroke-dasharray: 4 6; }
.mark { fill: var(--night); stroke: var(--gold); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.6s var(--ease-spring), opacity 0.3s; transition-delay: calc(0.9s + var(--k) * 0.5s); }
.panel.in .mark { opacity: 1; transform: none; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: 0.82rem; color: var(--muted); margin: 0; }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: -0.55rem; }
.lg-earned { background: var(--lilac); }
.lg-paid { background: var(--peach); height: 8px; width: 4px; }
.lg-band { background: rgba(143, 198, 224, 0.35); height: 8px; }
.lg-steady { background: var(--sky); }
.steps { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.steps b { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.js .steps li { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .panel.in .steps li { opacity: 1; transform: none; }
.panel.in .steps li:nth-child(1) { transition-delay: 1s; }
.panel.in .steps li:nth-child(2) { transition-delay: 1.3s; }
.panel.in .steps li:nth-child(3) { transition-delay: 1.6s; }
.panel.in .steps li:nth-child(4) { transition-delay: 1.9s; }


/* Marquee */
.marquee { overflow: hidden; padding: 1.1rem 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--muted); white-space: nowrap; padding: 0 1.5rem; display: inline-flex; align-items: center; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--edge); margin-left: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Rules */
.rules { padding: 6rem 0; }
.rule-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.rule { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; padding: 1.75rem 0; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.rule::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--edge); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.rule.in::after { transform: scaleX(1); }
.rule-num { font-family: var(--serif); font-style: italic; color: var(--peach); font-size: 1.25rem; line-height: 1.6; }
.rule p { margin: 0; font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 500; transition: color 0.5s var(--ease); }
.rule:hover p { color: var(--peach); }

/* Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 7rem 0 4rem; }
.aurora-footer { inset: auto -20% -60% -20%; height: 140%; }
.footer-title { font-size: clamp(3.4rem, 15vw, 9rem); letter-spacing: -0.06em; line-height: 0.95; margin-bottom: 1.5rem; }
.footer-title em { padding-right: 0.08em; }
.footer-inner > p:not(.kicker):not(.footer-note):not(.clock) { color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.clock { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; margin: 0.5rem 0 0; font-variant-numeric: tabular-nums; }
.clock-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.clock-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sky); animation: ping 2.2s var(--ease) infinite; }
.btn-big { font-size: clamp(0.95rem, 3.6vw, 1.2rem); padding: 1rem 1.6rem; margin: 1.5rem 0 2rem; max-width: 100%; }
.btn-big span { overflow-wrap: anywhere; }
.footer-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Larger screens */
@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .stat-strip li { padding: 1.75rem 1.5rem; }
}
@media (min-width: 720px) {
  .detail { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}
@media (min-width: 960px) {
  .hero { padding-top: 8rem; }
  .h-track { grid-template-columns: repeat(3, 1fr); }
  .card-body { padding: 2rem; }
  .rules-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
  .rules-head { position: sticky; top: 30vh; }
  .rule-list { margin-top: 0; }
  .rule { grid-template-columns: 4rem 1fr; padding: 2.25rem 0; }
}

/* Motion off: everything visible and still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title .w, .js .steps li, .js .panel { opacity: 1 !important; transform: none !important; filter: none !important; }
  .roles span:first-child { opacity: 1; }
  .roles span:not(:first-child) { display: none; }
  .spread-hint { display: none; }
  .draw, .path-line { stroke-dashoffset: 0; }
  .paid, .mark { transform: none; opacity: 1; }
  .paid-dot { opacity: 1; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+9) { display: none; }
  .rule::after { transform: none; }
  .flow-dot { display: none; }
}

.fly-obj { --ox: 0px; --oy: -24svh; }
@media (min-width: 860px) { .fly-obj { --ox: 21vw; --oy: 0px; } }
@media (max-width: 859px) {
  .fly-on .fly-text { left: 1.25rem; right: 1.25rem; width: auto; max-width: none; top: auto; bottom: 3.6rem; translate: 0 0; gap: 0.7rem; }
  .fly-on .fly-text h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
  .fly-on .fly-text .detail-lede { font-size: 0.92rem; margin-bottom: 0.4rem; }
  .fly-on .fly-text .spec-dl { gap: 0.55rem; }
  .fly-on .fly-text .spec-dl > div:first-child, .fly-on .fly-text .card-private { display: none; }
  .fly-on .fly-text .spec-dl dd { font-size: 0.86rem; line-height: 1.4; }
  .fly-nav { right: 0.25rem; }
}

/* keep the text readable over the network */
.fly-on .fly-stage::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(90deg, rgba(21, 18, 28, 0.8) 0%, rgba(21, 18, 28, 0.5) 34%, transparent 56%); }
@media (max-width: 859px) {
  .fly-on .fly-stage::after { background: linear-gradient(0deg, rgba(21, 18, 28, 0.88) 0%, rgba(21, 18, 28, 0.62) 38%, transparent 62%); }
  .fly-on .fly-hint { display: none; }
}

/* Selected work: anonymised, so the claims above have something behind them */
.selected { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.selected-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); margin-bottom: 1.25rem; }
.selected-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem 2.5rem; }
.selected-list li { padding-left: 1rem; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.selected-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
@media (min-width: 720px) { .selected-list { grid-template-columns: repeat(2, 1fr); } }

/* Experience and education: plain, scannable */
.exp { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 2.25rem 3rem; }
@media (min-width: 720px) { .exp { grid-template-columns: 1.15fr 1fr; } }
.exp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.exp-list li { display: grid; gap: 0.1rem; padding-left: 1rem; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.exp-list b { color: var(--ink); font-weight: 600; }
.exp-list i { font-style: normal; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--peach); }
.footer-links { margin: 0 0 1rem; }
.footer-links a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--peach); }

.exp-note { display: block; margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.exp-gap { margin-top: 2rem; }
.skill-rows { margin: 0; display: grid; gap: 1rem; }
.skill-rows > div { display: grid; gap: 0.45rem; }
.skill-rows dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.skill-rows dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.chips span { padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; color: var(--ink); background: rgba(26, 22, 36, 0.6); }

/* Sections run into each other: the glow behind the hero and the footer fades out at the seam */
.hero .aurora, .hero .grain { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.aurora-footer { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%); mask-image: linear-gradient(180deg, transparent 0, #000 45%); }


/* Things arrive out of the distance instead of just fading in */
.js .reveal { transform: perspective(1000px) translate3d(0, 30px, -110px); }
.js .reveal.in { transform: none; }
.js .panel { opacity: 0; transform: perspective(1000px) translate3d(0, 44px, -160px) rotateX(9deg); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js .panel.in { opacity: 1; transform: none; }
.hero-inner { filter: blur(calc(var(--hb, 0) * 1px)); }
