/* Ovation — "Same stage, warmer lights".
   One dark stage top to bottom. Blue leads everywhere; a single muted amber is the only
   warm note, kept for small highlights (stickers, toast, stamps, the odd wink). */

:root {
  --paper: #0a0a0b;
  --surface: #101012;
  --surface-2: #14151a;
  --ink: #f2f1ec;
  --muted: #8f8f88;
  --line: #26262a;
  --faint: #56564f;
  --blue: #4d9fff;
  --blue-deep: #2f7fe6;
  --blue-soft: #9cc7ff;
  --blue-dim: #16263d;
  --navy: #06101f;
  --neutral: #d6d3cb;
  --neutral-ink: #111113;
  --accent: var(--blue);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Instrument Sans', Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible + *, [contenteditable]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
figure { margin: 0; }

.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }

/* ---------- shared bits -------------------------------------------------- */

h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
}
p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
p code {
  font: 0.82em var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow i { width: 10px; height: 10px; background: var(--accent); border-radius: 3px; transform: rotate(12deg); }

.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.chrome, .pbar {
  font: 11px var(--mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pbar { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pbar > span { min-width: 0; overflow-wrap: anywhere; }
.pbar > span:first-child::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: 1px;
}
pre {
  font: 12px/1.85 var(--mono);
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: var(--muted);
}
.bad { color: #6f6f69; }
.esc { color: #a8a49a; }
.err { color: var(--neutral); }
.ok { color: var(--blue-soft); }
.tg { color: var(--blue); }
.at { color: var(--blue-soft); }
.st { color: var(--neutral); }
.tx { color: var(--ink); }
.cm { color: #55554f; font-style: italic; }

.caret {
  display: inline-block;
  background: var(--blue);
  width: 7px;
  height: 1em;
  vertical-align: -0.1em;
  margin-left: 7px;
  border-radius: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--navy);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), background 0.2s, color 0.2s;
}
.button:hover { background: var(--neutral); color: var(--neutral-ink); transform: translateY(-2px) rotate(-1.5deg); }
.button:active { transform: scale(0.96); }

.reveal { transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal:not(.shown) { opacity: 0; transform: translateY(26px); }

/* ---------- nav ---------------------------------------------------------- */

.top { border-bottom: 1px solid var(--line); }
.top > .wrap { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-group { display: flex; align-items: center; gap: 18px; }
.doc-open, .doc-close {
  font: 11px var(--mono);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--muted);
}
.wordmark { font-size: 29px; letter-spacing: -1.4px; font-weight: 600; }
.wordmark b { display: inline-block; color: var(--blue); transform-origin: 50% 90%; }
.wordmark:hover b { animation: hop 0.7s cubic-bezier(.3, 1.4, .5, 1); color: var(--neutral); }
@keyframes hop {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(0) scale(1.3, 0.7); }
  50% { transform: translateY(-14px) scale(0.85, 1.2); }
  75% { transform: translateY(0) scale(1.25, 0.8); }
  100% { transform: translateY(0) scale(1); }
}
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top nav a:hover { color: var(--blue-soft); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 600;
  transition: background 0.2s, transform 0.18s;
}
.nav-cta:hover { background: var(--blue); color: var(--navy); transform: rotate(-2deg); }

/* ---------- hero --------------------------------------------------------- */

.hero { padding: 90px 0 120px; text-align: center; }
.hero h1 {
  font-size: clamp(52px, 7.1vw, 100px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.01;
  margin: 0 auto 26px;
}
.sub { font-size: 19px; color: var(--muted); }

.pixel-experiment {
  position: relative;
  margin: 0 0 20px;
  padding: 24px 0 58px;
  isolation: isolate;
  background: var(--paper);
  cursor: crosshair;
  touch-action: pan-y;
}
.pixel-experiment canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero .pixel-fallback {
  position: relative;
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--blue);
  pointer-events: none;
}
.pixel-line { display: block; white-space: nowrap; }
.pixel-experiment[data-ready=true] canvas { opacity: 1; }
.pixel-experiment[data-ready=true] .pixel-fallback { opacity: 0; }
.pixel-hint {
  position: absolute;
  left: 0;
  bottom: 16px;
  margin: 0;
  font: 11px var(--mono);
  color: var(--neutral);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.pixel-hint::before { content: '↑ '; }
.pixel-experiment[data-ready=true] .pixel-hint { opacity: 0.85; }
.pixel-experiment[data-poked=true] .pixel-hint { opacity: 0; }
.pixel-controls { position: absolute; bottom: 10px; right: 0; display: flex; gap: 6px; z-index: 2; }
.pixel-controls[hidden] { display: none; }
.pixel-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
}
.pixel-controls button:hover { background: var(--blue); color: var(--navy); border-color: var(--blue); }
.play-icon { display: none; }
[data-pause][aria-pressed=true] .play-icon { display: block; }
[data-pause][aria-pressed=true] .pause-icon { display: none; }

.hero-video {
  margin-top: 60px;
  position: relative;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 30px 90px -24px rgba(47, 127, 230, 0.32), 0 24px 55px #00000050;
}
.hero-video video { display: block; width: 100%; height: auto; border-radius: 12px; }
.chrome { color: var(--muted); padding: 6px 10px 16px; }
.sticker {
  position: absolute;
  z-index: 2;
  font: 600 11px var(--mono);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--neutral);
  color: var(--neutral-ink);
  box-shadow: 3px 3px 0 #000;
}
.sticker--video { top: -16px; right: 96px; transform: rotate(4deg); }
.replay {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
}
.ended .replay { opacity: 1; visibility: visible; }
.replay:hover { background: var(--blue); color: var(--navy); }

/* ---------- 01 · the format: a lifted dark band ------------------------- */

.s-format {
  position: relative;
  padding: 120px 0 110px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(77, 159, 255, 0.16), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(47, 127, 230, 0.08), transparent 70%),
    linear-gradient(180deg, #0e0f13, #0c0d10);
  overflow: hidden;
  isolation: isolate;
}
.s-format::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(156, 199, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 199, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
}
.format-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.format-head h2 { font-size: clamp(46px, 7vw, 104px); letter-spacing: -0.06em; }
.format-head p { font-size: 19px; max-width: 640px; margin-inline: auto; }
.format-head em {
  font-style: normal;
  color: var(--blue-soft);
  background: rgba(77, 159, 255, 0.16);
  padding: 0 5px;
  border-radius: 4px;
}

.compare {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #2b3445;
  box-shadow: 12px 12px 0 var(--blue-dim), 0 50px 100px -40px rgba(47, 127, 230, 0.45);
  user-select: none;
  touch-action: pan-y;
}
.cmp-slide { position: absolute; inset: 0; container-type: inline-size; overflow: hidden; }

/* the PowerPoint side stays gloriously ugly: it's the joke */
.cmp-ugly {
  background: linear-gradient(180deg, #ffffff 0%, #dde6f3 100%);
  font-family: 'Times New Roman', Times, serif;
  color: #111;
}
.ug-title {
  position: absolute;
  top: 5%; left: 6%; right: 6%;
  border: 2px dashed #b9b9b9;
  color: #a3a3a3;
  font: 4.2cqw Calibri, Arial, sans-serif;
  text-align: center;
  padding: 1.6cqw;
}
.ug-title2 {
  position: absolute;
  top: 8%; left: 18%;
  font: bold 4.6cqw 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  color: #1f35ff;
  text-shadow: 0.25cqw 0.25cqw 0 #ffe600;
  transform: rotate(-3deg);
}
.ug-body {
  position: absolute;
  top: 33%; left: 6%;
  width: 52%;
  margin: 0;
  padding-left: 3cqw;
  font-size: 2.3cqw;
  line-height: 1.25;
  list-style: square;
  border: 1px solid #c8c8c8;
}
.ug-body li { margin-bottom: 1.4cqw; }
.ug-body li:first-child { text-decoration: underline wavy #e03030 1px; text-underline-offset: 4px; }
.ug-over { white-space: nowrap; }
.ug-chart {
  position: absolute;
  top: 34%; right: 7%;
  width: 27%; height: 36%;
  display: grid;
  place-content: center;
  gap: 0.8cqw;
  text-align: center;
  font: 1.7cqw Arial, sans-serif;
  color: #777;
  background: #eee;
  border: 1px solid #aaa;
  box-shadow: 0.8cqw 0.8cqw 0 #999;
}
.ug-chart span { font-size: 4cqw; color: #d99a00; }
.ug-art {
  position: absolute;
  bottom: 9%; right: 9%;
  font: 900 6.6cqw Impact, 'Arial Black', sans-serif;
  background: linear-gradient(90deg, #ff0000, #ff9900, #33cc33, #0066ff, #9900cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: rotate(-8deg) skewX(-14deg);
  filter: drop-shadow(0.3cqw 0.3cqw 0 #444);
}
.ug-foot {
  position: absolute;
  bottom: 3%; left: 4%;
  font: 1.25cqw Arial, sans-serif;
  color: #888;
}

.cmp-nice {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(77, 159, 255, 0.26), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(214, 211, 203, 0.06), transparent 60%),
    #0e1015;
  color: var(--ink);
  padding: 6.5% 7% 5.5%;
  display: flex;
  flex-direction: column;
}
.nc-kick { font: 500 1.35cqw var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 2cqw; }
.nc-head { font-size: 5.8cqw; font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin-bottom: auto; }
.nc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5cqw; }
.nc-stats > div { display: flex; flex-direction: column; gap: 0.8cqw; }
.nc-stats b { font-size: 6.4cqw; font-weight: 600; letter-spacing: -0.05em; color: var(--c); line-height: 1; }
.nc-stats span { font: 1.3cqw var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.nc-stats i { display: block; height: 0.9cqw; width: var(--h); background: var(--c); border-radius: 1cqw; margin-top: 0.8cqw; }

.cmp-tag {
  position: absolute;
  top: 16px;
  font: 600 11px var(--mono);
  padding: 7px 11px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
.cmp-tag--r { right: 16px; background: #fff; color: #c02525; border: 1.5px solid #c02525; }
.cmp-tag--l { left: 16px; background: var(--blue); color: var(--navy); }
.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 4px;
  transform: translateX(-50%);
  background: var(--ink);
  pointer-events: none;
  z-index: 3;
}
.cmp-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1);
}
.cmp-handle span::before, .cmp-handle span::after {
  content: '';
  position: absolute;
  top: 50%;
  border: 7px solid transparent;
  transform: translateY(-50%);
}
.cmp-handle span::before { left: 6px; border-right-color: var(--navy); }
.cmp-handle span::after { right: 6px; border-left-color: var(--navy); }
.compare:hover .cmp-handle span, .compare.dragging .cmp-handle span { transform: translate(-50%, -50%) scale(1.12) rotate(-8deg); }
.cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.cmp-range::-moz-range-thumb { width: 60px; height: 1000px; border: 0; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 6px; }
.cmp-caption { text-align: center; font: 12px var(--mono); color: var(--muted); margin: 26px 0 0; }

.nerds { max-width: 1040px; margin: 34px auto 0; text-align: center; }
.nerd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px var(--mono);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid #2f3440;
  border-radius: 999px;
  padding: 11px 18px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.nerd-toggle:hover { background: var(--blue); color: var(--navy); border-color: var(--blue); transform: rotate(1.5deg); }
.nerd-toggle:hover .nerd-icon { color: var(--navy); }
.nerd-toggle[aria-expanded=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nerd-icon { font-weight: 700; color: var(--blue); }
.nerd-code { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; text-align: left; }
.nerd-code[hidden] { display: none; }
.nerd-code pre { min-height: 200px; }

/* ---------- 02 · gallery wall ------------------------------------------- */
/* The page around the wall stays on the house palette. The slides ON the wall are
   showcase work: each one is its own deck with its own art direction. */

.s-gallery { padding: 130px 0 110px; overflow-x: clip; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 40px; }
.gallery-head h2 { max-width: 640px; margin: 0; }
.gallery-head p { max-width: 400px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-defs * { stroke: none; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding-block: 30px 22px;
}
.marquee + .marquee { margin-top: -4px; }
.track { display: flex; width: max-content; animation: drift var(--dur, 110s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; gap: 30px; padding-right: 30px; }
@keyframes drift { to { transform: translateX(-50%); } }
/* nothing on the wall moves while it's offscreen */
.js .marquee:not(.live) .track,
.js .marquee:not(.live) .track *,
.js .marquee:not(.live) .track *::before,
.js .marquee:not(.live) .track *::after { animation-play-state: paused !important; }

.gw {
  --w: 500px;
  flex: none;
  width: var(--w);
  display: flex;
  flex-direction: column;
  gap: 14px;
  container-type: inline-size;
  transform: rotate(var(--tilt, -0.9deg));
  transition: transform 0.4s cubic-bezier(.3, 1.4, .5, 1);
}
.gw:nth-child(even) { --tilt: 1deg; }
.gw:hover { transform: rotate(0) scale(1.06); z-index: 2; position: relative; }
.gw figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  font: 12px var(--mono);
  color: var(--muted);
}
.gw figcaption::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); transform: rotate(12deg); flex: none; }
.gw figcaption code { font: inherit; color: var(--blue-soft); }
.gw:hover figcaption { color: var(--ink); }

/* each slide sets its own palette + type through these */
.gs {
  --s-bg: #0e0f13;
  --s-fg: var(--ink);
  --s-mut: var(--muted);
  --s-acc: var(--blue);
  --s-hair: #22252c;
  --s-head: var(--sans);
  --s-body: var(--sans);
  --s-lab: var(--mono);
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  padding: 5cqw 5.6cqw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--s-fg);
  background: var(--s-bg);
  font-family: var(--s-body);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 26px -14px rgba(0, 0, 0, 0.75),
    0 34px 64px -30px rgba(0, 0, 0, 0.95);
  transition: box-shadow 0.35s;
}
.gw:hover .gs {
  box-shadow:
    0 0 0 1px rgba(77, 159, 255, 0.6),
    0 14px 30px -14px rgba(0, 0, 0, 0.7),
    0 36px 72px -26px rgba(47, 127, 230, 0.5);
}
.gs svg { width: 100%; height: auto; fill: none; stroke: none; overflow: visible; }
.gs text { font-family: var(--s-body); fill: var(--s-fg); stroke: none; }
.gs .kick {
  display: block;
  font: 500 max(7px, 1.75cqw) var(--s-lab);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--s-acc);
}
.gs h3 { font-family: var(--s-head); font-size: 4.4cqw; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 1cqw 0 0; }
.sl-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; }
.sub-l { font-size: 1.9cqw; color: var(--s-mut); margin: 0.6cqw 0 0; line-height: 1.3; }
.gs .chip {
  flex: none;
  font: 500 max(7px, 1.6cqw) var(--s-lab);
  color: var(--s-acc);
  border: 1px solid currentColor;
  padding: 0.8cqw 1.6cqw;
  border-radius: 99px;
  white-space: nowrap;
}
.gs .legend { display: flex; gap: 2.2cqw; font: max(7px, 1.6cqw) var(--s-lab); color: var(--s-mut); white-space: nowrap; }
.gs .legend span { display: inline-flex; align-items: center; gap: 0.8cqw; }
.gs .legend i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; }

/* 1 · line chart — warm editorial: cream stock, serif display, one vermilion line */
.sl-line {
  --s-bg: #f2ebdd;
  --s-fg: #1f1a14;
  --s-mut: #7c7163;
  --s-acc: #cf3d1c;
  --s-hair: #dcd1bd;
  --s-head: 'Fraunces', Georgia, serif;
  --s-body: 'Archivo', Arial, sans-serif;
  background: radial-gradient(90% 90% at 10% 0%, #fbf7ef, transparent 65%), #f0e8d8;
}
.sl-line::before { content: ''; position: absolute; left: 5.6cqw; right: 5.6cqw; top: 3.2cqw; height: 0.55cqw; border-block: 1.5px solid var(--s-fg); border-bottom-width: 0.5px; }
.sl-line .kick { color: var(--s-fg); letter-spacing: 0.2em; font-size: max(7px, 1.5cqw); margin-top: 0.6cqw; }
.sl-line h3 { font-size: 5.4cqw; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-top: 1.4cqw; font-variation-settings: 'opsz' 144; }
.sl-line h3 em { font-style: italic; font-weight: 400; color: var(--s-acc); }
.sl-line .sub-l { font: italic 2cqw 'Fraunces', Georgia, serif; }
.sl-line .endval { text-align: right; padding-top: 0.6cqw; }
.sl-line .endval b { display: block; font: 500 7.4cqw/1 'Fraunces', Georgia, serif; letter-spacing: -0.04em; color: var(--s-acc); font-variation-settings: 'opsz' 144; }
.sl-line .endval span { font: max(7px, 1.5cqw) var(--s-lab); color: var(--s-mut); }
.sl-line .chart { flex: 1; min-height: 0; margin-top: 1.6cqw; }
.chart .grid line { stroke: var(--s-hair); stroke-width: 0.7; }
.chart .grid line:last-child { stroke: var(--s-fg); stroke-width: 0.8; }
.chart .ylab text, .chart .xlab text { font: 6.6px var(--s-lab); fill: var(--s-mut); }
.chart .xlab text { text-anchor: middle; }
.chart .xlab text:first-child { text-anchor: start; }
.chart .xlab text:last-child { text-anchor: end; }
.chart .lgd text { font: 6.6px var(--s-lab); fill: var(--s-mut); }
.chart .lgd line, .chart .then { stroke: #a99d8a; stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .area { fill: url(#gw-area); animation: fade-in 9s ease-out infinite; }
.chart .now {
  stroke: url(#gw-stroke);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 9s cubic-bezier(.45, 0, .2, 1) infinite;
}
.chart .note { animation: note-in 9s ease-out infinite; }
.chart .note .drop { stroke: var(--s-fg); stroke-width: 0.6; stroke-dasharray: 2 2; opacity: 0.55; }
.chart .note .lead { stroke: var(--s-fg); stroke-width: 0.6; }
.chart .note rect { fill: #fffbf3; stroke: var(--s-fg); stroke-width: 0.6; }
.chart .note .nd, .chart .note .pt { fill: var(--s-acc); }
.chart .note .pt { stroke: var(--s-bg); stroke-width: 1.4; }
.chart .note .n1 { font: 600 5.4px var(--s-lab); fill: var(--s-acc); letter-spacing: 0.06em; }
.chart .note .n2 { font: italic 7px 'Fraunces', Georgia, serif; fill: var(--s-fg); }
.chart .endpt circle { fill: var(--s-acc); }
.chart .endpt .ring { fill: none; stroke: var(--s-acc); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes fade-in { 0%, 22% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes note-in { 0%, 30% { opacity: 0; transform: translateY(4px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* 2 · KPI dashboard — luxury: black, champagne gold, thin serif numerals, hairlines */
@property --v { syntax: '<integer>'; initial-value: 0; inherits: false; }
.sl-kpi {
  --s-bg: #0c0b09;
  --s-fg: #f2e9d8;
  --s-mut: #8f8676;
  --s-acc: #cfae68;
  --s-hair: rgba(207, 174, 104, 0.26);
  --s-head: 'Cormorant Garamond', Georgia, serif;
  --s-body: 'Archivo', Arial, sans-serif;
  --s-lab: 'Archivo', Arial, sans-serif;
  background:
    radial-gradient(70% 90% at 92% -12%, rgba(207, 174, 104, 0.2), transparent 60%),
    radial-gradient(60% 70% at -5% 110%, rgba(207, 174, 104, 0.08), transparent 60%),
    #0c0b09;
}
.sl-kpi::after { content: ''; position: absolute; inset: 1.8cqw; border: 1px solid var(--s-hair); pointer-events: none; }
.sl-kpi .kick { font-size: max(6.5px, 1.4cqw); letter-spacing: 0.34em; }
.sl-kpi h3 { font-size: 6.4cqw; font-weight: 500; font-style: italic; letter-spacing: -0.01em; line-height: 0.95; margin-top: 1.2cqw; }
.sl-kpi .chip { font-size: max(6.5px, 1.3cqw); letter-spacing: 0.16em; text-transform: uppercase; border-color: var(--s-hair); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.2cqw; border-block: 1px solid var(--s-hair); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  padding: 1.8cqw 1.8cqw 0;
  border-left: 1px solid var(--s-hair);
  overflow: hidden;
}
.tile:first-child { border-left: 0; padding-left: 0; }
.tile .tl { font: 500 max(6px, 1.3cqw) var(--s-lab); text-transform: uppercase; letter-spacing: 0.2em; color: var(--s-mut); }
.tile .ct {
  --v: var(--to);
  counter-reset: v var(--v);
  font: 500 6.6cqw/0.95 var(--s-head);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  animation: count 2.4s cubic-bezier(.15, .7, .2, 1) 0.2s both;
}
.tile .ct::before { content: attr(data-pre) counter(v); }
.tile .ct small { font-size: 0.5em; font-style: italic; color: var(--s-mut); letter-spacing: 0; }
@keyframes count { from { --v: 0; } }
.tile em { font: normal 500 max(6px, 1.3cqw) var(--s-lab); letter-spacing: 0.06em; color: var(--s-acc); }
.tile em.warm { color: #f0d9a2; }
.tile svg { height: 9cqw; margin: 0.6cqw -1.8cqw 0; width: calc(100% + 3.6cqw); display: block; }
.tile:first-child svg { margin-left: 0; width: calc(100% + 1.8cqw); }
.tile .sp { stroke: var(--s-acc); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tile .sp-f { fill: url(#gw-spark); }
.tile.hot .ct { color: var(--s-acc); }
.tile.hot .sp { stroke: #f0d9a2; }
.quota { margin-top: auto; }
.q-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.7cqw; color: var(--s-fg); letter-spacing: 0.02em; }
.q-row b { font: italic 500 3cqw/1 var(--s-head); color: var(--s-acc); }
.q-sub { font: max(6px, 1.3cqw) var(--s-lab); color: var(--s-mut); margin-top: 0.9cqw; letter-spacing: 0.04em; }
.q-bar { position: relative; height: 0.5cqw; background: rgba(207, 174, 104, 0.16); margin-top: 1cqw; }
.q-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 79%;
  background: linear-gradient(90deg, #7d6230, #cfae68 70%, #f0d9a2);
  transform-origin: left;
  animation: grow 2.4s cubic-bezier(.15, .7, .2, 1) 0.2s both;
}
.q-target { position: absolute; left: 91%; top: -0.9cqw; bottom: -0.9cqw; width: 1px; background: var(--s-fg); }
@keyframes grow { from { transform: scaleX(0); } }

/* 3 · CSS 3D device — soft pastel SaaS: lilac + peach, rounded, glossy white hardware */
.sl-3d {
  --s-bg: #f5eefe;
  --s-fg: #2a2140;
  --s-mut: #6a6182;
  --s-acc: #6d4ff0;
  --s-peach: #ff8f6b;
  --s-head: 'Plus Jakarta Sans', Arial, sans-serif;
  --s-body: 'Plus Jakarta Sans', Arial, sans-serif;
  --s-lab: 'Plus Jakarta Sans', Arial, sans-serif;
  flex-direction: row;
  align-items: center;
  gap: 2cqw;
  background:
    radial-gradient(45% 70% at 78% 28%, rgba(255, 170, 140, 0.8), transparent 70%),
    radial-gradient(55% 75% at 62% 100%, rgba(176, 148, 255, 0.65), transparent 70%),
    linear-gradient(135deg, #f8f3ff 0%, #fdf0ea 100%);
}
.d-copy { flex: 0 0 46%; }
.sl-3d .kick {
  display: inline-block;
  font-weight: 700;
  font-size: max(6.5px, 1.4cqw);
  letter-spacing: 0.08em;
  padding: 0.7cqw 1.5cqw;
  border-radius: 99px;
  background: rgba(109, 79, 240, 0.11);
}
.d-copy h3 { font-size: 5.4cqw; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-top: 2cqw; }
.d-copy ul { list-style: none; margin: 3cqw 0 0; padding: 0; display: grid; gap: 1.4cqw; }
.d-copy li { font-size: 1.85cqw; color: var(--s-mut); padding-left: 2.8cqw; position: relative; }
.d-copy li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: linear-gradient(135deg, var(--s-acc), var(--s-peach)); }
.d-copy li b { color: var(--s-fg); font-weight: 700; margin-right: 0.4cqw; }
.d-stage { flex: 1; align-self: stretch; display: grid; place-items: center; perspective: 90cqw; }
.d-rig {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-24deg) rotateZ(4deg);
  animation: sway 10s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotateX(16deg) rotateY(-32deg) rotateZ(5deg); }
  to { transform: rotateX(10deg) rotateY(-12deg) rotateZ(2deg); }
}
.phone {
  width: 21cqw;
  height: 42cqw;
  border-radius: 3.6cqw;
  padding: 0.9cqw;
  background: linear-gradient(145deg, #ffffff, #e4dcf3);
  box-shadow: -2cqw 3cqw 6cqw rgba(82, 56, 160, 0.32), inset 0 0 0 0.25cqw #fff, inset 0 0 0 0.4cqw rgba(42, 33, 64, 0.06);
  transform-style: preserve-3d;
}
.ph-screen {
  position: relative;
  height: 100%;
  border-radius: 2.8cqw;
  padding: 4.6cqw 2cqw 2cqw;
  background: radial-gradient(90% 55% at 50% 0%, rgba(176, 148, 255, 0.45), transparent 75%), #fbf9ff;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  overflow: hidden;
}
.ph-notch { position: absolute; top: 1.2cqw; left: 50%; width: 6cqw; height: 1.6cqw; border-radius: 1cqw; background: #1b1530; transform: translateX(-50%); }
.ph-k { font: 700 max(5px, 1.2cqw) var(--s-lab); color: var(--s-acc); text-transform: uppercase; letter-spacing: 0.1em; }
.ph-n { font-size: 3.2cqw; font-weight: 800; letter-spacing: -0.04em; }
.ph-bars { display: flex; align-items: flex-end; gap: 0.8cqw; height: 9cqw; margin: 1cqw 0; }
.ph-bars i { flex: 1; height: var(--h); border-radius: 0.8cqw 0.8cqw 0.3cqw 0.3cqw; background: linear-gradient(180deg, #b7a4ff, #7d62f4); }
.ph-bars i:last-child { background: linear-gradient(180deg, #ffc0a6, var(--s-peach)); }
.ph-row { display: flex; align-items: center; gap: 1cqw; padding: 1cqw 0; border-top: 1px solid rgba(42, 33, 64, 0.08); }
.ph-row i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #e6ddfd; flex: none; }
.ph-row span { flex: 1; height: 0.9cqw; border-radius: 1cqw; background: #ece7f5; }
.ph-row em { font: normal 700 max(5px, 1.2cqw) var(--s-lab); color: var(--s-acc); }
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.4cqw 1.9cqw;
  border-radius: 2cqw;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fff;
  box-shadow: 0 2.4cqw 4.6cqw -1.4cqw rgba(82, 56, 160, 0.42);
  white-space: nowrap;
}
.float b { display: block; font-size: 1.9cqw; font-weight: 700; }
.float span { display: block; font: 500 max(5px, 1.3cqw) var(--s-lab); color: var(--s-mut); }
.float.f1 { left: -17cqw; top: 2cqw; transform: translateZ(7cqw); }
.float.f1 i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--s-peach); box-shadow: 0 0 0 0.7cqw rgba(255, 143, 107, 0.22); flex: none; }
.float.f2 { right: -9cqw; bottom: 7cqw; transform: translateZ(12cqw); flex-direction: column; align-items: flex-start; gap: 0.2cqw; }
.float.f2 b { font-size: 3.4cqw; font-weight: 800; color: var(--s-acc); letter-spacing: -0.04em; line-height: 1; }

/* 4 · kinetic type — synthwave: deep violet night, magenta + cyan neon, moving grid floor */
.sl-type {
  --s-bg: #12052a;
  --s-fg: #fcefff;
  --s-mut: #b79bd8;
  --s-acc: #3ae6ff;
  --s-mag: #ff36cf;
  --s-head: 'Unbounded', Arial, sans-serif;
  background:
    radial-gradient(70% 55% at 50% 112%, rgba(255, 54, 207, 0.55), transparent 70%),
    radial-gradient(50% 50% at 92% -5%, rgba(58, 230, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #0c0322, #1d0839);
}
.sl-type::before {
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 42%;
  background-image:
    linear-gradient(rgba(255, 54, 207, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 54, 207, 0.4) 1px, transparent 1px);
  background-size: 7cqw 3.2cqw;
  transform: perspective(40cqw) rotateX(52deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  animation: floor 1.6s linear infinite;
}
@keyframes floor { to { background-position: 0 3.2cqw; } }
.ty-bg { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; transform: rotate(-6deg) scale(1.15); }
.ty-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font: 800 9cqw/1 var(--s-head);
  letter-spacing: -0.02em;
  color: rgba(255, 54, 207, 0.1);
  animation: ty-scroll 26s linear infinite;
}
.ty-row.r2 { color: rgba(58, 230, 255, 0.1); animation-direction: reverse; animation-duration: 32s; }
@keyframes ty-scroll { to { transform: translateX(-50%); } }
.sl-type .kick, .ty-head, .ty-foot { position: relative; }
.sl-type .kick { text-shadow: 0 0 1.4cqw rgba(58, 230, 255, 0.7); }
.ty-head { margin-top: auto; }
.ty-a { display: block; font: 400 5cqw/1 var(--s-head); letter-spacing: -0.02em; }
.ty-b {
  display: block;
  font: 800 15.5cqw/0.95 var(--s-head);
  letter-spacing: -0.05em;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--s-mag) 0%, #ffb0ee 18%, var(--s-acc) 38%, var(--s-mag) 58%, #ffd84d 78%, var(--s-mag) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2cqw rgba(255, 54, 207, 0.55));
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.ty-foot { display: flex; align-items: center; gap: 1.6cqw; font: max(7px, 1.5cqw) var(--s-lab); letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-mut); margin-top: 1.4cqw; }
.ty-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--s-mag), transparent); box-shadow: 0 0 1cqw var(--s-mag); }

/* 5 · network map — Swiss: off-white, 12-column grid, black grotesk, signal red */
.sl-map {
  --s-bg: #f6f5f1;
  --s-fg: #111111;
  --s-mut: #686863;
  --s-acc: #e2231a;
  --s-hair: #dcdad3;
  --s-head: 'Archivo', Arial, sans-serif;
  --s-body: 'Archivo', Arial, sans-serif;
  --s-lab: 'Archivo', Arial, sans-serif;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(17, 17, 17, 0.05) calc(100% / 12 - 1px) calc(100% / 12)),
    #f6f5f1;
}
.sl-map::before { content: ''; position: absolute; left: 5.6cqw; top: 0; width: 7cqw; height: 1.4cqw; background: var(--s-acc); }
.sl-map .kick { color: var(--s-fg); font-weight: 700; letter-spacing: 0.06em; font-size: max(7px, 1.5cqw); }
.sl-map h3 { font-size: 5.2cqw; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; margin-top: 1.2cqw; }
.sl-map .legend { font-weight: 600; color: var(--s-fg); text-transform: uppercase; letter-spacing: 0.06em; font-size: max(6.5px, 1.3cqw); }
.sl-map .legend i { border-radius: 0; }
.sl-map .legend i.lg-hub { background: var(--s-acc); }
.sl-map .legend i.lg-edge { background: var(--s-fg); width: 1cqw; height: 1cqw; }
.map { position: absolute; right: 4cqw; bottom: 6.5cqw; width: 66cqw !important; }
.map .land path { fill: url(#gw-dots); }
.map .arcs path {
  stroke: var(--s-acc);
  stroke-width: 0.55;
  stroke-dasharray: 1.6 1.6;
  stroke-linecap: round;
  animation: flow 3s linear infinite;
}
.map .arcs path:nth-child(3n+2) { stroke: var(--s-fg); animation-duration: 4s; }
@keyframes flow { to { stroke-dashoffset: -12.8; } }
.map .edge circle { fill: var(--s-fg); }
.map .hub circle { fill: var(--s-acc); stroke: var(--s-bg); stroke-width: 0.6; }
.map .hub .ring { fill: none; stroke: var(--s-acc); stroke-width: 0.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.map .hub .ring.d2 { animation-delay: -0.9s; }
.map .hub .ring.d3 { animation-delay: -1.7s; }
.map-stats { position: absolute; left: 5.6cqw; bottom: 4.6cqw; display: grid; gap: 1.3cqw; }
.map-stats div { padding-left: 1.4cqw; border-left: 0.5cqw solid var(--s-fg); }
.map-stats .warm { border-color: var(--s-acc); }
.map-stats b { display: block; font-size: 3.4cqw; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.map-stats span { font: 500 max(6px, 1.3cqw) var(--s-lab); color: var(--s-mut); }

/* 6 · sankey — forest + earth: deep pine, sand type, sage and ochre flows */
.sl-flow {
  --s-bg: #13261c;
  --s-fg: #f0e6cf;
  --s-mut: #a4a88f;
  --s-acc: #e1ad4a;
  --s-head: 'Fraunces', Georgia, serif;
  --s-body: 'Archivo', Arial, sans-serif;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(225, 173, 74, 0.14), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(98, 150, 104, 0.28), transparent 65%),
    #13261c;
}
.sl-flow h3 { font-size: 5cqw; font-weight: 500; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144; }
.sl-flow h3 em { font-style: italic; font-weight: 400; color: var(--s-acc); }
.sl-flow .chip { background: var(--s-acc); border-color: var(--s-acc); color: #13261c; font-weight: 600; }
.flow { flex: 1; min-height: 0; margin-top: 2.2cqw; }
.flow .bands path { transition: opacity 0.3s; }
.gw:hover .flow .bands path { opacity: 0.55; }
.gw:hover .flow .bands path:hover { opacity: 1; }
.flow text { font-size: 8.5px; font-weight: 600; }
.flow text.v { font: 7px var(--s-lab); fill: var(--s-mut); }
.flow .lab-l text { text-anchor: end; }
.flow .lab-m text { text-anchor: middle; }
.flow tspan.v { font: 7px var(--s-lab); fill: var(--s-mut); }
.flow .lab-r text.w { fill: var(--s-acc); font-weight: 700; }
.flow .bands { animation: fade-up 1.4s ease-out both; }
@keyframes fade-up { from { opacity: 0; } }

/* 7 · roadmap — brutalist: safety yellow, black rules, hard offset shadows */
.sl-road {
  --s-bg: #ffe03a;
  --s-fg: #0b0b0b;
  --s-mut: #4a4318;
  --s-acc: #0b0b0b;
  --s-red: #ff3b1f;
  --s-head: 'Archivo', Arial, sans-serif;
  --s-body: 'Archivo', Arial, sans-serif;
  background: #ffe03a;
}
.sl-road::after { content: ''; position: absolute; inset: 0; border: 0.7cqw solid var(--s-fg); border-radius: inherit; pointer-events: none; }
.sl-road .kick { display: inline-block; background: var(--s-fg); color: var(--s-bg); font-weight: 600; letter-spacing: 0.1em; font-size: max(6.5px, 1.4cqw); padding: 0.5cqw 1.1cqw; }
.sl-road h3 { font-size: 5.6cqw; font-weight: 900; font-stretch: 72%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; margin-top: 1.4cqw; }
.sl-road .legend { color: var(--s-fg); font-weight: 500; }
.sl-road .legend i { border-radius: 0; border: 1.5px solid var(--s-fg); }
.sl-road .legend i.lg-done { background: var(--s-fg); }
.sl-road .legend i.lg-wip { background: #fff; }
.sl-road .legend i.lg-plan { border-style: dashed; }
.rm { position: relative; flex: 1; display: flex; flex-direction: column; margin-top: 2.4cqw; }
.rm-q { display: grid; grid-template-columns: repeat(4, 1fr); font: 700 max(7px, 1.6cqw) var(--s-lab); color: var(--s-fg); border-bottom: 2px solid var(--s-fg); padding-bottom: 0.9cqw; }
.rm-q span { padding-left: 0.6cqw; border-left: 2px solid var(--s-fg); }
.rm-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 1.5cqw 1.4cqw; padding: 1.6cqw 0.8cqw 0.8cqw 0; }
.rc {
  position: relative;
  grid-column: var(--c);
  grid-row: var(--r);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6cqw;
  padding: 1cqw 5cqw 1cqw 1.4cqw;
  background: #fff;
  border: 2px solid var(--s-fg);
  box-shadow: 0.7cqw 0.7cqw 0 var(--s-fg);
  z-index: 1;
}
.rc b { font-size: 2.1cqw; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc > span { font: max(6px, 1.35cqw) var(--s-lab); color: var(--s-mut); }
.rc em {
  position: absolute;
  right: 1.2cqw;
  top: 50%;
  transform: translateY(-50%);
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: normal 700 max(5px, 1.1cqw) var(--s-lab);
  color: var(--s-bg);
  background: var(--s-fg);
}
.rc.done { background: var(--s-fg); color: var(--s-bg); box-shadow: 0.7cqw 0.7cqw 0 rgba(11, 11, 11, 0.28); }
.rc.done > span { color: rgba(255, 224, 58, 0.72); }
.rc.done em { background: var(--s-bg); color: var(--s-fg); }
.rc.plan { background: transparent; border-style: dashed; box-shadow: none; }
.rc-p { display: block; height: 1.1cqw; border: 1.5px solid var(--s-fg); background: #fff; overflow: hidden; }
.rc-p i { display: block; height: 100%; width: var(--p); background: repeating-linear-gradient(-45deg, var(--s-fg) 0 max(2px, 0.45cqw), #4a4a4a max(2px, 0.45cqw) max(4px, 0.9cqw)); transform-origin: left; animation: grow 2s cubic-bezier(.15, .7, .2, 1) 0.3s both; }
.rm-today { position: absolute; left: 63%; top: 0; bottom: 0; border-left: 2px solid var(--s-red); z-index: 0; pointer-events: none; }
.rm-today span {
  position: absolute;
  z-index: 2;
  top: -0.8cqw;
  left: 0;
  transform: translateX(-50%);
  font: 700 max(6px, 1.3cqw) var(--s-lab);
  color: #fff;
  background: var(--s-red);
  border: 1.5px solid var(--s-fg);
  padding: 0.3cqw 1cqw;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 8 · aurora title — sunset: coral, tangerine and magenta light behind frosted glass */
.sl-aurora {
  --s-bg: #1e0a1d;
  --s-fg: #fff6ef;
  --s-mut: rgba(255, 246, 239, 0.78);
  --s-acc: #ffd6b8;
  --s-head: 'Fraunces', Georgia, serif;
  --s-body: 'Plus Jakarta Sans', Arial, sans-serif;
  background: linear-gradient(160deg, #2a0c24, #170818);
  justify-content: flex-end;
}
.au { position: absolute; inset: 0; overflow: hidden; }
.au i { position: absolute; border-radius: 50%; will-change: transform; }
.au .b1 { width: 80cqw; height: 80cqw; left: -12cqw; top: -34cqw; background: radial-gradient(closest-side, rgba(255, 92, 72, 0.95), transparent); animation: au1 16s ease-in-out infinite alternate; }
.au .b2 { width: 70cqw; height: 70cqw; right: -18cqw; top: -8cqw; background: radial-gradient(closest-side, rgba(255, 176, 58, 0.85), transparent); animation: au2 19s ease-in-out infinite alternate; }
.au .b3 { width: 56cqw; height: 56cqw; left: 34cqw; bottom: -30cqw; background: radial-gradient(closest-side, rgba(222, 48, 142, 0.85), transparent); animation: au3 14s ease-in-out infinite alternate; }
@keyframes au1 { to { transform: translate(18cqw, 10cqw) scale(1.15); } }
@keyframes au2 { to { transform: translate(-16cqw, 12cqw) scale(0.9); } }
@keyframes au3 { to { transform: translate(-22cqw, -8cqw) scale(1.2); } }
.au::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.glass {
  position: relative;
  width: 66%;
  padding: 3cqw 3.4cqw;
  border-radius: 2.4cqw;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(2.6cqw) saturate(160%);
  backdrop-filter: blur(2.6cqw) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3cqw 6cqw -2cqw rgba(40, 6, 30, 0.55);
}
.glass .kick { color: var(--s-acc); }
.glass h3 { font-size: 6.6cqw; font-weight: 300; letter-spacing: -0.02em; line-height: 0.98; margin-top: 1.4cqw; font-variation-settings: 'opsz' 144; }
.glass h3 em { font-style: italic; font-weight: 400; }
.g-meta { display: flex; gap: 1.2cqw; margin-top: 2.4cqw; font: 500 max(7px, 1.6cqw) var(--s-lab); color: var(--s-mut); }
.g-meta span + span::before { content: '·'; margin-right: 1.2cqw; color: #ffb45e; }
.au-mark { position: absolute; top: 4.4cqw; right: 5cqw; font: max(7px, 1.5cqw) var(--s-lab); color: rgba(255, 246, 239, 0.75); }

/* 9 · interactive bars — clean corporate: white, deep slate ink, one teal */
.sl-bars {
  --s-bg: #fbfcfc;
  --s-fg: #0f2b2e;
  --s-mut: #5d7376;
  --s-acc: #0a9483;
  --s-hair: #dbe5e4;
  --s-head: 'Plus Jakarta Sans', Arial, sans-serif;
  --s-body: 'Plus Jakarta Sans', Arial, sans-serif;
  --s-lab: 'Plus Jakarta Sans', Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff, #eff5f4);
}
.sl-bars::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 0.8cqw; background: linear-gradient(90deg, #0a9483, #35c2ab 60%, #a6e6da); }
.sl-bars .kick { font-weight: 700; letter-spacing: 0.1em; }
.sl-bars h3 { font-weight: 800; letter-spacing: -0.03em; }
.sw-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8cqw; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 1cqw; font: 700 max(7px, 1.6cqw) var(--s-lab); color: #98a9ab; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sw i { position: relative; width: 5.4cqw; height: 2.8cqw; border-radius: 2cqw; background: #e1e9e8; border: 1px solid #cddad9; transition: background 0.25s; }
.sw i::after { content: ''; position: absolute; top: 0.35cqw; left: 0.35cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 43, 46, 0.3); transition: transform 0.3s cubic-bezier(.3, 1.5, .5, 1); }
.sw:has(input:checked) i { background: var(--s-acc); border-color: var(--s-acc); }
.sw:has(input:checked) i::after { transform: translateX(2.6cqw); }
.sw:has(input:checked) .sw-b, .sw:has(input:not(:checked)) .sw-a { color: var(--s-fg); }
.sw:has(input:focus-visible) i { outline: 2px solid var(--s-acc); outline-offset: 2px; }
.try { font: italic 600 max(6px, 1.3cqw) var(--s-lab); color: #d8633a; }
.bw {
  position: relative;
  flex: 1;
  display: flex;
  gap: 2.6cqw;
  margin-top: 3cqw;
  padding: 0 1cqw 3.6cqw;
  background: repeating-linear-gradient(0deg, var(--s-hair) 0 1px, transparent 1px 25%);
  background-clip: content-box;
}
.bw::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3.6cqw; height: 1.5px; background: #9fb3b3; }
.bar { position: relative; flex: 1; cursor: default; }
.bar i {
  position: absolute;
  inset: auto 0 0;
  height: var(--a);
  border-radius: 0.8cqw 0.8cqw 0 0;
  background: #c6e2dd;
  transition: height 0.6s cubic-bezier(.3, 1.3, .5, 1), background 0.2s, filter 0.2s;
}
.bar.lead i { background: linear-gradient(180deg, #16b39f, #0a8676); }
.sl-bars:has(input:checked) .bar i { height: var(--b); }
.bar em { position: absolute; top: calc(100% + 1cqw); left: 50%; transform: translateX(-50%); font: normal 700 max(7px, 1.6cqw) var(--s-lab); color: var(--s-mut); white-space: nowrap; }
.bar .tip {
  position: absolute;
  left: 50%;
  bottom: calc(var(--a) + 1.2cqw);
  transform: translate(-50%, 0.8cqw);
  opacity: 0;
  padding: 0.5cqw 1cqw;
  border-radius: 0.8cqw;
  background: var(--s-fg);
  color: #fff;
  font: 700 max(7px, 1.6cqw) var(--s-lab);
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.25s, bottom 0.6s cubic-bezier(.3, 1.3, .5, 1);
  z-index: 1;
}
.sl-bars:has(input:checked) .bar .tip { bottom: calc(var(--b) + 1.2cqw); }
.tip .vb, .sl-bars:has(input:checked) .tip .va { display: none; }
.sl-bars:has(input:checked) .tip .vb { display: inline; }
.bar.lead .tip { opacity: 1; transform: translate(-50%, 0); background: var(--s-acc); color: #fff; }
.bar:hover i { background: #8fcdc2; }
.bar.lead:hover i { filter: brightness(1.12); }
.bar:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.bw:has(.bar:not(.lead):hover) .bar.lead .tip { opacity: 0.35; }

/* ---------- 03 · scroll-driven build ------------------------------------ */

.s-build { position: relative; border-top: 1px solid var(--line); }
.build-sticky { padding: 100px 0; }
.scrolly.s-build { height: 300vh; }
.scrolly .build-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.build-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.build-head h2 { margin: 0; max-width: 560px; }
.build-head p { font-size: 17px; }
.scroll-hint { display: none; color: var(--blue-soft); font: 12px var(--mono); margin-left: 4px; white-space: nowrap; }
.scrolly .scroll-hint { display: inline; }

.stage { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; }
.stage-left { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-width: 0; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.bubble {
  max-width: 88%;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 16px;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(.3, 1.5, .5, 1);
}
.bubble.me { align-self: flex-end; background: var(--blue); color: var(--navy); border-bottom-right-radius: 4px; min-height: 40px; }
.bubble.me .caret { background: var(--navy); width: 2px; margin-left: 2px; }
.bubble.bot { align-self: flex-start; background: #1a1b21; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.scrolly .bubble.bot:not(.in) { opacity: 0; transform: translateY(8px) scale(0.96); }
.agent-state { color: var(--muted); }
.agent-state.busy { color: var(--blue-soft); }
.agent-state.done { color: var(--blue); }
.code pre { overflow: hidden; height: 100%; min-height: 210px; font-size: 11.5px; white-space: pre; }
.code pre .caret { background: var(--blue); width: 6px; }

.stage-slide { display: flex; flex-direction: column; }
.live-slide {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  padding: 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(77, 159, 255, 0.2), transparent 60%),
    #0d0e12;
}
.live-slide .mk, .edit-slide .mk { font: 500 max(9px, 1.6cqw) var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 3cqw; }
.live-slide .mh, .edit-slide .mh { font-size: 7cqw; font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 3.5cqw; max-width: 80%; }
.live-slide .ml, .edit-slide .ml { color: var(--muted); font-size: max(11px, 2.6cqw); line-height: 1.8; }
.live-slide .ml::before, .edit-slide .ml::before { content: '↗'; margin-right: 1.6cqw; color: var(--accent); }
.live-sticker {
  position: absolute;
  top: 10%; right: 7%;
  font: 700 2.4cqw var(--mono);
  background: var(--neutral);
  color: var(--neutral-ink);
  padding: 1.2cqw 2cqw;
  border-radius: 1cqw;
  transform: rotate(9deg);
  box-shadow: 0.5cqw 0.5cqw 0 #000;
}
.scrolly #build-slide > [data-r] { transition: opacity 0.35s, transform 0.45s cubic-bezier(.3, 1.5, .5, 1); }
.scrolly #build-slide > [data-r]:not(.in) { opacity: 0; transform: translateY(10px); }
.scrolly #build-slide > .live-sticker:not(.in) { transform: rotate(40deg) scale(0.2); }
.build-progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 22px; overflow: hidden; display: none; }
.scrolly .build-progress { display: block; }
.build-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-soft)); }

/* ---------- 04 · a file you own ----------------------------------------- */

.s-file { padding: 130px 0; border-top: 1px solid var(--line); }
.file-grid { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 64px; align-items: center; }
.file-copy h2 { max-width: 520px; }
.file-more { margin-top: 16px; }
.file-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.file-facts li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.file-facts li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); transform: rotate(12deg); }
.file-facts b { color: var(--ink); font-weight: 600; }
.stamps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stamps span {
  font: 600 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral);
  border: 2.5px solid var(--neutral);
  border-radius: 8px;
  padding: 9px 13px;
  transform: rotate(var(--r));
}
.stamps span::before { content: '✕ '; }

.finder {
  position: relative;
  background: #111216;
  border: 1px solid #2a2c33;
  border-radius: 16px;
  box-shadow: 0 50px 100px -40px rgba(47, 127, 230, 0.35), 0 30px 60px -30px #000;
  min-width: 0;
}
.fd-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #16171c;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
}
.fd-dots { display: flex; gap: 7px; }
.fd-dots i { width: 11px; height: 11px; border-radius: 50%; background: #34353c; }
.fd-path { font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; }
.fd-nav { font: 14px var(--mono); color: var(--faint); margin-right: 8px; letter-spacing: 0.1em; }
.fd-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #30323a;
  border-radius: 999px;
  background: var(--surface);
  font: 500 12px var(--mono);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s cubic-bezier(.3, 1.6, .5, 1);
}
.fd-toggle:hover { border-color: var(--blue); transform: rotate(-1.5deg); }
.fd-toggle kbd { font-size: 11px; padding: 2px 6px; border-bottom-width: 2px; }
.fd-eye { width: 14px; height: 9px; border: 1.5px solid currentColor; border-radius: 50% / 60%; position: relative; }
.fd-eye::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.fd-toggle[aria-pressed=true] { background: var(--blue); color: var(--navy); border-color: var(--blue); }
.fd-toggle[aria-pressed=true] kbd { background: rgba(6, 16, 31, 0.15); border-color: rgba(6, 16, 31, 0.4); color: var(--navy); }

.fd-body { display: grid; grid-template-columns: 138px 1fr; min-height: 280px; }
.fd-side { list-style: none; margin: 0; padding: 16px 10px; border-right: 1px solid var(--line); background: #0f1013; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.fd-side li { padding: 6px 10px; border-radius: 7px; }
.fd-side li:first-child { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding-bottom: 8px; }
.fd-side li.on { background: rgba(77, 159, 255, 0.14); color: var(--blue-soft); }
.fd-main { padding: 30px 26px 22px; min-width: 0; }

.fd-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.fi { position: relative; container-type: inline-size; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.fi > b { margin-top: 10px; font: 500 12.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.fi-note { font-size: 12px; color: var(--muted); line-height: 1.3; }
.fi-icon-box, .thumb, .doc, .folder { transition: transform 0.3s cubic-bezier(.3, 1.5, .5, 1); }
.fi:hover .thumb, .fi:hover .doc { transform: translateY(-4px) rotate(-2deg); }

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid #2b3446;
  overflow: hidden;
  padding: 10cqw 9cqw;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  box-shadow: 0 12px 24px -12px #000, 0 0 0 4px rgba(77, 159, 255, 0);
}
.t-pitch { background: radial-gradient(80% 90% at 100% 0%, rgba(77, 159, 255, 0.5), transparent 65%), #0b1322; }
.t-q3 { background: radial-gradient(80% 90% at 0% 100%, rgba(47, 127, 230, 0.4), transparent 65%), #0d0f14; }
.t-k { width: 26cqw; height: 3.4cqw; border-radius: 2cqw; background: var(--blue); }
.t-h { font-size: 14cqw; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); text-align: left; }
.t-l { width: 70%; height: 3.4cqw; border-radius: 2cqw; background: #2a3a55; }
.t-l.s { width: 48%; }
.t-bars { flex: 1; display: flex; align-items: flex-end; gap: 5cqw; }
.t-bars i { flex: 1; height: var(--h); border-radius: 2cqw 2cqw 0 0; background: #2f4a73; }
.t-bars i:last-child { background: var(--blue); }
.t-badge { position: absolute; right: 6cqw; top: 6cqw; font: 600 8cqw var(--mono); padding: 1cqw 3.6cqw; border-radius: 3cqw; background: rgba(77, 159, 255, 0.18); color: var(--blue-soft); text-transform: uppercase; }
.fi-sticker {
  position: absolute;
  top: -12px;
  right: -8px;
  font: normal 600 10.5px var(--mono);
  background: var(--neutral);
  color: var(--neutral-ink);
  padding: 5px 8px;
  border-radius: 6px;
  transform: rotate(6deg);
  box-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  z-index: 1;
}

.doc {
  position: relative;
  width: 52%;
  aspect-ratio: 3 / 4;
  margin-top: 2%;
  border-radius: 5px;
  background: linear-gradient(180deg, #202127, #18191e);
  border: 1px solid #2e3038;
  clip-path: polygon(0 0, 72% 0, 100% 21%, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  gap: 8%;
  padding: 34% 14% 0;
}
.doc::before { content: ''; position: absolute; right: 0; top: 0; width: 28%; height: 21%; background: #34363f; border-bottom-left-radius: 4px; }
.doc-l { height: 2.6cqw; border-radius: 2cqw; background: #34363f; }
.doc-l.s { width: 60%; }
.doc-tag { position: absolute; left: 12%; bottom: 10%; font: 700 7cqw var(--mono); color: #b6b5ae; letter-spacing: 0.04em; }

.folder {
  position: relative;
  width: 70%;
  aspect-ratio: 5 / 4;
  margin-top: 4%;
}
.folder::before, .folder::after { content: ''; position: absolute; border-radius: 6px; }
.folder::before { left: 0; top: 0; width: 44%; height: 30%; background: #3a4150; border-radius: 6px 6px 0 0; }
.folder::after { left: 0; right: 0; top: 14%; bottom: 0; background: linear-gradient(180deg, #4b5566, #394253); }

.fi-hidden { opacity: 0; transform: scale(0.85) translateY(8px); visibility: hidden; transition: opacity 0.45s, transform 0.5s cubic-bezier(.3, 1.5, .5, 1), visibility 0s 0.5s; }
.fi-hidden > b, .fi-hidden .fi-note { color: var(--muted); }
.show-hidden .fi-hidden { opacity: 0.5; transform: none; visibility: visible; transition: opacity 0.45s, transform 0.5s cubic-bezier(.3, 1.5, .5, 1); }
.show-hidden .fi-hidden:hover { opacity: 0.8; }

.fd-tree { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s cubic-bezier(.2, .8, .2, 1); }
.show-hidden .fd-tree { grid-template-rows: 1fr; }
.fd-tree-in { overflow: hidden; min-height: 0; }
.tree-h { margin: 24px 0 12px; padding-top: 18px; border-top: 1px dashed #30323a; font: 500 12px var(--mono); color: var(--muted); }
.tree-h code { font-size: 12px; background: none; border: 0; padding: 0; color: var(--blue-soft); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin: 6px 0 2px 7px; padding-left: 18px; border-left: 1px dashed #34363e; }
.tree li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: baseline; column-gap: 14px; padding: 5px 0; }
.tree li > ul { grid-column: 1 / -1; }
.tree ul li { position: relative; }
.tree ul li::before { content: ''; position: absolute; left: -18px; top: 50%; width: 12px; border-top: 1px dashed #34363e; }
.tr-n { font: 500 12.5px var(--mono); color: #b9b8b1; }
.tr-dir > .tr-n { color: var(--blue-soft); }
.tr-d { font-size: 13.5px; color: var(--muted); }
.tr-tag { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 5px; background: rgba(77, 159, 255, 0.14); color: var(--blue-soft); }
.tr-tag.app { background: #1d1e23; color: var(--muted); }
.show-hidden .tree li { animation: row-in 0.45s both; }
.show-hidden .tree > li:nth-child(1) { animation-delay: 0.12s; }
.show-hidden .tree > li:nth-child(2) { animation-delay: 0.2s; }
.show-hidden .tree ul li:nth-child(1) { animation-delay: 0.28s; }
.show-hidden .tree ul li:nth-child(2) { animation-delay: 0.34s; }
.show-hidden .tree ul li:nth-child(3) { animation-delay: 0.4s; }
.show-hidden .tree > li:nth-child(3) { animation-delay: 0.46s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } }

.fd-status { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--muted); background: #0f1013; border-radius: 0 0 16px 16px; }
.fd-hint { color: var(--neutral); text-align: right; }

/* ---------- 05 · direct edits ------------------------------------------- */

.s-direct { padding: 130px 0; background: #0d0e11; border-top: 1px solid var(--line); }
.direct-head { max-width: 760px; margin-bottom: 50px; }
.direct-head strong { color: var(--ink); font-weight: 600; }
.direct-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
.edit-pane { box-shadow: 0 0 0 0 var(--blue); transition: box-shadow 0.3s; }
.edit-pane:focus-within { box-shadow: 0 0 0 3px var(--blue), 0 30px 70px -30px rgba(77, 159, 255, 0.5); }
.edit-slide {
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  padding: 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(77, 159, 255, 0.2), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(47, 127, 230, 0.12), transparent 60%),
    #0b0b0e;
  cursor: text;
  outline: none;
  caret-color: var(--neutral);
}
.edit-slide:focus-visible { outline: none; }
.edit-slide > div { border-radius: 6px; transition: background 0.2s; }
.edit-slide > div:hover { background: rgba(77, 159, 255, 0.07); }
.edit-slide:focus > div.is-caret { background: rgba(77, 159, 255, 0.12); }
.direct-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keys li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s cubic-bezier(.3, 1.6, .5, 1);
}
.keys li span { margin-left: 6px; }
.keys li.hit { background: var(--blue); color: var(--navy); transform: scale(1.03) rotate(-1deg); }
.keys li.hit kbd { border-color: var(--navy); background: rgba(255, 255, 255, 0.35); color: var(--navy); }
kbd {
  font: 600 12px var(--mono);
  border: 1px solid #3a3a40;
  border-bottom-width: 3px;
  background: #18181c;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--ink);
}
.src-pane pre { font-size: 11px; line-height: 1.7; min-height: 150px; max-height: 240px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reset-slide {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  font: 12px var(--mono);
  color: var(--muted);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}
.reset-slide:hover { color: var(--blue-soft); }

/* ---------- 06 · cta ----------------------------------------------------- */

.s-cta { padding: 110px 0 60px; }
.cta-card {
  position: relative;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(156, 199, 255, 0.55), transparent 60%),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--navy);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(47, 127, 230, 0.7);
}
.cta-card .pbar { border-color: rgba(6, 16, 31, 0.2); color: rgba(6, 16, 31, 0.7); padding: 16px 24px; }
.cta-card .pbar > span:first-child::before { background: var(--navy); }
.cta-in { position: relative; z-index: 1; padding: 80px 64px 88px; }
.cta-in h2 { font-size: clamp(42px, 6vw, 84px); max-width: 720px; letter-spacing: -0.055em; }
.cta-in p { color: rgba(6, 16, 31, 0.75); font-size: 19px; margin-bottom: 36px; }
.cta-card .button { background: var(--navy); color: var(--ink); }
.cta-card .button:hover { background: var(--neutral); color: var(--neutral-ink); }
.cta-confetti i {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 5px;
  animation: floaty 6s ease-in-out infinite;
}
.cta-confetti i:nth-child(1) { right: 8%; top: 22%; background: var(--neutral); }
.cta-confetti i:nth-child(2) { right: 18%; top: 56%; background: var(--navy); width: 34px; height: 34px; animation-delay: -1s; }
.cta-confetti i:nth-child(3) { right: 5%; top: 70%; background: var(--ink); width: 14px; height: 14px; animation-delay: -2s; }
.cta-confetti i:nth-child(4) { right: 28%; top: 28%; background: var(--blue-soft); width: 12px; height: 12px; animation-delay: -3s; }
.cta-confetti i:nth-child(5) { right: 13%; top: 40%; background: var(--navy); width: 18px; height: 18px; border-radius: 50%; animation-delay: -4s; }
.cta-confetti i:nth-child(6) { right: 24%; top: 78%; background: var(--neutral); width: 16px; height: 16px; border-radius: 50%; animation-delay: -5s; }
.cta-confetti i:nth-child(7) { right: 34%; top: 60%; background: var(--ink); width: 10px; height: 10px; animation-delay: -2.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(35deg); }
}

/* ---------- footer, egg, toast, burst ----------------------------------- */

footer { padding: 40px 0 56px; font-size: 14px; }
.foot-link { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-link:hover { color: var(--blue-soft); }
.foot-link + .foot-link { padding-top: 28px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; }
.egg-link {
  background: none;
  border: 0;
  padding: 4px 0;
  font: 11px var(--mono);
  color: var(--faint);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.egg-link:hover { color: var(--neutral); }

.egg {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.egg[hidden] { display: none; }
.egg-card {
  width: min(460px, 100%);
  background: var(--surface-2);
  border: 1px solid #2b3445;
  color: var(--ink);
  border-radius: 24px;
  padding: 36px 32px 34px;
  text-align: center;
  box-shadow: 10px 10px 0 var(--blue-deep);
  animation: pop 0.45s cubic-bezier(.3, 1.6, .5, 1);
}
.egg-code {
  font-size: 110px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  text-shadow: 4px 0 0 var(--blue-deep), -4px 0 0 var(--neutral);
}
.egg-code span { display: inline-block; color: var(--blue); animation: spin 2.4s linear infinite; }
.egg-card h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 10px; }
.egg-card p { font-size: 16px; margin-bottom: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.7) rotate(-4deg); opacity: 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  background: var(--neutral);
  color: var(--neutral-ink);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #000, 0 20px 40px -10px #000;
  transition: transform 0.45s cubic-bezier(.3, 1.5, .5, 1), visibility 0s 0.45s;
  pointer-events: none;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.45s cubic-bezier(.3, 1.5, .5, 1); }
.burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 75; }

/* ---------- responsive --------------------------------------------------- */

@media (min-width: 1800px) { .hero h1 { font-size: 110px; } }

@media (max-width: 1100px) {
  .file-grid { grid-template-columns: 1fr; gap: 50px; }
  .file-copy { max-width: 640px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-top: 72px; }
  pre { font-size: 10.5px; padding: 18px; }
  .build-head { grid-template-columns: 1fr; gap: 16px; }
  .build-head p { max-width: 640px; }
  .direct-grid { grid-template-columns: 1fr; }
  .direct-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .reset-slide { grid-column: 1 / -1; }
  .cta-in { padding: 60px 40px 70px; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .top > .wrap { height: 76px; gap: 12px; }
  .doc-open { display: none; }
  .wordmark { font-size: 25px; }
  .top nav { font-size: 12px; gap: 14px; }
  .nav-cta { padding: 10px 13px; }
  h2 { font-size: 36px; }
  p { font-size: 16px; }

  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: clamp(27px, 7.1vw, 50px); letter-spacing: -0.055em; }
  .sub { font-size: 16px; }
  .pixel-experiment { margin: 0 0 18px; padding: 16px 0 54px; }
  .pixel-hint { font-size: 10px; bottom: 18px; }
  .hero-video { margin-top: 40px; padding: 5px; border-radius: 14px; }
  .hero-video video { border-radius: 9px; }
  .chrome { font-size: 9px; padding-bottom: 11px; }
  .sticker--video { font-size: 9px; padding: 6px 9px; right: 64px; top: -14px; }

  .s-format { padding: 80px 0 70px; }
  .s-format::before { background-size: 36px 36px; }
  .format-head { margin-bottom: 36px; }
  .format-head h2 { font-size: 46px; }
  .format-head p { font-size: 16px; }
  .compare { border-radius: 14px; box-shadow: 6px 6px 0 var(--blue-dim), 0 30px 60px -30px rgba(47, 127, 230, 0.45); }
  .cmp-tag { top: 8px; font-size: 8.5px; padding: 4px 7px; }
  .tag-x { display: none; }
  .cmp-tag--l { left: 8px; }
  .cmp-tag--r { right: 8px; }
  .cmp-handle span { width: 40px; height: 40px; }
  .cmp-handle span::before, .cmp-handle span::after { border-width: 5px; }
  .cmp-handle span::before { left: 4px; }
  .cmp-handle span::after { right: 4px; }
  .nerd-code { grid-template-columns: 1fr; }
  .nerd-code pre { min-height: 0; }

  .s-gallery { padding: 80px 0 60px; }
  .gallery-head { margin-bottom: 18px; }
  .gw { --w: 320px; gap: 10px; }
  .gw figcaption { font-size: 11px; }
  .gs { border-radius: 10px; }
  .gs .legend { gap: 1.6cqw; }
  .tile .tl { letter-spacing: 0.04em; }
  .set { gap: 18px; padding-right: 18px; }
  .marquee { padding-block: 20px 14px; }

  .build-sticky { padding: 70px 0; }
  .scrolly.s-build { height: 250vh; }
  .scrolly .build-sticky { position: static; display: block; min-height: 0; height: 100%; padding: 70px 0 30px; }
  .scrolly .build-sticky > .wrap { height: 100%; }
  .build-head { margin-bottom: 26px; }
  .build-head p { font-size: 15px; }
  .scrolly .stage-wrap { position: sticky; top: 12px; }
  .stage { grid-template-columns: 1fr; gap: 10px; }
  .stage-left { gap: 10px; }
  .chat-body { min-height: 128px; padding: 12px; gap: 8px; }
  .bubble { font-size: 12.5px; padding: 8px 11px; }
  .code pre { min-height: 118px; height: 118px; font-size: 9.5px; line-height: 1.7; padding: 12px 14px; }
  .pbar { padding: 10px 13px; font-size: 10px; }
  .build-progress { margin-top: 10px; }

  .s-file { padding: 80px 0; }
  .file-grid { gap: 40px; }
  .file-facts li { font-size: 15px; }
  .stamps span { font-size: 11px; padding: 7px 10px; }
  .fd-bar { flex-wrap: wrap; gap: 10px 12px; padding: 11px 12px; }
  .fd-toggle { margin-left: 0; order: 3; width: 100%; justify-content: center; padding: 9px 12px; }
  .fd-toggle kbd { display: none; }
  .doc { width: 44%; }
  .fd-body { grid-template-columns: 1fr; min-height: 0; }
  .fd-side { display: none; }
  .fd-main { padding: 22px 14px 16px; }
  .fd-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .fi-sticker { right: -4px; }
  .tree li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .tree li > .tr-d { grid-column: 1 / 2; grid-row: 2; font-size: 13px; }
  .tree li > .tr-tag { grid-column: 2; grid-row: 1; }
  .tree ul { padding-left: 14px; }
  .tree ul li::before { left: -14px; width: 9px; top: 12px; }
  .fd-status { flex-direction: column; gap: 2px; }
  .fd-hint { text-align: left; }

  .s-direct { padding: 80px 0; }
  .direct-head { margin-bottom: 30px; }
  .direct-side { display: flex; align-items: stretch; }

  .s-cta { padding: 70px 0 40px; }
  .cta-card { border-radius: 20px; }
  .cta-in { padding: 44px 24px 52px; }
  .cta-in h2 { font-size: 42px; }
  .cta-in p { font-size: 16px; }
  .cta-confetti i:nth-child(n+4) { display: none; }
  .cta-card .pbar { padding: 14px 18px; }

  footer { padding: 30px 0 40px; }
  .egg-code { font-size: 84px; }
  .toast { font-size: 14px; bottom: 18px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gw { transform: none; }
}
