/* ============================================================
   DENXOR LABS — LIQUID GLASS DESIGN SYSTEM (v4)
   One source of truth for colour, type, glass, depth and motion.
   Legacy variable names (--blue-royal, --blue-cyan, --crystal-*,
   --navy-*) are kept as aliases so existing inline styles across
   the pages keep resolving — new work should use the semantic
   tokens below. See /assets/app.js for behaviour.
   ============================================================ */

/* ---------- self-hosted type (OFL, see /assets/fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Space Grotesk Variable";
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Variable";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Metric-matched fallback so body text doesn't reflow when Inter lands. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

:root {
  /* ---------- foundations: obsidian (dark, default) ---------- */
  --bg-0: #05060d;            /* page */
  --bg-1: #0a0b17;            /* raised plane */
  --bg-2: #12132a;            /* solid surface (menus, fallbacks) */
  --ink: #eef0fc;
  --ink-dim: #a7acca;         /* body copy   ≥ 8:1 on bg-0 */
  --ink-faint: #8087a8;       /* labels      ≥ 5:1 on bg-0 */
  --hairline: rgba(196, 200, 255, 0.10);
  --hairline-strong: rgba(206, 210, 255, 0.18);

  /* ---------- brand light: indigo / violet, crystalline silver ---------- */
  --accent: #7b7dff;          /* indigo — marks, rings, active states */
  --accent-strong: #5b5ff0;   /* filled actions (white text ≥ 4.5:1) */
  --accent-hi: #b3b8ff;       /* accent text on dark */
  --violet: #9d6bff;          /* atmosphere, gradients */
  --violet-strong: #7748e8;
  --silver: #dfe3f5;
  --cyan: #7fd7ff;            /* "live" status only */
  --amber: #ffc76a;           /* "in development" status only */
  --danger: #ff8f8f;
  --accent-glow: rgba(110, 100, 255, 0.42);
  --atmos-a: 252;             /* hue anchors for atmospheric light */
  --atmos-b: 272;

  /* ---------- liquid glass materials ----------
     L1 ambient  : secondary panels, supporting content
     L2 elevated : cards, nav, menus, interactive widgets
     L3 crystal  : hero object, featured product, key actions        */
  /* Neutral smoke: glass has no colour of its own — its tint comes from
     the environment light map (see ENVIRONMENT). */
  --glass-1: rgba(13, 14, 24, 0.34);
  --glass-2: rgba(11, 12, 22, 0.48);
  --glass-3: rgba(12, 12, 24, 0.56);
  --glass-sheen: rgba(255, 255, 255, 0.075);      /* curved top reflection */
  --glass-edge: rgba(214, 218, 255, 0.12);        /* inner hairline */
  --glass-rim: rgba(255, 255, 255, 0.42);         /* lit rim, top-left */
  --glass-rim-low: hsl(var(--scroll-hue) 92% 78% / 0.30);
  --glass-blur-1: 12px;
  --glass-blur-2: 18px;
  --glass-blur-3: 28px;
  --glass-sat: 160%;
  --glass-fallback: rgba(14, 15, 32, 0.92);       /* no backdrop-filter */

  /* ---------- depth ---------- */
  --shadow-1: 0 1px 1px rgba(0,0,0,.30), 0 12px 32px -18px rgba(0,0,0,.70);
  --shadow-2: 0 1px 1px rgba(0,0,0,.30), 0 14px 34px -14px rgba(0,0,0,.65), 0 40px 90px -40px hsl(var(--scroll-hue) 70% 32% / .50);
  --shadow-3: 0 1px 1px rgba(0,0,0,.35), 0 24px 60px -20px rgba(0,0,0,.70), 0 60px 140px -40px hsl(var(--scroll-hue) 85% 50% / .42);
  --shadow-hover: 0 1px 1px rgba(0,0,0,.30), 0 22px 48px -16px rgba(0,0,0,.70), 0 50px 120px -40px hsl(var(--scroll-hue) 85% 55% / .50);

  /* ---------- type ---------- */
  --font-display: "Space Grotesk Variable", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter Variable", "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --step--2: 0.6875rem;                                            /* 11  micro-label */
  --step--1: 0.8125rem;                                            /* 13  meta */
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);              /* 16→17 body */
  --step-1: clamp(1.125rem, 1.06rem + 0.33vw, 1.3125rem);          /* lede, h4 */
  --step-2: clamp(1.25rem, 1.12rem + 0.62vw, 1.625rem);            /* h3 */
  --step-3: clamp(1.85rem, 1.45rem + 1.8vw, 3rem);                 /* h2 */
  --step-4: clamp(2.5rem, 1.75rem + 3.4vw, 4.6rem);                 /* page h1 */
  --step-5: clamp(3rem, 1.6rem + 6.2vw, 6.6rem);                   /* hero display */

  /* ---------- space / shape ---------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --section-gap: clamp(72px, 9vw, 128px);
  --r-xs: 8px; --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 34px; --r-pill: 999px;

  /* ---------- motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* settle */
  --ease-press: cubic-bezier(0.3, 0, 0.2, 1);      /* tactile */
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms; --dur-4: 720ms;

  /* ---------- semantic tokens (public API of the theme) ---------- */
  --color-background: var(--bg-0);
  --color-surface: var(--glass-1);
  --color-surface-elevated: var(--glass-2);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--ink-dim);
  --color-text-tertiary: var(--ink-faint);
  --color-border: var(--hairline-strong);
  --color-accent: var(--accent);
  --color-accent-strong: var(--accent-strong);
  --color-focus: var(--accent-hi);
  --shadow-card: var(--shadow-2);

  /* ---------- legacy aliases (kept for inline styles in the pages) ---------- */
  --void: var(--bg-0);
  --navy-deep: var(--bg-1);
  --navy-mid: var(--bg-2);
  --navy-surface: var(--bg-2);
  --crystal-fill: rgba(150, 156, 255, 0.05);
  --crystal-fill-strong: rgba(150, 156, 255, 0.10);
  --crystal-border: var(--hairline-strong);
  --crystal-border-strong: rgba(190, 196, 255, 0.30);
  --blue-royal: var(--accent-strong);
  --blue-royal-soft: var(--accent);
  --blue-cyan: var(--accent-hi);
  --glow: var(--accent-glow);
  --shadow-deep: rgba(2, 3, 12, 0.6);
  --line: var(--hairline);
  --ink-soft: var(--ink-dim);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --radius-s: var(--r-s); --radius-m: var(--r-m); --radius-l: var(--r-l); --radius-xl: var(--r-xl);
  --ease-lab: var(--ease-out);
  --dur-fast: var(--dur-2); --dur-med: var(--dur-3); --dur-slow: var(--dur-4);
  --panel-lift: var(--ease-out);

  color-scheme: dark;
}

/* ---------- crystalline light theme: frosted white glass, not inverted dark ---------- */
html[data-theme="light"] {
  --bg-0: #f3f4fa;
  --bg-1: #fafbff;
  --bg-2: #ffffff;
  --ink: #0d1026;
  --ink-dim: #454b69;         /* ≥ 8:1 on bg-0 */
  --ink-faint: #5f6585;       /* ≥ 5.5:1 on bg-0 */
  --hairline: rgba(40, 44, 110, 0.10);
  --hairline-strong: rgba(40, 44, 110, 0.16);

  --accent: #5b5ff0;
  --accent-strong: #4f46e5;
  --accent-hi: #4338ca;
  --violet: #7c3aed;
  --violet-strong: #6d28d9;
  --silver: #8a90ad;
  --cyan: #0e7490;
  --amber: #a15c00;
  --danger: #c0262d;
  --accent-glow: rgba(79, 70, 229, 0.28);

  --glass-1: rgba(255, 255, 255, 0.50);
  --glass-2: rgba(255, 255, 255, 0.62);
  --glass-3: rgba(255, 255, 255, 0.70);
  --glass-sheen: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(60, 64, 140, 0.10);
  --glass-rim: rgba(255, 255, 255, 1);
  --glass-rim-low: hsl(var(--scroll-hue) 70% 62% / 0.28);
  --glass-sat: 180%;
  --glass-fallback: rgba(255, 255, 255, 0.94);

  --shadow-1: 0 1px 2px rgba(25, 28, 80, .05), 0 10px 28px -16px rgba(30, 32, 100, .20);
  --shadow-2: 0 1px 2px rgba(25, 28, 80, .06), 0 14px 34px -14px rgba(30, 32, 100, .22), 0 40px 80px -40px hsl(var(--scroll-hue) 70% 55% / .24);
  --shadow-3: 0 1px 2px rgba(25, 28, 80, .07), 0 24px 56px -20px rgba(30, 32, 100, .26), 0 60px 120px -40px hsl(var(--scroll-hue) 70% 55% / .30);
  --shadow-hover: 0 1px 2px rgba(25, 28, 80, .07), 0 22px 48px -16px rgba(30, 32, 100, .28), 0 50px 110px -40px hsl(var(--scroll-hue) 75% 55% / .34);

  --crystal-fill: rgba(79, 70, 229, 0.04);
  --crystal-fill-strong: rgba(79, 70, 229, 0.08);
  --crystal-border-strong: rgba(79, 70, 229, 0.26);
  --shadow-deep: rgba(60, 64, 140, 0.16);
  --surface-soft: rgba(255, 255, 255, 0.7);

  color-scheme: light;
}

/* ---------- ProofPay keeps its own established blue identity ----------
   Applied to every ProofPay page (body[data-room="proofpay"]) and to
   any ProofPay showcase embedded elsewhere ([data-accent="proofpay"]).
   Values are the site's original ProofPay blues. */
body[data-room="proofpay"], [data-accent="proofpay"] {
  --accent: #5b7bff;
  --accent-strong: #3d63ff;
  --accent-hi: #6fd6ff;
  --violet: #3f8cff;
  --violet-strong: #2f6bff;
  --accent-glow: rgba(61, 99, 255, 0.42);
  --atmos-a: 220;
  --atmos-b: 198;
  --glass-rim-low: rgba(110, 170, 255, 0.24);
  --shadow-3: 0 1px 1px rgba(0,0,0,.35), 0 24px 60px -20px rgba(0,0,0,.7), 0 60px 140px -40px rgba(40,110,255,.45);
}
/* Custom properties resolve where they are declared, so the legacy
   aliases must be re-declared inside the ProofPay scope to pick up
   its blues (otherwise inline var(--blue-cyan) stays indigo). */
body[data-room="proofpay"], [data-accent="proofpay"],
html[data-theme="light"] body[data-room="proofpay"], html[data-theme="light"] [data-accent="proofpay"] {
  --blue-royal: var(--accent-strong);
  --blue-royal-soft: var(--accent);
  --blue-cyan: var(--accent-hi);
  --glow: var(--accent-glow);
  --color-accent: var(--accent);
  --color-accent-strong: var(--accent-strong);
  --color-focus: var(--accent-hi);
}
html[data-theme="light"] body[data-room="proofpay"],
html[data-theme="light"] [data-accent="proofpay"] {
  --accent: #3d63ff;
  --accent-strong: #2d4fe0;
  --accent-hi: #1d4ed8;
  --violet: #1d6fe0;
  --violet-strong: #1a56c4;
  --accent-glow: rgba(45, 79, 224, 0.26);
  --glass-rim-low: rgba(45, 120, 224, 0.20);
  --shadow-3: 0 1px 2px rgba(25,28,80,.07), 0 24px 56px -20px rgba(30,32,100,.26), 0 60px 120px -40px rgba(45,79,224,.28);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  /* Clip, not hide: nothing can push the page sideways on phones,
     and position:sticky descendants keep working. */
  overflow-x: clip;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: -0.006em;
  font-feature-settings: "cv11", "ss03";           /* Inter: single-storey a, open digits */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; }
h2 { font-size: var(--step-3); letter-spacing: -0.035em; line-height: 1.06; }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
h4 { font-size: 1.0625rem; letter-spacing: -0.012em; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-dim); line-height: 1.68; max-width: 64ch; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; color: var(--ink-dim); line-height: 1.68; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; color: var(--ink); }
small, .meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-faint); letter-spacing: 0.01em; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* Numerals that are read as data line up. */
.stat-value, .metric-value, .update-date, .timeline-date, .release-facts dd,
.featured-product-facts dd, .vf-amount, .vf-meta, .pp-flow-num, .approach-step-num,
time { font-variant-numeric: tabular-nums; }

/* Editorial accent: a single italic serif word inside a display line. */
.accent-serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;                          /* keep the italic overhang */
}

/* Micro-label: mono, uppercase, with a short lit rule — used for every
   section label so the rhythm reads the same on every page. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 10px var(--accent-glow);
}
.eyebrow[style*="text-align:center"] { display: flex; justify-content: center; }

/* ---------- layout shell ---------- */
.bg-layer {
  position: fixed !important;
  inset: 0 !important;
  max-width: none; max-height: none;
  display: block;
  z-index: 0;
  pointer-events: none !important;
}
.page-shell {
  position: relative;
  z-index: 1;
  /* 100vh on mobile is measured against the *largest* possible
     viewport (address bar hidden), so it overshoots the space
     actually visible on load and can leave a section clipped or
     force premature scroll as the browser chrome collapses/expands.
     dvh tracks the real, current viewport; the 100vh line stays as
     a fallback for browsers that don't support dvh yet. */
  min-height: 100vh;
  min-height: 100dvh;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(94vw, 1080px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  background: var(--crystal-fill-strong);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--crystal-border);
  border-radius: 999px;
  box-shadow: 0 10px 40px var(--shadow-deep);
  transition: background var(--dur-med) var(--ease-lab), border-color var(--dur-med) var(--ease-lab), box-shadow var(--dur-slow) var(--ease-lab);
}
/* Ambient halo — ties the floating nav pill to the live canvas behind
   it, so it reads as lit BY the environment rather than pasted flat on
   top. Uses the same --scroll-hue the background/hero already drive,
   at a very low, theme-specific alpha so it never competes with text. */
.nav::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 140% at 50% 0%,
    hsl(var(--scroll-hue) var(--nav-halo-sat, 70%) var(--nav-halo-light, 60%) / var(--nav-halo-alpha, .16)),
    transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-lab);
}
html[data-theme="light"] .nav { --nav-halo-sat: 45%; --nav-halo-light: 62%; --nav-halo-alpha: .22; }
html[data-theme="dark"] .nav { --nav-halo-sat: 75%; --nav-halo-light: 62%; --nav-halo-alpha: .14; }
@media (prefers-reduced-motion: reduce) { .nav::before { transition: none; } }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-mark {
  width: 22px; height: 22px;
  position: relative;
  flex: none;
}
.nav-mark svg { width: 100%; height: 100%; display: block; }

.nav-worlds {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-worlds a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-faint);
  transition: color var(--dur-fast) var(--ease-lab), background var(--dur-fast) var(--ease-lab);
  white-space: nowrap;
}
.nav-worlds a:hover { color: var(--ink); }
.nav-worlds a.active {
  color: var(--ink);
  background: var(--crystal-fill-strong);
  box-shadow: inset 0 0 0 1px var(--crystal-border-strong);
}
.nav-worlds a.active::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--blue-cyan);
  box-shadow: 0 0 6px var(--blue-cyan);
  vertical-align: middle;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .nav-burger {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--crystal-border);
  background: var(--crystal-fill);
  cursor: pointer;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-lab), transform var(--dur-fast) var(--ease-lab);
}
.theme-toggle:hover, .nav-burger:hover { background: var(--crystal-fill-strong); }
.theme-toggle svg, .nav-burger svg { width: 17px; height: 17px; }
.nav-burger { display: none; }

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: calc(78px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  width: min(94vw, 1080px);
  max-height: calc(100dvh - 100px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 49;
  background: var(--navy-surface);
  border: 1px solid var(--crystal-border);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 60px var(--shadow-deep);
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-mobile-panel a.active { color: var(--ink); background: var(--crystal-fill-strong); }

@media (max-width: 880px) {
  .nav-worlds { display: none; }
  .nav-burger { display: flex; }
}
/* Coarse-pointer (touch) devices get the full 44px minimum tap target
   regardless of breakpoint — a tablet in landscape can be >880px wide
   and still be touch-only. */
@media (pointer: coarse) {
  .theme-toggle, .nav-burger { width: 44px; height: 44px; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero-kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }

/* ---------- section rhythm ---------- */
/* Section boundary reads as a soft atmospheric fade rather than a hard
   ruled line — a faint hue-tinted gradient that echoes the live
   background instead of a flat --line stroke sitting on top of it. */
.section {
  padding: 96px 0;
  position: relative;
  border-top: none;
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    hsl(var(--scroll-hue) var(--section-line-sat, 60%) var(--section-line-light, 60%) / var(--section-line-alpha, .22)) 24%,
    hsl(var(--scroll-hue) var(--section-line-sat, 60%) var(--section-line-light, 60%) / var(--section-line-alpha, .22)) 76%,
    transparent);
}
html[data-theme="light"] .section::before { --section-line-sat: 35%; --section-line-light: 55%; --section-line-alpha: .28; }
html[data-theme="dark"] .section::before { --section-line-sat: 65%; --section-line-light: 62%; --section-line-alpha: .18; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  border-top: none;
  padding: 56px 0 40px;
}
/* Same hue-tinted fade as .section::before, plus a very soft rising
   wash behind the footer content — the page's atmosphere settles here
   rather than cutting off at a flat rule, closing the loop from hero
   glow through section dividers to the final surface. */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    hsl(var(--scroll-hue) var(--section-line-sat, 60%) var(--section-line-light, 60%) / var(--section-line-alpha, .22)) 24%,
    hsl(var(--scroll-hue) var(--section-line-sat, 60%) var(--section-line-light, 60%) / var(--section-line-alpha, .22)) 76%,
    transparent);
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  z-index: -1;
  background: radial-gradient(80% 100% at 50% 0%,
    hsl(var(--scroll-hue) var(--footer-glow-sat, 60%) var(--footer-glow-light, 60%) / var(--footer-glow-alpha, .06)),
    transparent 70%);
  pointer-events: none;
}
html[data-theme="light"] .footer::after { --footer-glow-sat: 40%; --footer-glow-light: 60%; --footer-glow-alpha: .10; }
html[data-theme="dark"] .footer::after { --footer-glow-sat: 65%; --footer-glow-light: 62%; --footer-glow-alpha: .05; }
.footer-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  margin-bottom: 36px;
}
.footer-col { flex: 1 1 140px; min-width: 140px; }
@media (max-width: 640px) {
  .footer-grid { gap: 28px 20px; }
  .footer-col { flex: 1 1 45%; min-width: 45%; }
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--ink-dim);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color var(--dur-fast) var(--ease-lab);
}
.footer-col a:hover { color: var(--blue-cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- page transition veil ----------
   Horizontal movement = crossing between major destinations
   (Home / Apps / Updates / About / Support / Privacy).
   Direction is decided in app.js from DESTINATION order and passed
   across the real page load via sessionStorage, since this is a
   genuine navigation (new document), not a SPA route swap. */
.transition-veil {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--void);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-lab);
}
.transition-veil.active { opacity: 1; pointer-events: all; }

.page-shell {
  animation: enter-world-forward var(--dur-slow) var(--ease-lab) both;
}
html[data-enter="back"] .page-shell {
  animation-name: enter-world-back;
}
html[data-enter="none"] .page-shell {
  animation: none;
}
@keyframes enter-world-forward {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes enter-world-back {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-shell { animation: none; }
  .transition-veil { display: none; }
}

/* ---------- misc components ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:first-of-type { border-top: none; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-top: 3px;
}
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }

.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--blue-cyan);
  transition: transform var(--dur-fast) var(--ease-lab);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: 0.95rem; }

.placeholder-note, .meta-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px dashed var(--crystal-border-strong);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  display: inline-block;
}

/* ---------- premium Denxor placeholder ----------
   For larger missing-detail areas (screenshots, download listings,
   unannounced product slots) — not for small inline notes, which
   stay as the compact .placeholder-note chip above. Carries the
   Denxor mark as a soft breathing watermark so an empty slot still
   reads as "ours", not as an unfinished template gap. */
.denxor-placeholder {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 1px dashed var(--crystal-border-strong);
  border-radius: var(--radius-m);
  background: var(--crystal-fill);
  padding: 28px;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.denxor-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/denxor-icon.svg') center / 44% no-repeat;
  opacity: 0.07;
  animation: denxorPlaceholderBreathe 5.5s var(--ease-lab) infinite;
}
@keyframes denxorPlaceholderBreathe {
  0%, 100% { opacity: 0.055; transform: scale(1); }
  50% { opacity: 0.11; transform: scale(1.045); }
}
.denxor-placeholder-badge {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-cyan);
  border: 1px solid var(--crystal-border-strong);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--crystal-fill-strong);
}
.denxor-placeholder-label {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  max-width: 22ch;
  line-height: 1.5;
}
/* ============================================================
   PROOFPAY — page-specific components
   ============================================================ */
.pp-flow { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:28px 0; }
.pp-flow-step { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; flex:1; min-width:96px; }
.pp-flow-num { width:38px; height:38px; border-radius:50%; border:1px solid var(--crystal-border-strong); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:0.8rem; color:var(--blue-cyan); background:var(--crystal-fill-strong); }
.pp-flow-label { font-family:var(--font-mono); font-size:0.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); }
.pp-flow-desc { font-size:0.78rem; color:var(--ink-faint); max-width:16ch; }
.pp-flow-arrow { color:var(--crystal-border-strong); flex:none; font-size:1.1rem; }
@media (max-width:720px){ .pp-flow{flex-direction:column;} .pp-flow-arrow{transform:rotate(90deg);} }

.pp-visual-slot { aspect-ratio:4/3; padding:0; }
/* The source concept renders are ~384px wide; stretching them across a
   full grid column upscales and blurs them. Capping the slot keeps the
   image close to native resolution instead of visibly softening it. */
.pp-visual-slot { max-width: 400px; }
.pp-feature-band { display:grid; grid-template-columns: 400px 1fr; gap:32px; align-items:center; margin-bottom:40px; }
.pp-feature-band .pp-visual-slot { justify-self: center; width: 100%; }
.pp-feature-band.reverse { grid-template-columns: 1fr 400px; }
.pp-feature-band.reverse .pp-visual-slot { justify-self: center; }
.pp-visual-slot.pp-wide { max-width: none; }
.pp-feature-band.reverse { direction:rtl; }
.pp-feature-band.reverse > * { direction:ltr; }
@media (max-width:880px){ .pp-feature-band, .pp-feature-band.reverse{ grid-template-columns:1fr; direction:ltr; } }
.pp-microlabel { font-family:var(--font-mono); font-size:0.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--blue-cyan); border:1px solid rgba(111,214,255,.3); border-radius:999px; padding:3px 10px; display:inline-block; margin-top:12px; }

.pp-security-spine { display:flex; flex-direction:column; gap:0; max-width:520px; margin:0 auto; }
.pp-security-node { display:flex; align-items:center; gap:16px; padding:16px 0; position:relative; }
.pp-security-node:not(:last-child)::after { content:""; position:absolute; left:23px; top:56px; width:2px; height:calc(100% - 20px); background:linear-gradient(var(--blue-cyan), transparent); opacity:.35; }
.pp-security-dot { width:48px; height:48px; border-radius:50%; border:1px solid rgba(111,214,255,.35); background:var(--crystal-fill-strong); display:flex; align-items:center; justify-content:center; flex:none; color:var(--blue-cyan); }
.pp-security-node h4 { margin:0 0 2px; font-size:0.95rem; }
.pp-security-node p { margin:0; font-size:0.82rem; color:var(--ink-faint); }

.pp-compare { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:720px){ .pp-compare{ grid-template-columns:1fr; } }
.pp-compare-col ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.pp-compare-col li { font-size:0.9rem; padding-left:22px; position:relative; }
.pp-compare-col.before li::before { content:"✕"; position:absolute; left:0; color:#ff8a8a; }
.pp-compare-col.after li::before { content:"✓"; position:absolute; left:0; color:var(--blue-cyan); }

.pp-usecase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:880px){ .pp-usecase-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .pp-usecase-grid{ grid-template-columns:1fr; } }

.pp-social-row { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }
.pp-social-row a { width:38px; height:38px; border-radius:50%; border:1px solid var(--crystal-border-strong); display:flex; align-items:center; justify-content:center; color:var(--ink-faint); transition:color .2s,border-color .2s; }
.pp-social-row a:hover { color:var(--blue-cyan); border-color:rgba(111,214,255,.4); }

/* lighter variant — decorates a card that already has its own content
   (e.g. a "Coming Soon" card) with the same breathing watermark,
   without taking over layout */
.denxor-watermark { position: relative; overflow: hidden; }
.denxor-watermark::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url('/assets/denxor-icon.svg') center 68% / 60% no-repeat;
  opacity: 0.05;
  animation: denxorPlaceholderBreathe 5.5s var(--ease-lab) infinite;
}
.denxor-watermark > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .denxor-watermark::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .denxor-placeholder::before { animation: none; }
}

.legal-body h2 { margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-dim); font-size: 0.96rem; }
.legal-body { max-width: 720px; }

:focus-visible {
  outline: 2px solid var(--blue-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--blue-royal); color: #fff; }


/* ============================================================
   DENXOR LABS — MOTION SYSTEM STYLES
   Backs assets/motion.js: scroll color evolution, reveal
   choreography, parallax-safe layers, metrics bar.
   ============================================================ */

/* ---------- scroll-driven color evolution ---------- */
:root { --scroll-hue: 268; --scroll-sat: 78%; --scroll-light: 62%; }
.scroll-tint {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    1100px 650px at 82% 8%,
    hsl(var(--scroll-hue) var(--scroll-sat) var(--scroll-light) / 0.16),
    transparent 68%
  );
  transition: background 260ms linear;
  will-change: background;
}
html[data-theme="light"] .scroll-tint { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .scroll-tint { transition: none; } }

.nav-worlds a.active::before {
  background: hsl(var(--scroll-hue) var(--scroll-sat) var(--scroll-light));
  box-shadow: 0 0 6px hsl(var(--scroll-hue) var(--scroll-sat) var(--scroll-light) / 0.8);
}

/* Panels in the same grid cascade into view together rather than
   popping independently — a shared light sweep travels across a row
   as each card settles, so neighbouring panels read as one motion. */
.app-grid, .grid-3, .grid-2 { --grid-wave: 90ms; }
.app-grid > *, .grid-3 > *, .grid-2 > * { transition-delay: calc(var(--reveal-delay, 0ms) + var(--grid-index, 0) * var(--grid-wave)); }

/* ---------- parallax-safe layers ----------
   will-change here only pays for itself on pointer:fine devices,
   where initParallax() actually mutates transform every frame. On
   touch devices the transition is disabled but will-change was still
   being declared unconditionally, permanently promoting the full-bleed
   canvas and the hero to their own GPU layers for the entire page
   lifetime — dead weight on exactly the devices this hurts most. */
.bg-layer { transition: transform 240ms linear; }
.hero { transition: transform 240ms linear; }
@media (pointer: fine) {
  .bg-layer, .hero { will-change: transform; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .bg-layer, .hero { transition: none; }
}

/* ---------- metrics bar ---------- */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  padding: 6px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none; }
.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 640px) {
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .metric:nth-child(3), .metric:nth-child(4) { padding-top: 18px; }
}

/* ============================================================
   DENXOR LABS — REFERENCE-MATCH LAYER
   Matches the supplied reference screenshots: pill nav w/ switch
   toggle, split hero with orbital visual + social rail, floating
   stat bar, "OUR APPS" card grid, split updates/purpose panels,
   footer with CTA pill. Additive — reuses --void/--crystal tokens.
   ============================================================ */

/* ---------- nav: switch-style theme toggle + text menu button ---------- */
.nav { padding: 8px 8px 8px 20px; }
/* ---------- nav: sun/moon/system theme dial ----------
   Replaces the old generic switch pill. This reads as an actual
   celestial object — a sun glyph and moon glyph sit fixed at either
   end of a short arc-track, and a single thumb travels between them
   carrying whichever glyph is "in charge" of the current state:
     · dark   → thumb rests over the moon, showing the moon glyph
     · auto   → thumb sits at center, showing a half-lit dial glyph
                (this mode is time-synced, i.e. follows the local
                day/night cycle the way OS "system" theme follows the
                OS setting)
     · light  → thumb rests over the sun, showing the sun glyph
   Only one thumb glyph is visible at a time; the other two are
   scaled/faded out rather than removed, so the transition between
   states is a crossfade instead of a swap. */
.theme-toggle.dial {
  width: auto; height: auto; border-radius: 999px;
  padding: 4px;
  background: transparent;
}
.theme-toggle.dial .dial-track {
  position: relative;
  width: 62px; height: 28px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7px;
  background: linear-gradient(180deg, var(--crystal-fill-strong), var(--crystal-fill));
  box-shadow: inset 0 0 0 1px var(--crystal-border-strong), inset 0 1px 3px var(--shadow-deep);
  overflow: hidden;
}
/* Fixed end-glyphs — always present at each pole of the track, dimmed
   until the thumb is resting near them. */
.theme-toggle.dial .dial-icon {
  position: relative; z-index: 1;
  width: 13px; height: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  opacity: .45;
  transition: opacity var(--dur-fast) var(--ease-lab), color var(--dur-fast) var(--ease-lab);
}
.theme-toggle.dial .dial-icon svg { width: 100%; height: 100%; }
.theme-toggle.dial .dial-icon.on { opacity: 1; color: var(--blue-royal); }
/* The traveling thumb — a small sun/moon disc that physically moves
   left (dark), center (auto), right (light) across the track, so the
   metaphor is "the sun/moon crossing the sky" rather than a switch
   flicking on/off. */
.theme-toggle.dial .dial-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe6ff 70%, #c7d0f5);
  box-shadow: 0 1px 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.5) inset;
  transition: transform var(--dur-med) var(--ease-lab), background var(--dur-med) var(--ease-lab);
  will-change: transform;
}
.theme-toggle.dial .dial-thumb-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 5px;
  color: #1a2140;
  opacity: 0; transform: scale(.4) rotate(-40deg);
  transition: opacity var(--dur-fast) var(--ease-lab), transform var(--dur-med) var(--ease-lab);
}
.theme-toggle.dial .dial-thumb-glyph svg { width: 100%; height: 100%; }

/* ----- three states ----- */
/* dark: thumb left, moon glyph, moon-toned disc, moon end-glyph lit */
html[data-theme-mode="dark"] .theme-toggle.dial .dial-thumb {
  transform: translateX(0);
  background: radial-gradient(circle at 32% 28%, #f2f4ff, #c7ceec 65%, #9aa4d6);
}
html[data-theme-mode="dark"] .theme-toggle.dial .dial-icon-moon { opacity: 1; color: var(--blue-royal); }

/* light: thumb right, sun glyph, warm-white disc, sun end-glyph lit */
html[data-theme-mode="light"] .theme-toggle.dial .dial-thumb {
  transform: translateX(30px);
  background: radial-gradient(circle at 35% 30%, #fffdf5, #ffe9b8 65%, #ffcf6b);
}
html[data-theme-mode="light"] .theme-toggle.dial .dial-icon-sun { opacity: 1; color: #d68b12; }

/* auto: thumb centered, dial/half-moon glyph, gently pulses to signal
   "syncing with the day/night cycle" rather than a static pick. */
html[data-theme-mode="system"] .theme-toggle.dial .dial-thumb {
  transform: translateX(15px);
  background: radial-gradient(circle at 35% 30%, #fdfaff, #d7cdfb 60%, #a8b6f2);
  animation: dialAutoPulse 3.2s var(--ease-lab) infinite;
}
html[data-theme-mode="system"][data-theme="dark"] .theme-toggle.dial .dial-icon-moon { opacity: .8; color: var(--blue-royal); }
html[data-theme-mode="system"][data-theme="light"] .theme-toggle.dial .dial-icon-sun { opacity: .8; color: #d68b12; }
@keyframes dialAutoPulse {
  0%, 100% { box-shadow: 0 1px 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 0 3px var(--crystal-fill-strong); }
  50% { box-shadow: 0 1px 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 0 5px var(--crystal-fill-strong), 0 0 12px var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme-mode="system"] .theme-toggle.dial .dial-thumb { animation: none; }
  .theme-toggle.dial .dial-thumb, .theme-toggle.dial .dial-thumb-glyph { transition-duration: .01ms; }
}

/* which thumb glyph shows in which mode */
html[data-theme-mode="dark"] .dial-thumb-glyph.dial-thumb-moon,
html[data-theme-mode="light"] .dial-thumb-glyph.dial-thumb-sun,
html[data-theme-mode="system"] .dial-thumb-glyph.dial-thumb-auto {
  opacity: 1; transform: scale(1) rotate(0deg);
}

@media (max-width: 480px) {
  .theme-toggle.dial .dial-track { width: 54px; height: 26px; padding: 0 6px; }
  .theme-toggle.dial .dial-thumb { width: 22px; height: 22px; }
  html[data-theme-mode="light"] .theme-toggle.dial .dial-thumb { transform: translateX(26px); }
  html[data-theme-mode="system"] .theme-toggle.dial .dial-thumb { transform: translateX(13px); }
}

.nav-burger.labeled {
  width: auto; border-radius: 999px; padding: 0 16px 0 6px;
  gap: 8px; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim);
}
.nav-burger.labeled svg { width: 15px; height: 15px; }
@media (min-width: 881px) { .nav-burger.labeled { display: none; } }
@media (max-width: 880px) { .nav-burger.labeled { display: inline-flex; } }

/* ---------- hero: split layout with orbital visual + social rail ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 78vh;
  min-height: 78dvh;
  padding-top: 110px;
}
.hero-copy { position: relative; }
.hero-copy .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.accent-text {
  background: linear-gradient(100deg, #a78bff, #6f8dff 45%, #6fd6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Light theme: the dark-tuned pastel gradient loses contrast on white,
   so deepen it toward the light theme's own royal-blue/cyan identity
   rather than reusing the dark-surface pastel directly. */
html[data-theme="light"] .accent-text {
  background: linear-gradient(100deg, #6f3fd6 0%, var(--blue-royal) 48%, var(--blue-cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.social-rail {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px; border-radius: 999px;
  background: var(--crystal-fill); border: 1px solid var(--crystal-border);
}
.social-rail a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: color var(--dur-fast) var(--ease-lab), background var(--dur-fast) var(--ease-lab);
}
.social-rail a:hover { color: var(--ink); background: var(--crystal-fill-strong); }
.social-rail svg { width: 15px; height: 15px; }
@media (max-width: 1080px) { .social-rail { display: none; } }

/* ---------- floating stat bar (page-width, distinct from .metrics-bar) ---------- */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}
.stat-bar .stat {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; border-right: 1px solid var(--line);
}
.stat-bar .stat:last-child { border-right: none; }
.stat-icon {
  width: 34px; height: 34px; border-radius: var(--radius-s); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--crystal-fill-strong); color: var(--blue-cyan);
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.stat-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 720px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-bar .stat:nth-child(1), .stat-bar .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- section heading row (label + dot + right-aligned link) ---------- */
.section-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-row .eyebrow { margin-bottom: 0; }
.section-row .view-all {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-lab);
}
.section-row .view-all:hover { color: var(--ink); }

/* ---------- app cards (reference: icon, badge, title, desc, explore) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  padding: 24px; display: flex; flex-direction: column; min-height: 232px;
}
.app-card.featured { border-color: var(--crystal-border-strong); }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.app-card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-m); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--crystal-fill-strong);
}
.app-card-icon img { width: 24px; height: 24px; }
.app-card-icon svg { width: 22px; height: 22px; }
.app-card.placeholder .app-card-icon { background: var(--crystal-fill); }
.app-card.placeholder .app-card-icon img { opacity: .55; }
.badge-featured {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid var(--crystal-border); border-radius: 999px; padding: 4px 9px;
}
.app-card h3 { margin: 18px 0 8px; }
.app-card p { font-size: 0.92rem; margin-bottom: 0; flex: 1; }
.app-card-cta {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-cyan);
}
.app-card.placeholder .app-card-cta { color: var(--ink-faint); }
.app-card-cta svg { width: 12px; height: 12px; }
.lock-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--crystal-border); flex: none;
}
.lock-pill svg { width: 10px; height: 10px; color: var(--ink-faint); }

/* ---------- split panels: updates list + purpose values ---------- */
.split-panels { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split-panels { grid-template-columns: 1fr; } }
.panel-pad { padding: 30px 32px; }
.update-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.update-row:first-of-type { border-top: none; padding-top: 4px; }
.update-date {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); line-height: 1.5; padding-top: 2px;
}
.update-date b { display: block; font-size: 0.98rem; color: var(--ink); font-family: var(--font-display); }
.update-title-row { display: flex; align-items: center; gap: 8px; }
.update-title-row h4 { margin: 0; }
.badge-new {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--blue-cyan); border: 1px solid rgba(111,214,255,.32); border-radius: 999px; padding: 2px 8px;
}
.update-row p { margin: 4px 0 0; font-size: 0.88rem; }

.purpose-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 560px) { .purpose-values { grid-template-columns: 1fr; } }
.value-item { display: flex; flex-direction: column; gap: 10px; }
.value-icon {
  width: 34px; height: 34px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  background: var(--crystal-fill-strong); color: var(--blue-cyan);
}
.value-icon svg { width: 16px; height: 16px; }
.value-item h4 { margin: 0; font-size: 0.85rem; }
.value-item p { margin: 0; font-size: 0.82rem; }

/* ---------- footer CTA pill ---------- */
.footer-bottom-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-row .nav-mark { width: 30px; height: 30px; }
.footer-cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--crystal-border-strong);
  color: var(--ink);
}

/* ============================================================
   HOMEPAGE v2 — brand-story sections (Understand/Build/Test/Improve,
   featured product, philosophy, why-denxor, labs, coming, trust, faq)
   ============================================================ */

/* ---- scroll cue under hero ---- */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 56px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0.8;
}
.scroll-cue-line {
  width: 1px; height: 34px; background: linear-gradient(var(--blue-cyan), transparent);
  animation: scrollCueFlow 1.8s var(--ease-lab) infinite;
}
@keyframes scrollCueFlow { 0% { opacity: .2; transform: scaleY(.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } 100% { opacity: .2; transform: scaleY(.4); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-line { animation: none; opacity: .5; } }

/* ---- large editorial statement blocks ---- */
.statement-block { max-width: 780px; }
.statement-block p.lede {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; margin: 18px 0 0;
}
.statement-block p.lede + p.lede { margin-top: 14px; color: var(--ink-dim); font-weight: 400; font-size: clamp(1rem,1.6vw,1.15rem); }

/* ---- approach: 4-step engineering sequence ---- */
.approach-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 40px; counter-reset: step; }
.approach-step {
  position: relative; padding: 28px 20px 24px; border-top: 1px solid var(--line);
  transition: border-color var(--dur-med) var(--ease-lab);
}
.approach-step-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint);
  letter-spacing: 0.08em; display: block; margin-bottom: 14px;
  transition: color var(--dur-med) var(--ease-lab);
}
.approach-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.approach-step p { margin: 0; font-size: 0.88rem; color: var(--ink-dim); }
.approach-step.is-active { border-top-color: var(--blue-cyan); }
.approach-step.is-active .approach-step-num { color: var(--blue-cyan); }
@media (max-width: 880px) { .approach-track { grid-template-columns: 1fr; gap: 0; } }

/* ---- featured product (ProofPay) ---- */
.featured-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.featured-product-visual {
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--crystal-border);
  background: var(--crystal-fill);
}
.featured-product-visual img { width: 100%; display: block; }
.featured-product-copy .pill { margin-bottom: 14px; }
.featured-product-copy h2 { margin: 0 0 4px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.featured-product-tagline { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-cyan); margin-bottom: 16px; }
.featured-product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 22px 0; }
.featured-product-facts dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.featured-product-facts dd { margin: 0; font-size: 0.9rem; }
@media (max-width: 880px) { .featured-product { grid-template-columns: 1fr; } }

/* ---- product philosophy statements ---- */
.philosophy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; margin-top: 34px; }
.philosophy-item { display: flex; align-items: baseline; gap: 14px; }
.philosophy-item span.marker { font-family: var(--font-mono); color: var(--blue-cyan); font-size: 0.85rem; flex: none; }
.philosophy-item p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
@media (max-width: 640px) { .philosophy-list { grid-template-columns: 1fr; } }

/* ---- why denxor / editorial ---- */
.editorial { max-width: 760px; }
.editorial h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 20px; }
.editorial p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-dim); }
.editorial p + p { margin-top: 14px; }

/* ---- labs / experimentation ---- */
.labs-panel {
  border-radius: var(--radius-l); border: 1px solid var(--crystal-border);
  background: radial-gradient(120% 160% at 20% 0%, rgba(80,130,255,0.08), transparent 60%), var(--crystal-fill);
  padding: 48px clamp(24px, 5vw, 56px);
}
.labs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.labs-tags .pill { border-color: var(--crystal-border); color: var(--ink-dim); }

/* ---- what's coming status rail ---- */
.coming-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.coming-card { padding: 22px; }
.coming-card .pill { margin-bottom: 14px; }
.coming-card p { margin: 0; font-size: 0.88rem; color: var(--ink-dim); }
@media (max-width: 880px) { .coming-rail { grid-template-columns: 1fr; } }

/* ---- trust section ---- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.trust-item h4 { margin: 0 0 8px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.trust-item h4 svg { width: 16px; height: 16px; color: var(--blue-cyan); flex: none; }
.trust-item p { margin: 0; font-size: 0.85rem; color: var(--ink-dim); }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---- faq preview ---- */
.faq-preview-list .faq-item summary { font-size: 0.98rem; }

/* ---- final cta ---- */
.final-cta { text-align: center; padding-top: 70px; padding-bottom: 70px; }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.final-cta p { color: var(--ink-dim); margin-bottom: 30px; }

/* ============================================================
   APPS PAGE v2 — filter tabs, secondary grid, transparency
   ============================================================ */

/* ---- status filter tabs ---- */
.apps-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.apps-filter-btn {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--crystal-border);
  background: transparent; color: var(--ink-dim); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-lab);
}
.apps-filter-btn:hover { border-color: var(--crystal-border-strong); color: var(--ink); }
.apps-filter-btn.is-active { background: var(--crystal-fill-strong); border-color: var(--blue-cyan); color: var(--ink); }

/* ---- secondary apps grid heading ---- */
.other-apps-head { margin: 46px 0 4px; }

/* ---- app card fade for filtering ---- */
.app-filterable { transition: opacity var(--dur-med) var(--ease-lab), transform var(--dur-med) var(--ease-lab); }
.app-filterable[hidden] { display: none; }

/* ---- transparency status key ---- */
.status-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.status-key-item { padding: 20px; }
.status-key-item .pill { margin-bottom: 12px; }
.status-key-item p { margin: 0; font-size: 0.85rem; color: var(--ink-dim); }
@media (max-width: 880px) { .status-key { grid-template-columns: 1fr; } }

/* ============================================================
   PROOFPAY DOWNLOAD / RELEASE INFO
   ============================================================ */
.release-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.release-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 18px 0 0; }
.release-facts dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.release-facts dd { margin: 0; font-family: var(--font-mono); font-size: 0.85rem; word-break: break-all; }
.download-btn-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.download-btn-col .btn { white-space: nowrap; }
.download-note { font-size: 0.72rem; color: var(--ink-faint); text-align: right; max-width: 220px; }
@media (max-width: 720px) {
  .release-card { grid-template-columns: 1fr; }
  .download-btn-col { align-items: flex-start; }
  .download-note { text-align: left; }
}

/* ---- detection flow ---- */
.detect-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; }
.detect-flow-step {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--crystal-border);
  background: var(--crystal-fill); color: var(--ink-dim); white-space: nowrap;
}
.detect-flow-step.is-highlight { border-color: var(--blue-cyan); color: var(--ink); background: var(--crystal-fill-strong); }
.detect-flow-arrow { color: var(--ink-faint); font-size: 0.85rem; }
@media (max-width: 640px) {
  .detect-flow { flex-direction: column; align-items: stretch; }
  .detect-flow-arrow { text-align: center; }
}

/* ============================================================
   MOBILE FIX — inline grid layouts that bypass class-based
   responsive rules (inline styles win specificity over classes,
   so these grids stayed multi-column on phones with no fallback).
   Targeted !important overrides restore single-column stacking
   below 880px without touching desktop layout or markup content.
   ============================================================ */
@media (max-width: 880px) {
  .pp-hero-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 100px !important;
    gap: 28px !important;
  }
  .pp-media-split {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .pp-trio-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  .pp-trio-grid { gap: 14px !important; }
}

/* ============================================================
   DENXOR LABS — LIQUID GLASS LAYER (v4)
   Materials, components, hero and motion built on the tokens at
   the top of this file. Order: atmosphere → material → controls →
   navigation → sections → pages → motion → fallbacks.
   ============================================================ */

/* ---------- atmosphere ----------
   Obsidian field, a soft aperture of light from above (the scroll
   hue drives it), two side fields for depth, and very fine grain so
   large gradients don't band. The live canvas sits underneath. */
.scroll-tint { background-image: var(--env-map); transition: none; }
html[data-theme="light"] .scroll-tint { opacity: .85; }
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035;
  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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] body::after { opacity: .025; }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; padding-inline: clamp(20px, 5vw, 56px); }
/* padding-block only: the old `padding: 96px 0` cancelled .wrap's side
   padding, so section text touched the screen edge on phones. */
.section { padding: var(--section-gap) 0; padding-inline: clamp(20px, 5vw, 56px); }
.section:not(.wrap) { padding-inline: 0; }
.section-head { margin-bottom: var(--space-7); }

/* ============================================================
   ENVIRONMENT — one light map, shared by background and glass
   The room's light is described once (--env-map): an aperture of
   light from above, two side fields, and a soft pool that follows
   the pointer — all driven by the live --scroll-hue/-sat/-light that
   motion.js already animates per page, per scroll position and per
   theme. .scroll-tint paints it as the background; every glass
   surface paints the SAME map with background-attachment: fixed, so
   each panel shows exactly the light that sits behind its own
   position on screen — violet under the violet field, neutral smoke
   over charcoal, brighter where the light is. --env-k is how much a
   surface gathers that light (glass concentrates it; hover raises
   it). No pixel sampling, no per-frame JavaScript for colour.
   ============================================================ */
:root {
  --env-px: -9999px;           /* pointer light; set by motion.js on fine pointers */
  --env-py: -9999px;
  --env-pointer: .10;
  --glass-env-gain: 2.4;       /* how much more light glass gathers than open air */
  --glass-env-sat: 1.1;        /* …and how much more saturated it shows it */
  --glass-env-shift: 4%;       /* lightness offset of the gathered light */
}
/* Light theme: frosted white glass would otherwise wash the room's colour
   out (measured: its own tint pointed ~180° away from the local light).
   It gathers the same light more saturated and slightly deeper, so it
   reads as clean glass that reflects its surroundings. */
html[data-theme="light"] { --env-pointer: .16; --glass-env-gain: 1.9; --glass-env-sat: 1.9; --glass-env-shift: -14%; }
.scroll-tint, :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
    .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div), :is(.nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter, .footer-cta-pill) {
  --env-sat-k: var(--glass-env-sat);
  --env-light-shift: var(--glass-env-shift);
  --env-map:
    radial-gradient(circle clamp(260px, 28vw, 440px) at var(--env-px) var(--env-py), hsl(var(--scroll-hue) 95% 72% / calc(var(--env-pointer) * min(var(--env-k, 1), 1.6))), transparent 72%),
    radial-gradient(62% 48% at 50% -14%, hsl(var(--scroll-hue) calc(var(--scroll-sat) * var(--env-sat-k, 1)) calc(var(--scroll-light) + var(--env-light-shift, 0%)) / calc(.26 * var(--env-k, 1))), transparent 72%),
    radial-gradient(38% 46% at 104% 22%, hsl(calc(var(--scroll-hue) + 24) calc(var(--scroll-sat) * var(--env-sat-k, 1)) calc(var(--scroll-light) + var(--env-light-shift, 0%)) / calc(.14 * var(--env-k, 1))), transparent 70%),
    radial-gradient(36% 40% at -6% 78%, hsl(calc(var(--scroll-hue) - 30) calc(var(--scroll-sat) * var(--env-sat-k, 1)) calc(var(--scroll-light) + var(--env-light-shift, 0%)) / calc(.10 * var(--env-k, 1))), transparent 70%);
}
.scroll-tint { --env-k: 1; --env-sat-k: 1; --env-light-shift: 0%; }

/* ============================================================
   MATERIAL — liquid glass
   One material, three intensities. The rim is a masked gradient
   border (lit top-left, refracted bottom-right) so the edge reads
   as thickness; the sheen is a curved reflection across the top.
   ============================================================ */
:is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
    .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div) {
  --g-fill: var(--glass-2);
  --g-blur: var(--glass-blur-2);
  --g-shadow: var(--shadow-2);
  --g-rim: .75;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: var(--r-l);
  --env-k: var(--glass-env-gain);
  background-color: transparent;
  background-image:
    radial-gradient(140% 70% at 50% -20%, var(--glass-sheen), transparent 56%),
    var(--env-map),
    linear-gradient(var(--g-tone), var(--g-tone));
  background-attachment: scroll, fixed, fixed, fixed, fixed, scroll;
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--g-blur)) saturate(var(--glass-sat));
  box-shadow: var(--g-shadow), inset 0 0 0 1px var(--glass-edge);
  transition:
    opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
}
.crystal { overflow: hidden; }
/* reserved "in the lab" cards keep their breathing Denxor watermark */
.crystal.denxor-watermark::before {
  inset: 0; padding: 0; z-index: 0;
  -webkit-mask: none; mask: none;
  background: url('/assets/denxor-icon.svg') center 68% / 56% no-repeat;
  opacity: 0.06;
  animation: denxorPlaceholderBreathe 5.5s var(--ease-out) infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* lit rim */
:is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
    .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div)::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: var(--g-rim);
  background: linear-gradient(158deg, var(--glass-rim) 0%, transparent 26%, transparent 64%, var(--glass-rim-low) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--dur-3) var(--ease-out);
}

/* L1 — ambient */
:is(.glass-ambient, .trust-item, .philosophy-item, .faq-preview-list, .approach-track,
    .status-key-item, .featured-product-facts > div, .coming-card.denxor-watermark) {
  --g-fill: var(--glass-1);
  --g-blur: var(--glass-blur-1);
  --g-shadow: var(--shadow-1);
  --g-rim: .5;
  --env-k: calc(var(--glass-env-gain) * .8);
}

/* L3 — crystal: deeper glass, accent light caught inside it */
:is(.glass-crystal.glass-crystal, .labs-panel.labs-panel, .featured-showcase.featured-showcase) {
  --g-fill: var(--glass-3);
  --g-blur: var(--glass-blur-3);
  --g-shadow: var(--shadow-3);
  --g-rim: 1;
  --env-k: calc(var(--glass-env-gain) * 1.15);
  background-image:
    linear-gradient(90deg, transparent 8%, color-mix(in oklab, var(--accent-hi) 55%, transparent) 50%, transparent 92%),
    radial-gradient(60% 70% at 92% -10%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 72%),
    radial-gradient(140% 70% at 50% -20%, var(--glass-sheen), transparent 56%),
    var(--env-map),
    linear-gradient(var(--g-tone), var(--g-tone));
  background-size: 100% 1px, auto, auto, auto, auto, auto, auto, auto;
  background-position: top, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, scroll, fixed, fixed, fixed, fixed, scroll;
  box-shadow: var(--g-shadow), inset 0 0 0 1px var(--glass-edge), 0 0 0 1px color-mix(in oklab, var(--accent) 10%, transparent), 0 0 80px -30px var(--accent-glow);
}
html[data-theme="light"] :is(.glass-crystal.glass-crystal, .labs-panel.labs-panel, .featured-showcase.featured-showcase) {
  background-image:
    linear-gradient(transparent, transparent),
    radial-gradient(60% 70% at 92% -10%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 72%),
    radial-gradient(140% 70% at 50% -20%, var(--glass-sheen), transparent 56%),
    var(--env-map),
    linear-gradient(var(--g-tone), var(--g-tone));
}
:is(.glass-crystal.glass-crystal, .labs-panel.labs-panel, .featured-showcase.featured-showcase)::before {
  background: conic-gradient(from 200deg at 30% 0%,
    var(--glass-rim), color-mix(in oklab, var(--accent) 70%, transparent) 18%, transparent 34%,
    transparent 62%, color-mix(in oklab, var(--violet) 60%, transparent) 82%, var(--glass-rim));
}

/* Interactive glass only — static panels don't pretend to be buttons. */
:is(a.crystal, .crystal-hover, button.crystal, .app-card) { cursor: pointer; }
:is(a.crystal, .crystal-hover, button.crystal, .app-card)::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.12) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: background-position 1s var(--ease-out), opacity var(--dur-3) var(--ease-out);
}
@media (hover: hover) {
  :is(a.crystal, .crystal-hover, button.crystal, .app-card):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover), inset 0 0 0 1px var(--glass-edge);
    --g-rim: 1;
    --env-k: calc(var(--glass-env-gain) * 1.4);
  }
  :is(a.crystal, .crystal-hover, button.crystal, .app-card):hover::after {
    background-position: -30% 0;
    opacity: 1;
  }
}
:is(a.crystal, .crystal-hover, button.crystal, .app-card):active {
  transform: translateY(-1px) scale(.992);
  transition-duration: var(--dur-1);
}
/* touch: the existing .is-touched pulse from app.js */
.crystal.is-touched { --g-rim: 1; --env-k: calc(var(--glass-env-gain) * 1.4); }
:is(a.crystal, .crystal-hover, .app-card):focus-visible { --g-rim: 1; --env-k: calc(var(--glass-env-gain) * 1.4); }

/* ============================================================
   CONTROLS
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 8px;
}
:is(.btn, .apps-filter-btn, .faq-filter label, .hero-chip, .nav-worlds a, .theme-toggle, .nav-burger):focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}
::selection { background: color-mix(in oklab, var(--accent) 55%, transparent); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%;
  background-position: 140% 0;
  transition: background-position .9s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { background-position: -40% 0; }
}
.btn:active { transform: translateY(0) scale(.975); transition-duration: var(--dur-1); }

.btn-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 52%),
    linear-gradient(120deg, var(--accent-strong), var(--violet-strong));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 1px 2px rgba(0,0,0,.25),
    0 12px 32px -10px var(--accent-glow);
}
@media (hover: hover) {
  .btn-primary:hover {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      inset 0 -1px 0 rgba(0,0,0,.2),
      0 1px 2px rgba(0,0,0,.25),
      0 18px 44px -10px var(--accent-glow);
  }
}
.btn-ghost {
  color: var(--ink);
  background:
    radial-gradient(140% 90% at 50% -30%, var(--glass-sheen), transparent 60%),
    var(--glass-2);
  -webkit-backdrop-filter: blur(14px) saturate(var(--glass-sat));
  backdrop-filter: blur(14px) saturate(var(--glass-sat));
  box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--shadow-1);
}
@media (hover: hover) {
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--crystal-border-strong), var(--shadow-2); }
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .btn:hover svg { transform: translateX(2px); } }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  pointer-events: none;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- pills / status ----------
   Status is always spelled out; the dot only reinforces it. */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 11px 6px;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--ink-dim);
  background: var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.pill:is(.status-live, .status-beta, .status-soon)::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.pill.status-live { color: var(--cyan); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cyan) 38%, transparent); }
.pill.status-beta { color: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 38%, transparent); }
.pill.status-soon { color: var(--ink-faint); }
.pill.status-soon::before { box-shadow: none; opacity: .7; }
.badge-featured, .badge-new {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-hi);
  border: 0; border-radius: var(--r-pill); padding: 5px 9px 4px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 34%, transparent);
}
.placeholder-note, .meta-note {
  border: 0;
  border-radius: var(--r-pill);
  padding: 7px 12px 6px;
  font-size: var(--step--2);
  letter-spacing: .06em;
  color: var(--ink-dim);
  background: var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

/* ---------- text inputs ---------- */
.field,
.vf-manual-form input {
  min-height: 48px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--glass-1) !important;
  box-shadow: inset 0 0 0 1px var(--hairline-strong), inset 0 2px 8px rgba(0,0,0,.16);
  transition: box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.vf-manual-form input { font-family: var(--font-mono); font-size: 0.8125rem; }
.field::placeholder, .vf-manual-form input::placeholder { color: var(--ink-faint); opacity: 1; }
@media (hover: hover) {
  .field:hover, .vf-manual-form input:hover { box-shadow: inset 0 0 0 1px var(--crystal-border-strong), inset 0 2px 8px rgba(0,0,0,.16); }
}
.field:focus, .vf-manual-form input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
}
.field:user-invalid { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px color-mix(in oklab, var(--danger) 18%, transparent); }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; min-width: 0; }
.form-note { margin: 12px 0 0; font-size: var(--step--1); color: var(--ink-faint); }
.form-note[data-state="info"] { color: var(--ink-dim); }
.form-note[data-state="info"]::before { content: "ⓘ "; color: var(--accent-hi); }

/* ---------- segmented filters (Apps status, FAQ categories) ---------- */
.apps-filter, .faq-filter {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--glass-1);
  -webkit-backdrop-filter: blur(var(--glass-blur-1)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur-1)) saturate(var(--glass-sat));
  box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--shadow-1);
}
.apps-filter-btn, .faq-filter label {
  min-height: 40px;
  display: inline-flex; align-items: center;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--r-pill) !important;
  background: transparent !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  color: var(--ink-dim) !important;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out) !important;
}
@media (hover: hover) {
  .apps-filter-btn:hover, .faq-filter label:hover { color: var(--ink) !important; background: var(--crystal-fill) !important; }
}
.apps-filter-btn:active, .faq-filter label:active { transform: scale(.97); }
.apps-filter-btn.is-active, .apps-filter-btn[aria-pressed="true"], .faq-filter input:checked + label {
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03)),
    color-mix(in oklab, var(--accent) 20%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -8px var(--accent-glow) !important;
}
html[data-theme="light"] :is(.apps-filter-btn.is-active, .apps-filter-btn[aria-pressed="true"], .faq-filter input:checked + label) {
  background: #fff !important;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent), 0 4px 14px -6px var(--accent-glow) !important;
}
.faq-filter input:focus-visible + label { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.apps-empty {
  margin-top: 8px;
  padding: 28px;
  text-align: center;
  border-radius: var(--r-l);
  color: var(--ink-dim);
  border: 1px dashed var(--hairline-strong);
}
.apps-empty p { margin: 0 auto; max-width: 44ch; }

/* ---------- disclosure (FAQ) ---------- */
.faq-item { border-top: 1px solid var(--hairline); padding: 0; }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary {
  min-height: 56px;
  padding: 18px 0;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.0625rem !important;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  border-radius: var(--r-s);
  transition: color var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .faq-item summary:hover { color: var(--accent-hi); } }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-hi), var(--accent-hi)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--accent-hi), var(--accent-hi)) center / 1.5px 10px no-repeat,
    var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { margin: 0 0 20px; font-size: 0.9688rem; }
.faq-preview-list { padding: 6px clamp(18px, 3vw, 32px); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  top: calc(14px + env(safe-area-inset-top, 0px));
  width: min(calc(100vw - 24px), 1140px);
  padding: 7px 7px 7px 16px;
  border: 0;
  background:
    radial-gradient(120% 160% at 50% -60%, var(--glass-sheen), transparent 60%),
    var(--glass-2);
  -webkit-backdrop-filter: blur(22px) saturate(var(--glass-sat));
  backdrop-filter: blur(22px) saturate(var(--glass-sat));
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--glass-edge);
}
.nav::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(170deg, var(--glass-rim), transparent 40%, transparent 70%, var(--glass-rim-low));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .7;
}
.nav-brand { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; gap: 10px; }
.nav-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.nav-mark img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.nav-worlds {
  gap: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
}
.nav-worlds a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--ink-dim);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .nav-worlds a:hover { color: var(--ink); background: var(--crystal-fill); } }
.nav-worlds a.active {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
    color-mix(in oklab, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.16);
}
html[data-theme="light"] .nav-worlds a.active { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 2px 10px -4px var(--accent-glow); }
.nav-worlds a.active::before {
  width: 5px; height: 5px; margin-right: 8px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* theme dial: same three-state behaviour, glass track */
.theme-toggle.dial { border: 0; }
.theme-toggle.dial .dial-track {
  background: var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong), inset 0 2px 5px rgba(0,0,0,.25);
}
@media (hover: hover) { .theme-toggle.dial:hover .dial-track { box-shadow: inset 0 0 0 1px var(--crystal-border-strong), inset 0 2px 5px rgba(0,0,0,.25); } }
.theme-toggle.dial:active .dial-thumb { scale: .92; }
.theme-toggle, .nav-burger { border: 0; background: transparent; }
.theme-toggle.dial .dial-icon.on { color: var(--accent); }

.nav-burger.labeled {
  min-height: 40px;
  padding: 0 16px 0 12px;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: -0.005em; text-transform: none;
  color: var(--ink);
  background: var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  border-radius: var(--r-pill);
}
.nav-burger.labeled[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
/* Small phones: icon-only menu button (aria-label stays "Open menu") so
   brand + theme + menu fit in 390px without pushing the page sideways. */
@media (max-width: 420px) {
  .nav { padding-left: 12px; gap: 8px; }
  .nav-brand { font-size: 0.9375rem; gap: 8px; }
  .nav-mark, .nav-mark img { width: 26px; height: 26px; }
  .nav-burger.labeled { font-size: 0; gap: 0; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .nav-burger.labeled svg { width: 18px; height: 18px; }
}

/* mobile menu: frosted crystal sheet with a real open/close transition */
.nav-mobile-panel {
  top: calc(76px + env(safe-area-inset-top, 0px));
  width: min(calc(100vw - 24px), 1140px);
  padding: 8px;
  gap: 2px;
  border: 0;
  border-radius: var(--r-l);
  background:
    radial-gradient(120% 60% at 50% -10%, var(--glass-sheen), transparent 60%),
    color-mix(in oklab, var(--bg-2) 82%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(var(--glass-sat));
  backdrop-filter: blur(28px) saturate(var(--glass-sat));
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--glass-edge);
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scale(.985);
  transform-origin: top center;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-3) var(--ease-out),
    display var(--dur-3) allow-discrete,
    overlay var(--dur-3) allow-discrete;
}
.nav-mobile-panel.open { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
@starting-style {
  .nav-mobile-panel.open { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.985); }
}
.nav-mobile-panel a {
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--r-m);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-dim);
  justify-content: space-between;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.nav-mobile-panel a::after { content: "→"; color: var(--ink-faint); font-size: 0.9em; }
.nav-mobile-panel a:active { background: var(--crystal-fill-strong); }
.nav-mobile-panel a.active {
  color: var(--ink);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 32%, transparent);
}
.nav-mobile-panel a.active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
body:has(.nav-mobile-panel.open)::before {
  content: "";
  position: fixed; inset: 0; z-index: 48;
  background: color-mix(in oklab, var(--bg-0) 55%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ============================================================
   HERO — home: a single crystal lens holding the Denxor mark
   ============================================================ */
.hero-lab {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: min(100vh, 940px);
  min-height: min(100dvh, 940px);
  padding-top: 132px;
  padding-bottom: 64px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  min-height: 36px;
  padding: 4px 14px 4px 4px;
  margin-bottom: 28px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-dim);
  background:
    radial-gradient(140% 90% at 50% -30%, var(--glass-sheen), transparent 60%),
    var(--glass-2);
  -webkit-backdrop-filter: blur(14px) saturate(var(--glass-sat));
  backdrop-filter: blur(14px) saturate(var(--glass-sat));
  box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--shadow-1);
  transition: color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.hero-chip-badge {
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px 5px;
  border-radius: var(--r-pill);
  color: #fff;
  background: linear-gradient(120deg, var(--accent-strong), var(--violet-strong));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px -4px var(--accent-glow);
}
.hero-chip svg { width: 14px; height: 14px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) {
  .hero-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--crystal-border-strong), var(--shadow-2); transform: translateY(-1px); }
  .hero-chip:hover svg { transform: translateX(3px); }
}
.hero-chip:active { transform: scale(.98); }

h1.display {
  font-size: var(--step-5);
  font-weight: 600;
  letter-spacing: -0.058em;
  line-height: 0.92;
  margin: 0 0 28px;
}
h1.display .accent-serif {
  font-size: 1.1em;
  line-height: 0.8;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--silver) 0%, var(--accent-hi) 38%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
html[data-theme="light"] h1.display .accent-serif {
  background: linear-gradient(100deg, var(--ink) 0%, var(--accent-strong) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-dim); max-width: 36ch; margin: 0; }
.hero-copy .btn-row { margin-top: 36px; }
.scroll-cue { margin-top: 64px; align-items: flex-start; }
@media (max-width: 980px) { .scroll-cue { display: none; } }

/* the lens */
.hero-lens {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.hero-lens::before, .hero-lens::after { content: none; }
.lens-beam {
  position: absolute;
  inset: 22% -38%;
  pointer-events: none;
  background:
    radial-gradient(50% 9% at 50% 50%, hsl(var(--atmos-b) 100% 92% / .55), transparent 100%),
    radial-gradient(50% 50% at 50% 50%, hsl(var(--atmos-b) 92% 70% / .55), hsl(var(--atmos-a) 92% 62% / .2) 42%, transparent 72%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
html[data-theme="light"] .lens-beam {
  background: radial-gradient(50% 50% at 50% 50%, hsl(var(--atmos-b) 90% 72% / .38), hsl(var(--atmos-a) 90% 70% / .16) 42%, transparent 72%);
}
.lens-orbit {
  position: absolute; inset: 1%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0deg, color-mix(in oklab, var(--accent) 80%, transparent) 40deg, transparent 110deg, transparent 250deg, color-mix(in oklab, var(--violet) 60%, transparent) 310deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70%, transparent 70.2%);
  mask: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70%, transparent 70.2%);
  animation: orbitSpin 60s linear infinite;
  opacity: .9;
}
.lens-orbit.outer {
  inset: -6%;
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: .5;
}
.lens {
  position: relative;
  width: 76%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 4.2%;                                  /* glass thickness */
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 900ms var(--ease-out);
  background:
    radial-gradient(110% 70% at 28% 8%, rgba(255,255,255,.42), transparent 42%),
    radial-gradient(80% 80% at 72% 100%, color-mix(in oklab, var(--violet) 55%, transparent), transparent 62%),
    linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 48%, color-mix(in oklab, var(--accent) 22%, transparent));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.26),
    inset 0 2px 1px rgba(255,255,255,.4),
    inset 0 -14px 32px color-mix(in oklab, var(--violet) 32%, transparent),
    0 30px 80px -24px rgba(0,0,0,.75),
    0 0 140px -20px var(--accent-glow);
}
html[data-theme="light"] .lens {
  background:
    radial-gradient(110% 70% at 28% 8%, rgba(255,255,255,1), transparent 46%),
    radial-gradient(80% 80% at 72% 100%, color-mix(in oklab, var(--violet) 30%, transparent), transparent 62%),
    linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.55) 48%, color-mix(in oklab, var(--accent) 14%, #fff));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,1),
    inset 0 -14px 30px color-mix(in oklab, var(--accent) 16%, transparent),
    0 1px 2px rgba(25,28,80,.08),
    0 30px 70px -26px rgba(40,40,120,.38),
    0 0 120px -20px var(--accent-glow);
}
.lens-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #0d0f22, #04050c 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 10px 30px rgba(0,0,0,.85);
}
.lens-screen video, .lens-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}
.lens-screen::after {                             /* the inner face of the glass */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(4,5,12,.55) 100%);
}
.lens-specular {
  position: absolute;
  top: 6%; left: 14%;
  width: 40%; height: 14%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
  transform: rotate(-26deg) translateZ(20px);
  opacity: .8;
  mix-blend-mode: screen;
  filter: blur(1.5px);
}
.lens-floor {
  position: absolute;
  bottom: 3%;
  width: 58%; height: 8%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(10px);
}
@media (max-width: 980px) {
  .hero-lab { grid-template-columns: 1fr; min-height: auto; padding-top: 112px; gap: 8px; }
  .hero-lens { max-width: 400px; order: -1; margin-top: 4px; }
  .lens-beam { inset: 26% -18%; }
}
@media (max-width: 480px) {
  .hero-lens { max-width: 320px; }
  h1.display { letter-spacing: -0.05em; }
}

/* ---------- inner-page heroes ---------- */
.hero:not(.pp-hero-split) { padding-top: clamp(124px, 16vw, 168px); padding-bottom: clamp(32px, 6vw, 72px); justify-content: flex-end; }
.hero h1 { margin-bottom: 0.38em; }
.hero > p, .hero-copy > p { font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.hero-copy > * , .hero > * { animation: heroRise var(--dur-4) var(--ease-out) both; }
.hero-copy > :nth-child(2), .hero > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3), .hero > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4), .hero > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(n+5), .hero > :nth-child(n+5) { animation-delay: 240ms; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-row .view-all {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  letter-spacing: -0.005em; text-transform: none;
  color: var(--ink-dim);
  padding: 8px 2px;
  transition: color var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .section-row .view-all:hover { color: var(--accent-hi); } }

.statement-block { max-width: 820px; }
.statement-block h2 { font-size: var(--step-3) !important; }
.statement-block p.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 26px;
}
.statement-block p.lede + p.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  margin-top: 16px;
}

/* approach: one glass rail, four stations; the active one is lit */
.approach-track {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--space-7);
  overflow: hidden;
}
.approach-step { padding: 30px 26px 28px; border-top: 0; border-left: 1px solid var(--hairline); }
.approach-step:first-child { border-left: 0; }
.approach-step::before {
  content: "";
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease-out);
}
.approach-step.is-active::before { opacity: 1; }
.approach-step-num { font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.approach-step.is-active { border-top-color: transparent; }
.approach-step.is-active .approach-step-num { color: var(--accent-hi); }
.approach-step h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.approach-step p { font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 880px) {
  .approach-track { grid-template-columns: 1fr; }
  .approach-step { border-left: 0; border-top: 1px solid var(--hairline); }
  .approach-step:first-child { border-top: 0; }
  .approach-step::before { left: 0; right: auto; top: 18%; bottom: 18%; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
}

/* featured product: the signature showcase */
.featured-showcase {
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(14px, 2vw, 22px);
  padding-right: clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
}
.featured-showcase .featured-product-visual {
  position: relative;
  border: 0;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background: #04050c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 60px -24px rgba(0,0,0,.75);
}
.featured-showcase .featured-product-visual::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.16), transparent 32%), radial-gradient(90% 50% at 50% 110%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
}
.featured-showcase .featured-product-visual img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .featured-showcase:hover .featured-product-visual img { transform: scale(1.025); } }
.featured-product-copy h2 { font-size: var(--step-4) !important; letter-spacing: -0.05em; margin: 4px 0 6px; }
.featured-product-tagline { font-size: var(--step--2); letter-spacing: .16em; color: var(--accent-hi); }
.featured-product-facts { gap: 10px; margin: 24px 0 28px; }
.featured-product-facts > div { padding: 14px 16px; border-radius: var(--r-m); }
.featured-product-facts dt { font-size: 0.625rem; letter-spacing: .14em; }
.featured-product-facts dd { font-weight: 500; color: var(--ink); }
@media (max-width: 880px) { .featured-showcase { padding: 12px 12px 24px; } .featured-product-copy { padding: 0 10px; } }

/* philosophy / trust / status tiles */
.philosophy-list { gap: 12px; }
.philosophy-item { align-items: center; padding: 18px 22px; border-radius: var(--r-m); }
.philosophy-item span.marker {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  color: var(--accent-hi);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent);
}
.philosophy-item p { font-size: 1.0625rem; letter-spacing: -0.015em; color: var(--ink); }
.trust-grid { gap: 14px; }
.trust-item { padding: 24px; border-radius: var(--r-l); }
.trust-item h4 { font-size: 1rem; gap: 12px; margin-bottom: 10px; }
.trust-item h4 svg {
  width: 34px; height: 34px; padding: 8px;
  border-radius: 10px;
  color: var(--accent-hi);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent);
}
.trust-item p { font-size: 0.9375rem; line-height: 1.6; }
.status-key-item { border-radius: var(--r-l); }

/* editorial */
.editorial { max-width: 780px; padding-left: clamp(0px, 3vw, 32px); border-left: 1px solid var(--hairline-strong); }
.editorial h2 { font-size: var(--step-3); }
.editorial p { font-size: var(--step-1); line-height: 1.65; }
.editorial p:first-of-type { color: var(--ink); }

/* labs */
.labs-panel { border: 0; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px); border-radius: var(--r-xl); }
.labs-tags { gap: 8px; }
.labs-tags .pill { color: var(--ink-dim); }

/* coming / app cards */
.coming-card { padding: 26px; }
.coming-card p { font-size: 0.9375rem; line-height: 1.6; }
.app-card { border-radius: var(--r-l); }
.app-card-cta { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: var(--accent-hi); }
.app-card-cta svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { :is(a.crystal, .crystal-hover):hover .app-card-cta svg { transform: translateX(3px); } }

/* final call to action */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--step-4); letter-spacing: -0.05em; }
.final-cta > p { margin-inline: auto; font-size: var(--step-1); }
.final-cta .glass-crystal { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px); }

/* timelines (apps "how we build", updates) */
.timeline-item { padding: 22px 0; border-top-color: var(--hairline); }
.timeline-date { color: var(--accent-hi); letter-spacing: .1em; }

/* footer */
.footer { padding: clamp(56px, 8vw, 88px) 0 40px; }
.footer.wrap { padding-inline: clamp(20px, 5vw, 56px); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; color: var(--ink-faint); }
.footer-col a {
  font-size: 0.9375rem;
  padding: 6px 0;
  overflow-wrap: anywhere;                        /* long e-mail no longer overflows */
  transition: color var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .footer-col a:hover { color: var(--accent-hi); } }
.footer-cta-pill {
  border: 0;
  background: var(--glass-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  color: var(--ink-dim);
}

/* ProofPay page: social row stays hidden until real profile URLs exist */
.pp-social-row[hidden] { display: none; }

/* ============================================================
   MOTION
   ============================================================ */
/* Reveal: opacity + transform only. The previous filter: blur() made
   every revealing card a full-surface blur pass — costly on phones. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: none;
  transition:
    opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 900ms var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal-in { opacity: 1; transform: none; }
/* Glass that is mid-reveal keeps its own hover transform afterwards. */
.reveal-in:is(a.crystal, .crystal-hover, .app-card):hover { transition-delay: 0ms; }

/* ============================================================
   RESILIENCE
   ============================================================ */
/* Phones / touch: no backdrop blur on cards (each blurred layer over the
   live canvas is re-composited every frame). A denser fill keeps the
   glass legible; nav and menu keep their blur. */
@media (max-width: 720px), (pointer: coarse) {
  :root :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
      .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div, .btn-ghost, .hero-chip) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    --g-fill: color-mix(in oklab, var(--bg-2) 86%, transparent);
  }
  .btn-ghost, .hero-chip { --c-fill: color-mix(in oklab, var(--bg-2) 86%, transparent); }
  .lens { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
      .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div) { --g-fill: var(--glass-fallback); }
  .nav, .nav-mobile-panel, .apps-filter, .faq-filter, .btn-ghost, .hero-chip, .footer-cta-pill { --c-fill: var(--glass-fallback); }
}
@media (prefers-reduced-motion: reduce) {
  .lens-orbit, .lens-orbit.outer { animation: none; }
  .lens { transform: none; transition: none; }
  .hero-copy > *, .hero > * { animation: none; }
  .btn, .btn::after, :is(a.crystal, .crystal-hover, .app-card), :is(a.crystal, .crystal-hover, .app-card)::after,
  .nav-mobile-panel, .faq-item summary::after { transition-duration: 0.01ms !important; }
  .faq-item::details-content { transition: none; }
  .crystal.denxor-watermark::before { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
      .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div) { --g-fill: var(--glass-fallback); }
  .nav, .nav-mobile-panel { --c-fill: var(--glass-fallback); }
}
@media (forced-colors: active) {
  :is(.crystal, .glass, .trust-item, .philosophy-item, .faq-preview-list, .approach-track, .nav, .btn, .pill)::before { display: none; }
  :is(.crystal, .glass, .trust-item, .philosophy-item, .faq-preview-list, .approach-track, .nav, .btn-ghost, .pill) { border: 1px solid CanvasText; }
  .accent-serif, .accent-text { color: CanvasText !important; background: none !important; }
}
@media print {
  .bg-layer, .scroll-tint, .nav, .nav-mobile-panel, .transition-veil, body::after { display: none !important; }
  :is(.crystal, .glass, .trust-item) { box-shadow: none; border: 1px solid #ccc; backdrop-filter: none; }
}

/* ---------- contextual steps on the type scale ---------- */
:is(.card, .crystal, .coming-card, .status-key-item, .app-card) h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); letter-spacing: -0.018em; }
:is(.card, .crystal) h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
.legal-body h1 { font-size: var(--step-3); letter-spacing: -0.035em; line-height: 1.08; }
.legal-body h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem); letter-spacing: -0.025em; }
.legal-body h3 { font-size: 1.125rem; }
.legal-body { max-width: 760px; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.72; }

/* breathing room between a heading and the paragraph that follows it */
h2 + p:not(.lede), h2 + .hero-lead { margin-top: 1rem; }
.section-center { text-align: center; }
.section-center p { margin-inline: auto; }
/* <picture> wrappers (WebP + srcset) must not change existing image layout */
picture { display: contents; }

/* hero chip on narrow screens: badge never breaks, copy stays one tidy block */
.hero-chip-badge { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-chip { font-size: 0.78rem; gap: 8px; padding-right: 12px; }
  .hero-chip svg { display: none; }
}
/* Apps: featured ProofPay card — square poster frame keeps copy and art balanced */
a[data-featured-card="proofpay"] > div:last-child { aspect-ratio: 1 / 1; min-height: 0 !important; }
a[data-featured-card="proofpay"] > div:last-child img { object-position: 50% 0%; }
/* pills placed in grid cells hug their text instead of stretching into blobs */
.timeline-item > .placeholder-note, .update-row > .placeholder-note { justify-self: start; align-self: start; }
/* legal pages: keep the column aligned with the page heading, limit only the measure */
.wrap.legal-body { max-width: 1200px; }
.wrap.legal-body > * { max-width: 760px; }
/* links inside running text are underlined, not identified by colour alone (WCAG 1.4.1) */
:is(p, li, dd, .form-note, .legal-body) a:not(.btn):not(.pill):not(.view-all) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  :is(p, li, dd, .form-note, .legal-body) a:not(.btn):not(.pill):not(.view-all):hover { text-decoration-color: currentColor; }
}

/* ---------- environment-aware chrome ----------
   Navigation, menu sheet, ghost buttons, the hero chip, segmented
   filters and the footer pill sample the same light map as cards. */
:is(.nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter, .footer-cta-pill) {
  --c-fill: var(--glass-2);
  --env-k: var(--glass-env-gain);
  background-color: transparent;
  background-image:
    radial-gradient(140% 90% at 50% -40%, var(--glass-sheen), transparent 60%),
    var(--env-map),
    linear-gradient(var(--c-tone), var(--c-tone));
  background-attachment: scroll, fixed, fixed, fixed, fixed, scroll;
}
.nav-mobile-panel { --c-fill: color-mix(in oklab, var(--bg-2) 80%, transparent); --env-k: calc(var(--glass-env-gain) * 1.2); }
:is(.apps-filter, .faq-filter, .footer-cta-pill) { --c-fill: var(--glass-1); --env-k: calc(var(--glass-env-gain) * .8); }
@media (hover: hover) {
  :is(.btn-ghost, .hero-chip):hover { --env-k: calc(var(--glass-env-gain) * 1.5); }
}
:is(.btn-ghost, .hero-chip):focus-visible { --env-k: calc(var(--glass-env-gain) * 1.5); }
:is(.btn-ghost, .hero-chip):active { --env-k: calc(var(--glass-env-gain) * 1.2); }
@media (max-width: 720px), (pointer: coarse) {
  :is(.btn-ghost, .hero-chip) { --c-fill: color-mix(in oklab, var(--bg-2) 86%, transparent); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter, .footer-cta-pill) { --c-fill: var(--glass-fallback); }
}
@media (prefers-reduced-transparency: reduce) {
  :is(.nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter) { --c-fill: var(--glass-fallback); --env-k: .6; }
  :root :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
      .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div) { --env-k: .6; }
}
/* iOS Safari ignores background-attachment: fixed (it falls back to
   element-relative). There the map would be drawn per element, so use
   a calmer, element-relative approximation of the same light instead. */
@supports (-webkit-touch-callout: none) {
  :root :is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
      .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div,
      .nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter, .footer-cta-pill) {
    --env-k: calc(var(--glass-env-gain) * .55);
  }
}

/* ---------- room tone ----------
   The glass fill takes a small share of the actual particle colour of
   this page's live background (published by background.js as
   --room-rgb), so About's emerald field, Support's amber, ProofPay's
   blue and Home's violet each get their own coordinated glass. */
:root { --room-rgb: 148 120 255; --room-mix: 7%; }
html[data-theme="light"] { --room-mix: 5%; }
:is(.crystal, .glass, .glass-ambient, .glass-crystal, .trust-item, .philosophy-item,
    .faq-preview-list, .approach-track, .status-key-item, .featured-product-facts > div) {
  --g-tone: color-mix(in oklab, var(--g-fill) calc(100% - var(--room-mix)), rgb(var(--room-rgb)) var(--room-mix));
}
:is(.nav, .nav-mobile-panel, .btn-ghost, .hero-chip, .apps-filter, .faq-filter, .footer-cta-pill) {
  --c-tone: color-mix(in oklab, var(--c-fill) calc(100% - var(--room-mix)), rgb(var(--room-rgb)) var(--room-mix));
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  :root { --room-mix: 0%; }
}

.footer-brand-name { font-family: var(--font-display); font-weight: 700; }

/* ---------- CMS-driven blocks (updates rail, updates list, empty states) ---------- */
.updates-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.updates-rail:has(> :only-child) { grid-template-columns: minmax(0, 640px); }
.update-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.update-card h3 { margin: 4px 0 0; }
.update-card p { margin: 0; }
.update-card .text-link { margin-top: auto; padding-top: 6px; }
.text-link { color: var(--accent-hi); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
body[data-room="proofpay"] .text-link { color: var(--blue-cyan); }
.text-link:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; border-radius: 4px; }
.cms-empty { margin: 20px 0 0; color: var(--ink-dim); font-size: var(--step--1); }
.contact-cta { max-width: 560px; margin: 0 auto; text-align: left; }
.contact-cta h3 { margin: 0 0 6px; }
.contact-cta p { margin: 0; color: var(--ink-dim); }
.contact-cta .btn-row { margin-top: 20px; }
@media (max-width: 420px) { .contact-cta .btn-row .btn { flex: 1 1 100%; justify-content: center; } }
.doc-note { margin: 0; color: var(--ink-dim); }
.update-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.update-head h3 { margin: 0; }
.updates-list .timeline-item p { margin-bottom: 0; }

/* ---------- semantic text roles (replace per-element inline font sizes) ----------
   .lede        intro paragraph under a page title       → --step-1
   .small       secondary body copy                       → --step--1
   .fine-print  disclaimers, notes                        → --step--1, faint
   .mono-meta   technical values (versions, platforms)    → mono, --step--1
   .overline    mono micro-label                          → mono, --step--2, caps
   .back-link   breadcrumb-style "← Back to …"            → mono, --step--2 */
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 56ch; color: var(--ink-dim); }
.small { font-size: var(--step--1); line-height: 1.6; }
.fine-print { font-size: var(--step--1); line-height: 1.6; color: var(--ink-faint); max-width: 64ch; }
.mono-meta { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .01em; }
.overline { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.overline-accent { color: var(--blue-cyan); }
.back-link { display: inline-block; margin-bottom: 20px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .04em; color: var(--ink-faint); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; border-radius: 4px; }

/* ---------- large displays (Full HD and up) ----------
   1920×1080 at DPR 1 gets a wider frame so sections stop floating in a
   narrow column; QHD/ultrawide (≥2200 CSS px, i.e. 2560×1440 at DPR 1)
   also gets a slightly larger root size so text keeps its physical size
   on big monitors. Paragraph measures stay capped in ch, so wider frames
   never mean longer lines. */
@media (min-width: 1800px) {
  .wrap, .wrap.legal-body { max-width: 1320px; }
  .hero-lens { max-width: 580px; }
}
@media (min-width: 2200px) {
  html { font-size: 112.5%; }
  .wrap, .wrap.legal-body { max-width: 1480px; }
  .hero-lens { max-width: 620px; }
}
:where(.section, .final-cta, .hero-copy) p:not([class*="pill"]) { max-width: min(68ch, 100%); }
.final-cta p { margin-inline: auto; }

/* =====================================================================
   ORGANISATION LAYER (v6) — editorial composition for the organisational
   redesign: chapters, photography, Content Centre, merchandise, enquiry
   workflow. Uses the existing tokens, glass materials and type scale.
   ===================================================================== */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--bg-1, #0b0c18); color: var(--ink); box-shadow: 0 0 0 2px var(--color-focus, var(--accent-hi)); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav call to action */
.nav-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), linear-gradient(120deg, var(--accent-strong), var(--violet));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 22px -10px rgba(110,100,255,.6); }
body[data-room="proofpay"] .nav-cta { background: linear-gradient(120deg, var(--blue-royal), var(--blue-cyan)); }
.nav-cta:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; }
@media (max-width: 1100px) { .nav-cta { display: none; } }

/* figures + captions */
figure { margin: 0; }
figure img, picture img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .04em; color: var(--ink-faint); }
.frame-crystal { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.75), inset 0 0 0 1px var(--hairline-strong); isolation: isolate; }
.frame-crystal picture img { aspect-ratio: 4 / 3; object-fit: cover; }
.frame-crystal figcaption { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 5px 10px; border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(5,6,13,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.frame-crystal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg, rgba(255,255,255,.14), transparent 34%); }

/* type helpers */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
body[data-room="proofpay"] .kicker { color: var(--blue-cyan); }
.h-section { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.h-page { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 1.02; margin: 10px 0 18px; }
.h-sub { font-size: var(--step-1); margin: 26px 0 8px; }
.empty-note { color: var(--ink-dim); font-size: var(--step--1); max-width: 60ch; padding: 18px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hairline); background: var(--glass-1); }
.mono { font-family: var(--font-mono); }

/* ---------- editorial hero ---------- */
.ed-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(110px, 14vh, 150px); padding-bottom: clamp(40px, 8vh, 96px); min-height: min(88vh, 940px); }
.ed-display { font-size: clamp(2.2rem, 1rem + 3.1vw, 4.5rem); line-height: 1.02; letter-spacing: -0.045em; margin: 22px 0 22px; max-width: 15ch; }
.ed-hero .hero-lead { max-width: 44ch; }
.ed-hero-media { position: relative; }
.ed-hero-media .frame-crystal picture img { aspect-ratio: 5 / 4; }
.hero-ledger { list-style: none; margin: -48px 18px 0 auto; padding: 14px 18px; position: relative; z-index: 2; width: min(380px, 88%); display: grid; gap: 10px; border-radius: 20px;
  background: color-mix(in oklab, var(--bg-1, #0b0c18) 70%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 24px 60px -30px rgba(0,0,0,.7); }
html[data-theme="light"] .hero-ledger { background: rgba(255,255,255,.78); }
.hero-ledger li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; font-size: var(--step--1); }
.hero-ledger a { color: var(--ink); text-decoration: none; }
.hero-ledger a:hover, .hero-ledger a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.ledger-k { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 900px) {
  .ed-hero { grid-template-columns: 1fr; min-height: 0; }
  .ed-hero-media { order: -1; }
  .ed-display { max-width: 16ch; }
  .hero-ledger { margin: -32px auto 0; width: calc(100% - 24px); }
}

/* ---------- chapters ---------- */
.chapter-head { margin-bottom: clamp(22px, 3vw, 36px); max-width: 44rem; }
.chapter-head h2 { max-width: 22ch; }
.chapter-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.chapter-head.row > div { max-width: 44rem; }
.chapter-head h2 { margin: 10px 0 0; }
.chapter-no { display: inline-block; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .14em; color: var(--accent-hi); margin-right: 14px; }
.chapter > .lede { margin: -8px 0 26px; }

/* what we do */
.do-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.do-figure picture img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.areas { list-style: none; counter-reset: a; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.areas li { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.areas li:last-child { border-bottom: 1px solid var(--hairline); }
.area-k { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em; }
.areas p { margin: 0; color: var(--ink-dim); }
@media (max-width: 900px) { .do-layout { grid-template-columns: 1fr; } .areas li { grid-template-columns: 1fr; gap: 4px; } }
.feature-title { font-size: var(--step-3); margin: 10px 0 6px; letter-spacing: -0.03em; }

/* ---------- story cards / grids ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.story-grid.feature-first { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.story-grid.feature-first > :first-child { grid-column: span 7; grid-row: span 2; }
.story-grid.feature-first > :not(:first-child) { grid-column: span 5; }
.story-grid.feature-first > :only-child { grid-column: 1 / -1; grid-row: auto; }
.story-grid.feature-first > :only-child .story-card-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.story-grid.feature-first > :only-child .story-card-media { aspect-ratio: auto; min-height: 280px; max-height: 420px; }
.story-grid.feature-first > :only-child .story-card-body { justify-content: center; padding: clamp(22px, 3vw, 40px); }
@media (max-width: 720px) { .story-grid.feature-first > :only-child .story-card-link { display: flex; } .story-grid.feature-first > :only-child .story-card-media { aspect-ratio: 16 / 10; min-height: 0; } }
@media (max-width: 900px) { .story-grid.feature-first > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }
.story-card { border-radius: 22px; }
.story-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-card-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--glass-2); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.story-grid.feature-first > :first-child .story-card-media { aspect-ratio: 4 / 3; }
.story-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.story-card-body h3 { margin: 2px 0 0; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.18; }
.story-card-body p { margin: 0; color: var(--ink-dim); font-size: var(--step--1); line-height: 1.6; }
.story-card-meta { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .06em; color: var(--ink-faint); }
.story-card.no-image .story-card-body { padding-top: 26px; }
.story-card.no-image .story-card-body h3 { font-size: var(--step-3); }
@media (hover: hover) { .story-card-link:hover .story-card-media img { transform: scale(1.035); } }
.story-card-link:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; border-radius: 22px; }

/* events band */
.events-band { margin-top: 22px; padding: 20px 22px; border-radius: 22px; }
.events-band-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.events-band .empty-note { background: none; box-shadow: none; padding: 0; margin: 0; }
.events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.events-list a { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hairline); color: inherit; text-decoration: none; align-items: baseline; }
.event-date { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-hi); }
.event-loc { color: var(--ink-faint); font-size: var(--step--1); }
@media (max-width: 640px) { .events-list a { grid-template-columns: 1fr; gap: 2px; } }

/* principles mosaic */
.principles-band { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg-1, #0b0c18) 55%, transparent) 30%, transparent); }
html[data-theme="light"] .principles-band { background: linear-gradient(180deg, transparent, rgba(255,255,255,.45) 30%, transparent); }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.mosaic-tile { position: relative; border-radius: 24px; overflow: hidden; min-height: 280px; isolation: isolate; }
.mosaic-tile.tall { grid-row: span 2; }
.mosaic-tile.wide { grid-column: span 2; min-height: 0; }
.mosaic-tile figure, .mosaic-tile picture, .mosaic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mosaic-tile img { object-fit: cover; }
.mosaic-tile figcaption { position: absolute; top: 12px; right: 12px; left: auto; bottom: auto; margin: 0; padding: 4px 8px; border-radius: 999px; background: rgba(5,6,13,.5); color: rgba(255,255,255,.8); z-index: 2; }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(4,5,12,.86)); pointer-events: none; }
.mosaic-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; color: #f2f3fd; }
.mosaic-copy h3 { margin: 0 0 6px; font-size: var(--step-2); letter-spacing: -0.02em; }
.mosaic-copy p { margin: 0; color: rgba(236,238,252,.82); font-size: var(--step--1); max-width: 46ch; }
.mosaic-copy.plain { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--ink); padding: 28px 30px; border-radius: 24px; }
.mosaic-copy.plain p { color: var(--ink-dim); }
.mosaic-tile.wide::after { display: none; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic-tile.tall { grid-row: auto; grid-column: span 2; min-height: 340px; } .mosaic-tile.wide { grid-column: span 2; } }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; } .mosaic-tile, .mosaic-tile.tall, .mosaic-tile.wide { grid-column: auto; min-height: 300px; } .mosaic-tile.wide { min-height: 0; } }

/* merch cards */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.merch-card { display: flex; flex-direction: column; border-radius: 22px; color: inherit; text-decoration: none; }
.merch-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--glass-2); }
.merch-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.merch-card-placeholder { display: grid; place-items: center; height: 100%; font-family: var(--font-display); color: var(--ink-faint); }
.concept-flag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: #ffd38a; background: rgba(20,14,2,.68); box-shadow: inset 0 0 0 1px rgba(255,199,106,.45); }
figcaption.concept-flag { position: absolute; margin: 0; }
.merch-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.merch-card-body h3 { margin: 0; font-size: var(--step-1); }
.merch-card-body p { margin: 0; color: var(--ink-dim); font-size: var(--step--1); }
.merch-card-price { font-family: var(--font-mono); font-size: var(--step--2); color: var(--ink-faint); margin-top: 4px; }
.merch-card .text-link { margin-top: auto; padding-top: 8px; }
@media (hover: hover) { .merch-card:hover .merch-card-media img { transform: scale(1.04); } }
.merch-card:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; }

/* engage */
.engage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.engage-media picture img { border-radius: 24px; aspect-ratio: 3 / 4; object-fit: cover; max-height: 720px; }
.engage-copy h2 { margin: 10px 0 22px; }
.pathways { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pathways.compact { grid-template-columns: 1fr; }
.pathways a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px var(--hairline-strong); transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out); }
.pathways a:hover, .pathways a:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-hi); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.pathways strong { font-family: var(--font-display); font-size: var(--step-0); }
.pathways span { color: var(--ink-dim); font-size: var(--step--1); }
.engage .contact-cta { margin: 0; max-width: none; }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr; } .engage-media picture img { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .pathways { grid-template-columns: 1fr; } }

/* ---------- page heroes (full-bleed photography) ---------- */
.page-hero { position: relative; min-height: min(78vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 28px; isolation: isolate; overflow: hidden; }
.page-hero.compact { min-height: min(62vh, 640px); }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media picture, .page-hero-media img { width: 100%; height: 100%; }
.page-hero-media img { object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,13,.25) 0%, rgba(5,6,13,.35) 40%, var(--bg-0) 100%); }
html[data-theme="light"] .page-hero-media::after { background: linear-gradient(180deg, rgba(243,244,250,.05) 0%, rgba(243,244,250,.35) 45%, var(--bg-0) 100%); }
.page-hero-copy { width: 100%; }
.page-hero-copy .display { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; max-width: 16ch; margin: 14px 0 18px; }
.page-hero-copy .hero-lead { max-width: 52ch; }
html[data-theme="dark"] .page-hero-copy, html[data-theme="dark"] .page-hero-copy .hero-lead { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.page-hero-cap { width: 100%; margin-top: 18px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .04em; color: var(--ink-faint); }

/* organisation */
.split-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.prose-lg p { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft, var(--ink)); margin: 0 0 1em; max-width: 60ch; }
.founder-line { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: var(--step-1); padding-top: 14px; border-top: 1px solid var(--hairline); }
@media (max-width: 900px) { .split-intro { grid-template-columns: 1fr; } }
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.triad-item picture img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; }
.triad-item h3 { margin: 18px 0 6px; font-size: var(--step-2); }
.triad-item p { margin: 0; color: var(--ink-dim); }
@media (max-width: 900px) { .triad { grid-template-columns: 1fr; } }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 24px; border-radius: 20px; }
.cap-no { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-hi); }
.cap h3 { margin: 10px 0 8px; font-size: var(--step-1); }
.cap p { margin: 0; color: var(--ink-dim); font-size: var(--step--1); }
@media (max-width: 900px) { .capability-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .capability-grid { grid-template-columns: 1fr; } }
.principle-list { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.principle-list li { counter-increment: p; padding: 22px 0; border-top: 1px solid var(--hairline); }
.principle-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step--2); color: var(--ink-faint); }
.principle-list h3 { margin: 8px 0 6px; font-size: var(--step-1); }
.principle-list p { margin: 0; color: var(--ink-dim); font-size: var(--step--1); }
@media (max-width: 900px) { .principle-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principle-list { grid-template-columns: 1fr; } }
.engage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: 28px; }
.card-figure picture img { border-radius: 20px; }
@media (max-width: 900px) { .engage-grid { grid-template-columns: 1fr; } }
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-strip div { display: flex; flex-direction: column; gap: 6px; }
.contact-strip a { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-strip a:hover { text-decoration: underline; }
@media (max-width: 720px) { .contact-strip { grid-template-columns: 1fr; } }
.credits-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 28px; }
.credits-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: var(--step--1); }
.credits-list li span:first-child { color: var(--ink-faint); text-transform: capitalize; }
.credits-list li span:last-child { text-align: right; color: var(--ink-dim); }

/* work */
.status-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.status-legend li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hairline); font-size: var(--step--1); color: var(--ink-dim); }
@media (max-width: 1000px) { .status-legend { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } }
.pill.status-concept { color: var(--ink-dim); background: color-mix(in oklab, var(--ink-faint) 14%, transparent); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.pill.status-archived { color: var(--ink-faint); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline); }
.commission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.commission-grid h2 { margin: 10px 0 14px; }
@media (max-width: 900px) { .commission-grid { grid-template-columns: 1fr; } }

/* ---------- Content Centre ---------- */
.centre-featured { margin-bottom: 32px; }
.centre-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); background: var(--glass-2); }
.centre-feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.centre-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 40px); }
.centre-feature-body h2 { margin: 0; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.06; }
.centre-feature-body p { margin: 0; color: var(--ink-dim); }
@media (max-width: 900px) { .centre-feature { grid-template-columns: 1fr; } }
.centre-tools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.type-chips { flex-wrap: wrap; }
.centre-search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; min-width: 0; }
.centre-search .field { flex: 1; min-width: 0; width: 100%; }
.centre-collections { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: var(--step--1); color: var(--ink-dim); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.tag-chip.is-active, .tag-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-hi); }
.tag-chip:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 2px; }
.centre-count { margin: 0 0 14px; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; color: var(--ink-faint); min-height: 1em; }
.centre-more { display: flex; justify-content: center; margin-top: 26px; }
.centre-empty { grid-column: 1 / -1; padding: clamp(28px, 5vw, 56px); border-radius: 24px; text-align: center; box-shadow: inset 0 0 0 1px var(--hairline); background: var(--glass-1); }
.centre-empty h3 { margin: 0 0 8px; font-size: var(--step-2); }
.centre-empty p { margin: 0 auto 16px; max-width: 54ch; color: var(--ink-dim); }
@media (max-width: 640px) { .type-chips .apps-filter-btn { min-height: 36px; padding-inline: 12px; font-size: var(--step--1); } .centre-search { max-width: none; flex-basis: 100%; } }

/* story page (server-rendered) */
.preview-banner { position: sticky; top: 0; z-index: 120; padding: 10px 16px; text-align: center; font-weight: 600; color: #1d1400; background: #ffc76a; }
.story-head { padding-top: clamp(110px, 16vh, 160px); padding-bottom: 24px; }
.story-kicker { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 16px; }
.story-meta { display: inline-flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .06em; color: var(--ink-faint); }
.story-title { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 18px; max-width: 20ch; }
.story-standfirst { font-size: var(--step-1); color: var(--ink-dim); max-width: 58ch; margin: 0; line-height: 1.55; }
.story-cover { margin: 8px 0 0; }
.story-cover img { width: 100%; max-height: 78vh; object-fit: cover; }
.story-cover figcaption { margin-top: 10px; }
.story-body { padding-top: 40px; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-soft, var(--ink)); line-height: 1.75; }
.prose h2 { font-size: var(--step-2); margin: 1.8em 0 .5em; }
.prose h3 { font-size: var(--step-1); margin: 1.5em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent-hi); font-family: var(--font-accent, serif); font-style: italic; font-size: var(--step-2); color: var(--ink); }
.prose a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: .2em; }
.prose.small p, .prose.small li { font-size: var(--step--1); }
.story-video { position: relative; margin: 32px 0 0; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); }
.story-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-gallery { padding-top: 48px; }
.story-gallery .count { font-family: var(--font-mono); font-size: var(--step--2); color: var(--ink-faint); }
.gallery-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); grid-auto-flow: dense; gap: 12px; }
.gallery-item a { display: block; border-radius: 16px; overflow: hidden; background: var(--glass-2); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.tall img { aspect-ratio: 3 / 4.3; }
.gallery-item a:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; }
@media (hover: hover) { .gallery-item a:hover img { transform: scale(1.04); } }
.gallery-caption { margin: 6px 2px 0; font-size: var(--step--2); color: var(--ink-faint); }
.story-foot { padding-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: var(--step--1); color: var(--ink-dim); text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.tag-list a:hover { color: var(--ink); }
.story-project { margin: 0; color: var(--ink-dim); }
.related { padding-top: 40px; }
.not-found { padding-top: 160px; min-height: 60vh; }
/* lightbox */
.lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #05060d; color: #eef0fc; overflow: visible; }
.lightbox::backdrop { background: rgba(3,4,10,.88); }
.lightbox-fig { margin: 0; }
.lightbox-fig img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 18px 18px 0 0; background: #000; }
.lightbox figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 14px; margin: 0; font-family: var(--font-body, inherit); font-size: var(--step--1); color: #c9ccdf; letter-spacing: 0; }
.lb-credit { color: #8e93b3; }
.lb-count { margin-left: auto; font-family: var(--font-mono); color: #8e93b3; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.5rem; color: #fff; background: rgba(10,11,22,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.lb-btn:focus-visible { outline: 2px solid #b3b8ff; outline-offset: 2px; }
.lb-prev { left: 10px; top: 40%; } .lb-next { right: 10px; top: 40%; } .lb-close { right: 10px; top: 10px; font-size: 1rem; }

/* ---------- merchandise ---------- */

.product { padding-top: clamp(110px, 15vh, 150px); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: 10px; }
.product-hero { position: relative; border-radius: 24px; overflow: hidden; background: var(--glass-2); }
.product-hero img { width: 100%; }
.product-hero .concept-flag { top: auto; bottom: 14px; left: 14px; }
.product-hero.empty-media { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ink-faint); }
.product-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-thumbs img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.product-info { position: sticky; top: 100px; }
.product-title { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 1; margin: 12px 0 14px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 18px 0; }
.spec-list div { padding: 10px 0; border-top: 1px solid var(--hairline); }
.spec-list dt { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.spec-list dd { margin: 4px 0 0; }
.spec-list.inline { display: flex; flex-wrap: wrap; gap: 0 28px; }
.product-info .btn { margin-top: 18px; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-info { position: static; } }
.enquiry-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .enquiry-layout { grid-template-columns: 1fr; } }
.workflow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.workflow li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.wf-step { grid-row: span 2; font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-hi); }
.workflow strong { font-family: var(--font-display); }
.workflow li span:last-child { color: var(--ink-dim); font-size: var(--step--1); }
.enquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.enquiry-form .span-2 { grid-column: span 2; }
.field-wrap label { display: block; margin-bottom: 6px; font-size: var(--step--1); font-weight: 600; color: var(--ink-dim); }
.field-wrap .req { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 400; letter-spacing: .06em; color: var(--accent-hi); margin-left: 4px; }
.enquiry-form select, .enquiry-form textarea, .enquiry-form input:not([type="checkbox"]) { width: 100%; }
.enquiry-form select { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; font: inherit; color: var(--ink); background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.enquiry-form select:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 2px; }
.enquiry-form textarea.field { min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field-wrap.check { display: flex; gap: 10px; align-items: flex-start; }
.field-wrap.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-strong); flex: none; }
.field-wrap.check label { margin: 0; font-weight: 400; }
.hint { margin: 6px 0 0; font-size: var(--step--2); color: var(--ink-faint); }
.field-error { margin: 6px 0 0; font-size: var(--step--1); color: #ff9c9c; }
html[data-theme="light"] .field-error { color: #b4232f; }
.enquiry-form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ff8f8f, 0 0 0 3px rgba(255,143,143,.18) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 14px 0 4px; font-size: var(--step--1); color: var(--ink-dim); }
.form-status.error { color: #ff9c9c; }
html[data-theme="light"] .form-status.error { color: #b4232f; }
.enquiry-form .btn-row { align-items: center; }
.enquiry-form .btn-row .fine-print { max-width: 46ch; }
.enquiry-done { padding: 8px 2px; }
.enquiry-done:focus { outline: none; }
.enquiry-done h3 { margin: 8px 0 10px; font-size: var(--step-2); }
.enquiry-ref strong { font-size: var(--step-1); color: var(--accent-hi); letter-spacing: .04em; }
.error-list { margin: 0 0 24px; padding-left: 1.2em; color: var(--ink-dim); }
.thanks { padding-top: 160px; min-height: 60vh; }
@media (max-width: 640px) { .enquiry-form .form-grid { grid-template-columns: 1fr; } .enquiry-form .span-2 { grid-column: auto; } }

/* footer lead */
.footer-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.footer-statement { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.02; }
.footer-sub { margin: 0; color: var(--ink-dim); max-width: 44ch; justify-self: end; }
.footer-note { color: var(--ink-faint); font-size: var(--step--1); }
a.footer-cta-pill { text-decoration: none; color: inherit; }
@media (max-width: 760px) { .footer-lead { grid-template-columns: 1fr; } .footer-sub { justify-self: start; } }

/* reduced motion: no image zooms */
@media (prefers-reduced-motion: reduce) {
  .story-card-media img, .merch-card-media img, .gallery-item img { transition: none !important; transform: none !important; }
}
@media (forced-colors: active) {
  .concept-flag, .frame-crystal figcaption, .kicker { forced-color-adjust: auto; border: 1px solid CanvasText; }
}

/* v6 refinements */
.ed-hero-media .frame-crystal figcaption { top: 12px; bottom: auto; }
.type-chips.apps-filter { background: none; box-shadow: none; padding: 0; gap: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.type-chips .apps-filter-btn { box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.type-chips .apps-filter-btn.is-active { box-shadow: inset 0 0 0 1px var(--accent-hi); }
.story-cover.portrait { max-width: min(760px, calc(100% - 2 * clamp(20px, 5vw, 56px))); margin: 8px auto 0; }
.story-cover.portrait img { max-height: 86vh; border-radius: 24px; }
.story-cover.portrait figcaption { padding-inline: 0; }


/* ==========================================================================
   MERCHANDISE: COMING SOON (teal and amber, scoped to the merch page and the
   home teaser; the global violet theme is untouched)
   ========================================================================== */
.merch-drop, .drop-teaser { --drop-teal: #3fd3da; --drop-amber: #f3a73a; --drop-ink-teal: #3fd3da; --drop-ink-amber: #f3b65c; --drop-night: #070b0e; --drop-ease: cubic-bezier(.22, 1, .36, 1); }
html[data-theme="light"] .merch-drop, html[data-theme="light"] .drop-teaser { --drop-ink-teal: #076a70; --drop-ink-amber: #8a4f05; }

/* type */
.drop-label { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--drop-ink-teal); }
.drop-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.drop-soon { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--drop-ink-amber); border: 1px solid color-mix(in srgb, var(--drop-amber) 45%, transparent); }
.drop-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--drop-amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--drop-amber) 60%, transparent); animation: drop-pulse 3.2s var(--drop-ease) infinite; }
.drop-title { margin: 18px 0 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 1rem + 6.2vw, 6rem); line-height: .98; letter-spacing: -0.04em; text-wrap: balance; }
.drop-lead { margin: 0 0 26px; max-width: 34rem; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); line-height: 1.55; color: var(--ink-dim); }
.drop-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.drop-fine { margin: 16px 0 0; font-size: .8rem; color: var(--ink-faint); }

/* hero with a slow breathing glow */
.drop-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(104px, 14vw, 156px) 0 clamp(28px, 5vw, 56px); }
.drop-hero::before, .drop-hero::after { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none; opacity: .5; }
.drop-hero::before { left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--drop-teal) 30%, transparent), transparent 70%); animation: drop-breathe 9s ease-in-out infinite; }
.drop-hero::after { right: -22vmax; bottom: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--drop-amber) 22%, transparent), transparent 70%); animation: drop-breathe 11s ease-in-out -4s infinite; }
html[data-theme="light"] .drop-hero::before, html[data-theme="light"] .drop-hero::after { opacity: .35; }
.drop-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.drop-hero-figure { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--drop-night); box-shadow: 0 0 0 1px color-mix(in srgb, var(--drop-teal) 26%, transparent), 0 40px 90px -50px rgba(0,0,0,.8); }
.drop-hero-figure img { display: block; width: 100%; height: auto; }
.merch-drop .drop-hero-figure.is-in img, .drop-motion .drop-hero-figure.is-in img { animation: drop-drift 18s ease-in-out infinite alternate; }

/* collection */
.drop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.drop-head .h-section { margin: 8px 0 0; }
.drop-filters { display: flex; gap: 8px; }
.drop-filter { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: var(--ink-dim); font: inherit; font-size: .9rem; cursor: pointer; transition: color .3s var(--drop-ease), border-color .3s var(--drop-ease), background-color .3s var(--drop-ease), transform .3s var(--drop-ease); }
.drop-filter:hover { color: var(--ink); border-color: var(--drop-teal); }
.drop-filter:active { transform: scale(.96); }
.drop-filter.is-active { color: var(--drop-night); background: var(--drop-teal); border-color: var(--drop-teal); }
.drop-filter:focus-visible, .drop-board:focus-visible, .drop-look:focus-visible, .drop-teaser:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: 3px; }
.drop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.drop-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--glass-1, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.1)); transition: border-color .5s var(--drop-ease), box-shadow .5s var(--drop-ease); }
.drop-card[hidden], .drop-group[hidden] { display: none; }
.drop-card-media { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--drop-night); overflow: hidden; }
.drop-card-media picture { display: contents; }
.drop-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--drop-ease); }
.drop-pill { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(7,11,14,.72); color: #f3b65c; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.drop-card-body { padding: 14px 16px 16px; display: grid; gap: 2px; }
.drop-card-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.drop-card-body p { margin: 0; color: var(--ink-dim); font-size: .92rem; }
@media (hover: hover) {
  .drop-card:hover { border-color: color-mix(in srgb, var(--drop-teal) 55%, transparent); box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--drop-teal) 60%, transparent); }
  .drop-card:hover .drop-card-media img { transform: scale(1.06); }
}
.drop-group + .drop-group { margin-top: clamp(44px, 7vw, 80px); }
.drop-active-head { margin-bottom: 20px; }
.drop-active-title { margin: 8px 0 4px; font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); letter-spacing: -0.02em; }
.drop-active-head p { margin: 0; color: var(--ink-dim); }
.drop-grid-tall { grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 300px)); gap: 16px; }
.drop-grid-tall .drop-card-media { aspect-ratio: 3 / 4; }
.drop-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-grid-wide .drop-card-media { aspect-ratio: 2576 / 1405; color: inherit; }
.drop-grid-wide .drop-card-media img { object-fit: cover; }
a.drop-card-media:focus-visible { outline: 2px solid var(--color-focus, var(--accent-hi)); outline-offset: -4px; }

/* lookbook */
.drop-looks { display: grid; gap: 16px; margin-top: 22px; }
.drop-looks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-looks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; }
.drop-look, .drop-board { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.drop-look picture, .drop-board picture { display: block; overflow: hidden; border-radius: 16px; background: var(--drop-night); }
.drop-look img, .drop-board img { display: block; width: 100%; height: auto; transition: transform 1.4s var(--drop-ease); }
.drop-board img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.drop-look-title, .drop-board-title { font-weight: 600; font-size: .92rem; }
@media (hover: hover) { .drop-look:hover img, .drop-board:hover img { transform: scale(1.05); } }
.drop-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.drop-boards-one { grid-template-columns: minmax(0, 720px); justify-content: center; }
.drop-boards-one .drop-board img { aspect-ratio: auto; }
.drop-looks-lead { margin: 0 0 22px; }

/* closing */
.drop-close { text-align: center; padding-block: clamp(56px, 9vw, 112px); }
.drop-close h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); letter-spacing: -0.03em; text-wrap: balance; }
.drop-close p { margin: 0 auto 26px; max-width: 30rem; color: var(--ink-dim); font-size: 1.05rem; }
.drop-close .btn-row { justify-content: center; }

/* home teaser */
.drop-teaser { position: relative; display: block; margin-top: 22px; border-radius: 20px; overflow: hidden; background: var(--drop-night); }
.drop-teaser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 8%; transition: transform 1.4s var(--drop-ease); }
.drop-teaser .drop-soon { position: absolute; left: 14px; top: 14px; background: rgba(7,11,14,.8); color: #f3b65c; border-color: rgba(243,167,58,.5); }
@media (hover: hover) { .drop-teaser:hover img { transform: scale(1.03); } }

/* phones */
@media (max-width: 900px) { .drop-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .drop-hero { padding-top: 96px; }
  .drop-head { margin-bottom: 18px; }
  .drop-filters { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .drop-filters::-webkit-scrollbar { display: none; }
  .drop-filter { scroll-snap-align: start; }
  .drop-grid { gap: 14px; }
  .drop-grid-tall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .drop-grid-tall .drop-card-body { padding: 10px 12px 12px; }
  .drop-grid-tall .drop-card-body h3 { font-size: 1rem; }
  .drop-grid-tall .drop-card-body p { font-size: .84rem; }
  .drop-looks-2, .drop-looks-3, .drop-boards, .drop-grid-wide { grid-template-columns: 1fr; }
  .drop-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 359px) { .drop-grid-tall { grid-template-columns: 1fr; } }

/* motion: breathe in */
@keyframes drop-breathe { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.08); opacity: .62; } }
@keyframes drop-pulse { 0% { box-shadow: 0 0 0 0 rgba(243,167,58,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(243,167,58,0); } }
@keyframes drop-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes drop-word { from { transform: translate3d(0, 105%, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.drop-title.dw-ready .dw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.drop-title.dw-ready .dw-i { display: inline-block; animation: drop-word 1s var(--drop-ease) both; animation-delay: calc(120ms + var(--i) * 110ms); }
.drop-motion .drop-rise { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); transition: opacity .9s var(--drop-ease) var(--d, 0ms), transform 1.1s var(--drop-ease) var(--d, 0ms), border-color .5s var(--drop-ease), box-shadow .5s var(--drop-ease); }
.drop-motion .drop-rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .drop-hero::before, .drop-hero::after, .drop-soon::before, .drop-hero-figure img { animation: none !important; }
  .drop-card, .drop-card-media img, .drop-board img, .drop-look img, .drop-teaser img, .drop-filter { transition: none !important; transform: none !important; }
}
