/* Codex Pocket: the site.
   Monochrome and quiet, like the app: neutral surfaces carry the content, things answer the hand.
   The controls in "手感" and their tokens are adapted from UI Moments
   (https://github.com/guanmo-ai/ui-moments, MIT; see LICENSE-ui-moments.txt). */

@font-face { font-family: Geist; src: url("fonts/Geist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: SHS; src: url("fonts/shs-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: SHS; src: url("fonts/shs-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --page: #fafafa;
  --surface: #f2f2f3;
  --raised: #fff;
  --ink: #18181b;
  --ink-2: #45454b;
  --muted: #6b6b72;
  --rail: rgb(24 24 27 / .11);
  --line: rgb(24 24 27 / .09);
  --line-2: rgb(24 24 27 / .2);
  --accent: #18181b;
  --on-accent: #fafafa;
  --accent-soft: rgb(24 24 27 / .07);
  --danger: var(--ink);
  --danger-soft: rgb(24 24 27 / .1);
  --ok: var(--ink);
  --add: #1f7a47;
  --del: #b3261e;
  --live: #1f9d57;
  --scrim: rgb(250 250 250 / .82);
  --shadow: 0 1px 2px rgb(0 0 0 / .1), 0 6px 18px rgb(0 0 0 / .07);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .08), 0 34px 70px -26px rgb(0 0 0 / .38);
  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --press-ease: cubic-bezier(.2, .8, .2, 1);
  --return-ease: cubic-bezier(.2, .9, .34, 1.16);
  --press-duration: 45ms;
  --sans: Geist, SHS, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 56px);
  --container: 1240px;
  --bar: 60px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0b0c;
  --surface: #161618;
  --raised: #232326;
  --ink: #fafafa;
  --ink-2: #c8c8cd;
  --muted: #9a9aa1;
  --rail: rgb(250 250 250 / .13);
  --line: rgb(250 250 250 / .09);
  --line-2: rgb(250 250 250 / .2);
  --accent: #fafafa;
  --on-accent: #0b0b0c;
  --accent-soft: rgb(250 250 250 / .09);
  --danger-soft: rgb(250 250 250 / .12);
  --add: #7fd6a2;
  --del: #f2a09b;
  --live: #6fd69b;
  --scrim: rgb(11 11 12 / .8);
  --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 8px 24px rgb(0 0 0 / .35);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .5), 0 34px 70px -26px rgb(0 0 0 / .9);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; font-synthesis: none; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, output { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
b, strong { font-weight: 700; }
code { font: 500 .88em/1.4 var(--mono); padding: .14em .42em; border-radius: 6px; background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--page); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 18px; height: 18px; flex: none; }
.icon--sm { width: 15px; height: 15px; margin-left: -3px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--page); }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.add { color: var(--add); font-weight: 600; }
.del { color: var(--del); font-weight: 600; }

/* ---------- Top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.top__in {
  pointer-events: auto; height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  border: 1px solid transparent; border-radius: 30px; background: transparent;
  transition: max-width .8s var(--ease), height .6s var(--ease), margin-top .6s var(--ease), padding .8s var(--ease), border-radius .6s var(--ease),
    background-color .4s, border-color .4s, box-shadow .5s, gap .8s var(--ease);
}
/* Scrolled: the bar gathers into a capsule that floats over the page. */
.top.is-scrolled .top__in {
  max-width: 748px; height: 52px; margin-top: 10px; padding-inline: 18px 8px; gap: 12px; border-radius: 26px;
  background: var(--scrim); border-color: var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 14px 34px -18px rgb(0 0 0 / .35);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
}
.top.is-scrolled .top__gh span { max-width: 0; opacity: 0; margin-left: -7px; }
.top__gh span { display: inline-block; max-width: 60px; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease), opacity .3s, margin .6s var(--ease); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 620; letter-spacing: -.025em; white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-10deg) translateY(-1px); }
.top__links { display: flex; gap: 2px; }
.top__links a { position: relative; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.top__links a:hover { color: var(--ink); background: var(--accent-soft); }
.top__links a::after { content: ""; position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); scale: 0; transition: scale .45s var(--spring); }
.top__links a.is-on { color: var(--ink); }
.top__links a.is-on::after { scale: 1; }
.top__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top__gh { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.top__gh:hover { background: var(--surface); color: var(--ink); }
.top__gh svg { width: 17px; height: 17px; }
.top__gh b { font: 600 12px/1 var(--mono); padding-left: 7px; border-left: 1px solid var(--line-2); color: var(--ink); }
.top__theme { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); transition: background-color .2s, color .2s; }
.top__theme:hover { background: var(--surface); color: var(--ink); }
.top__theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: rotate .7s var(--ease); }
.top__theme .half { fill: currentColor; stroke: none; }
[data-theme="dark"] .top__theme svg { rotate: 180deg; }
.top__get { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 620; transition: scale .3s var(--spring); }
.top__get:active { scale: .95; transition-duration: .1s; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 23px; background: var(--raised); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 620; line-height: 1; white-space: nowrap; transition: scale .3s var(--spring), background-color .3s, color .3s, border-color .3s, width .45s var(--spring); }
.pill:active { scale: .95; transition-duration: .1s; }
.pill svg { flex: none; }
.pill--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill--wide { width: 100%; }
.icon--solid, .top__gh svg { fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) { .pill:hover { border-color: var(--line-2); } .pill--solid:hover { opacity: .9; } }
.swap { display: grid; overflow: hidden; }
.swap > * { grid-area: 1 / 1; transition: translate .4s var(--spring), opacity .25s; }
.swap > :last-child { translate: 0 110%; opacity: 0; }
[data-done] .swap > :first-child { translate: 0 -110%; opacity: 0; }
[data-done] .swap > :last-child { translate: 0 0; opacity: 1; }
.textlink { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 520; transition: color .2s; }
.textlink span { font: 500 12px/1 var(--mono); color: var(--muted); }
.textlink:hover { color: var(--ink); }
.textlink .icon { transition: scale .4s var(--spring); }
.textlink:hover .icon { scale: 1.12; }

/* Download Ring: the pill closes to a ring that fills, then a tick. */
.dl { position: relative; padding: 0 20px; overflow: hidden; }
.dl-label { display: inline-flex; align-items: center; gap: 9px; transition: opacity .2s; white-space: nowrap; }
.dl:not([data-state="idle"]) .dl-label { opacity: 0; }
.dl-ring, .dl-check { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity .25s .15s; }
.dl-ring { width: 32px; height: 32px; rotate: -90deg; }
.dl-ring circle { fill: none; stroke-width: 3; }
.dl-ring .track { stroke: currentColor; opacity: .22; }
.dl-ring .bar { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 81.7; stroke-dashoffset: 81.7; }
.dl[data-state="loading"], .dl[data-state="done"] { width: 46px !important; padding: 0; }
.dl[data-state="loading"] .dl-ring { opacity: 1; }
.dl .dl-check { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 18; transition: opacity .2s, stroke-dashoffset .35s var(--ease) .1s; }
.dl[data-state="done"] .dl-check { opacity: 1; stroke-dashoffset: 0; }
.pill--wide.dl { transition-property: scale, background-color, color, border-color, width, margin; }
.pill--wide.dl[data-state="loading"], .pill--wide.dl[data-state="done"] { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--bar) + clamp(40px, 8vh, 92px)) 0 0; }
.hero__copy { display: grid; justify-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { font-style: normal; opacity: .45; }
.eyebrow b { font-weight: 600; color: var(--ink); }
.eyebrow__live { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: live 2.6s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
h1 { margin-top: 22px; font-size: clamp(30px, 6.3vw, 86px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.h1__line { display: block; overflow: hidden; padding-block: .06em; }
.h1__line > span { display: inline-block; white-space: nowrap; }
.lede { max-width: 38em; margin-top: 20px; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; text-wrap: pretty; }
.hero .lede { max-width: 35em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; }

.js [data-in] { opacity: 0; }
.js .h1__line > span { transform: translateY(108%); }
.js.is-ready [data-in] { animation: in .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
.js.is-ready .h1__line > span { animation: rise 1.05s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 60ms); }
@keyframes in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }

/* ---------- The bench: the phone and its chapters ---------- */
#showcase { margin-top: clamp(40px, 7vh, 72px); scroll-margin-top: calc(var(--bar) + 16px); }
.bench { position: relative; display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 34px); padding: 22px clamp(18px, 3vw, 44px) clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--surface); overflow: hidden; isolation: isolate; }
.bench__dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(90% 80% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(90% 80% at 50% 50%, #000 45%, transparent 100%); }
.bench__body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4.4vw, 76px); width: 100%; }
.bench__side--a { justify-self: end; width: min(100%, 340px); }
.bench__side--b { justify-self: start; width: min(100%, 320px); display: grid; gap: 26px; }
.parts { display: grid; }
.part { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s .35s; }
.part > * { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .25s, transform .3s var(--press-ease), filter .25s; }
.part.is-past > * { transform: translateY(-14px); }
.part.is-on { visibility: visible; transition-delay: 0s; }
.part.is-on > * { opacity: 1; transform: none; filter: none; transition: opacity .5s, transform .75s var(--ease), filter .5s; }
.part.is-on > :nth-child(1) { transition-delay: .12s; }
.part.is-on > :nth-child(2) { transition-delay: .18s; }
.part.is-on > :nth-child(3) { transition-delay: .24s; }
.part__no { font: 600 12px/1 var(--mono); letter-spacing: .06em; }
.part__no span { margin-left: 6px; color: var(--muted); font-weight: 500; }
.part h2 { margin-top: 16px; font-size: clamp(25px, 2.5vw, 33px); line-height: 1.24; font-weight: 700; letter-spacing: -.03em; }
.part > p:last-child { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; text-wrap: pretty; }
ul.part { display: grid; gap: 0; align-content: start; }
ul.part li { position: relative; padding: 13px 0 13px 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
ul.part li:last-child { border-bottom: 1px solid var(--line); }
ul.part li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 7px; height: 4px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); rotate: -45deg; }
.bench__nav { display: flex; gap: 8px; }
.bench__nav button, .steps-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); transition: scale .3s var(--spring), border-color .2s, opacity .2s; }
.bench__nav button:hover, .steps-nav button:hover { border-color: var(--line-2); }
.bench__nav button:active, .steps-nav button:active { scale: .9; transition-duration: .1s; }
.bench__auto { margin-left: auto; }
.bench__auto svg { width: 13px; height: 13px; fill: currentColor; }
.bench__auto .play, .bench__auto[aria-pressed="true"] .pause { display: block; }
.bench__auto .pause, .bench__auto[aria-pressed="true"] .play { display: none; }
.bench__auto[aria-pressed="true"] .pause { display: block; }

.device { position: relative; width: clamp(210px, 22vw, 282px); container-type: inline-size; }
.js .device { opacity: 0; transform: translateY(46px) scale(.96); }
.js.is-ready .device { animation: device-in 1.2s var(--ease) .62s both; }
@keyframes device-in { from { opacity: 0; transform: translateY(46px) scale(.96); } to { opacity: 1; transform: none; } }
.device__tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.device__body { position: relative; padding: 2.7cqw; border-radius: 14.4cqw; background: #111113; box-shadow: inset 0 0 0 .4cqw #2c2c30, var(--shadow-lg); }
.device__screen { position: relative; aspect-ratio: 9 / 20; border-radius: 11.9cqw; overflow: hidden; background: #fafafa; isolation: isolate; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fafafa; z-index: 3; transform: translateX(101%); transition: transform .62s var(--ease), filter .62s var(--ease); }
.screen.is-on { z-index: 2; transform: none; }
.screen.is-past { z-index: 1; transform: translateX(-24%); filter: brightness(.8); }
.device__cam { position: absolute; left: 50%; top: 5cqw; width: 3.6cqw; height: 3.6cqw; margin-left: -1.8cqw; border-radius: 50%; background: #0b0b0c; box-shadow: inset 0 0 0 .5cqw #1d1d22; z-index: 5; }

/* Leaf Tabs: the selected leaf turns over to the next tab. */
.tabs { --tab: 50px; position: relative; display: grid; grid-template-columns: repeat(var(--count), var(--tab)); padding: 3px; border-radius: 12px; background: var(--rail); perspective: 260px; }
.tab-leaf { position: absolute; top: 3px; left: 3px; width: var(--leaf, var(--tab)); height: 34px; border-radius: 9px; background: var(--raised); box-shadow: var(--shadow); transform: translateX(calc(var(--index, 0) * var(--leaf, var(--tab)))); backface-visibility: visible; overflow: hidden; }
.tab-leaf i { position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--rail); overflow: hidden; }
.tab-leaf i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tabs [role="tab"] { position: relative; height: 34px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 560; white-space: nowrap; transition: color .25s .1s; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 650; }
.tabs [role="tab"]:focus-visible { outline-offset: -2px; }
.bench__tabs { --tab: 62px; }
.bench__tabs .tab-leaf, .bench__tabs [role="tab"] { height: 38px; }
.bench__tabs [role="tab"] { padding-bottom: 3px; }

.caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 11px 4px 0; }
.caption h3 { font-size: 14.5px; line-height: 1.4; font-weight: 650; letter-spacing: -.01em; }
.caption p { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.caption--bench p:first-child { white-space: normal; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(88px, 13vh, 150px); }
.head { max-width: 640px; }
.head h2 { margin-top: 14px; font-size: clamp(29px, 3.5vw, 46px); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.head .lede { margin-top: 14px; }
.head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.head--split > div { max-width: 640px; }
.head--center { margin-inline: auto; display: grid; justify-items: center; text-align: center; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Samples: a stage with a control on it ---------- */
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 14px; margin-top: clamp(32px, 5vh, 52px); }
.sample { min-width: 0; }
.stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 220px; border-radius: 22px; background: var(--surface); container-type: size; overflow: hidden; -webkit-user-select: none; user-select: none; }
.stage :where(button, label, [role="slider"], [tabindex="0"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .stage :where(button:not(:disabled, [aria-disabled="true"])):hover { opacity: .91; } }
.stage :where(button:not(:disabled, [aria-disabled="true"])):active { opacity: .78; transition: opacity var(--press-duration) var(--press-ease); }
.stage [data-pointer-active] { cursor: var(--active-cursor, grabbing); }
.widget { display: grid; place-items: center; transition: scale .3s var(--ease); }
@container (max-height: 160px) { .widget { scale: .82; } }
@container (max-width: 215px) { .widget { scale: .8; } }
@container (max-width: 180px) { .widget { scale: .72; } }
.sample__note { padding: 6px 4px 0; font-size: 13px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.state { font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.credit { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* Detent Dial */
.dial { position: relative; width: 140px; height: 140px; }
.dial-ticks i { position: absolute; left: 50%; top: 50%; width: 3px; height: 8px; margin: -4px -1.5px; border-radius: 2px; background: var(--rail); transform: rotate(var(--a)) translateY(-63px); transition: background-color .25s, height .3s var(--spring), margin .3s var(--spring); }
.dial-ticks i[data-stop] { height: 11px; margin-top: -5.5px; }
.dial-ticks i[data-on] { background: var(--accent); }
.dial-ticks i[data-stop][data-on] { height: 14px; margin-top: -7px; }
.dial-knob { position: absolute; inset: 26px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--raised) 100%, #fff 6%), var(--raised) 70%); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); rotate: var(--turn, 0deg); transition: scale 130ms var(--return-ease); touch-action: pan-y; cursor: grab; }
.dial-knob:focus-visible { outline-offset: 6px; border-radius: 50%; }
.dial[data-dragging] .dial-knob { scale: .96; transition: scale var(--press-duration) var(--press-ease); cursor: grabbing; }
.dial-notch { position: absolute; top: 7px; left: 50%; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.dial-value { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

/* Ink Switch */
.plan { gap: 14px; }
.ink { position: relative; width: 84px; height: 46px; border-radius: 23px; background: var(--rail); overflow: hidden; isolation: isolate; }
.ink-fill { position: absolute; inset: 0; background: var(--accent); clip-path: circle(0 at 23px 50%); }
.ink[aria-checked="true"] .ink-fill { clip-path: circle(80px at 61px 50%); }
.ink-knob { position: absolute; top: 5px; left: 5px; width: 36px; height: 36px; border-radius: 18px; background: var(--raised); box-shadow: var(--shadow); transition: translate .52s var(--spring); }
.ink-knob::after { position: absolute; inset: 12px; content: ""; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: var(--accent); transition: scale .42s var(--spring) .26s; }
.ink[aria-checked="true"] .ink-knob { translate: 38px 0; }
.ink[aria-checked="true"] .ink-knob::after { scale: 0; transition-delay: 0s; transition-duration: .22s; }
.ink-splash i { position: absolute; top: 50%; left: 23px; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; }
.ink:hover .ink-knob { box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }

/* Hold to Confirm */
.hold-wrap { position: relative; }
.hold { --active-cursor: pointer; position: relative; display: grid; place-items: center; width: 204px; height: 50px; border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent); border-radius: 25px; background: var(--raised); color: var(--danger); font-size: 14px; font-weight: 620; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: width .55s var(--spring), scale .25s var(--spring), background-color .3s, color .3s; }
.hold[data-holding] { scale: .965; }
.hold-fill { position: absolute; inset: 0; background: var(--danger-soft); transform-origin: left center; scale: 0 1; }
.hold-label { position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: opacity .2s, filter .2s; }
.hold-check { position: absolute; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease) .2s; }
.hold[data-done] { width: 50px; background: var(--danger); color: var(--page); cursor: default; }
.hold[data-done] .hold-label { opacity: 0; filter: blur(3px); }
.hold[data-done] .hold-fill { opacity: 0; }
.hold[data-done] .hold-check { stroke-dashoffset: 0; }
.hold-hint { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .25s; }
.hold-hint[data-show] { opacity: 1; }

/* Paper Plane and Copy */
.stage .pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.send { min-width: 128px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.send-plane { display: grid; width: 18px; transition: width .35s var(--spring), margin .35s var(--spring); }
.send[data-done] .send-plane { width: 0; margin-right: -9px; opacity: 0; }
.send[data-done] { background: var(--raised); color: var(--accent); }
.copy[data-done] { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.copy-icon { display: grid; }
.copy-icon svg { grid-area: 1 / 1; transition: scale .35s var(--spring), opacity .2s; }
.copy-icon .check { stroke-width: 2.2; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .1s; }
.copy[data-done] .copy-icon .clip { scale: .4; opacity: 0; }
.copy[data-done] .copy-icon .check { stroke-dashoffset: 0; }

/* Stroke Checklist */
.todo { display: grid; gap: 4px; width: 204px; }
.todo label { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background-color .2s; }
.todo label:hover { background: var(--accent-soft); }
.todo input { position: absolute; opacity: 0; pointer-events: none; }
.todo .box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.6px solid var(--muted); border-radius: 6px; transition: background-color .25s, border-color .25s; }
.todo .box svg { width: 14px; height: 14px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .3s var(--ease) .05s; }
.todo .text { position: relative; font-size: 14.5px; line-height: 1.5; transition: color .3s; }
.todo .text::after { position: absolute; left: -2px; right: -2px; top: 52%; height: 1.6px; content: ""; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease) .12s; }
.todo input:checked + .box { background: var(--accent); border-color: var(--accent); animation: todo-pop .4s var(--spring); }
.todo input:checked + .box svg { stroke-dashoffset: 0; }
.todo input:checked ~ .text { color: var(--muted); }
.todo input:checked ~ .text::after { transform: scaleX(1); }
.todo input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes todo-pop { 0% { scale: .7; } 60% { scale: 1.15; } 100% { scale: 1; } }

/* Swipe to Confirm */
.swipe { position: relative; width: 232px; height: 52px; border-radius: 26px; background: var(--rail); overflow: hidden; touch-action: pan-y; }
.swipe::before { position: absolute; inset: 0; content: ""; border-radius: 26px; background: var(--accent-soft); transform: scaleX(calc(.23 + .77 * var(--progress, 0))); transform-origin: left; }
.swipe-hint { position: absolute; inset: 0 0 0 60px; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--muted); opacity: calc(1 - var(--progress, 0)); }
.swipe-hint span { margin-inline-end: 5px; font-size: 12.5px; font-weight: 570; white-space: nowrap; }
.swipe-hint i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; rotate: 45deg; animation: swipe-hint 1.6s ease-in-out calc(var(--n) * .16s) infinite; }
@keyframes swipe-hint { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.swipe[data-drag] .swipe-hint i { animation: none; opacity: clamp(.2, calc(.35 + var(--progress, 0) * 2 - var(--n) * .38), 1); }
.swipe-knob { position: absolute; top: 4px; left: 4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transform: translateX(calc(var(--x, 0) * 1px)); transition: scale 130ms var(--return-ease); cursor: grab; touch-action: pan-y; }
.swipe[data-drag] .swipe-knob { scale: .96; transition: scale var(--press-duration) var(--press-ease); cursor: grabbing; }
.swipe-knob:focus-visible { outline-offset: -4px; outline-color: var(--on-accent); border-radius: 50%; }
.swipe-knob svg { grid-area: 1 / 1; stroke-width: 1.8; transition: opacity .2s, scale .3s var(--spring); }
.swipe-knob .done { opacity: 0; scale: .4; }
.swipe[data-done] .swipe-knob .go { opacity: 0; scale: .4; }
.swipe[data-done] .swipe-knob .done { opacity: 1; scale: 1; }

/* Usage bars under Leaf Tabs */
.leafs { display: grid; gap: 14px; justify-items: center; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 60px; }
.bars i { width: 14px; height: var(--h, 20px); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) var(--tone, 45%), transparent); transition: height .55s var(--spring), background-color .4s; transition-delay: calc(var(--i) * 28ms); }

/* Scrub Wave */
.wave { display: flex; align-items: center; gap: 10px; }
.wave-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.wave-play svg { width: 14px; height: 14px; fill: currentColor; }
.wave-play .pause, .wave-play[aria-pressed="true"] .play { display: none; }
.wave-play[aria-pressed="true"] .pause { display: block; }
.wave-bars { position: relative; display: flex; align-items: center; gap: 2px; height: 48px; cursor: grab; touch-action: pan-y; border-radius: 6px; }
.wave-bars i { width: 3px; height: var(--h); border-radius: 2px; background: var(--rail); transition: background-color .15s; }
.wave-bars i[data-on] { background: var(--ink); }
.wave-bars[data-pointer-active] { scale: .96; }

/* Pull to Refresh */
.pull { position: relative; width: 196px; height: 138px; border-radius: 16px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; cursor: grab; touch-action: pan-x; }
.pull-spin { position: absolute; top: 10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; opacity: var(--o, 0); rotate: calc(var(--p, 0) * 270deg); }
.pull-spin circle { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 50; stroke-dashoffset: calc(50 - var(--p, 0) * 38); }
.pull[data-state="loading"] .pull-spin { opacity: 1; animation: pull-spin .7s linear infinite; }
@keyframes pull-spin { to { rotate: 1turn; } }
.pull-list { display: grid; gap: 8px; padding: 14px; transform: translateY(calc(var(--y, 0) * 1px)); transition: scale 130ms var(--return-ease); }
.pull[data-drag] .pull-list { scale: .96; }
.pull-row { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; }
.pull-row b { width: 20px; height: 20px; border-radius: 7px; background: var(--rail); }
.pull-row span { height: 6px; border-radius: 3px; background: var(--rail); width: var(--w); }
.pull-row[data-new] b { background: var(--ink); }
.pull-row[data-new] { animation: pull-new .5s var(--ease); }
@keyframes pull-new { from { opacity: 0; translate: 0 -10px; } }

/* Bell Toggle */
.bell-wrap { display: grid; justify-items: center; gap: 10px; }
.bell { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); box-shadow: var(--shadow); color: var(--muted); transition: color .3s, scale .3s var(--spring); }
.bell:active { scale: .93; }
.bell[aria-pressed="true"] { color: var(--accent); }
.bell svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.bell .body, .bell .clapper { transform-box: view-box; transform-origin: 12px 3px; }
.bell .slash { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .35s var(--ease); }
.bell[aria-pressed="false"] .slash { stroke-dashoffset: 0; }
.bell-badge { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--surface); border-radius: 10px; background: var(--ink); color: var(--page); font-size: 11px; font-weight: 700; line-height: 1; transition: scale .35s var(--spring); }
.bell[aria-pressed="false"] .bell-badge { scale: 0; }

/* Tide Progress */
.tide { position: relative; width: 116px; height: 116px; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); box-shadow: var(--shadow); overflow: hidden; transition: scale .35s var(--spring); }
.tide:active { scale: .96; transition-duration: .12s; }
.tide canvas { display: block; width: 100%; height: 100%; }

/* ---------- Connect ---------- */
.connect { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.guide { margin-top: 34px; display: grid; gap: 22px; }
.guide__rail { display: flex; align-items: center; gap: 20px; }
.steps-track { position: relative; display: flex; justify-content: space-between; flex: 1; max-width: 230px; }
.steps-track::before, .steps-line { position: absolute; top: 50%; left: 8px; right: 8px; height: 2px; margin-top: -1px; content: ""; background: var(--rail); }
.steps-line { right: auto; width: calc((100% - 16px) * var(--f)); background: var(--ink); transition: width .5s var(--ease); }
.steps-track i { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rail); background: var(--page); transition: border-color .3s, background-color .3s; }
.steps-track i[data-on] { border-color: var(--ink); background: var(--ink); }
.steps-track i[data-current] { animation: step-pop .45s var(--spring); }
@keyframes step-pop { 50% { scale: 1.35; } }
.steps-nav { display: flex; gap: 8px; }
.steps-nav button:disabled { opacity: .35; cursor: default; }
.guide__panes, .route__panes { display: grid; }
.guide__pane, .route__pane { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); filter: blur(4px); visibility: hidden; transition: opacity .2s, transform .25s, filter .2s, visibility 0s .25s; }
.guide__pane.is-on, .route__pane.is-on { opacity: 1; transform: none; filter: none; visibility: visible; transition: opacity .45s .1s, transform .7s var(--ease) .1s, filter .45s .1s; }
.guide__pane h3 { display: flex; align-items: baseline; gap: 12px; font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
.guide__pane h3 span { font: 600 12px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.guide__pane p { margin-top: 8px; max-width: 30em; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.stage--link { height: auto; min-height: 400px; padding: 22px 18px 26px; grid-template: auto auto auto / minmax(0, 1fr); align-content: space-between; container-type: normal; gap: 10px; }
.stage--link .tabs { --tab: 78px; }
.string { width: 100%; max-width: 560px; cursor: grab; touch-action: pan-x; border-radius: 16px; }
.string svg { width: 100%; height: auto; overflow: visible; transition: scale 130ms var(--return-ease); }
.string[data-pointer-active] svg { scale: .985; }
.string__line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.string__packet { fill: var(--page); stroke: var(--ink); stroke-width: 1.8; }
.string__node rect { fill: var(--raised); stroke: var(--line); filter: drop-shadow(0 6px 10px rgb(0 0 0 / .08)); }
.string__node use { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.string text { fill: var(--muted); font: 500 12.5px var(--sans); text-anchor: middle; }
.string__relay { transition: opacity .3s; }
.string__relay rect { fill: var(--ink); }
.string__relay text { fill: var(--page); font-weight: 620; font-size: 12px; }
.route__panes { max-width: 460px; text-align: center; }
.route__pane { font-size: 13.5px; line-height: 1.75; color: var(--muted); -webkit-user-select: text; user-select: text; }
.route__pane b { color: var(--ink); font-weight: 650; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(48px, 8vh, 80px); border-top: 1px solid var(--line); }
.facts li { padding-top: 22px; }
.facts .icon { width: 22px; height: 22px; margin-bottom: 14px; }
.facts h3 { font-size: 15px; line-height: 1.45; font-weight: 650; letter-spacing: -.01em; }
.facts p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.75; text-wrap: pretty; }

/* ---------- Open source ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 6vh, 56px); }
.figures li { display: grid; gap: 14px; align-content: start; padding: 22px 22px 20px; border-radius: 22px; background: var(--surface); }
.figures p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.reels { display: flex; font-size: clamp(44px, 5vw, 64px); font-weight: 650; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.reel { --line: 1.16em; height: var(--line); overflow: hidden; }
.strip { display: flex; flex-direction: column; line-height: var(--line); text-align: center; transform: translateY(0); transition: transform 1.3s cubic-bezier(.25, 1.2, .4, 1); transition-delay: calc(var(--n, 0) * 90ms + 150ms); }
.is-in .strip { transform: translateY(calc(var(--digit) * -1 * var(--line))); }
.spec { margin-top: 14px; border-radius: 22px; background: var(--surface); padding: 6px 22px; }
.spec__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; transition: padding .35s var(--ease); }
.spec__row:first-child { border-top: 0; }
.spec__row code { justify-self: start; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.spec__row p:nth-child(2) { color: var(--ink-2); }
.spec__row p:nth-child(3) { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .spec__row:hover { padding-left: 8px; } }

/* ---------- Download ---------- */
.get__mark { width: 68px; height: 68px; padding: 13px; border-radius: 20px; background: #202123; color: #f8f8f7; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; box-shadow: var(--shadow); margin-bottom: 26px; }
[data-theme="dark"] .get__mark { background: #f8f8f7; color: #202123; }
.get__mark path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-in .get__mark path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .2s; }
.is-in .get__mark path + path { transition-delay: .7s; transition-duration: .5s; }
.is-in .get__mark path + path + path { transition-delay: 1s; transition-duration: .3s; }
.head--center h2 { margin-top: 0; }
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: clamp(32px, 5vh, 48px) auto 0; }
.get { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px; background: var(--surface); }
.get__head { display: flex; align-items: center; gap: 14px; }
.get__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--raised); box-shadow: var(--shadow); flex: none; }
.get__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.get h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.get__head p { font-size: 12.5px; color: var(--muted); }
.get__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.get__meta div { padding: 12px 0 12px 14px; border-left: 1px solid var(--line); }
.get__meta div:first-child { padding-left: 0; border-left: 0; }
.get__meta dt { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.get__meta dd { margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.get__note { flex: 1; font-size: 13px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.more a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; transition: color .2s, border-color .2s; }
.more a:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 76px); align-items: start; }
.faq .head { position: sticky; top: calc(var(--bar) + 28px); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 2px; cursor: pointer; list-style: none; font-size: 15.5px; line-height: 1.55; font-weight: 620; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); transition: rotate .5s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; border-radius: 1px; background: currentColor; }
.faq summary i::after { rotate: 90deg; transition: rotate .5s var(--ease); }
.faq summary:hover i { background: var(--rail); }
.faq details.is-open summary i { rotate: 180deg; background: var(--ink); color: var(--page); }
.faq details.is-open summary i::after { rotate: 0deg; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 22px 2px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; max-width: 46em; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(88px, 13vh, 150px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand .brand { color: var(--ink); }
.foot__brand p { max-width: 26em; margin-top: 14px; line-height: 1.75; }
.foot__grid nav { display: grid; align-content: start; gap: 9px; }
.foot__grid strong { margin-bottom: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.foot__grid nav a { width: fit-content; transition: color .2s; }
.foot__grid nav a:hover { color: var(--ink); }
.foot__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.foot__word { margin: 34px 0 -.16em; font-size: clamp(46px, 13.1vw, 196px); font-weight: 650; letter-spacing: -.075em; line-height: 1.02; color: var(--ink); opacity: .1; white-space: nowrap; -webkit-user-select: none; user-select: none; }

/* ---------- Film ---------- */
.film { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; color: #fff; }
.film::backdrop { background: rgb(4 4 6 / .76); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .35s; }
.film.is-open::backdrop { opacity: 1; }
.film__box { position: relative; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .1); transform: translate(var(--fx, 0), var(--fy, 30px)) scale(.3); opacity: 0; transition: transform .65s var(--ease), opacity .3s; }
.film.is-open .film__box { transform: none; opacity: 1; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film__close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(20 20 24 / .6); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: scale .3s var(--spring); }
.film__close:active { scale: .9; }

/* Theme change: the new page opens out of the button. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Narrower ---------- */
@media (max-width: 1100px) {
  .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench__body { gap: clamp(18px, 3vw, 40px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 900px) {
  .top__links { display: none; }
  .top__in { grid-template-columns: 1fr auto; }
  .top.is-scrolled .top__in { max-width: calc(100% - 24px); }
  .bench__body { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; }
  .device { order: -1; width: min(62vw, 264px); }
  .bench__side--a, .bench__side--b { justify-self: center; width: min(100%, 440px); }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .head { position: static; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .top__gh span { display: none; }
  .top__gh { padding: 0 9px; }
  .eyebrow { font-size: 10.5px; gap: 7px; }
  h1 { margin-top: 18px; font-size: min(8.3vw, 52px); }
  .bench { padding: 16px 14px 24px; border-radius: 22px; }
  .bench__tabs, .stage--link .tabs { width: 100%; grid-template-columns: repeat(var(--count), minmax(0, 1fr)); }
  .bench__tabs [role="tab"] { font-size: 12.5px; }
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .stage { height: 176px; border-radius: 18px; }
  .caption { flex-wrap: wrap; gap: 0 8px; }
  .gets { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .stage--link { min-height: 0; padding: 12px 12px 20px; gap: 14px; }
  .string text { font-size: 15px; }
  .faq__a p { padding-right: 8px; }
  .caption--bench { flex-direction: column; gap: 2px; }
  .caption--bench p:last-child { display: none; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
  .actions .pill { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .js [data-in], .js .h1__line > span, .js .device, .js [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .eyebrow__live, .swipe-hint i { animation: none; }
}
