/* Stream Mask v2 — home
   Chrome is monochrome + one signal colour; the overlays are the only saturated thing on the page.
   Tokens → base → components → sections → motion → responsive. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/host-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/host-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* pack display faces: only used inside the live scenes and the recolor canvas */
@font-face { font-family: "Anton"; src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Teko"; src: url("../assets/fonts/teko-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../assets/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Russo One"; src: url("../assets/fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("../assets/fonts/orbitron-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Climate Crisis"; src: url("../assets/fonts/climate-crisis-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- tokens ---------- */
@property --sig   { syntax: "<color>"; inherits: true; initial-value: #1cc6f0; }
@property --sig-t { syntax: "<color>"; inherits: true; initial-value: #45d2f5; }

:root {
  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(16px, 2.4vw, 36px);
  --bar: 68px;
  --sec: clamp(88px, 11vw, 176px);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* media frames stay dark in both themes: they are screens */
  --screen: #050506;
  --on-sig: #050506;
  --sig: #1cc6f0;     /* fills, ticks, bars */
  --sig-t: #45d2f5;   /* accent as text on the page background */
}
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #060607;
  --bg-2: #0d0d0f;
  --fg: #e9e7e2;
  --dim: rgba(233, 231, 226, .56);
  --faint: rgba(233, 231, 226, .3);
  --line: rgba(233, 231, 226, .11);
  --line-2: rgba(233, 231, 226, .24);
  --bar-bg: rgba(6, 6, 7, .72);
  --amb: .5;
  --grain: .06;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #e8e6e0;
  --bg-2: #dedbd4;
  --fg: #0a0a0b;
  --dim: rgba(10, 10, 11, .62);
  --faint: rgba(10, 10, 11, .36);
  --line: rgba(10, 10, 11, .13);
  --line-2: rgba(10, 10, 11, .3);
  --bar-bg: rgba(232, 230, 224, .78);
  --amb: .34;
  --grain: .05;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); transition: --sig .9s var(--ease), --sig-t .9s var(--ease); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
i.fal { display: none; } /* legacy icon tags that come inside some translation strings */
::selection { background: var(--sig); color: var(--on-sig); }
:focus-visible { outline: 2px solid var(--sig-t); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: 8px; z-index: 200; padding: 10px 14px; background: var(--sig); color: var(--on-sig); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* film grain + column guides: the "screen" texture behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.guides { position: fixed; inset: 0 var(--pad); z-index: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.guides i { border-left: 1px dashed var(--line); opacity: .7; }
.guides i:last-child { border-right: 1px dashed var(--line); }
main, .foot { position: relative; z-index: 1; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; font-weight: 400; }
.dim { color: var(--faint); }
.t-xl { font-size: clamp(44px, 7.4vw, 124px); line-height: .9; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.t-l  { font-size: clamp(36px, 5.4vw, 88px); line-height: .93; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
.t-m  { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.t-s  { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.42; color: var(--dim); max-width: 46ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 20px 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  background: var(--sig); color: var(--on-sig);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color .3s, color .3s;
}
.btn::after { content: "→"; font-size: 15px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: none; color: var(--fg); clip-path: none; padding: 0 4px; gap: 10px; min-height: 48px; }
.btn--ghost::before { content: "["; color: var(--sig-t); }
.btn--ghost::after { content: "]"; color: var(--sig-t); font-size: inherit; }
.btn--ghost:hover { background: none; color: var(--sig-t); }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn--ghost:hover::before { transform: translateX(-4px); }
.btn--ghost::before { transition: transform .35s var(--ease); }
.btn--sm { min-height: 36px; padding: 0 14px 0 16px; font-size: 11px; --cut: 8px; gap: 10px; }
.lnk { font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.lnk::after { content: "→"; transition: transform .35s var(--ease); }
.lnk:hover { color: var(--sig-t); border-color: var(--sig-t); }
.lnk:hover::after { transform: translateX(5px); }

/* ---------- top bar ----------
   Level 1: logo, navigation, CTA.  Level 2: theme switch + language (text only, no boxes).
   Level 3: the scroll ruler, on the bottom edge where it never competes with a label. */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--pad) 5px;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s, backdrop-filter .4s;
}
.bar.is-stuck, .menu-open .bar { background: var(--bar-bg); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.bar__logo { display: flex; align-items: center; color: var(--fg); margin-right: clamp(8px, 2.2vw, 40px); }
.bar__logo svg { height: 28px; width: auto; }

.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); min-width: 0; }
.bar__nav a { position: relative; padding: 10px 0; font-size: 14.5px; font-weight: 500; letter-spacing: -.012em; line-height: 1; color: var(--dim); white-space: nowrap; transition: color .25s; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.bar__nav a:hover, .bar__nav a[aria-current="true"] { color: var(--fg); }
.bar__nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar__sep { width: 1px; height: 14px; background: var(--line-2); }

.bar__util { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); color: var(--dim); }
.th { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--dim); transition: color .25s; white-space: nowrap; }
.th:hover { color: var(--fg); }
.th__ic { width: 11px; height: 11px; border-radius: 50%; flex: none; color: var(--fg); transition: box-shadow .5s var(--ease), background-color .5s; }
[data-theme="dark"] .th__ic { box-shadow: inset -3.5px -2px 0 0 currentColor; transform: rotate(-20deg); }
[data-theme="light"] .th__ic { background: currentColor; box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 3.5px currentColor; transform: scale(.72); }
.lg { display: inline-flex; gap: 2px; }
.lg button { font: inherit; letter-spacing: inherit; text-transform: uppercase; color: var(--faint); padding: 0 5px; min-height: 36px; position: relative; transition: color .25s; }
.lg button:hover { color: var(--fg); }
.lg button.is-active { color: var(--fg); }
.lg button.is-active::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px; height: 1px; background: var(--sig); }

/* ruler: the page as a timeline. Ticks fill with the signal colour as you scroll. */
.ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; overflow: hidden; opacity: 0; transition: opacity .4s;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px); }
.is-stuck .ruler { opacity: 1; }
.ruler i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: repeating-linear-gradient(90deg, var(--sig) 0 2px, transparent 2px 8px); }
.ruler b { position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 100%); width: 1px; background: var(--fg); }

.bar__burger { display: none; width: 44px; height: 44px; margin: 0 -10px 0 -6px; position: relative; }
.bar__burger::before, .bar__burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.bar__burger::before { top: 17px; } .bar__burger::after { top: 26px; }
.menu-open .bar__burger::before { top: 21.5px; transform: rotate(45deg); }
.menu-open .bar__burger::after { top: 21.5px; transform: rotate(-45deg); }

/* mobile sheet */
.sheet { position: fixed; inset: var(--bar) 0 0 0; z-index: 99; background: var(--bg); padding: 28px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.menu-open .sheet { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sheet__nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(30px, 9vw, 44px); letter-spacing: -.045em; font-weight: 500; line-height: 1; }
.sheet__nav a span { font: 400 11px/1 var(--mono); letter-spacing: .05em; color: var(--sig-t); width: 22px; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* ---------- section scaffolding ---------- */
.sec { padding: var(--sec) var(--pad) 0; position: relative; }
.sec--line { border-top: 1px solid var(--line); margin-top: var(--sec); padding-top: clamp(28px, 3.2vw, 52px); }
.sh { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--pad); align-items: start; margin-bottom: clamp(40px, 6vw, 96px); }
.sh__tag { grid-column: 1 / span 3; display: flex; gap: 14px; align-items: center; padding-top: .7em; color: var(--dim); }
.sh__tag .idx { color: var(--sig-t); }
.sh__tag .idx::before { content: "[ "; color: var(--faint); } .sh__tag .idx::after { content: " ]"; color: var(--faint); }
.sh__title { grid-column: 4 / -1; }
.sh__text { grid-column: 4 / span 6; }
.sh__side { grid-column: 10 / -1; justify-self: end; align-self: end; }

/* corner ticks used on every "screen" */
.ticks { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  --t: 12px; --c: var(--tick, rgba(255,255,255,.75));
  background:
    linear-gradient(var(--c) 0 0) 0 0 / var(--t) 1px, linear-gradient(var(--c) 0 0) 0 0 / 1px var(--t),
    linear-gradient(var(--c) 0 0) 100% 0 / var(--t) 1px, linear-gradient(var(--c) 0 0) 100% 0 / 1px var(--t),
    linear-gradient(var(--c) 0 0) 0 100% / var(--t) 1px, linear-gradient(var(--c) 0 0) 0 100% / 1px var(--t),
    linear-gradient(var(--c) 0 0) 100% 100% / var(--t) 1px, linear-gradient(var(--c) 0 0) 100% 100% / 1px var(--t);
  background-repeat: no-repeat; }

/* ---------- 01 hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar) + clamp(16px, 2.4vw, 32px)) var(--pad) clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr; gap: clamp(20px, 3vw, 44px) var(--pad); isolation: isolate; }
.hero__amb { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__amb img { position: absolute; right: -12%; top: -18%; width: 92%; height: 110%; object-fit: cover; filter: blur(70px) saturate(1.5); opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__amb img.on { opacity: var(--amb); }
/* light theme: a blurred dark artwork reads as a dirty shadow on paper, so the glow is pure signal colour instead */
[data-theme="light"] .hero__amb img { display: none; }
[data-theme="light"] .hero__amb::before { content: ""; position: absolute; right: -8%; top: -10%; width: 78%; height: 105%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sig) 30%, transparent), transparent 72%); filter: blur(30px); }
.hero__amb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, transparent 62%), linear-gradient(0deg, var(--bg) 2%, transparent 44%); transition: background .5s; }

.pgm { grid-column: 6 / -1; grid-row: 1; align-self: center; justify-self: end; min-width: 0; width: 100%; max-width: calc((100svh - var(--bar) - 200px) * 16 / 9); }
.pgm__head, .pgm__foot { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); padding: 9px 0; }
.pgm__head b, .pgm__foot b { font-weight: 400; color: var(--fg); }
.pgm__live { display: inline-flex; align-items: center; gap: 8px; }
.pgm__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sig); animation: blink 1.6s steps(2, jump-none) infinite; }
.pgm__screen { position: relative; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; container-type: inline-size; cursor: crosshair; }
.pgm__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 7s linear; }
.pgm__bg.on { opacity: 1; transform: scale(1); }
.pgm__wipe { position: absolute; inset: 0; z-index: 2; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.pgm__wipe.go { animation: wipe .7s var(--ease-io); }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: 0 50%; } 49% { transform: scaleX(1); transform-origin: 0 50%; } 50% { transform: scaleX(1); transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }

/* the scene drawn like the tools draw it: dark plate, accent bar, pack typeface */
.scene { position: absolute; left: 19.8%; top: 27.8%; width: 60.4%; height: 30.6%; z-index: 1; background: rgba(8, 7, 16, .76); border-radius: .6cqw; overflow: hidden; display: grid; place-content: center; text-align: center; color: #fff; }
.scene::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .65cqw; background: var(--sig); }
.scene__t { font-size: 6.1cqw; line-height: 1; letter-spacing: .03em; white-space: nowrap; text-shadow: 0 0 .7cqw rgba(0,0,0,.5); text-transform: uppercase; }
.scene__h { font: 800 2.3cqw/1 "Barlow Condensed", var(--sans); letter-spacing: .32em; margin-top: 1.6cqw; color: var(--sig-s, var(--sig)); padding-left: .32em; }
.scene__c { position: absolute; left: 50%; top: 62.5%; transform: translateX(-50%); z-index: 1; padding: .9cqw 2.2cqw .3cqw; background: rgba(8, 7, 16, .76); border-radius: .6cqw; font: 700 6.6cqw/1 "Rajdhani", var(--mono); letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
/* safe-area + pointer crosshair */
.pgm__safe { position: absolute; inset: 5% 5%; border: 1px dashed rgba(255,255,255,.18); z-index: 2; pointer-events: none; }
.pgm__x, .pgm__y { position: absolute; z-index: 2; background: rgba(255,255,255,.5); pointer-events: none; opacity: 0; transition: opacity .25s; }
.pgm__x { left: 0; right: 0; height: 1px; top: var(--my, 50%); } .pgm__y { top: 0; bottom: 0; width: 1px; left: var(--mx, 50%); }
.pgm__xy { position: absolute; right: 2.2%; bottom: 3.4%; z-index: 3; color: rgba(255,255,255,.85); opacity: 0; transition: opacity .25s; font-variant-numeric: tabular-nums; font-size: 10px; }
.pgm__screen:hover .pgm__x, .pgm__screen:hover .pgm__y, .pgm__screen:hover .pgm__xy { opacity: 1; }
.pgm__tag { position: absolute; left: 2.2%; top: 3.6%; z-index: 3; color: #fff; display: flex; gap: 8px; align-items: center; font-size: 10px; }
.pgm__tag::before { content: ""; width: 6px; height: 6px; background: var(--sig); }

.scenes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.scenes button { text-align: left; padding: 10px 8px 4px 0; color: var(--dim); position: relative; display: flex; gap: 8px; min-height: 40px; transition: color .25s; min-width: 0; }
.scenes button span { overflow: hidden; text-overflow: ellipsis; }
.scenes button em { font-style: normal; color: var(--faint); }
.scenes button::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; }
.scenes button:hover { color: var(--fg); }
.scenes button[aria-pressed="true"] { color: var(--fg); }
.scenes button[aria-pressed="true"]::before { transform: scaleX(1); }
.scenes.auto button[aria-pressed="true"]::before { animation: fill var(--dwell, 6s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__copy { grid-column: 1 / span 5; grid-row: 1; align-self: end; z-index: 4; display: grid; gap: clamp(18px, 2vw, 28px); justify-items: start; }
.hero__chip { display: inline-flex; gap: 10px; align-items: center; color: var(--dim); }
.hero__chip::before { content: ""; width: 18px; height: 1px; background: var(--sig); }
.hero h1 { max-width: 11.5ch; font-size: clamp(44px, 6.3vw, 104px); }
.hero h1 em { font-style: normal; color: var(--sig-t); }
.hero__sub { display: grid; gap: 20px; justify-items: start; width: 100%; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.hero__trust li { display: flex; gap: 8px; align-items: center; }
.hero__trust li::before { content: "+"; color: var(--sig-t); }

/* ---------- 02 tools index ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--pad); align-items: center; padding: clamp(16px, 1.7vw, 26px) 0; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease), color .3s; }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--fg); opacity: 0; z-index: -1; transition: opacity .3s; }
.row__n { grid-column: 1 / span 1; color: var(--dim); transition: color .3s; }
.row__name { grid-column: 2 / span 5; font-size: clamp(28px, 4.3vw, 70px); line-height: .95; letter-spacing: -.05em; font-weight: 500; display: flex; align-items: flex-start; gap: 12px; transition: transform .45s var(--ease); }
.row__badge { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 6px 4px; background: var(--sig); color: var(--on-sig); margin-top: .5em; }
.row__desc { grid-column: 7 / span 4; color: var(--dim); max-width: 38ch; font-size: 15px; line-height: 1.4; transition: color .3s; }
.row__go { grid-column: 11 / -1; justify-self: end; display: inline-flex; gap: 10px; align-items: center; color: var(--dim); white-space: nowrap; transition: color .3s; }
.row__go::after { content: "→"; font-size: 15px; transition: transform .35s var(--ease); }
/* the label is the same on every row: it only speaks on the row you point at */
.row__go-l { opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .45s var(--ease); }
.row__thumb { display: none; }
.row a.row__hit { position: absolute; inset: 0; z-index: 2; }
@media (hover: hover) {
  .row:hover { color: var(--bg); }
  .row:hover::before { opacity: 1; }
  .row:hover .row__n, .row:hover .row__desc, .row:hover .row__go { color: inherit; }
  .row:hover .row__name { transform: translateX(14px); }
  .row:hover .row__go::after { transform: translateX(5px); }
  .row:hover .row__go-l, .row:focus-within .row__go-l { opacity: 1; transform: none; }
}
.row--alt .row__name { color: var(--dim); }
.row--compact .row__name { font-size: clamp(22px, 2.5vw, 38px); letter-spacing: -.04em; grid-column: 2 / span 5; }
.row--compact { padding: clamp(12px, 1.1vw, 18px) 0; }

/* cursor-follow preview shared by the tool and template lists */
.peek { position: fixed; left: 0; top: 0; z-index: 80; width: min(30vw, 440px); aspect-ratio: 16 / 9; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.92); transition: opacity .25s, scale .4s var(--ease); background: var(--screen); overflow: hidden; }
.peek.sq { aspect-ratio: 460 / 447; width: min(22vw, 320px); }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 03 creator readout (pinned) ---------- */
.ro { height: calc(100svh + 4 * 62vh); position: relative; margin-top: var(--sec); border-top: 1px solid var(--line); }
.ro__pin { position: sticky; top: 0; height: 100svh; padding: calc(var(--bar) + clamp(18px, 2.4vw, 36px)) var(--pad) clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; gap: 16px var(--pad); overflow: hidden; }
.ro__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--pad); align-items: start; }
.ro__head .sh__tag { grid-column: 1 / span 3; }
.ro__head h2 { grid-column: 4 / -1; }
.ro__label { grid-column: 1; grid-row: 2; align-self: center; position: relative; height: 1.1em; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.04em; font-weight: 500; line-height: 1.1; }
.ro__idx { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.04em; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--dim); }
.ro__dial { grid-column: 2; grid-row: 2; align-self: center; position: relative; width: min(58vh, 46vw, 620px); aspect-ratio: 1; display: grid; place-items: center; }
.ro__dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ro__ring { fill: none; stroke: var(--line-2); stroke-width: 10; stroke-dasharray: 1.2 8.27; transform-origin: 50% 50%; transform: rotate(calc(var(--rp, 0) * 120deg)); }
.ro__ring2 { fill: none; stroke: var(--line); stroke-width: 1; }
.ro__arc { fill: none; stroke: var(--sig); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--rp, 0) * 100); transform: rotate(-90deg); transform-origin: 50% 50%; }
.ro__num { position: relative; font-size: clamp(110px, min(30vh, 22vw), 330px); line-height: .8; letter-spacing: -.07em; font-weight: 500; font-variant-numeric: tabular-nums; height: .8em; overflow: hidden; display: block; min-width: 1.2em; text-align: center; }
.swap > * { display: block; transition: transform .7s var(--ease), opacity .5s; }
.swap > *:not(.is-on) { position: absolute; inset: 0; opacity: 0; transform: translateY(70%); }
.swap > .is-prev { transform: translateY(-70%); }
.ro__label.swap > *, .ro__note.swap > * { white-space: normal; }
.ro__unit { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); color: var(--dim); white-space: nowrap; }
.ro__mark { position: absolute; top: -4px; left: 50%; width: 1px; height: 22px; background: var(--fg); }
.ro__foot { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px var(--pad); align-items: end; }
.ro__note { grid-column: 1 / span 5; position: relative; min-height: 4.4em; color: var(--dim); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.4; max-width: 40ch; }
.ro__steps { grid-column: 6 / span 2; display: flex; gap: 6px; justify-content: center; padding-bottom: 6px; }
.ro__steps i { width: 26px; height: 2px; background: var(--line-2); transition: background-color .4s; }
.ro__steps i.is-on { background: var(--sig); }
.ro__cta { grid-column: 8 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-items: center; }

/* gallery / packs rail */
.rail-wrap { margin: 0 calc(var(--pad) * -1); }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag a { pointer-events: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border: 1px solid var(--line-2); font-size: 16px; display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.rail-nav button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rail-nav button:disabled { opacity: .3; pointer-events: none; }

.shot { position: relative; height: clamp(240px, 30vw, 420px); background: var(--screen); overflow: hidden; }
.shot img { height: 100%; width: auto; max-width: none; pointer-events: none; user-select: none; }
.shot figcaption { position: absolute; left: 10px; bottom: 9px; color: #fff; font-size: 10px; display: flex; gap: 8px; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.shot figcaption em { font-style: normal; opacity: .6; }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(40px, 5vw, 72px) 0 22px; flex-wrap: wrap; }

/* ---------- 04 recolor demo ---------- */
.demo { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) var(--pad); align-items: start; }
.demo__ctl { grid-column: 1 / span 4; display: grid; gap: 26px; align-content: start; }
.demo__view { grid-column: 5 / -1; min-width: 0; }
.demo__frame { position: relative; background: var(--screen); aspect-ratio: 16 / 9; overflow: hidden; }
.demo__frame canvas, .demo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fld { display: grid; gap: 10px; }
.fld__l { color: var(--dim); display: flex; justify-content: space-between; }
.fld__l b { font-weight: 400; color: var(--fg); }
.picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.design-tile { position: relative; aspect-ratio: 16 / 10; background: var(--screen); overflow: hidden; outline: 1px solid var(--line-2); outline-offset: -1px; transition: outline-color .2s; }
.design-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .25s, transform .5s var(--ease); }
.design-tile:hover img { opacity: 1; transform: scale(1.06); }
.design-tile.active { outline: 2px solid var(--fg); outline-offset: 2px; }
.design-tile.active img { opacity: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-swatch { width: 36px; height: 36px; position: relative; transition: transform .3s var(--ease); }
.sm-swatch:hover { transform: translateY(-3px); }
.sm-swatch.active { outline: 2px solid var(--fg); outline-offset: 3px; }
.sm-swatch-input { width: 36px; height: 36px; padding: 0; border: 1px dashed var(--line-2); background: none; cursor: pointer; }
.sm-swatch-input::-webkit-color-swatch-wrapper { padding: 5px; } .sm-swatch-input::-webkit-color-swatch { border: 0; }

/* ---------- 05 why + how ---------- */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.spec > li { padding: 22px var(--pad) clamp(28px, 3vw, 48px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; position: relative; }
.spec > li + li { padding-left: var(--pad); border-left: 1px solid var(--line); }
.spec__n { color: var(--faint); display: flex; justify-content: space-between; margin-bottom: clamp(36px, 6vw, 110px); }
.spec__n b { font-weight: 400; color: var(--sig-t); }
.spec p { color: var(--dim); font-size: 15px; line-height: 1.45; max-width: 32ch; }

.how { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px) var(--pad); padding-top: var(--sec); }
.how__intro { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; justify-items: start; position: sticky; top: calc(var(--bar) + 32px); }
.how__steps { grid-column: 7 / -1; counter-reset: s; border-top: 1px solid var(--line-2); }
.how__steps li { display: grid; grid-template-columns: clamp(64px, 9vw, 150px) 1fr; gap: var(--pad); align-items: baseline; padding: clamp(18px, 2.2vw, 34px) 0; border-bottom: 1px solid var(--line); }
.how__steps li::before { counter-increment: s; content: "0" counter(s); font-size: clamp(44px, 6.4vw, 104px); line-height: .8; letter-spacing: -.06em; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .5s; }
.how__steps li.in::before { color: var(--fg); }
.how__steps li.how__extra::before { content: "+"; color: var(--sig-t); }
.how__steps li.how__extra a { border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.how__steps li.how__extra a:hover { color: var(--sig-t); border-color: var(--sig-t); }

/* ---------- 06 packs ---------- */
.pack { position: relative; width: clamp(240px, 24vw, 360px); display: grid; gap: 12px; }
.pack__img { position: relative; aspect-ratio: 398 / 500; background: var(--screen); overflow: hidden; }
.pack__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; pointer-events: none; user-select: none; }
.pack__n { position: absolute; left: 10px; top: 8px; z-index: 2; color: #fff; font-size: clamp(40px, 4.4vw, 68px); letter-spacing: -.06em; font-weight: 500; line-height: 1; mix-blend-mode: difference; }
.pack__go { position: absolute; right: 0; bottom: 0; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: var(--sig); color: var(--on-sig); font-size: 18px; transform: translate(101%, 101%); transition: transform .45s var(--ease); }
.pack__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pack__meta span { color: var(--dim); }
.pack__link { position: absolute; inset: 0; z-index: 3; }
.pack__watch { position: relative; z-index: 4; color: var(--dim); border-bottom: 1px solid var(--line-2); }
.pack__watch:hover { color: var(--sig-t); border-color: var(--sig-t); }
.pack .ticks { opacity: 0; transition: opacity .3s, inset .45s var(--ease); inset: 14px; }
@media (hover: hover) {
  .pack:hover .pack__img img { transform: scale(1.05); }
  .pack:hover .pack__go { transform: none; }
  .pack:hover .ticks { opacity: 1; inset: 8px; }
}

/* ---------- 07 templates ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--pad); }
.split__a .sh__tag { grid-column: auto; padding-top: 0; }
.split__a { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: start; justify-items: start; position: sticky; top: calc(var(--bar) + 32px); align-self: start; }
.split__b { grid-column: 6 / -1; min-width: 0; }
.split .row--compact { grid-template-columns: 36px 1fr auto 24px; }
.split .row--compact .row__n, .split .row--compact .row__name, .split .row--compact .row__desc, .split .row--compact .row__go { grid-column: auto; }
.split .row--compact .row__desc { text-align: right; max-width: none; }
.split .row--compact .row__go::after { content: "↗"; }

/* ---------- 08 guides ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad) 12px; }
.card { position: relative; display: grid; gap: 16px; align-content: start; }
.card__img { aspect-ratio: 820 / 581; background: var(--screen); overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__tag { color: var(--dim); display: flex; gap: 10px; }
.card__tag b { font-weight: 400; color: var(--sig-t); }
.card h3 { max-width: 22ch; }
.card a::after { content: ""; position: absolute; inset: 0; }
.card__go { color: var(--dim); display: inline-flex; gap: 10px; transition: color .3s; }
.card__go::after { content: "→"; transition: transform .35s var(--ease); }
.card:hover .card__go { color: var(--sig-t); } .card:hover .card__go::after { transform: translateX(5px); }
.after { display: flex; justify-content: flex-end; padding-top: clamp(28px, 3vw, 44px); }

/* ---------- 09 faq ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px 1fr 28px; gap: 12px; align-items: baseline; padding: clamp(18px, 1.8vw, 26px) 0; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sig-t); }
.faq summary .mono { color: var(--faint); }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); justify-self: end; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 40px clamp(20px, 2vw, 30px) 48px; color: var(--dim); max-width: 58ch; font-size: clamp(16px, 1.2vw, 18px); }
.faq details[open] .faq__a { animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 10 custom + newsletter ---------- */
.cta { position: relative; margin-top: var(--sec); padding: clamp(64px, 9vw, 150px) var(--pad); border-block: 1px solid var(--line); overflow: hidden; isolation: isolate; display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px var(--pad); align-items: end; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -70%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--sig), transparent 72%); opacity: .2; filter: blur(30px); }
.cta__tag { grid-column: 1 / -1; color: var(--dim); display: flex; gap: 14px; }
.cta h2 { grid-column: 1 / span 8; }
.cta__side { grid-column: 9 / -1; display: grid; gap: 22px; justify-items: start; }

.nl { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--pad); align-items: center; padding: clamp(28px, 3vw, 44px) var(--pad); border-bottom: 1px solid var(--line); }
.nl h2 { grid-column: 1 / span 5; }
.nl form { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.nl form:focus-within { border-color: var(--sig-t); }
.nl input[type="email"] { font: 400 clamp(18px, 1.6vw, 24px)/1 var(--sans); letter-spacing: -.02em; color: var(--fg); background: none; border: 0; padding: 14px 0; min-width: 0; outline: none; }
.nl input::placeholder { color: var(--faint); }
.nl__msg { grid-column: 7 / -1; min-height: 1.5em; color: var(--dim); }
.nl__msg.ok { color: var(--sig-t); }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.foot { padding: clamp(40px, 5vw, 72px) var(--pad) 0; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px var(--pad); }
.foot__about { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.foot__about p { color: var(--dim); max-width: 34ch; font-size: 15px; }
.foot__col { grid-column: span 2; display: grid; gap: 14px; align-content: start; }
.foot__col:nth-child(2) { grid-column: 7 / span 2; }
.foot__col h3 { color: var(--faint); font: 400 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.foot__col h3::before { content: "[ "; } .foot__col h3::after { content: " ]"; }
.foot__col ul { display: grid; gap: 7px; }
.foot__col a { transition: color .25s; }
.foot__col a:hover { color: var(--sig-t); }
.foot__logo { color: var(--fg); justify-self: start; }
.foot__logo svg { height: 34px; width: auto; }
.foot__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--dim); margin-top: clamp(40px, 5vw, 72px); padding: 18px 0 22px; border-top: 1px solid var(--line); }
.foot__top { display: inline-flex; gap: 8px; color: var(--dim); transition: color .25s; }
.foot__top:hover { color: var(--sig-t); }

/* ---------- boot + reveal (only when JS is on) ---------- */
.boot { display: none; }
.js .boot { display: grid; position: fixed; inset: 0; z-index: 300; background: var(--bg); grid-template-rows: 1fr auto; padding: var(--pad); transition: clip-path .8s var(--ease-io), visibility 0s .8s; clip-path: inset(0); }
.js .boot.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.js.no-boot .boot { display: none; }
.boot__n { align-self: end; font-size: clamp(90px, 22vw, 340px); line-height: .8; letter-spacing: -.07em; font-weight: 500; font-variant-numeric: tabular-nums; }
.boot__row { display: flex; justify-content: space-between; color: var(--dim); padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.boot__row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: calc(var(--b, 0) * 1%); background: var(--sig); }

.js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rv].in { opacity: 1; transform: none; }
/* the mask only paints inside the element box: with line-heights under 1 the descenders (g, p, y) and accents (É, Ñ) sit outside it,
   so the box is enlarged by padding and the layout restored with an equal negative margin */
[data-rv="line"] { padding-block: .16em; margin-block: -.16em; }
.js [data-rv="line"] { opacity: 1; transform: translateY(.18em); -webkit-mask: linear-gradient(#000 0 0) no-repeat 0 0 / 100% 0%; mask: linear-gradient(#000 0 0) no-repeat 0 0 / 100% 0%; transition: transform 1.2s var(--ease), -webkit-mask-size 1.2s var(--ease), mask-size 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rv="line"].in { transform: none; -webkit-mask-size: 100% 130%; mask-size: 100% 130%; }
.js .rows [data-rv] { transform: none; }

@keyframes blink { 50% { opacity: .25; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bar__nav { visibility: hidden; }
  .bar__burger { display: block; }
  .row__desc { grid-column: 7 / span 6; }
  .row__go { display: none; }
  .split .row--compact { grid-template-columns: 36px 1fr auto 24px; }
  .split .row--compact .row__go { display: inline-flex; font-size: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec > li:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec__n { margin-bottom: 36px; }
}
@media (min-width: 1181px) { .sheet { display: none; } }

@media (max-width: 900px) {
  :root { --bar: 60px; }
  .bar__logo svg { height: 24px; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .bar__util .lg, .bar__cta { display: none; }
  .sh { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sh > * { grid-column: 1 / -1 !important; }
  .sh__tag { padding-top: 0; }
  .sh__side { justify-self: start; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 22px; min-height: 0; padding-top: calc(var(--bar) + 14px); }
  .hero > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero__amb img { width: 140%; right: -20%; top: -6%; height: 60%; }
  .hero__amb::after { background: linear-gradient(0deg, var(--bg) 42%, transparent 80%); }
  .pgm { order: 1; margin: 0 calc(var(--pad) * -1 + 8px); }
  .hero__copy { order: 2; }
  .hero h1 { max-width: none; }
  .scenes { grid-template-columns: repeat(6, 1fr); }
  .scenes button span { display: none; }
  .pgm__foot span:last-child { display: none; }
  .pgm__screen { cursor: default; }
  .pgm__x, .pgm__y, .pgm__xy { display: none; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: space-between; }

  .row { grid-template-columns: 28px 1fr 84px; gap: 4px 12px; align-items: start; padding: 16px 0; }
  .row__n { grid-column: 1; grid-row: 1; padding-top: .55em; }
  .row__name { grid-column: 2; grid-row: 1; font-size: clamp(26px, 8vw, 40px); }
  .row__desc { grid-column: 2; grid-row: 2; font-size: 14px; }
  .row__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--screen); align-self: center; }
  .split .row--compact { grid-template-columns: 28px 1fr 56px; }
  .split .row--compact .row__name { grid-column: 2; font-size: 22px; }
  .split .row--compact .row__desc { grid-column: 2; grid-row: 2; text-align: left; font-size: 13px; }
  .split .row--compact .row__go { display: none; }
  .split .row--compact .row__thumb { aspect-ratio: 1; grid-column: 3; }
  .peek { display: none; }

  .ro { height: calc(100svh + 4 * 48vh); }
  .ro__pin { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; gap: 10px 12px; }
  .ro__head { grid-template-columns: 1fr; }
  .ro__head > * { grid-column: 1 / -1 !important; }
  .ro__label { grid-column: 1; grid-row: 2; align-self: end; margin-top: 10px; }
  .ro__idx { grid-column: 2; grid-row: 2; align-self: end; }
  .ro__dial { grid-column: 1 / -1; grid-row: 3; justify-self: center; width: min(74vw, 44vh); }
  .ro__num { font-size: min(34vw, 20vh); }
  .ro__foot { grid-row: 4; grid-template-columns: 1fr; gap: 12px; }
  .ro__foot > * { grid-column: 1 / -1 !important; }
  .ro__steps { justify-content: flex-start; order: -1; }
  .ro__cta { justify-content: flex-start; }
  .ro__cta .btn--ghost { display: none; }
  .ro__note { min-height: 5.8em; font-size: 15px; }

  .demo { grid-template-columns: 1fr; }
  .demo > * { grid-column: 1 / -1 !important; }
  .demo__view { order: -1; margin: 0 calc(var(--pad) * -1 + 8px); }
  .sm-swatch, .sm-swatch-input { width: 40px; height: 40px; }

  .spec { grid-template-columns: 1fr; }
  .spec > li, .spec > li + li { padding: 18px 0 26px; border-left: 0; }
  .spec__n { margin-bottom: 18px; }
  .how { grid-template-columns: 1fr; }
  .how > * { grid-column: 1 / -1 !important; position: static; }
  .pack { width: 68vw; }
  .split { grid-template-columns: 1fr; }
  .split > * { grid-column: 1 / -1 !important; position: static; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .faq__a { padding: 0 0 22px 48px; }
  .cta { grid-template-columns: 1fr; }
  .cta > * { grid-column: 1 / -1 !important; }
  .nl { grid-template-columns: 1fr; }
  .nl > * { grid-column: 1 / -1 !important; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .foot__col, .foot__col:nth-child(2) { grid-column: span 1; }
  .rail-nav { display: none; }
}

/* short landscape screens: the pinned readout needs air */
@media (max-height: 620px) and (min-width: 901px) {
  .ro__head h2 { font-size: 34px; }
  .ro__dial { width: min(50vh, 40vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-rv] { opacity: 1; transform: none; -webkit-mask: none; mask: none; }
  .js .boot { display: none; }
  /* unpin the readout: show the four figures as a plain grid */
  .ro { height: auto; }
  .ro__pin { position: static; height: auto; display: block; padding-top: var(--sec); }
  .ro__dial, .ro__label, .ro__idx, .ro__steps { display: none; }
  .ro__note.swap > * { position: static !important; opacity: 1 !important; transform: none !important; padding: 14px 0; border-top: 1px solid var(--line); }
  .ro__note { max-width: none; margin: 28px 0; }
  .ro__foot { display: block; } .ro__cta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* =====================================================================================================
   Inner pages
   ===================================================================================================== */

/* ---------- tools dropdown in the bar ---------- */
.dd { position: relative; display: flex; align-items: center; }
.dd__t { display: inline-flex !important; align-items: center; gap: 7px; }
.dd__chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
.dd__p { position: fixed; left: var(--pad); right: var(--pad); top: calc(var(--bar) - 1px); padding: 22px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  display: grid; gap: 18px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; z-index: 101; }
.dd__p::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@media (hover: hover) { .dd:hover .dd__p { visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s; } .dd:hover .dd__chev { transform: translateY(1px) rotate(225deg); } }
.dd:focus-within .dd__p, .dd.is-open .dd__p { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.dd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dd__i { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-content: start; padding: 0 0 4px; color: var(--fg) !important; }
.dd__i::after { display: none !important; }
.dd__img { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; margin-bottom: 6px; outline: 1px solid var(--line); outline-offset: -1px; }
.dd__img img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease); }
.dd__i:hover .dd__img img, .dd__i:focus-visible .dd__img img { opacity: 1; transform: scale(1.05); }
.dd__n { color: var(--faint); padding-top: 3px; }
.dd__t, .dd__i .dd__t { font-size: 14.5px; font-weight: 500; letter-spacing: -.012em; }
.dd__i .dd__t { display: flex; gap: 8px; align-items: center; }
.dd__i .row__badge { margin: 0; font-size: 9px; }
.dd__d { grid-column: 2; color: var(--dim); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd__i[aria-current="page"] .dd__t > span:first-child { color: var(--sig-t); }
.dd__all { justify-self: end; padding: 6px 0; }
.sheet__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 10px 0 14px 38px; border-bottom: 1px solid var(--line); }
.sheet__nav .sheet__tools a { display: block; font: 400 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding: 7px 0; border: 0; }

/* ---------- page header ---------- */
.ph { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--bar) + clamp(28px, 4vw, 64px)) var(--pad) clamp(36px, 4.5vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--pad); border-bottom: 1px solid var(--line); }
.ph::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--sig), transparent 72%); opacity: .12; filter: blur(40px); pointer-events: none; }
.ph__crumb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); margin-bottom: clamp(20px, 4vw, 64px); }
.ph__crumb i { font-style: normal; color: var(--faint); }
.ph__crumb a { transition: color .25s; } .ph__crumb a:hover { color: var(--sig-t); }
.ph__crumb [aria-current] { color: var(--fg); }
.ph__tag { grid-column: 1 / span 3; display: flex; gap: 14px; align-items: flex-start; color: var(--dim); padding-top: .9em; }
.ph__tag .idx { color: var(--sig-t); white-space: nowrap; }
.ph__tag .idx::before { content: "[ "; color: var(--faint); } .ph__tag .idx::after { content: " ]"; color: var(--faint); }
.ph__h { grid-column: 4 / -1; max-width: 16ch; }
.ph__h .dim { color: var(--faint); }
.ph__foot { grid-column: 4 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px var(--pad); align-items: end; margin-top: clamp(14px, 2vw, 28px); }
.ph__foot .lead { max-width: 52ch; }
.ph__foot .lead b { color: var(--fg); font-weight: 500; }
.ph__side { display: grid; gap: 16px; justify-items: end; text-align: right; }
.ph__btns { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ph__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); justify-content: flex-end; }
.ph__meta li::before { content: "+ "; color: var(--sig-t); }
.ph--short .ph__h { max-width: 22ch; font-size: clamp(36px, 5.2vw, 84px); }
.ph--tool { padding-top: calc(var(--bar) + clamp(16px, 1.8vw, 28px)); padding-bottom: clamp(22px, 2.2vw, 34px); row-gap: 10px; }
.ph--tool .ph__h { font-size: clamp(34px, 3.6vw, 58px); max-width: 22ch; }
.ph--tool .ph__crumb { margin-bottom: clamp(10px, 1.4vw, 22px); }
.ph--tool .ph__tag { padding-top: .5em; }
.ph--tool .ph__foot { margin-top: 4px; }
.ph--tool .lead { font-size: 15.5px; }

/* ---------- about ---------- */
.duo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px var(--pad); align-items: center; }
.duo__a { grid-column: 1 / span 5; display: grid; gap: 24px; }
.collage { grid-column: 7 / -1; position: relative; aspect-ratio: 16 / 11; }
.col__s { position: absolute; width: 64%; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transition: transform .9s var(--ease); }
.col__s img { width: 100%; height: 100%; object-fit: cover; }
.col__s.s1 { left: 0; top: 0; } .col__s.s2 { right: 0; top: 22%; z-index: 2; } .col__s.s3 { left: 14%; bottom: 0; z-index: 3; }
.collage:hover .s1 { transform: translate(-10px, -8px); } .collage:hover .s2 { transform: translate(10px, -4px); } .collage:hover .s3 { transform: translate(-4px, 10px); }
.collage__badge { position: absolute; right: 0; bottom: 4%; z-index: 4; padding: 9px 12px; background: var(--sig); color: var(--on-sig); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stats li { padding: 20px var(--pad) 0 0; display: grid; gap: 14px; align-content: start; }
.stats li + li { padding-left: var(--pad); border-left: 1px solid var(--line); }
.stats__n { font-size: clamp(90px, 13vw, 220px); line-height: .8; letter-spacing: -.07em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats__l { color: var(--dim); font-size: 15px; max-width: 22ch; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 12px; }
.tile { display: grid; gap: 12px; }
.tile__img { position: relative; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; display: block; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile .ticks { opacity: 0; inset: 14px; transition: opacity .3s, inset .45s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); } .tile:hover .ticks { opacity: 1; inset: 8px; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; }
.tile__meta .mono { color: var(--dim); transition: color .25s; } .tile:hover .tile__meta .mono { color: var(--sig-t); }
.how__steps--text li { align-items: start; }
.how__steps--text li > div { display: grid; gap: 8px; padding-top: .35em; }
.how__p { color: var(--dim); font-size: 15px; line-height: 1.45; max-width: 46ch; }
.spec--3 { grid-template-columns: repeat(3, 1fr); }
.spec--3 > li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.spec--3 .spec__n { margin-bottom: clamp(28px, 4vw, 64px); }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--pad); }
.form .fld { display: grid; gap: 10px; }
.form input:not(.hp), .form select, .form textarea {
  width: 100%; font: 400 clamp(17px, 1.3vw, 20px)/1.3 var(--sans); letter-spacing: -.015em; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0 12px; outline: none; transition: border-color .25s; }
.form textarea { resize: vertical; min-height: 140px; }
.form select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--dim) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--dim) 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; cursor: pointer; }
.form select option { background: var(--bg); color: var(--fg); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sig-t); }
.form ::placeholder { color: var(--faint); }
.form__end { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.form__msg { color: var(--dim); }
.form__msg.ok, .nl__msg.ok { color: var(--sig-t); }
.form__msg.err, .nl__msg.err { color: #ff6b6b; }
[data-theme="light"] .form__msg.err, [data-theme="light"] .nl__msg.err { color: #c62828; }

/* ---------- guides ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line-2); color: var(--dim); transition: color .2s, background-color .2s, border-color .2s; }
.chip em { font-style: normal; color: var(--faint); }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.is-on em { color: inherit; opacity: .55; }
.cards--3 { grid-template-columns: repeat(3, 1fr); gap: 48px 12px; }
.card.is-hidden { display: none; }

/* ---------- legal ---------- */
.doc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--pad); }
.doc__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--bar) + 28px); align-self: start; display: grid; gap: 2px; }
.doc__toc p { margin-bottom: 12px; }
.doc__toc a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 14.5px; transition: color .2s; }
.doc__toc a .mono { color: var(--faint); padding-top: 2px; }
.doc__toc a:hover, .doc__toc a.is-on { color: var(--fg); }
.doc__toc a.is-on .mono { color: var(--sig-t); }
.doc__body { grid-column: 5 / -1; border-top: 1px solid var(--line-2); }
.doc__b { display: grid; grid-template-columns: 60px 1fr; gap: var(--pad); padding: clamp(22px, 2.6vw, 38px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 20px); }
.doc__n { color: var(--sig-t); padding-top: .6em; }
.doc__b > div { display: grid; gap: 14px; }
.doc__b p { color: var(--dim); max-width: 66ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; }

/* ---------- article ---------- */
.art { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--pad); }
.art__main { grid-column: 1 / span 8; min-width: 0; }
.art__side { grid-column: 10 / -1; display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--bar) + 28px); align-self: start; }
.art__hero { position: relative; aspect-ratio: 820 / 581; background: var(--screen); overflow: hidden; margin-bottom: clamp(28px, 3vw, 48px); }
.art__hero img { width: 100%; height: 100%; object-fit: cover; }
.art__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; background: var(--sig); color: var(--on-sig); transition: transform .4s var(--ease); }
.art__play i { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.art__play:hover { transform: translate(-50%, -50%) scale(1.04); }
.prose { max-width: 68ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--dim); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { color: var(--fg); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; margin-top: 2.1em; display: flex; gap: 14px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h3:first-child { margin-top: 0; }
.art__n { color: var(--sig-t); font-size: 12px; flex: none; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--sig-t); transition: color .2s; }
.prose a:hover { color: var(--sig-t); }
.prose ul { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: "+"; position: absolute; left: 0; color: var(--sig-t); font-family: var(--mono); }
.side__c { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-2); justify-items: start; }
.side__c p { color: var(--dim); font-size: 14.5px; }
.side__c--cta { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.side__c--cta p { color: inherit; opacity: .7; }
.side__c--cta .btn { background: var(--sig); color: var(--on-sig); }
.side__rel { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); width: 100%; font-size: 14px; line-height: 1.3; transition: color .2s; }
.side__rel:hover { color: var(--sig-t); }
.side__ri { aspect-ratio: 820 / 581; background: var(--screen); overflow: hidden; }
.side__ri img { width: 100%; height: 100%; object-fit: cover; }
.side__rel em { display: block; font-style: normal; color: var(--faint); margin-bottom: 4px; }

/* ---------- more tools list on tool pages ---------- */
.rows--more .row--compact { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.2fr) 24px; }
.rows--more .row__desc { text-align: left !important; font-size: 14px; }

@media (max-width: 1180px) {
  .dd__grid { grid-template-columns: repeat(2, 1fr); }
  .art__main { grid-column: 1 / -1; }
  .art__side { grid-column: 1 / -1; position: static; grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .ph__foot { grid-template-columns: 1fr; }
  .ph__side { justify-items: start; text-align: left; }
  .ph__meta, .chips { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .ph { grid-template-columns: 1fr; padding-top: calc(var(--bar) + 20px); }
  .ph > * { grid-column: 1 / -1 !important; }
  .ph__tag { padding-top: 0; }
  .ph__h, .ph--tool .ph__h, .ph--short .ph__h { max-width: none; font-size: clamp(36px, 10vw, 56px); }
  .duo, .doc, .art { grid-template-columns: 1fr; }
  .duo > *, .doc > *, .art > * { grid-column: 1 / -1 !important; position: static; }
  .collage { aspect-ratio: 16 / 12; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li { padding-bottom: 24px; }
  .stats__n { font-size: 26vw; }
  .tiles, .cards--3, .spec--3 { grid-template-columns: 1fr; }
  .spec--3 > li, .spec--3 > li + li { padding: 18px 0 26px; border-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .art__side { grid-template-columns: 1fr; }
  .doc__toc { display: none; }
  .doc__b { grid-template-columns: 1fr; gap: 8px; }
  .rows--more .row--compact { grid-template-columns: 28px 1fr 56px; }
}
