:root {
  --bg: #f5f5f7; --surface: #ffffff; --ink: #1d1d1f; --muted: #6e6e73;
  --accent: #1f9d55; --accent-ink: #ffffff; --line: rgba(29, 29, 31, .1);
  --fresh: #1f9d55; --warn: #e8a317; --bad: #d93a2b;
  --font-display: "Sora", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: min(1240px, 100% - 2 * clamp(20px, 5vw, 64px));
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; backdrop-filter: blur(14px) saturate(1.2); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 500 16px var(--font-display); letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
.mark__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fresh); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fresh) 22%, transparent), 0 0 14px var(--fresh); }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .25s var(--ease), background .25s var(--ease); }
.nav__links a:hover { color: var(--ink); background: rgba(29, 29, 31, .05); }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 16px var(--font-text); text-decoration: none; transition: transform .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: #1a8a4a; }
.btn--ghost { border: 1px solid rgba(29, 29, 31, .25); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- explode scene */
.explode { position: relative; height: 620vh; }
.explode__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.explode__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 56% at 68% 50%, #ffffff, transparent 72%);
}
.explode canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.explode.is-ready canvas { opacity: 1; }
.explode__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.explode__lines path { fill: none; stroke: rgba(29, 29, 31, .35); stroke-width: 1; }
.explode__lines circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.explode__labels { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0;
  font: 400 12.5px/1 var(--font-mono); letter-spacing: .01em; color: var(--ink);
  padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  backdrop-filter: blur(6px);
}

.explode__copy { position: absolute; inset: 0; display: grid; align-items: center; pointer-events: none; }
.explode__step { grid-area: 1 / 1; max-width: 500px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.explode__step.is-on { pointer-events: auto; }
.explode__step:first-child { opacity: 1; }
.explode__step h1 { font-size: clamp(42px, 5.2vw, 76px); }
.explode__step h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 20px; }
.lede, .explode__step p:not(.eyebrow) { font-size: 18px; color: var(--muted); max-width: 44ch; }
.explode__step h1 + .lede { margin-top: 24px; }
.facts { display: flex; gap: 28px; list-style: none; padding: 0; margin: 30px 0 0; font: 400 13px/1.3 var(--font-mono); color: var(--muted); }
.facts b { display: block; font: 400 28px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; }

.explode__ticks { position: absolute; right: clamp(20px, 3vw, 40px); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.explode__ticks li { width: 6px; height: 6px; border-radius: 50%; background: rgba(29, 29, 31, .18); transition: background .3s, transform .3s var(--ease); }
.explode[data-stop="0"] .explode__ticks li:nth-child(1), .explode[data-stop="1"] .explode__ticks li:nth-child(2),
.explode[data-stop="2"] .explode__ticks li:nth-child(3), .explode[data-stop="3"] .explode__ticks li:nth-child(4),
.explode[data-stop="4"] .explode__ticks li:nth-child(5) { background: var(--accent); transform: scale(1.6); }

/* hero entrance */
[data-enter] > * { animation: enter 1s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

/* phones: model in the top part, words at the foot */
@media (max-width: 759px) {
  .nav__links li:not(:last-child) { display: none; }
  .explode { height: 560vh; }
  .explode__copy { align-items: end; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .explode__copy::before { content: ""; position: absolute; inset: auto 0 0; height: 58%; background: linear-gradient(transparent, var(--bg) 42%); }
  .explode__step { position: relative; }
  .explode__step h1 { font-size: 36px; }
  .explode__step h2 { font-size: 28px; margin-bottom: 12px; }
  .lede, .explode__step p:not(.eyebrow) { font-size: 16px; }
  .facts { gap: 20px; margin-top: 18px; }
  .facts b { font-size: 22px; }
  .actions { margin-top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .explode__glow { background: radial-gradient(70% 40% at 50% 30%, #ffffff, transparent 70%); }
  .explode__ticks { top: 92px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-enter] > * { animation: none; }
  .explode { height: auto; }
  .explode__stage { position: relative; height: 100svh; }
}

/* ---------------------------------------------------------------- next */
.next { min-height: 100vh; display: grid; align-items: center; border-top: 1px solid var(--line); }
.next h2 { font-size: clamp(32px, 3.6vw, 52px); max-width: 18ch; margin-bottom: 20px; }
.next p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }

.explode__copy .eyebrow { color: var(--accent); }
.mark__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fresh) 18%, transparent); }
.explode.is-fallback .explode__stage::after { content: "Frames not rendered yet: run render-frames.bat"; position: absolute; right: 5vw; bottom: 5vh; font: 12px var(--font-mono); color: var(--muted); }

/* ================================================================ sections */
.sec { padding: clamp(96px, 12vw, 160px) 0; }
.sec h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 17ch; }
.sec__lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 56ch; margin-top: 22px; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 60ch; }
.sec--results, .sec--decide, .sec--progress, .sec--team { background: var(--surface); }

/* rig turntable */
.turn { position: relative; margin-top: clamp(24px, 4vw, 48px); height: min(68vh, 56.25vw); min-height: 320px; cursor: grab; touch-action: pan-y; user-select: none; }
.turn.is-drag { cursor: grabbing; }
.turn__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.turn.is-ready .turn__canvas { opacity: 1; }
.turn__pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.turn__pins g { transition: opacity .25s var(--ease); }
.turn__pins circle { fill: var(--ink); }
.turn__pins text { fill: #fff; font: 600 11px var(--font-text); text-anchor: middle; dominant-baseline: central; }
.turn__pins g.is-hot circle { fill: var(--accent); }
.turn__hint { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font: 13px var(--font-mono); color: var(--muted); display: flex; gap: 8px; align-items: center; transition: opacity .4s; }
.turn.is-used .turn__hint { opacity: 0; }
.turn__hand { width: 22px; height: 2px; background: var(--muted); border-radius: 2px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.turn__ctrl { position: absolute; right: clamp(20px, 5vw, 64px); bottom: 8px; display: flex; gap: 8px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; transition: transform .3s var(--ease), border-color .2s; }
.iconbtn:hover { transform: translateY(-2px); border-color: rgba(29, 29, 31, .3); }
.iconbtn:active { transform: scale(.96); }
.legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 28px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); cursor: default; transition: color .2s; }
.legend li:hover, .legend li.is-hot { color: var(--ink); }
.legend b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11px/22px var(--font-text); text-align: center; transition: background .2s; }
.legend li:hover b, .legend li.is-hot b { background: var(--accent); }
.legend strong { display: block; color: var(--ink); font-weight: 600; }
.specs { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.specs div { border-top: 1px solid var(--ink); padding-top: 14px; }
.specs dt { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.specs dd { margin: 8px 0 0; font-size: 16px; }

/* results */
.flag { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 14px; border-radius: 999px; background: #fff7e6; color: #7a4b00; font-size: 14px; border: 1px solid #f3dfb4; }
.flag.is-real { background: #e8f6ee; color: #0f6b39; border-color: #bfe6cf; }
.flag__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.charts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chart { margin: 0; background: var(--bg); border-radius: 18px; padding: 20px 20px 12px; }
.chart--wide { grid-column: 1 / -1; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.chart figcaption b { color: var(--ink); font-weight: 600; font-size: 15px; }
.chart svg { display: block; width: 100%; height: 170px; margin-top: 8px; overflow: visible; }
.chart--wide svg { height: 260px; }
.chart .grid line { stroke: rgba(29, 29, 31, .08); }
.chart .axis text { fill: var(--muted); font: 11px var(--font-mono); }
.chart path.l { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart path.area { stroke: none; }
.k { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 10px; }
.k--food { background: #2f7cf6; } .k--ctrl { background: #9aa3ad; }
.chart .band { opacity: .08; }

/* why */
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat b { display: block; font: 400 clamp(52px, 6vw, 84px)/1 var(--font-display); letter-spacing: -0.04em; }
.stat:first-child b::after, .stat:last-child b::after { content: "%"; font-size: .5em; letter-spacing: 0; margin-left: 2px; color: var(--muted); }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 26ch; }
.sec--why .sec__lede { margin-top: 56px; color: var(--ink); }
.sources { margin-top: 28px; font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); text-underline-offset: 3px; }
.sources a:hover { color: var(--ink); }

/* how it decides */
.decide { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.decide__copy p:not(.eyebrow):not(.note):not(.formula) { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 48ch; }
.slider { margin-top: 26px; max-width: 460px; }
.slider label { display: flex; justify-content: space-between; font-weight: 500; }
.slider output { font: 500 14px var(--font-mono); color: var(--muted); }
.slider input { width: 100%; margin-top: 10px; accent-color: var(--ink); height: 28px; }
.formula { margin-top: 26px; font: 13px/2.2 var(--font-mono); color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 500 12px var(--font-text); margin-right: 4px; white-space: nowrap; }
.pill--fresh { background: #e3f5ea; color: #13703d; } .pill--warn { background: #fff1d6; color: #8a5a00; } .pill--bad { background: #fde4e1; color: #a2261b; }
.decide__puck { display: grid; place-items: center; gap: 28px; padding: 40px 0; }
.puck { --c: var(--fresh); position: relative; width: min(340px, 70vw); aspect-ratio: 1.6; }
.puck[data-state="warn"] { --c: var(--warn); } .puck[data-state="bad"] { --c: var(--bad); }
.puck__top { position: absolute; inset: 0 0 52% 0; border-radius: 50%; background: radial-gradient(60% 70% at 40% 35%, #fff, #e9e7e2 70%, #d9d6cf); box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .06); z-index: 2; }
.puck__top::after { content: ""; position: absolute; inset: 22% 24%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .06); }
.puck__body { position: absolute; inset: 24% 0 0 0; border-radius: 0 0 50% 50% / 0 0 46% 46%; background: linear-gradient(90deg, #d7d4cd, #f6f4f0 40%, #e4e1db 70%, #cfccc4); }
.puck__ring { position: absolute; left: 0; right: 0; top: 46%; height: 10%; background: var(--c); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 0 18px var(--c), 0 0 46px color-mix(in srgb, var(--c) 55%, transparent); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.puck__glow { position: absolute; inset: 60% -10% -40%; background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); filter: blur(8px); z-index: -1; transition: background .5s; }
.decide__verdict { display: flex; align-items: baseline; gap: 14px; }
.decide__verdict b { font: 400 56px/1 var(--font-display); letter-spacing: -0.04em; }
.decide__verdict span { font-size: 20px; color: var(--muted); }

/* app replica */
.app { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.app__copy p:not(.eyebrow):not(.note) { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 50ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.phone { width: 340px; height: 690px; border-radius: 54px; padding: 12px; background: #111; box-shadow: 0 0 0 2px #2a2a2c, 0 40px 80px rgba(0, 0, 0, .18), inset 0 0 0 1px #3a3a3c; }
.phone__screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #0a0e13; }
.fa { color: #e8edf2; font: 13px/1.4 var(--font-text); padding: 46px 16px 20px; height: 100%; overflow: hidden; }
.fa__head { display: flex; justify-content: space-between; align-items: center; }
.fa__head b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.fa__head span { color: #8a96a3; font-size: 12px; }
.fa__pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #1a222c; color: #e8edf2 !important; font-weight: 600; }
.fa__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(61, 220, 151, .15); } }
.fa__card { background: #121820; border: 1px solid #232d39; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.fa__t { color: #8a96a3; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fa__gauge { position: relative; display: grid; justify-items: center; }
.fa__gauge svg { width: 170px; height: 98px; }
.fa__track { fill: none; stroke: #232d39; stroke-width: 9; stroke-linecap: round; }
.fa__arc { fill: none; stroke: #3ddc97; stroke-width: 9; stroke-linecap: round; transition: stroke .4s; }
.fa__gauge b { position: absolute; top: 38px; font-size: 26px; font-weight: 700; }
.fa__gauge span { margin-top: -4px; color: #8a96a3; font-size: 12px; }
.fa__cmp { width: 100%; height: 60px; margin-top: 6px; }
.fa__cmp polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.fa__cmp [data-line="food"] { stroke: #5aa9ff; } .fa__cmp [data-line="control"] { stroke: #7c8a99; }
.fa__sec { margin-top: 14px; color: #8a96a3; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fa__tiles { display: grid; gap: 8px; margin-top: 8px; }
.fa__tile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; background: #121820; border: 1px solid #232d39; border-radius: 14px; padding: 9px 12px; }
.fa__tile b { font-size: 13px; } .fa__tile small { color: #8a96a3; font-size: 11px; }
.fa__tile .v { font: 600 15px var(--font-mono); }
.fa__tile.is-off .v { color: #55616e; }
.fa__sw { width: 38px; height: 22px; border-radius: 999px; background: #232d39; border: 0; position: relative; cursor: pointer; grid-row: 1 / 3; grid-column: 2; }
.fa__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8a96a3; transition: transform .25s var(--ease), background .25s; }
.fa__sw[aria-checked="true"] { background: rgba(61, 220, 151, .25); }
.fa__sw[aria-checked="true"]::after { transform: translateX(16px); background: #3ddc97; }
.fa__tile .meta { display: flex; gap: 8px; align-items: baseline; }
.fa__state { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #3ddc97; }
.fa__state.warming { color: #ffb547; } .fa__state.off { color: #55616e; }

/* decisions */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 28px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .06); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; }
.card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* timeline */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.timeline li { position: relative; padding: 30px 22px 0 0; border-top: 2px solid var(--line); }
.timeline li.is-done { border-top-color: var(--ink); }
.timeline li.is-now { border-top-color: var(--accent); }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.timeline li.is-done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline li:nth-child(n + 6) { margin-top: 44px; }
.tl__tag { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.is-now .tl__tag { color: var(--accent); }
.timeline h3 { font-size: 18px; margin-top: 8px; letter-spacing: -0.015em; line-height: 1.2; }
.timeline p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* parts */
.parts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.total { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 28px; border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.total:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .06); }
.total span { font-size: 17px; color: var(--muted); grid-column: 1 / -1; }
.total b { font: 400 clamp(44px, 5vw, 64px)/1.1 var(--font-display); letter-spacing: -0.04em; margin-top: 10px; }
.total em { font-style: normal; color: var(--accent); font-weight: 500; }
.total em::after { content: " \2192"; }
.files { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.files a { display: block; padding: 18px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.files b { display: block; font-weight: 600; }
.files b::after { content: " \2193"; color: var(--accent); }
.files span { color: var(--muted); font-size: 14px; }
.files a:hover b { color: var(--accent); }

/* team */
.team { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.team li { aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(160deg, #eceef0, #e2e4e7); display: flex; align-items: flex-end; padding: 18px; }
.team b { font: 400 22px var(--font-display); letter-spacing: -0.02em; }

.foot { padding: 40px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot .mark__dot { display: inline-block; width: 8px; height: 8px; vertical-align: middle; margin-right: 6px; }

@media (max-width: 1023px) {
  .legend, .specs, .stats, .cards, .files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li:nth-child(n + 3) { margin-top: 36px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr 1fr; }
  .decide, .app { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
}
@media (max-width: 759px) {
  .legend, .specs, .stats, .cards, .files, .parts, .charts, .timeline { grid-template-columns: 1fr; }
  .timeline li { margin-top: 28px !important; }
  .team { grid-template-columns: 1fr 1fr; }
  .phone { width: 300px; height: 610px; }
}
.team li { position: relative; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.team__i { font: 400 64px/1 var(--font-display); color: rgba(29, 29, 31, .12); letter-spacing: -0.04em; }

/* ================================================================ dark studio (docs/design-dark-studio.md)
   one light for everything: a warm key from the upper left, so glows and highlights sit on that side */
:root {
  --bg: #0a0a0b; --surface: #141416; --surface-2: #1c1c1f; --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --accent: #34d17a; --accent-ink: #0a0a0b; --line: rgba(255, 255, 255, .08);
  --fresh: #34d17a; --warn: #ffb547; --bad: #ff5c5c;
  --hi: inset 1px 1px 0 rgba(255, 244, 228, .07);   /* the key light catching a top-left edge */
}
html { background: var(--bg); color-scheme: dark; }
body { background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 8% 0%, rgba(255, 214, 170, .055), transparent 70%); }
.nav { background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom-color: var(--line); }
.nav__links a:hover { background: rgba(255, 255, 255, .06); }
.btn--solid:hover { background: #4fe08f; }
.btn--ghost { border-color: rgba(255, 255, 255, .22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.mark__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fresh) 20%, transparent), 0 0 16px color-mix(in srgb, var(--fresh) 70%, transparent); }
.explode__glow { background: radial-gradient(42% 52% at 66% 50%, rgba(255, 220, 185, .06), transparent 72%); }
@media (max-width: 759px) { .explode__glow { background: radial-gradient(70% 40% at 50% 30%, rgba(255, 220, 185, .06), transparent 70%); } }
.explode__lines path { stroke: rgba(255, 255, 255, .32); }
.explode__lines circle { fill: var(--bg); stroke: var(--accent); }
.tag { background: rgba(20, 20, 22, .72); color: var(--ink); border-color: rgba(255, 255, 255, .1); box-shadow: var(--hi); backdrop-filter: blur(10px); }
.explode__ticks li { background: rgba(255, 255, 255, .2); }
.explode__step p:not(.eyebrow), .lede { color: var(--muted); }
.explode.is-fallback .explode__stage::after { color: var(--faint); }
@media (max-width: 759px) { .explode__copy::before { background: linear-gradient(transparent, var(--bg) 42%); } }

.sec--results, .sec--decide, .sec--progress, .sec--team { background: transparent; }
.sec + .sec { border-top: 1px solid var(--line); }
.iconbtn { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--hi); }
.iconbtn:hover { border-color: rgba(255, 255, 255, .25); }
.turn__pins circle { fill: #f5f5f7; } .turn__pins text { fill: #0a0a0b; }
.turn__pins g.is-hot circle { fill: var(--accent); }
.legend b { background: #f5f5f7; color: #0a0a0b; }
.legend li:hover b, .legend li.is-hot b { background: var(--accent); }
.specs div { border-top-color: rgba(255, 255, 255, .5); }
.specs dt { color: var(--faint); }

.flag { background: transparent; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.flag.is-real { color: var(--fresh); border-color: color-mix(in srgb, var(--fresh) 45%, transparent); background: transparent; }
.chart { background: var(--surface); box-shadow: var(--hi); }
.chart .grid line { stroke: rgba(255, 255, 255, .06); }
.chart .axis text { fill: var(--faint); }
.chart .band { opacity: .1; }
.k--food { background: #5aa9ff; } .k--ctrl { background: #8e8e93; }

.stat b { color: var(--ink); }
.stat span, .sources, .sources a { color: var(--muted); }
.sec--why .sec__lede { color: var(--ink); }

.slider input { accent-color: var(--accent); }
.pill--fresh { background: color-mix(in srgb, var(--fresh) 14%, transparent); color: var(--fresh); }
.pill--warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.pill--bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.decide__verdict b { color: var(--ink); }
/* the real puck: three rendered stills, cross-faded by state */
.stills { position: relative; width: min(520px, 90vw); aspect-ratio: 4 / 3; }
.stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease); }
.stills[data-state="fresh"] img[data-s="fresh"], .stills[data-state="warn"] img[data-s="warn"], .stills[data-state="bad"] img[data-s="bad"] { opacity: 1; }
.stills::after { content: ""; position: absolute; inset: 55% 10% -8%; z-index: -1; filter: blur(30px); opacity: .5; transition: background .6s;
  background: radial-gradient(50% 50% at 50% 40%, var(--c, var(--fresh)), transparent 70%); }
.stills[data-state="warn"] { --c: var(--warn); } .stills[data-state="bad"] { --c: var(--bad); }
.decide__puck.has-stills .puck { display: none; }
.decide__puck:not(.has-stills) .stills { display: none; }

.phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px #3a3a3c; }
.card, .total { background: var(--surface); box-shadow: var(--hi); }
.card:hover, .total:hover { box-shadow: var(--hi), 0 18px 40px rgba(0, 0, 0, .45); }
.ticks li::before { border-color: var(--accent); }
.timeline li { border-top-color: rgba(255, 255, 255, .12); }
.timeline li.is-done { border-top-color: rgba(255, 255, 255, .6); }
.timeline li::before { background: var(--bg); border-color: rgba(255, 255, 255, .2); }
.timeline li.is-done::before { background: #f5f5f7; border-color: #f5f5f7; }
.files a { border-top-color: rgba(255, 255, 255, .5); }
.team li { background: linear-gradient(160deg, #1c1c1f, #141416); box-shadow: var(--hi); }
.team__i { color: rgba(255, 255, 255, .08); }
.foot { border-top-color: var(--line); color: var(--faint); }

/* ---------------------------------------------------------------- the three sensors */
.sensors { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sensor { background: var(--surface); border-radius: 22px; padding: 0 26px 28px; box-shadow: var(--hi); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sensor:hover { transform: translateY(-2px); box-shadow: var(--hi), 0 18px 40px rgba(0, 0, 0, .45); }
.sensor__pic { margin: 0 -26px 8px; aspect-ratio: 4 / 3; background: radial-gradient(60% 60% at 40% 35%, rgba(255, 220, 185, .05), transparent 70%); }
.sensor__pic img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s var(--ease); }
.sensor:hover .sensor__pic img { transform: scale(1.03); }
.sensor__tag { font: 500 11.5px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.sensor h3 { font-size: 23px; letter-spacing: -0.02em; margin-top: 10px; }
.sensor > p:not(.sensor__tag) { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.sensor__specs { margin: 18px 0 0; display: grid; gap: 10px; }
.sensor__specs div { border-top: 1px solid var(--line); padding-top: 10px; }
.sensor__specs dt { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.sensor__specs dd { margin: 4px 0 0; font-size: 14.5px; }
@media (max-width: 1023px) { .sensors { grid-template-columns: 1fr; } .sensor__pic { aspect-ratio: 16 / 9; } }

/* team avatars */
.team li { padding: 0; overflow: hidden; position: relative; display: block; }
.team__av { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.team li:hover .team__av { transform: scale(1.03); }
.team b { position: absolute; left: 18px; bottom: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* downloads: a real download icon instead of the text arrow */
.files b::after { content: none; }
.files a { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; }
.files .f { display: block; min-width: 0; }
.files .f > span { display: block; }
.files em { display: block; margin-top: 6px; font: 500 12px var(--font-mono); color: var(--faint, #6e6e73); font-style: normal; }
.files .dl { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(52, 209, 122, .12); border: 1px solid rgba(52, 209, 122, .35);
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, transform .2s; }
.files a:hover .dl { background: var(--accent); stroke: #06140c; transform: translateY(2px); }
.files a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .files a:hover .dl { transform: none; } }

/* ---------------------------------------------------------------- first load: still image at once, bar while frames arrive */
.explode__poster { position: absolute; inset: 0; z-index: 0; transition: opacity .8s var(--ease); }
.explode__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explode.is-ready .explode__poster { opacity: 0; }
.explode canvas { z-index: 1; }
.explode__load { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: 8px; width: min(220px, 50vw);
  font: 400 11px var(--font-mono); color: var(--faint); transition: opacity .6s var(--ease); pointer-events: none; }
.explode__load i { display: block; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.explode__load i::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s var(--ease); box-shadow: 0 0 10px var(--accent); }
.explode__load.is-done { opacity: 0; }
.explode.is-fallback .explode__poster { opacity: 1; }

/* phones: model lifted, words compact so they clear the food */
@media (max-width: 759px) {
  .explode__poster img { transform: translateY(-7%); }
  .explode__load { bottom: auto; top: 74px; }
  .explode__step h1 { font-size: 30px; }
  .explode__step:first-child .eyebrow { font-size: 10px; }
  .explode__step:first-child .lede { font-size: 15px; margin-top: 14px; }
  .explode__step:first-child .facts { display: none; }
  .explode__step:first-child .actions { display: flex; gap: 10px; margin-top: 18px; }
  .explode__step:first-child .actions .btn { flex: 1 1 0; min-height: 44px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .explode__copy::before { height: 52%; }
}

/* ---------------------------------------------------------------- nav: the section you're in */
.nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nav__links a.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 8px var(--accent); }

/* ---------------------------------------------------------------- back to top */
.totop { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--surface-2) 85%, transparent); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s var(--ease), translate .3s var(--ease), background .2s; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { background: var(--accent); }
.totop:hover svg { stroke: #06140c; }
.totop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- footer links */
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .totop, .explode__poster, .explode__load { transition: none; } }
.sec--team h2 { max-width: none; }
