/* fourfold website. Tokens from Design/Brand Book/tokens.json (Four Stocks). */

@font-face { font-family: "Bricolage Display"; src: url("fonts/bricolage-display.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage UI"; src: url("fonts/bricolage-ui.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Text"; src: url("fonts/bricolage-text.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  /* deck (follows light / dark) */
  --surface: #ffffff;
  --surface-sunken: #f3f3f4;
  --ink: #0b0b0c;
  --ink-muted: #5f6066;
  --rule: #e4e4e7;
  --control-border: #0b0b0c;
  --ink-fill: #0b0b0c;
  --on-ink: #ffffff;
  /* stage + lenses (never change) */
  --stage: #0b0b0c;
  --stage-ink: #ffffff;
  --stage-ink-muted: #a0a0a6;
  --stage-rule: #2e2e33;
  --l1: #ff4d2e; --l2: #ffc21a; --l3: #19c37d; --l4: #3d7bff;
  --on-lens: #0b0b0c;
  /* type */
  --display: "Bricolage Display", "Helvetica Neue", Arial, sans-serif;
  --ui: "Bricolage UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: "Bricolage Text", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  /* shape */
  --r-tab: 4px; --r-s: 6px; --r-m: 11px; --r-l: 18px;
  --lift: 0 8px 24px rgba(0, 0, 0, .35);
  /* motion */
  --quick: 160ms cubic-bezier(.2, .7, .3, 1);
  --spring: cubic-bezier(.22, 1.18, .36, 1);     /* ~ spring 0.38 / 0.78 */
  --hop: cubic-bezier(.3, 1.6, .5, 1);           /* ~ spring 0.38 / 0.6 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #18181b; --surface-sunken: #232327; --ink: #f5f5f6; --ink-muted: #a0a0a6;
    --rule: #2e2e33; --control-border: #f5f5f6; --ink-fill: #f5f5f6; --on-ink: #18181b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #18181b; --surface-sunken: #232327; --ink: #f5f5f6; --ink-muted: #a0a0a6;
  --rule: #2e2e33; --control-border: #f5f5f6; --ink-fill: #f5f5f6; --on-ink: #18181b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; transition: background-color var(--quick), color var(--quick);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--control-border); outline-offset: 2px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--stage-ink); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink-fill); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-m); font: 700 15px var(--ui); }
.skip:focus { top: 12px; }

/* ---------- labels, tabs, symbol ---------- */
.label {
  font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; margin: 0;
}
.stage .label { color: var(--stage-ink-muted); }
.tab { display: inline-block; width: 9px; height: 12px; border-radius: 2.5px; background: var(--c, var(--ink)); flex: none; }
.t1 { --c: var(--l1); } .t2 { --c: var(--l2); } .t3 { --c: var(--l3); } .t4 { --c: var(--l4); }
.data { font: 700 13px/1.2 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.symbol { display: inline-flex; align-items: flex-start; gap: calc(var(--u) * 4); height: calc(var(--u) * 26); --u: 1px; }
.symbol i { width: calc(var(--u) * 15); height: calc(var(--u) * 18); border-radius: calc(var(--u) * 3.5); background: var(--c); }
.symbol i:nth-child(1) { --c: var(--l1); margin-top: calc(var(--u) * 6); }
.symbol i:nth-child(2) { --c: var(--l2); margin-top: 0; }
.symbol i:nth-child(3) { --c: var(--l3); margin-top: calc(var(--u) * 8); }
.symbol i:nth-child(4) { --c: var(--l4); margin-top: calc(var(--u) * 2); }

.wordmark { display: inline-flex; align-items: baseline; gap: .42em; text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: -.02em; color: inherit; }
.wordmark .symbol { --u: .029em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 16px;
  border-radius: var(--r-l); background: var(--ink-fill); color: var(--on-ink); text-decoration: none;
  font: 700 16px/1 var(--ui); letter-spacing: -.01em; border: 0; cursor: pointer;
  transition: transform 260ms var(--spring), background-color var(--quick), color var(--quick);
}
.btn .tab { width: 10px; height: 13px; }
.btn:active { transform: scale(.96); }
.stage .btn { background: var(--stage-ink); color: var(--stage); }
.btn-arrow { margin-left: 4px; opacity: .7; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform 260ms var(--spring); }
.badge img { height: 48px; width: auto; }
.badge:active { transform: scale(.96); }
.badge.fallback { line-height: 1; }
.badge.fallback > span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 16px; border-radius: var(--r-l); background: var(--stage-ink); color: var(--stage); font: 700 16px/1 var(--ui); border: 1.5px solid #3a3a40; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 20; color: var(--stage-ink);
  padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top nav { display: flex; gap: 26px; font: 700 15px var(--ui); }
.top nav a { text-decoration: none; color: var(--stage-ink-muted); transition: color var(--quick); }
.top nav a:hover { color: var(--stage-ink); }
.top .btn { background: var(--stage-ink); color: var(--stage); }
.top .btn { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: var(--r-m); }
@media (max-width: 820px) { .top nav { display: none; } }

/* ---------- stage bands ---------- */
.stage { background: var(--stage); color: var(--stage-ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 96px 0 56px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 118px); line-height: .92; }
.hero h1 .eyebrow { display: flex; margin-bottom: 26px; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stage-ink-muted); gap: 10px; align-items: center; }
.hero h1 .ln { display: block; }
.hero h1 .ln > span { display: inline-block; }
.k1 { color: var(--l1); } .k2 { color: var(--l2); } .k3 { color: var(--l3); } .k4 { color: var(--l4); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: #d6d6da; max-width: 34em; margin: 28px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-row .label { max-width: 22em; }

.reel-card { position: relative; }
.frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: #000;
  transform: translateZ(0);
}
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { width: min(100%, 72svh * .75 + 60px); margin-left: auto; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.strip span { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--stage-ink-muted); transition: color var(--quick); }
.strip span::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--c); transform-origin: center; transform: scaleX(.42); opacity: .55; transition: transform 160ms var(--ease-out), opacity 160ms; }
.strip span.on { color: var(--stage-ink); }
.strip span.on::before { transform: scaleX(1); opacity: 1; }
.caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 14px; }

/* entrance (first launch: symbol assembles, words rise) */
.boot .top .symbol i { transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--sr)); opacity: .2; }
.top .symbol i { transition: transform 620ms var(--hop), opacity 300ms; }
.top .symbol i:nth-child(1) { --sx: -40px; --sy: 22px; --sr: -24deg; transition-delay: 0ms; }
.top .symbol i:nth-child(2) { --sx: -10px; --sy: -26px; --sr: 18deg; transition-delay: 60ms; }
.top .symbol i:nth-child(3) { --sx: 18px; --sy: 30px; --sr: -12deg; transition-delay: 120ms; }
.top .symbol i:nth-child(4) { --sx: 44px; --sy: -18px; --sr: 28deg; transition-delay: 180ms; }
.hop .symbol i, .symbol.hop i { animation: hop 520ms var(--hop) both; }
.symbol.hop i:nth-child(2), .hop .symbol i:nth-child(2) { animation-delay: 60ms; }
.symbol.hop i:nth-child(3), .hop .symbol i:nth-child(3) { animation-delay: 120ms; }
.symbol.hop i:nth-child(4), .hop .symbol i:nth-child(4) { animation-delay: 180ms; }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translate3d(0, calc(var(--u) * -9), 0); } }

.boot .hero h1 .ln > span, .boot .hero .eyebrow, .boot .hero .lede, .boot .hero .cta-row { opacity: 0; transform: translate3d(0, 0.5em, 0); }
.hero h1 .ln > span, .hero .eyebrow, .hero .lede, .hero .cta-row { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 200ms); }
.boot .hero .lede, .boot .hero .cta-row { transform: translate3d(0, 18px, 0); }
.boot .hero-video .frame { opacity: 0; }
.hero-video .frame { transition: opacity 600ms var(--ease-out) 300ms; }

@media (max-width: 900px) {
  .hero { padding: 92px 0 0; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-video { width: auto; margin: 0 calc(-1 * var(--gutter)); }
  .hero-video .frame { border-radius: 0; }
  .hero-video .strip, .hero-video .caption { padding-inline: var(--gutter); }
  .hero-video .caption { padding-bottom: 28px; }
}

/* ---------- reel (full bleed) ---------- */
.reel { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 120px); overflow: clip; }
.reel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.reel-head h2 { font-size: clamp(36px, 5.4vw, 80px); line-height: .95; max-width: 11em; }
.reel-head p { color: var(--stage-ink-muted); max-width: 26em; margin: 0; }
.reel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.reel-row figure { margin: 0; position: relative; }
.reel-row .frame { border-radius: 0; aspect-ratio: 3 / 4; }
.reel-row figure:nth-child(1) { transform: translate3d(0, calc((1 - var(--p, .5)) * 60px), 0); }
.reel-row figure:nth-child(2) { transform: translate3d(0, calc((var(--p, .5) - .5) * -60px), 0); }
.reel-row figure:nth-child(3) { transform: translate3d(0, calc((1 - var(--p, .5)) * 90px - 30px), 0); }
.reel-row figcaption { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--stage-ink); color: var(--stage); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--lift);
}
.chip .tab { width: 7px; height: 9px; border-radius: 2px; }
@media (max-width: 760px) {
  .reel-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 3px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .reel-row::-webkit-scrollbar { display: none; }
  .reel-row figure { flex: 0 0 84vw; scroll-snap-align: center; transform: none !important; }
}

/* ---------- deck sections ---------- */
.section { padding: clamp(88px, 12vw, 168px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: .95; margin: 18px 0 22px; }
.section-head p { color: var(--ink-muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 36em; }
.stage .section-head p { color: var(--stage-ink-muted); }

.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.step + .step { border-top: 1px solid var(--rule); }
.step-copy h2, .step-copy h3 { font-size: clamp(34px, 4.2vw, 60px); line-height: .98; margin: 16px 0 20px; }
.step-copy > p { color: var(--ink-muted); max-width: 30em; }
.step.flip .step-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 10px; border-radius: 2px; background: var(--c); transform: translateY(1px); }
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; }
  .step.flip .step-copy { order: 0; }
}

/* device comps */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 1206 / 2622; margin-inline: auto;
  border-radius: 54px; padding: 11px; background: #0b0b0c;
  box-shadow: 0 0 0 1.5px #2e2e33 inset, 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.phone img { width: 100%; height: 100%; border-radius: 44px; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.comp { position: relative; display: grid; place-items: center; }
.comp .phone { transform: translate3d(0, calc((.5 - var(--p, .5)) * 70px), 0) rotate(calc((.5 - var(--p, .5)) * 4deg)); }
.comp .floater { position: absolute; z-index: 2; }

/* layouts glyphs (IN) */
.layouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; max-width: 520px; }
.layouts figure { margin: 0; display: grid; gap: 10px; }
.lay { height: 64px; border-radius: var(--r-s); background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; gap: 3px; padding: 8px; flex-wrap: wrap; align-content: center; }
.lay b { width: 12px; height: 16px; border-radius: 2px; background: var(--ink); opacity: .85; }
.lay.sep b:nth-child(odd) { margin-right: 4px; }
.layouts figcaption { font: 400 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.lay.sheet { gap: 2px 3px; }
.lay.sheet b { width: 8px; height: 11px; }

/* ---------- lock demo ---------- */
.lock { position: relative; height: 280vh; }
.lock-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(56px, 8vh, 96px) 0 clamp(24px, 5vh, 56px); overflow: clip; }
.lock-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.lock-head h2, .lock-head h3 { font-size: clamp(34px, 4.6vw, 68px); line-height: .96; margin-top: 14px; }
.lock-head p { color: var(--stage-ink-muted); max-width: 30em; margin: 0; }
.lock-field { position: relative; display: grid; place-items: center; min-height: 0; }
.lock-frames { position: relative; width: var(--fw); aspect-ratio: 3 / 4; --fw: min(30vw, 50svh, 430px); }
.lock-frames figure { position: absolute; inset: 0; margin: 0; will-change: transform; }
.lock-frames .frame { border-radius: var(--r-m); }
.lock-frames figure > span { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font: 400 11px var(--mono); letter-spacing: .08em; color: var(--stage-ink-muted); transition: opacity 200ms; }
.lock-frames figure > span::before { content: ""; width: 9px; height: 12px; border-radius: 2.5px; background: var(--c); }
.lock.stacked .lock-frames figure > span { opacity: 0; }
.lock-frames figure.hide { visibility: hidden; }
.reticle { position: absolute; z-index: 5; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 2px solid var(--l2); border-radius: 12px; opacity: 0; transform: scale(1.6); transition: opacity 200ms, transform 420ms var(--hop); pointer-events: none; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--l2); }
.reticle::before { left: 50%; top: 14px; bottom: 14px; width: 2px; margin-left: -1px; }
.reticle::after { top: 50%; left: 14px; right: 14px; height: 2px; margin-top: -1px; }
.reticle .data { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--l2); font-size: 11px; }
.lock.aimed .reticle { opacity: 1; transform: none; }
.lock-chip { position: absolute; z-index: 6; left: 50%; top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, 0) scale(.4); opacity: 0; transition: transform 480ms var(--hop), opacity 200ms; }
.lock-chip .symbol { --u: .8px; }
.lock-chip b { background: var(--l2); color: var(--on-lens); font: 400 11px/1 var(--mono); letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; box-shadow: var(--lift); }
.lock.locked .lock-chip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.lock-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lock-bar { flex: 1; max-width: 420px; height: 4px; border-radius: 2px; background: var(--stage-rule); overflow: hidden; }
.lock-bar i { display: block; height: 100%; background: var(--l2); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 760px) {
  .lock { height: 300vh; }
  .lock-frames { --fw: min(64vw, 46svh); }
  .lock-status > p:last-child { display: none; }
}

/* ---------- flicker demo ---------- */
.compare { position: relative; width: min(100%, 460px); margin-inline: auto; --split: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare .frame { border-radius: var(--r-l); }
.compare .layer { position: absolute; inset: 0; }
.compare .layer img { opacity: 0; }
.compare .layer img.on { opacity: 1; }
.compare .after { clip-path: inset(0 0 0 var(--split)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 3; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; box-shadow: var(--lift);
  background-image: linear-gradient(90deg, transparent 11px, #0b0b0c 11px 13px, transparent 13px 23px, #0b0b0c 23px 25px, transparent 25px); background-size: 100% 12px; background-position: center; background-repeat: no-repeat; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.compare .tags { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.compare .tags .chip { box-shadow: var(--lift); }
.compare-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.lens-tags { display: flex; gap: 6px; }
.lens-tags span { font: 400 11px/1 var(--mono); letter-spacing: .06em; padding: 5px 6px; border-radius: var(--r-tab); color: var(--ink-muted); background: var(--surface-sunken); transition: background-color 80ms, color 80ms; }
.lens-tags span.on { background: var(--c); color: var(--on-lens); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.pills li { font: 700 14px/1 var(--ui); padding: 10px 13px; border-radius: var(--r-m); border: 1.5px solid var(--rule); }

/* ---------- out ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.fmt { border: 1.5px solid var(--rule); border-radius: var(--r-l); padding: 20px 18px 22px; display: grid; align-content: start; gap: 10px; min-height: 170px; transition: border-color var(--quick), transform 320ms var(--spring); }
.fmt:hover { border-color: var(--control-border); transform: translateY(-3px); }
.fmt h4 { margin: 0; font: 800 24px/1.05 var(--display); letter-spacing: -.01em; }
.fmt p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.fmt.photo { padding: 0; overflow: hidden; position: relative; min-height: 0; background: var(--stage); border-color: transparent; grid-row: span 2; }
.fmt.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.fmt.photo .chip { position: absolute; left: 12px; bottom: 12px; }
@media (max-width: 1000px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .fmt { padding: 16px 14px 18px; min-height: 150px; } .fmt h4 { font-size: 21px; } }

/* export sheet (four lanes + stamp) */
.xsheet { width: min(100%, 380px); margin-inline: auto; border-radius: var(--r-l); background: var(--surface); border: 1.5px solid var(--rule); padding: 22px 20px 20px; display: grid; gap: 14px; }
.xsheet .preview { border-radius: var(--r-m); }
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; position: relative; }
.lanes i { background: var(--surface-sunken); position: relative; overflow: hidden; }
.lanes i::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 520ms linear; }
.lanes.f1 i:nth-child(1)::after, .lanes.f2 i:nth-child(-n+2)::after, .lanes.f3 i:nth-child(-n+3)::after, .lanes.f4 i::after { transform: scaleX(1); }
.lanes::after { content: ""; position: absolute; inset: 0; background: var(--l4); transform: scaleX(0); transform-origin: left; }
.lanes.sweep::after { transform: scaleX(1); transition: transform 900ms linear; }
.xsheet-row { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.stamp { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink-fill); color: var(--on-ink); font: 400 11px/1 var(--mono); letter-spacing: .08em; opacity: 0; transform: scale(1.7) rotate(-10deg); }
.stamp .tab { width: 7px; height: 9px; border-radius: 2px; }
.xsheet.stamped .stamp { opacity: 1; transform: rotate(-3deg); transition: transform 520ms var(--hop), opacity 120ms; }
.xsheet .symbol { --u: .9px; }

/* ---------- ipad band ---------- */
.ipad-band { padding: clamp(88px, 12vw, 160px) 0; overflow: clip; perspective: 1600px; }
.ipad-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ipad-grid h2 { font-size: clamp(38px, 5vw, 76px); line-height: .95; margin: 18px 0 22px; }
.ipad-grid p { color: var(--stage-ink-muted); max-width: 28em; }
.ipad {
  position: relative; aspect-ratio: 2064 / 2752; width: min(100%, 560px); margin-inline: auto; padding: 14px; border-radius: 38px; background: #1a1a1d;
  box-shadow: 0 0 0 1.5px #2e2e33 inset, 0 50px 100px -40px rgba(0, 0, 0, .8);
  transform: rotateX(calc((1 - var(--p, 1)) * 22deg)) rotateZ(calc((1 - var(--p, 1)) * -6deg)) scale(calc(.9 + var(--p, 1) * .1));
  transform-origin: 50% 80%;
}
.ipad img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
@media (max-width: 900px) { .ipad-grid { grid-template-columns: 1fr; } }

/* ---------- cameras ---------- */
.cams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cam { border-radius: var(--r-l); background: var(--surface-sunken); padding: 22px 18px; display: grid; gap: 22px; align-content: space-between; min-height: 180px; }
.cam h3 { font: 800 22px/1.05 var(--display); letter-spacing: -.01em; }
.cam .boxes { display: flex; gap: 4px; height: 26px; align-items: flex-start; }
.cam .boxes i { width: 15px; height: 18px; border-radius: 3.5px; background: var(--c); }
.cam .boxes i:nth-child(1) { --c: var(--l1); margin-top: 6px; } .cam .boxes i:nth-child(2) { --c: var(--l2); }
.cam .boxes i:nth-child(3) { --c: var(--l3); margin-top: 8px; } .cam .boxes i:nth-child(4) { --c: var(--l4); margin-top: 2px; }
.cam .label { color: var(--ink-muted); }
@media (max-width: 1000px) { .cams { grid-template-columns: repeat(2, 1fr); } .cam:first-child { grid-column: span 2; } }
.cam-note { margin-top: 28px; color: var(--ink-muted); max-width: 46em; }

/* ---------- how to ---------- */
.howto { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.howto .section-head { position: sticky; top: 48px; margin: 0; }
.howto ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.howto li { counter-increment: s; padding: 26px 0 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; }
.howto li::before { content: counter(s, decimal-leading-zero); font: 700 13px/1.9 var(--mono); color: var(--ink-muted); }
.howto h3 { font: 800 clamp(22px, 2.2vw, 28px)/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 10px; }
.howto li p { grid-column: 2; color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr; } .howto .section-head { position: static; } }

/* ---------- details trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio > div { border: 1.5px solid var(--rule); border-radius: var(--r-l); padding: 26px 22px; }
.trio h3 { font: 800 26px/1.05 var(--display); letter-spacing: -.01em; margin: 18px 0 12px; }
.trio p { color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* ---------- final ---------- */
.final { padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.final .symbol { --u: clamp(2.6px, .42vw, 4.6px); margin: 0 auto 40px; }
.final h2 { font-size: clamp(46px, 8vw, 128px); line-height: .92; margin-bottom: 36px; }
.final .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--rule); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font: 700 15px var(--ui); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot small { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.5; margin-top: 28px; max-width: 60em; }
.seg { display: inline-flex; border: 1.5px solid var(--control-border); border-radius: var(--r-m); padding: 2px; gap: 2px; }
.seg button { font: 700 12px/1 var(--ui); color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer; min-height: 32px; transition: background-color var(--quick), color var(--quick); }
.seg button[aria-pressed="true"] { background: var(--ink-fill); color: var(--on-ink); }
.appearance { display: flex; align-items: center; gap: 12px; margin-top: 18px; }

/* ---------- floating CTA ---------- */
.float {
  position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate3d(-50%, 180%, 0);
  transition: transform 460ms var(--spring), opacity 200ms; opacity: 0; pointer-events: none;
}
.float.show { transform: translate3d(-50%, 0, 0); opacity: 1; pointer-events: auto; }
.float .btn { box-shadow: var(--lift); }
.float .btn { background: var(--stage-ink); color: var(--stage); border-radius: 999px; min-height: 46px; padding: 0 20px 0 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.float { border-radius: 999px; }

/* ---------- subpages ---------- */
.page-hero { padding: 120px 0 56px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .94; margin-top: 18px; }
.page-hero p { color: var(--stage-ink-muted); max-width: 36em; margin: 24px 0 0; font-size: 18px; }
.prose { max-width: 720px; padding: clamp(56px, 8vw, 96px) 0; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 400; font-family: var(--ui); font-weight: 700; }
.prose ul { padding-left: 1.2em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 800 clamp(20px, 2vw, 24px)/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 260ms var(--spring); }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq .ans { padding: 0 0 24px; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 56px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2.label { font-size: 12px; line-height: 1.3; letter-spacing: .08em; font-family: var(--mono); font-weight: 400; margin: 0 0 14px; }
.contact-card { margin-top: 56px; border-radius: var(--r-l); background: var(--surface-sunken); padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.contact-card h2 { margin: 0 0 6px; font-size: 28px; }
.contact-card p { margin: 0; }
.sub-top { position: relative; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .reel-row figure, .comp .phone, .ipad { transform: none !important; }
  .lock { height: auto; }
  .lock-pin { position: relative; height: auto; min-height: 100svh; }
}

/* ---------- simplified layout ---------- */
.top .badge img { height: 40px; }
.badge img { height: 52px; }
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps4 li { border-top: 2px solid var(--rule); padding: 22px 0 0; }
.steps4 h3 { font: 800 clamp(22px, 2.1vw, 28px)/1.05 var(--display); letter-spacing: -.01em; margin: 16px 0 10px; }
.steps4 p:not(.label) { color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .steps4 { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot-row small { margin-top: 0; flex-basis: 100%; }
.looks { margin-top: clamp(48px, 6vw, 88px); }
.looks-copy { color: var(--ink-muted); max-width: 34em; margin: 14px 0 28px; font-size: clamp(17px, 1.4vw, 19px); }
.looks-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.looks-row figure { margin: 0; }
.looks-row img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-m); display: block; }
.looks-row figcaption { margin-top: 10px; color: var(--ink-muted); }
@media (max-width: 900px) { .looks-row { grid-template-columns: repeat(3, 1fr); } }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.wall figure { margin: 0; position: relative; }
.wall .frame { border-radius: 0; aspect-ratio: 3 / 4; }
.wall video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall figcaption { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, 1fr); } }
