:root {
  --bg: #0d0d0d;
  --ink: #f2f0eb;
  --mute: #7c7a75;
  --dim: #3a3936;
  --line: #262624;
  --sig: #cdee5c;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --g: clamp(14px, 1.4vw, 22px);
  --headH: 30vw;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* section colour themes: body switches as each section reaches mid-screen */
body[data-theme="cream"] { --bg: #f3eee5; --ink: #1a1612; --mute: #6b6457; --dim: #bdb4a4; --line: #ddd4c5; --sig: #e0552f; }
body[data-theme="orange"] { --bg: #ef7650; --ink: #1d0b04; --mute: #5a240f; --dim: #d9643f; --line: #e46a45; --sig: #1d0b04; }
body[data-theme="violet"] { --bg: #6553df; --ink: #f7f5ff; --mute: #e2dcff; --dim: #8b7dea; --line: #7767e4; --sig: #d7f27a; }
body[data-theme="lime"] { --bg: #dbee8e; --ink: #151a0a; --mute: #4f5c1a; --dim: #bdd36a; --line: #cbe07a; --sig: #5546c9; }
body[data-theme="pink"] { --bg: #f49ac0; --ink: #210a15; --mute: #6c1d45; --dim: #e07fa8; --line: #ea8db5; --sig: #210a15; }
body, .top-bg, .mark, .bar { transition: background-color .7s cubic-bezier(.16, 1, .3, 1), color .7s cubic-bezier(.16, 1, .3, 1); }

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--dim) var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--sig); color: #0d0d0d; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 8px; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 0 var(--g); pointer-events: none; }
.top a, .top .bar { pointer-events: auto; }
.top-bg { position: absolute; left: 0; right: 0; top: 0; height: var(--headH); background: var(--bg); transform-origin: 50% 0; will-change: transform; }
.mark-wrap { position: relative; overflow: hidden; line-height: 0; padding-top: var(--g); }
.mark {
  display: block; text-decoration: none; color: var(--ink); transform-origin: 50% 0;
  font-weight: 900; font-stretch: 100%; line-height: .74; letter-spacing: -.03em; white-space: nowrap;
  font-size: 22vw; will-change: transform;
}
.mark-in { display: inline-block; }
.mark .ch { display: inline-block; will-change: transform; }
.mark .ch:last-child, .big .ch:last-child { letter-spacing: 0; }
.bar {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-top: 8px; padding: 5px 8px; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 500; line-height: 1.2; will-change: transform;
}
.bar a { text-decoration: none; }
.bar-links a:hover, .bar-cta:hover { text-decoration: underline; }
.bar-cta { justify-self: end; }
.bar-links a.on { text-decoration: underline; }

/* ---------- hero ---------- */
.hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  background: radial-gradient(38% 46% at 74% 52%, #ff4fa3 0%, #5b3df5 55%, transparent 72%), #0d0d0d;
}
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; padding: calc(var(--headH) + 4vh) var(--g) 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.statement {
  max-width: 17ch; font-weight: 600; font-stretch: 100%;
  font-size: clamp(38px, 6.4vw, 112px); line-height: .98; letter-spacing: -.035em;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-in { display: block; will-change: transform; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.hero-meta dl { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 24px; }
.hero-meta dt { font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-size: 14px; line-height: 1.35; }
.scroll-cue { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--mute); text-decoration: none; white-space: nowrap; }
.scroll-cue i { display: block; width: 1px; height: 36px; background: var(--mute); transform-origin: 50% 0; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* ---------- approach ---------- */
.approach { padding: 10vh var(--g) 8vh; }
.reveal-words {
  max-width: 30ch; margin: 0;
  font-weight: 500; font-size: clamp(28px, 4.1vw, 66px); line-height: 1.04; letter-spacing: -.035em;
}
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 9vh; border-top: 2px solid var(--ink); }
.wins li { padding: 22px 1.6vw 28px 0; border-bottom: 1px solid var(--line); }
.wins li:not(:nth-child(3n + 1)) { padding-left: 1.6vw; border-left: 1px solid var(--line); }
.win-n { display: block; color: var(--c); font-weight: 900; font-stretch: 100%; font-size: clamp(52px, 6.6vw, 124px); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.win-l { display: block; margin-top: 14px; font-size: clamp(15px, 1.25vw, 19px); font-weight: 500; max-width: 26ch; }
.w-metric { display: block; color: var(--accent, var(--sig)); font-weight: 900; font-stretch: 100%; font-size: clamp(48px, 5.2vw, 100px); line-height: .85; letter-spacing: -.05em; white-space: nowrap; }
.w-metric-l { display: block; margin: 8px 0 22px; color: var(--ink); font-size: 12px; }
.reveal-words em { font-style: normal; }
.reveal-words .c1 { color: #ff4d1f; }
.reveal-words .c2 { color: #5b3df5; }
.reveal-words .c3 { color: #e0399f; }
.reveal-words .w { opacity: .14; }

/* ---------- work stack ---------- */
.work-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: none; }
.has-stack .work-pin { display: block; }
.has-stack .cases { display: none; }
.rule { position: absolute; left: var(--g); right: var(--g); top: 50%; height: 1px; background: var(--line); }
.stack { position: absolute; inset: 0; }
.s-plate { border-radius: 6px;
  position: absolute; left: 50%; top: 0; overflow: hidden; background: #151515;
  transform-origin: 50% 50%; will-change: transform, width, height; cursor: pointer;
}
.s-plate .art { position: absolute; inset: -12% 0; will-change: transform; }
.art svg, .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.s-plate::after { content: ""; position: absolute; inset: 0; background: #0d0d0d; opacity: var(--dimv, 0); pointer-events: none; }

.w-left, .w-right { position: absolute; top: 50%; padding-top: 10px; }
.w-left { left: var(--g); display: grid; grid-template-columns: 5ch auto; gap: 0 4vw; }
.w-index { font-size: 13px; color: var(--ink); }
.w-tools li, .w-names li { font-size: 13px; line-height: 1.25; }
.w-tools li { color: var(--ink); }
.w-right { right: var(--g); display: grid; grid-template-columns: auto 14ch; gap: 0 5vw; text-align: left; }
.w-names li { font-family: var(--sans); text-transform: none; letter-spacing: -.01em; font-weight: 500; font-size: 14px; color: var(--dim); transition: color .4s; cursor: pointer; }
.w-names li.on { color: var(--ink); }
.w-names li:hover { color: var(--mute); }
.w-names li.on:hover { color: var(--ink); }
.w-sector { font-size: 13px; text-align: right; }
.w-foot {
  position: absolute; left: var(--g); right: var(--g); bottom: 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--plateGap, 34vw) minmax(0, 1fr); align-items: end;
}
.wf-l { display: grid; gap: 18px; max-width: 42ch; }
.wf-r { justify-self: end; max-width: 34ch; min-width: 0; }
.w-foot .mono { display: block; color: var(--mute); margin-bottom: 6px; }
.w-foot p { font-size: 16px; line-height: 1.4; }
.w-foot .wf-ai .mono, .w-index { color: var(--accent, var(--sig)); transition: color .5s; }
.w-index { font-size: 40px !important; font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; line-height: .9; margin-top: -4px; }
.wf-r p { font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }

/* static / mobile cases */
.cases { padding: 6vh var(--g); display: grid; gap: 8vh; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 4vw; align-items: start; }
.case .plate { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #151515; grid-row: span 3; }
.case .plate .art { position: absolute; inset: 0; }
.case h3 { font-weight: 700; font-stretch: 112%; font-size: clamp(30px, 4vw, 54px); line-height: .95; letter-spacing: -.03em; }
.case dl { display: grid; gap: 14px; }
.case dt { font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: var(--mute); }
.case dl div:nth-child(2) dt { color: var(--sig); }
.case dd { margin: 2px 0 0; font-size: 15px; max-width: 58ch; }
.case .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.case .tools li { font: 400 11px/1 var(--mono); text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; }

/* ---------- studio ---------- */
.studio { padding: 12vh var(--g) 10vh; }
.studio-title { font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 6vw, 104px); line-height: .9; letter-spacing: -.04em; max-width: 14ch; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3vw; margin: 9vh 0 7vh; border-top: 2px solid var(--ink); }
.stat { padding-top: 18px; }
.stat .num { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(84px, 17vw, 300px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 18px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; }
.studio-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3vw; align-items: start; }
.studio-body > p { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 12px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }

/* ---------- method ---------- */
.method { position: relative; }
.method-pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding-top: 10vh; }
.method-title { padding: 0 var(--g); font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 7vw, 120px); line-height: .85; letter-spacing: -.04em; }
.method-track { display: flex; gap: 0; padding: 0 var(--g); width: max-content; will-change: transform; }
.m-step {
  width: clamp(300px, 38vw, 620px); padding: 22px 3vw 0 0; margin-right: 3vw; border-top: 1px solid var(--line); position: relative;
}
.m-step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--sig); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }
.m-step .mono { color: var(--sig); }
.m-step h3 { margin: 18px 0 16px; font-weight: 600; font-size: clamp(24px, 2.7vw, 44px); line-height: 1.02; letter-spacing: -.03em; }
.m-step p { color: var(--mute); max-width: 40ch; font-size: 15px; }

/* ---------- toolbox ---------- */
.toolbox { padding: 7vh 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee { white-space: nowrap; display: flex; }
.m-row { display: inline-flex; align-items: center; flex: none; padding-right: .5em; font-weight: 800; font-stretch: 125%; font-size: clamp(38px, 7vw, 116px); line-height: 1.02; letter-spacing: -.04em; will-change: transform; }
.m-row i { display: inline-block; width: .32em; height: .32em; margin: 0 .38em; background: var(--sig); border-radius: 50%; }
.marquee.alt .m-row { font-weight: 300; font-stretch: 75%; color: var(--ink); }
.marquee.alt .m-row i { background: #ff4fa3; }

/* ---------- path ---------- */
.path { padding: 12vh var(--g) 10vh; }
.path-title { font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 7vw, 120px); line-height: .85; letter-spacing: -.04em; margin-bottom: 9vh; }
.rows li {
  display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr) minmax(0, 3fr); gap: 20px; align-items: baseline;
  padding: 22px 0; position: relative;
}
.rows li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--s, 1)); }
.rows time { color: var(--mute); }
.rows h3 { font-weight: 600; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.025em; }
.rows p { color: var(--mute); font-size: 15px; max-width: 46ch; }
.rows .now h3, .rows .now time { color: var(--sig); }

/* ---------- contact ---------- */
.contact { min-height: 80svh; padding: 12vh var(--g) 0; display: flex; flex-direction: column; }
.contact-lede { font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; max-width: 22ch; }
.big { margin: 4vh 0 0; overflow: hidden; line-height: 0; font-size: 15vw; }
.big-in { display: inline-block; white-space: nowrap; font-weight: 900; font-stretch: 100%; line-height: .78; letter-spacing: -.035em; padding-top: .04em; }
.big .ch { display: inline-block; will-change: transform; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6vh; }
.links a {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 16px 22px; border: 1px solid var(--dim); border-radius: 99px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.links a:hover, .links a:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.links a { border-color: var(--ink); }
.foot { margin-top: auto; display: flex; justify-content: space-between; padding: 40px 0 22px; color: var(--mute); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; mix-blend-mode: difference; }
.cursor span { display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.big span { transform: scale(4.2); }
@media (pointer: fine) { .has-motion .cursor { display: block; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-meta { flex-direction: column; align-items: start; }
  .hero-meta dl { grid-template-columns: 1fr; gap: 14px; }
  .reveal-words { margin-right: 0; }
  .case { grid-template-columns: 1fr; }
  .case .plate { grid-row: auto; }
  .rows li { grid-template-columns: 1fr; gap: 6px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar-links { display: none; }
  .m-step { width: 78vw; }
  .foot { flex-wrap: wrap; gap: 8px 20px; }
  .hero-gl { opacity: .55; }
  .stats, .studio-body { grid-template-columns: 1fr; }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-n { font-size: 10.5vw; }
  .wins li { padding: 18px 12px 22px 0 !important; border-left: 0 !important; }
  .wins li:nth-child(2n) { padding-left: 12px !important; border-left: 1px solid var(--line) !important; }
}

/* no-motion */
.static .reveal-words .w { opacity: 1; }
.static .method-pin { height: auto; padding: 14vh 0; }
.static .method-track { width: auto; flex-direction: column; gap: 40px; }
.static .m-step { width: auto; --fill: 1; }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

/* focus section reuses the path rows */
.focus-title { font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 7vw, 120px); line-height: .85; letter-spacing: -.04em; margin-bottom: 9vh; }
.studio-body p + p { margin-top: 1em; }
.focus .rows time { color: var(--sig); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- hello loader ---------- */
.hello { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #0d0d0d; color: #f2f0eb; }
.hello-word { display: flex; align-items: center; gap: 14px; font: 600 clamp(34px, 5vw, 64px)/1 var(--sans); letter-spacing: -.02em; }
.hello-word i { width: 12px; height: 12px; border-radius: 50%; background: #d4ff3a; }
.static .hello { display: none; }

/* ---------- hero: faint grid + self-drawing chart line ---------- */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .55;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 55%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 70% 55%, #000 30%, transparent 80%); }
.hero-chart { position: absolute; left: 0; right: 0; top: 34%; height: 46%; width: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.hc-line { fill: none; stroke: var(--sig); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .7; }
.hc-area { fill: url(#hcFill); opacity: 0; }
.hc-dot { fill: var(--sig); opacity: 0; }

/* ---------- photo + name card ---------- */
.id-card { position: absolute; right: var(--g); top: calc(var(--headH) + 4vh); z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px; border-radius: 14px; background: rgba(242, 240, 235, .06); border: 1px solid var(--line);
  backdrop-filter: blur(10px); color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), background .4s; }
.id-card:hover { transform: rotate(-2deg) scale(1.03); background: rgba(242, 240, 235, .12); }
.id-card img { width: 46px; height: 55px; border-radius: 9px; object-fit: cover; display: block; }
.id-card span { display: grid; line-height: 1.25; }
.id-card b { font-weight: 600; font-size: 15px; }
.id-card small { font-size: 12px; color: var(--mute); }
@media (max-width: 900px) {
  .id-card { position: static; align-self: flex-start; order: -1; margin-bottom: -24px; }
  .hero-chart { top: 42%; height: 34%; }
}
.hello { animation: hello-failsafe 0s 6s forwards; }
@keyframes hello-failsafe { to { visibility: hidden; opacity: 0; } }

/* ---------- roadmap: horizontal timeline ---------- */
#path { overflow: hidden; }
.road { position: relative; }
.roadmap { position: relative; display: flex; width: max-content; padding: 0 12vw 0 0; --p: 0; }
.roadmap::before, .roadmap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.roadmap::before { background: var(--line); }
.roadmap::after { background: var(--sig); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.roadmap li { position: relative; width: clamp(250px, 23vw, 340px); height: clamp(420px, 56vh, 520px); flex: none; padding-right: 32px; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); z-index: 1; transition: background .4s, border-color .4s; }
.roadmap li::after { content: ""; position: absolute; left: 7px; width: 2px; background: var(--line); }
.roadmap li:nth-child(odd)::after { top: 22%; bottom: 50%; }
.roadmap li:nth-child(even)::after { top: 50%; bottom: 22%; }
.roadmap li > * { position: absolute; left: 28px; right: 24px; }
.roadmap li:nth-child(odd) time { bottom: calc(50% + 120px); }
.roadmap li:nth-child(odd) h3 { bottom: calc(50% + 62px); }
.roadmap li:nth-child(odd) p { bottom: calc(50% + 20px); }
.roadmap li:nth-child(even) time { top: calc(50% + 20px); }
.roadmap li:nth-child(even) h3 { top: calc(50% + 46px); }
.roadmap li:nth-child(even) p { top: calc(50% + 104px); }
.roadmap time { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sig); }
.roadmap h3 { font-weight: 700; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.1; letter-spacing: -.02em; }
.roadmap p { color: var(--mute); font-size: 14px; line-height: 1.45; }
.roadmap li.lit::before { background: var(--sig); border-color: var(--sig); }
.roadmap .now::before { width: 22px; height: 22px; margin-top: -11px; left: -3px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--sig) 25%, transparent); }
.roadmap .now h3 { color: var(--sig); }
.road-hint { margin-top: 2vh; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 900px) {
  .roadmap { flex-direction: column; width: auto; padding: 0 0 0 4px; }
  .roadmap::before, .roadmap::after { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0; }
  .roadmap::after { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .roadmap li { width: auto; height: auto; padding: 0 0 36px 40px; }
  .roadmap li::before { left: 4px; top: 2px; margin: 0; }
  .roadmap .now::before { left: 1px; }
  .roadmap li::after { display: none; }
  .roadmap li > * { position: static; }
  .roadmap h3 { margin: 8px 0 6px; }
  .road-hint { display: none; }
}

/* ---------- Now strip ---------- */
.nowbar { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 var(--sig); animation: now-ping 2s infinite; }
@keyframes now-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sig) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.now-k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.now-v { display: inline-block; font-weight: 500; }

/* ---------- interactive backtest ---------- */
.bt { position: relative; z-index: 2; background: var(--bg); padding: 14vh var(--g) 12vh; }
.bt-k { color: var(--sig); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.bt-title { font-weight: 800; font-size: clamp(36px, 6vw, 104px); line-height: .9; letter-spacing: -.04em; }
.bt-lede { margin-top: 18px; color: var(--mute); font-size: 17px; }
.bt-toggle { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.bt-toggle button { font: 600 14px/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background .35s, color .35s; }
.bt-toggle button.on { background: var(--sig); color: #0d0d0d; }
.bt-chart { margin: 4vh 0 0; }
.bt-chart svg { display: block; width: 100%; height: clamp(220px, 38vh, 380px); overflow: visible; }
.bt-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bt-line { fill: none; stroke: var(--sig); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke .4s; }
.bt-area { fill: url(#btFill); }
.bt-dot { fill: var(--sig); transition: fill .4s; }
.bt.real .bt-line, .bt.real .bt-dot { stroke: #ff4d4d; }
.bt.real .bt-dot { fill: #ff4d4d; }
.bt-cap { margin-top: 18px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.bt-note { color: var(--mute); font-weight: 400; }
.bt.real .bt-verdict { color: #ff4d4d; }

/* ---------- counted stats get an underline that draws in ---------- */
.win-n { position: relative; padding-bottom: 14px; }
.win-n::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--u, 1)); }
.wins li { --u: 1; }

/* ---------- section progress rail ---------- */
.rail { position: fixed; right: 14px; top: 50%; translate: 0 -50%; z-index: 90; display: grid; gap: 10px; }
.rail button { position: relative; width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; opacity: .45; cursor: pointer; transition: opacity .3s, background .3s, transform .3s; }
.rail button.on { background: var(--sig); border-color: var(--sig); opacity: 1; transform: scale(1.25); }
.rail button:hover { opacity: 1; }
.rail button span { position: absolute; right: 18px; top: 50%; translate: 0 -50%; white-space: nowrap; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--bg); padding: 5px 7px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- micro-details: sliding underlines + copied toast ---------- */
.bar-links a, .bar-cta { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.bar-links a:hover, .bar-links a.on, .bar-cta:hover { background-size: 100% 1px; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 400; padding: 12px 18px; border-radius: 999px; background: #d4ff3a; color: #0d0d0d; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .35s, translate .5s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Monte Carlo simulator ---------- */
.sim { position: relative; z-index: 2; background: var(--bg); padding: 14vh var(--g) 12vh; }
.sim .bt-lede { max-width: 56ch; line-height: 1.5; }
.sim-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.sim-mix { display: grid; gap: 10px; min-width: min(360px, 100%); font-size: 13px; }
.sim-mix b { color: var(--sig); }
.sim-mix input { width: 100%; accent-color: var(--sig); }
.sim-run { font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 0; background: var(--sig); color: #0d0d0d; cursor: pointer; transition: transform .3s var(--ease); }
.sim-run:hover { transform: translateY(-2px); }
.sim-run:active { transform: scale(.97); }
.sim-wrap { margin-top: 4vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sim-cv { display: block; width: 100%; height: clamp(240px, 40vh, 420px); }
.sim-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; }
.sim-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 8px; }
.sim-stats dd { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 60px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sim-var { color: #ff4d4d; }
.sim-note { margin-top: 22px; font-size: 11px; color: var(--mute); }
@media (max-width: 700px) { .sim-stats { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- bigger photo card, top right of the landing screen ---------- */
.id-card { gap: 16px; padding: 10px 22px 10px 10px; border-radius: 20px; }
.id-card img { width: 84px; height: 100px; border-radius: 14px; }
.id-card b { font-size: 19px; letter-spacing: -.01em; }
.id-card small { font-size: 13px; margin-top: 2px; }
.id-card em { display: flex; align-items: center; gap: 7px; margin-top: 10px; font: 500 11px/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--sig); }
.id-card em i { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); }

/* ---------- link from a project to its demo ---------- */
.w-link, .case-link { display: inline-flex; align-items: center; margin-top: 16px; padding: 12px 18px; border-radius: 999px; background: var(--accent, var(--sig)); color: #0d0d0d; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .3s var(--ease); }
.w-link:hover, .case-link:hover { transform: translateX(4px); }
.w-link[hidden] { display: none; }
.case-link { background: var(--sig); }

/* ---------- simulator page ---------- */
.sim-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--g); background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.sim-top a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sim-top a:hover { text-decoration: underline; }
.sim-top span { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sim-solo { padding-top: 8vh; min-height: calc(100svh - 50px); }
@media (max-width: 600px) { .sim-top span { display: none; } }
