/* ZMatrix Model Studio website.
   Copyright (c) 2026 Halonex Labs Private Limited. All rights reserved.
   Brand rules (assets/brand/README.md, PLAN.md section 3): white or black surfaces, black or
   white text, Halonex Red #E10600 only for emphasis and the one primary action per view;
   line art is grey with at most one red highlight. */

/* ---------------------------------------------------------------- Tokens */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ececf0;
  --fg: #0b0b0c;
  --fg-2: #56565c;
  --fg-3: #6e6e76;
  --soft: #8b8b93; /* large display text only (3:1 is enough there) */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --red: #e10600;
  --red-ink: #c40500;
  --red-soft: rgba(225, 6, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --term-bg: #0d0d0f;
  --shadow-lg: 0 50px 100px -30px rgba(10, 10, 20, 0.28), 0 30px 60px -30px rgba(10, 10, 20, 0.3);
  --shadow-md: 0 24px 48px -24px rgba(10, 10, 20, 0.25), 0 2px 6px rgba(10, 10, 20, 0.05);
  --alu-1: #e4e4e8;
  --alu-2: #b8b8be;
  --titanium: #a9a6a1;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --nav-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0e0e10;
  --bg-3: #19191c;
  --fg: #f5f5f7;
  --fg-2: #a1a1a8;
  --fg-3: #8a8a92;
  --soft: #6e6e76;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --red-soft: rgba(225, 6, 0, 0.16);
  --glass: rgba(10, 10, 12, 0.7);
  --term-bg: #0d0d0f;
  --shadow-lg: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-md: 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --alu-1: #45454b;
  --alu-2: #1f1f23;
  --titanium: #4a4845;
  color-scheme: dark;
}
/* Light is the default; dark applies only when the visitor picks it (data-theme="dark"). */

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
@view-transition { navigation: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 104px) 0; }
.alt { background: var(--bg-2); }
.center { text-align: center; }
.muted { color: var(--fg-2); }
.red { color: var(--red); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 1.5px; }
.display {
  font-size: clamp(46px, 8.2vw, 112px); line-height: 0.98; letter-spacing: -0.038em; font-weight: 700;
}
.display .soft, .h2 .soft { color: var(--soft); }
.h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.036em; font-weight: 700; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.75vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .lead { margin-top: 22px; }
.kicker { font: 500 13px/1.4 var(--mono); color: var(--fg-3); letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 590; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s var(--ease-out), color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px rgba(225, 6, 0, 0.7); }
.btn-primary:hover { background: var(--red-ink); box-shadow: 0 14px 32px -12px rgba(225, 6, 0, 0.8); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn[aria-disabled="true"] { pointer-events: none; background: var(--bg-3); color: var(--fg-2); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 590; color: var(--fg); }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.red { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .actions { justify-content: center; }

/* ---------------------------------------------------------------- Nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.is-scrolled::before { border-bottom-color: var(--line); }
.nav-inner { position: relative; height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; font-size: 16px; flex-shrink: 0; }
.brand img { border-radius: 7px; }
.brand-name span { color: var(--fg-2); font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--fg-2); transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--bg-3); color: var(--fg); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease-out); }
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.sheet {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--bg);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px;
}
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font: 650 32px/1.2 var(--font-display); letter-spacing: -0.035em; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.sheet.is-open nav a { opacity: 1; transform: none; }
.sheet nav a[aria-current="page"] { color: var(--red); }
.sheet .btn { margin-top: auto; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .brand-name span { display: none; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ---------------------------------------------------------------- Screenshot pairs */
.shot-dark { display: none; }
[data-theme="dark"] .shot-dark { display: block; }
[data-theme="dark"] .shot-light { display: none; }
[data-shots="dark"] .shot-light { display: none; }
[data-shots="dark"] .shot-dark { display: block; }
[data-shots="light"] .shot-dark { display: none; }
[data-shots="light"] .shot-light { display: block; }

/* A macOS window render: 1200 x 750 with transparent corners of about 27 px. */
.window { position: relative; border-radius: 2.25% / 3.6%; box-shadow: var(--shadow-lg); background: transparent; }
.window img { width: 100%; border-radius: inherit; }
.window.panel { border-radius: 14px; }
.window.flat { box-shadow: var(--shadow-md); }

/* MacBook frame. Every size is relative to the frame's own width. */
.macbook { container-type: inline-size; position: relative; width: 100%; }
.macbook-lid {
  position: relative; background: #0a0a0b; padding: 1.7cqw 1.7cqw 2.6cqw;
  border-radius: 3.4cqw 3.4cqw 0.9cqw 0.9cqw;
  box-shadow: 0 0 0 0.22cqw var(--alu-2), 0 0 0 0.3cqw rgba(0, 0, 0, 0.25), var(--shadow-lg);
}
.macbook-lid::after { /* camera housing */
  content: ""; position: absolute; top: 1.7cqw; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 11.5cqw; height: 1.9cqw; background: #0a0a0b; border-radius: 0 0 0.9cqw 0.9cqw;
}
.macbook-screen { position: relative; overflow: hidden; border-radius: 1.1cqw 1.1cqw 0.3cqw 0.3cqw; aspect-ratio: 16 / 10.35; background: #000; }
.macbook-base {
  position: relative; height: 2.3cqw; width: 113%; margin-left: -6.5%;
  background: linear-gradient(180deg, var(--alu-1) 0%, var(--alu-2) 70%, rgba(0, 0, 0, 0.35) 100%);
  border-radius: 0.3cqw 0.3cqw 5cqw 5cqw / 0.3cqw 0.3cqw 1.8cqw 1.8cqw;
  box-shadow: 0 2cqw 4cqw -1.6cqw rgba(0, 0, 0, 0.5);
}
.macbook-base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 15%; height: 45%; background: rgba(0, 0, 0, 0.16); border-radius: 0 0 1.2cqw 1.2cqw; }
.desktop {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(255, 92, 80, 0.38), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(140, 150, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #f8f7fa 0%, #e5e4ea 100%);
}
[data-theme="dark"] .desktop {
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(225, 6, 0, 0.55), transparent 62%),
    radial-gradient(70% 70% at 100% 100%, rgba(60, 50, 140, 0.45), transparent 60%),
    linear-gradient(160deg, #141217 0%, #050507 100%);
}
.menubar {
  width: 100%; height: 3cqw; flex-shrink: 0; display: flex; align-items: center; gap: 1.6cqw; padding: 0 2cqw;
  font-size: 1.12cqw; color: #1a1a1a; background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap;
}
[data-theme="dark"] .menubar { color: #f2f2f2; background: rgba(0, 0, 0, 0.35); }
.menubar b { font-weight: 700; }
.menubar i { flex: 1; }
.menubar svg { width: 2cqw; height: 1cqw; }
.desktop .window { width: 86%; margin-top: 3.2cqw; box-shadow: 0 2.6cqw 5cqw -1.2cqw rgba(0, 0, 0, 0.45), 0 0 0 0.06cqw rgba(0, 0, 0, 0.18); }

/* iPhone frame (17 Pro proportions; the renders are 1206 x 2622). */
.iphone { container-type: inline-size; position: relative; width: 100%; max-width: 360px; }
.iphone-body {
  position: relative; padding: 3.4cqw; border-radius: 16.5cqw; background: #050505;
  box-shadow: inset 0 0 0 0.5cqw #1d1d1f, 0 0 0 0.9cqw var(--titanium), 0 0 0 1.2cqw rgba(0, 0, 0, 0.3), var(--shadow-lg);
}
.iphone-body::before, .iphone-body::after { content: ""; position: absolute; width: 1.1cqw; background: var(--titanium); border-radius: 0.6cqw; }
.iphone-body::before { right: -1.9cqw; top: 27%; height: 14%; }
.iphone-body::after { left: -1.9cqw; top: 20%; height: 7%; box-shadow: 0 11cqw 0 var(--titanium), 0 22cqw 0 var(--titanium); }
.iphone-screen { position: relative; overflow: hidden; border-radius: 13.2cqw; aspect-ratio: 1206 / 2622; background: #000; isolation: isolate; }
.iphone-screen img { width: 100%; height: 100%; object-fit: cover; }
.iphone-island { position: absolute; z-index: 2; top: 2.9cqw; left: 50%; transform: translateX(-50%); width: 31%; height: 8.6cqw; background: #000; border-radius: 99px; }
/* Android frame (a 20:9 phone with a centred punch-hole camera; the renders are 1080 x 2400). */
.android { container-type: inline-size; position: relative; width: 100%; max-width: 360px; }
.android-body {
  position: relative; padding: 2.8cqw; border-radius: 11.5cqw; background: #050505;
  box-shadow: inset 0 0 0 0.5cqw #1d1d1f, 0 0 0 0.9cqw var(--titanium), 0 0 0 1.2cqw rgba(0, 0, 0, 0.3), var(--shadow-lg);
}
.android-body::before, .android-body::after { content: ""; position: absolute; right: -1.9cqw; width: 1.1cqw; background: var(--titanium); border-radius: 0.6cqw; }
.android-body::before { top: 21%; height: 8%; }
.android-body::after { top: 33%; height: 15%; }
.android-screen { position: relative; overflow: hidden; border-radius: 9cqw; aspect-ratio: 1080 / 2400; background: #000; isolation: isolate; }
.android-screen img { width: 100%; height: 100%; object-fit: cover; }
.android-camera { position: absolute; z-index: 2; top: 2.4cqw; left: 50%; transform: translateX(-50%); width: 3.4cqw; height: 3.4cqw; background: #000; border-radius: 50%; box-shadow: 0 0 0 0.3cqw #151515; }
.widget { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); }
.widget img { width: 100%; }

/* ---------------------------------------------------------------- Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Home hero */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 0; overflow: clip; }
.hero .display { font-size: clamp(44px, 6.6vw, 92px); }
.hero-field { position: absolute; inset: 0 0 auto; height: min(100vh, 900px); width: 100%; pointer-events: none; opacity: 0.55;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%); }
.hero-copy { position: relative; text-align: center; }
.hero-copy .lead { margin: 22px auto 30px; max-width: 34em; }
.hero-copy .actions { justify-content: center; }
.hero-meta { margin-top: 18px; font: 500 13px/1.4 var(--mono); color: var(--fg-3); }
/* The stage: one real window on a softly lit panel, with the iPhone in front of it. */
.hero-stage { position: relative; max-width: 1200px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter) clamp(88px, 12vw, 160px); }
.stage {
  --p: 0;
  position: relative; border-radius: clamp(20px, 3vw, 36px); padding: clamp(28px, 5.5vw, 72px) clamp(14px, 5vw, 72px) clamp(28px, 5vw, 64px);
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(225, 6, 0, 0.13), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 92%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage::before { /* a hairline of light along the top edge */
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.45), transparent);
}
.stage::after { /* a faint ruled grid, fading out below the window's top */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
}
.stage-window { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto;
  transform-origin: 50% 0; transform: translateY(calc((1 - var(--p)) * 28px)) scale(calc(0.965 + var(--p) * 0.035)); will-change: transform; }
.stage-window .window { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 18px 36px -18px rgba(10, 10, 30, 0.28), 0 60px 120px -40px rgba(10, 10, 30, 0.35); }
[data-theme="dark"] .stage-window .window { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
/* In front of the window's sidebar, so the flow and its inspector stay in view. */
.stage-phone { position: absolute; z-index: 2; left: clamp(-8px, 1.5vw, 28px); bottom: clamp(-72px, -6vw, -24px); width: clamp(118px, 21%, 250px);
  transform: translateY(calc((1 - var(--p)) * 64px)); will-change: transform; }
.stage-phone .iphone { max-width: none; }
@media (max-width: 760px) {
  .stage-phone { width: 30%; left: -4px; bottom: -40px; }
}
/* ---------------------------------------------------------------- Marquee */
.marquee { --gap: 12px; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--mono); color: var(--fg-2); white-space: nowrap; }
.chip.is-red { color: var(--red); background: var(--red-soft); box-shadow: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------------------------------------------------------------- Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 3vw, 36px); min-height: 380px; display: flex; flex-direction: column; isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx) var(--my), var(--red-soft), transparent 60%); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: 16px; max-width: 30em; }
.card .kicker { margin-bottom: 14px; }
.card-link { margin-top: auto; padding-top: 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
/* A framed close-up of one part of a 1200 x 750 render, near its real size: --s is the scale,
   --cx the render's x (in its own pixels) placed at --ax of the frame (50% centres it, 0% puts
   --cx at the left edge), and --y the render's y at the top of the frame. */
.card .crop {
  position: relative; flex: none; height: var(--h, 280px); margin: auto 0 0; overflow: hidden; isolation: isolate;
  border-radius: 16px; background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -28px rgba(10, 10, 20, 0.35);
}
.card p { margin-bottom: 26px; }
.crop .window {
  position: absolute; max-width: none; width: calc(1200px * var(--s, 1));
  left: calc(var(--ax, 50%) - var(--cx, 600) * var(--s, 1) * 1px); top: calc(var(--y, 0) * var(--s, 1) * -1px);
  border-radius: 0; box-shadow: none;
}
.crop .window img { border-radius: 0; }
.card-tall { min-height: 560px; }
@media (max-width: 980px) { .span-2, .span-3, .span-4 { grid-column: span 6; } .card { min-height: 340px; } }
@media (min-width: 981px) and (max-width: 1100px) { .span-2 { grid-column: span 3; } }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font: 700 clamp(40px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.05em; }
.stat-num small { font-size: 0.45em; letter-spacing: -0.02em; color: var(--fg-2); margin-left: 4px; }
.stat p { margin-top: 10px; color: var(--fg-2); font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------------------------------------------------------------- Tour (sticky scroller) */
.tour { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 5vw, 72px); }
.tour-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.tour-step.is-active { opacity: 1; }
.tour-step .num { font: 500 13px/1 var(--mono); color: var(--red); margin-bottom: 18px; }
.tour-step h3 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.04em; margin-bottom: 16px; }
.tour-step p { color: var(--fg-2); font-size: 18px; }
.tour-step ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--fg-2); font-size: 15px; }
.tour-step li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.tour-step li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--fg-3); border-radius: 1px; flex-shrink: 0; }
.tour-step .tour-media { display: none; }
.tour-stage { position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(88vh - var(--nav-h)); display: flex; align-items: center; }
.tour-stack { position: relative; width: 100%; aspect-ratio: 1680 / 1050; }
.tour-stack > .window { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.tour-stack > .window.is-active { opacity: 1; transform: none; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: calc(-1 * clamp(28px, 4vh, 44px)); display: flex; gap: 6px; justify-content: center; }
.tour-progress span { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color 0.4s, width 0.4s var(--ease-out); }
.tour-progress span.is-active { width: 40px; background: var(--red); }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding: 36px 0; }
  .tour-step .tour-media { display: block; margin-top: 28px; }
}

/* ---------------------------------------------------------------- Quantization demo */
.quant { position: relative; height: 320vh; }
.quant-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.quant-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.quant-format { font: 700 clamp(40px, 5.2vw, 76px)/1.02 var(--font-display); letter-spacing: -0.04em; margin: 10px 0 16px; }
.quant-size { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); }
.quant-size b { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.quant-size span { color: var(--fg-2); }
.quant-rail { display: flex; gap: 6px; margin: 30px 0 18px; }
.quant-rail button { flex: 1; height: auto; padding: 10px 0 0; border: 0; border-top: 2px solid var(--line-2); background: none; text-align: left; cursor: pointer; font: 500 12px/1.2 var(--mono); color: var(--fg-3); transition: color 0.3s, border-color 0.3s; }
.quant-rail button.is-active { border-color: var(--red); color: var(--fg); }
.quant-canvas { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; border-radius: 26px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.quant-canvas canvas { width: 100%; height: 100%; }
.quant-canvas .kicker { position: absolute; left: 18px; bottom: 14px; }
.quant-note { margin-top: 14px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 860px) {
  .quant { height: 280vh; }
  .quant-grid { grid-template-columns: 1fr; gap: 20px; }
  .quant-canvas { max-width: 300px; order: -1; }
  .quant-canvas .kicker { display: none; }
  .quant-format { font-size: 38px; margin: 4px 0 8px; }
  .quant-rail { margin: 16px 0 8px; }
}

/* ---------------------------------------------------------------- Split rows */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > :first-child { order: 2; }
.split.even { grid-template-columns: 1fr 1fr; }
.split h2 + .lead, .split h3 + p { margin-top: 18px; }
@media (max-width: 900px) { .split, .split.flip, .split.even { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 16px; }
.checks li b { color: var(--fg); font-weight: 600; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--fg-3); }
.checks li:first-child::before { background: var(--red); box-shadow: none; }

/* ---------------------------------------------------------------- Fit ladder */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: rung; }
.ladder li { counter-increment: rung; position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.ladder li::before { content: counter(rung, decimal-leading-zero); font: 500 13px/1 var(--mono); color: var(--fg-3); }
.ladder li b { font-weight: 600; }
.ladder li span { color: var(--fg-2); font-size: 15px; display: block; }
.ladder li em { font: normal 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); }
.ladder li.is-red em { background: var(--red-soft); color: var(--red); }

/* ---------------------------------------------------------------- Terminal */
.term { background: var(--term-bg); color: #e9e9ec; border-radius: 18px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.07); overflow: hidden; font: 13px/1.65 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #8b8b93; font-size: 12px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3f; }
.term-bar span { margin-left: 10px; }
.term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; white-space: normal; min-height: 300px; font: inherit; }
.term .ln { display: block; white-space: pre; min-height: 1.65em; }
.term-wide { font-size: 11px; }
@media (max-width: 1100px) { .term-wide { font-size: 10px; } }
.term .p { color: #6e6e76; user-select: none; }
.term .c { color: #fff; }
.term .o { color: #a1a1a8; }
.term .r { color: #ff5a4f; }
.term .g { color: #7ee2a8; }
.term .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #e9e9ec; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 34px 28px 10px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar svg { width: 44px; height: 44px; margin-bottom: 22px; fill: none; stroke: var(--fg-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar svg .hl { stroke: var(--red); }
.pillar h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.pillar p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- Phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); padding-top: 20px; }
.phones .iphone, .phones .android { width: clamp(150px, 24vw, 300px); flex-shrink: 0; }
.phones .iphone:nth-child(1), .phones .android:nth-child(1) { transform: translateY(40px) rotate(-4deg); }
.phones .iphone:nth-child(3), .phones .android:nth-child(3) { transform: translateY(40px) rotate(4deg); }
.js .phones [data-reveal].is-in:nth-child(1) { transform: translateY(40px) rotate(-4deg); }
.js .phones [data-reveal].is-in:nth-child(3) { transform: translateY(40px) rotate(4deg); }
@media (max-width: 640px) { .phones .iphone:nth-child(1), .phones .iphone:nth-child(3), .phones .android:nth-child(1), .phones .android:nth-child(3) { display: none; } .phones .iphone, .phones .android { width: 62vw; } }
.widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .widgets { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Page hero */
.page-hero { padding: clamp(64px, 10vw, 136px) 0 clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: clip; }
.page-hero .lead { margin: 26px auto 0; }
.page-hero .actions { margin-top: 34px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); }
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.subnav a:hover { color: var(--fg); }
.subnav a.is-active { color: var(--fg); background: var(--bg-3); }

/* Feature block on subpages */
.feature { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.feature-head p { color: var(--fg-2); font-size: 18px; margin: 0; }
@media (max-width: 860px) { .feature-head { grid-template-columns: 1fr; } }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.mini { padding: 24px 24px 4px 0; }
.mini + .mini { padding-left: 24px; border-left: 1px solid var(--line); }
.mini h4 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 6px; }
.mini p { color: var(--fg-2); font-size: 15px; }
.mini-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .mini-grid, .mini-grid.four { grid-template-columns: 1fr; }
  .mini + .mini { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* Hotspots on screenshots */
.hotspots { position: relative; }
.hs { position: absolute; z-index: 3; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 0; padding: 0; border-radius: 50%; background: var(--red); cursor: pointer; box-shadow: 0 0 0 5px rgba(225, 6, 0, 0.22); }
.hs::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ping 2.4s var(--ease-out) infinite; }
.hs span { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); width: max-content; max-width: 240px; padding: 10px 12px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.35; text-align: left; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.hs span b { display: block; }
.hs:hover span, .hs:focus-visible span, .hs.is-open span { opacity: 1; transform: translate(-50%, 0); }
.hs.below span { bottom: auto; top: calc(100% + 12px); transform: translate(-50%, -6px); }
.hs.below:hover span, .hs.below:focus-visible span, .hs.below.is-open span { transform: translate(-50%, 0); }
.hs.end span { left: auto; right: -10px; transform: translate(0, 6px); }
.hs.end:hover span, .hs.end:focus-visible span, .hs.end.is-open span { transform: none; }
.hs.start span { left: -10px; transform: translate(0, 6px); }
.hs.start:hover span, .hs.start:focus-visible span, .hs.start.is-open span { transform: none; }
.hs-legend { margin-top: 18px; font-size: 14px; color: var(--fg-3); text-align: center; }
.window-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
@media (max-width: 760px) { .window-grid { grid-template-columns: 1fr; } }
.panels { display: grid; grid-template-columns: 1.15fr 0.62fr 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; }
.panels figcaption { margin-top: 14px; font-size: 14px; color: var(--fg-2); }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@media (max-width: 640px) { .hs { width: 18px; height: 18px; margin: -9px 0 0 -9px; } }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-3); position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 560; color: var(--fg-2); transition: color 0.25s; }
.seg button[aria-pressed="true"] { color: var(--fg); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); transition: left 0.45s var(--ease-out), width 0.45s var(--ease-out); }
[data-theme="dark"] .seg-thumb { background: #2a2a2e; }
.modes { display: grid; }
.modes > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-out), visibility 0.5s; }
.modes > .is-active { opacity: 1; visibility: visible; }
.mode-copy { min-height: 4.5em; }

/* ---------------------------------------------------------------- Gallery */
.gallery-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 0; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; color: var(--fg-2); transition: background-color 0.2s, color 0.2s; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.gallery { columns: 3 320px; column-gap: 20px; }
.tile { break-inside: avoid; margin: 0 0 20px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; cursor: zoom-in; transition: transform 0.5s var(--ease-out); display: block; width: 100%; border: 0; text-align: left; }
.tile:hover { transform: translateY(-4px); }
.tile .window { box-shadow: var(--shadow-md); }
.tile .iphone, .tile .android { max-width: 200px; margin: 6px auto 4px; }
.tile figcaption, .tile .cap { display: block; margin-top: 14px; font-size: 14px; color: var(--fg-2); }
.tile .cap b { color: var(--fg); font-weight: 600; display: block; }
.tile[hidden] { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1680px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; }
.lightbox p { color: #d0d0d5; font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------------------------------------------------------------- Download */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edition { border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.edition.is-featured { box-shadow: inset 0 0 0 1.5px var(--red); }
.edition h3 { font-size: 26px; letter-spacing: -0.03em; margin: 8px 0 8px; }
.edition .checks { margin-bottom: 28px; }
.edition .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-3); color: var(--fg-2); }
.badge.red { background: var(--red-soft); color: var(--red); }
@media (max-width: 820px) { .editions { grid-template-columns: 1fr; } }
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 16px 12px 16px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 600; width: 34%; }
.spec td { color: var(--fg-2); }
.table-scroll { overflow-x: auto; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: auto; }
.yes { color: var(--fg); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.6px solid var(--fg-2); border-bottom: 1.6px solid var(--fg-2); transform: rotate(45deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--fg-2); max-width: 46em; }

/* ---------------------------------------------------------------- Final CTA */
.cta { text-align: center; position: relative; overflow: clip; }
.cta-icon { width: clamp(96px, 12vw, 148px); margin: 0 auto 36px; filter: drop-shadow(0 30px 40px rgba(225, 6, 0, 0.35)); }
.cta .h2 { margin-bottom: 22px; }
.cta .actions { margin-top: 34px; }
.cta-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: center; -webkit-mask-image: radial-gradient(50% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(50% 60% at 50% 50%, #000, transparent); }

/* ---------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; overflow: clip; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.footer-brand img { border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; }
.footer-brand .muted { max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.footer-cols a { display: block; padding: 6px 0; font-size: 15px; color: var(--fg-2); transition: color 0.2s; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--fg); }
.footer-word { font: 800 clamp(80px, 21vw, 300px)/0.8 var(--font-display); letter-spacing: -0.07em; text-align: center; margin: 64px 0 28px; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; color: var(--fg-3); }
.footer-bottom p { margin: 0; max-width: 60em; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost-code { font: 700 clamp(96px, 20vw, 220px)/1 var(--mono); letter-spacing: -0.08em; }
.lost-code span { color: var(--red); }

/* ---------------------------------------------------------------- Motion preferences */
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .stage-window, .stage-phone { transform: none !important; }
}
