/* ═══════════════════════════════════════════════════════════════════════
   NexStone — DESIGN SYSTEM
   Single source of truth for every design value in the project.

   Layer 1 · PRIMITIVES  — raw values. The only place literals may appear.
   Layer 2 · SEMANTIC    — meaning-named tokens composed from primitives.
   Layer 3 · COMPONENT   — per-component tokens composed from semantics.

   Rule: no stylesheet outside this file may contain a literal value.
   WordPress note: this file is enqueued first; the Customizer can override
   any token by printing an inline `:root{ --token: value }` block after it.
   ═══════════════════════════════════════════════════════════════════════ */

:root {

  /* ═════════ LAYER 1 · PRIMITIVES ═════════ */

  /* ── Color channels (space-separated for rgb(… / alpha)) ── */
  --rgb-ink:        14 12 10;    /* #0E0C0A  base black-brown  */
  --rgb-ink-raised: 24 19 14;    /* #18130E  lifted surface    */
  --rgb-void:        8 6 4;      /* #080604  shadow / scrim    */
  --rgb-bone:      243 238 228;  /* #F3EEE4  brightest text    */
  --rgb-cream:     232 226 214;  /* #E8E2D6  body text         */
  --rgb-stone:     185 174 156;  /* #B9AE9C  muted metadata    */
  --rgb-bronze:    169 131 90;   /* #A9835A  accent base       */
  --rgb-bronze-hi: 201 168 124;  /* #C9A87C  accent highlight  */
  --rgb-white:     255 255 255;  /* specular inset only        */
  --rgb-machine-steel:  72 84 88;
  --rgb-machine-yellow: 224 169 45;
  --rgb-machine-cyan:    35 164 190;
  --rgb-machine-magenta: 190 55 112;
  --rgb-machine-red:     196 64 44;
  --rgb-machine-blue:    57 104 148;
  --rgb-machine-wood:    151 105 59;
  --rgb-slab-porcelain:  224 220 210;
  --rgb-kiln-heat:       242 122 36;
  --rgb-roller-alumina:  178 171 160;

  /* Light theme channels — used only under :root[data-theme="light"] below. */
  /* Light theme reads as polished stone and paper, not as cream. The page is
     warm white; the raised and sunken surfaces are cool-shifted, the way
     stone goes cool in shadow. That temperature split is what separates the
     planes - the old palette was three tones of one hue 19 and 10 points
     apart, held apart only by a 10%-ink hairline, which is why it read flat.
     It also lets bronze register as warm metal against a cool ground instead
     of disappearing into more beige. */
  --rgb-paper:         251 249 246;  /* #FBF9F6  light page background   */
  --rgb-paper-raised:  238 235 228;  /* #EEEBE4  cool stone, raised      */
  --rgb-paper-sunken:  223 219 210;  /* #DFDBD2  cool stone, sunken      */
  --rgb-graphite:       42  38  34;  /* #2A2622  light-theme body text   */
  --rgb-slate:         106  96  85;  /* #6A6055  light-theme muted text  */
  /* Bronze at --rgb-bronze is mixed for a near-black ground; on paper it goes
     chalky. This is the same hue carried darker so it holds on stone. */
  --rgb-bronze-deep:   138 103  64;  /* #8A6740  light-theme accent      */

  /* ── Alpha ladder (5% steps) ── */
  --alpha-00: 0;
  --alpha-05: 0.05;
  --alpha-10: 0.10;
  --alpha-15: 0.15;
  --alpha-20: 0.20;
  --alpha-25: 0.25;
  --alpha-30: 0.30;
  --alpha-35: 0.35;
  --alpha-40: 0.40;
  --alpha-45: 0.45;
  --alpha-50: 0.50;
  --alpha-55: 0.55;
  --alpha-60: 0.60;
  --alpha-65: 0.65;
  --alpha-70: 0.70;
  --alpha-75: 0.75;
  --alpha-80: 0.80;
  --alpha-85: 0.85;
  --alpha-90: 0.90;
  --alpha-95: 0.95;
  --alpha-100: 1;

  /* ── Opaque color primitives ── */
  --color-ink:        rgb(var(--rgb-ink));
  --color-ink-raised: rgb(var(--rgb-ink-raised));
  --color-void:       rgb(var(--rgb-void));
  --color-bone:       rgb(var(--rgb-bone));
  --color-cream:      rgb(var(--rgb-cream));
  --color-stone:      rgb(var(--rgb-stone));
  --color-bronze:     rgb(var(--rgb-bronze));
  --color-bronze-deep: rgb(var(--rgb-bronze-deep));
  --color-bronze-hi:  rgb(var(--rgb-bronze-hi));

  /* ── Space scale (4px grid) ── */
  --space-0:    0;
  --space-px:   1px;
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-7:    1.75rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-13:   3.25rem;
  --space-14:   3.5rem;
  --space-16:   4rem;
  --space-24:   6rem;
  --space-36:   9rem;
  --space-60:  15rem;

  /* ── Type families ── */
  --font-family-serif: "Fraunces", Georgia, serif;
  /* The NexStone wordmark, and nothing else. Nexa ships as one weight
     (Extra Light, 100); Fraunces stands in until it arrives. */
  --font-family-logo:  "Nexa", "Fraunces", Georgia, serif;
  --font-family-sans:  "Archivo", system-ui, sans-serif;

  /* ── Type weights ── */
  --font-weight-hairline: 100;
  --font-weight-light:   300;
  --font-weight-regular: 400;
  --font-weight-medium:  500;

  /* ── Static type scale ── */
  --font-size-3xs:  0.55rem;
  --font-size-2xs:  0.6rem;
  --font-size-xs:   0.68rem;
  --font-size-sm:   0.85rem;
  --font-size-md:   0.95rem;
  --font-size-lg:   1rem;

  /* ── Fluid display scale (min / preferred / max) ── */
  --font-size-fluid-body-min:       0.82rem;
  --font-size-fluid-body-vw:        1.05vw;
  --font-size-fluid-body-max:       0.98rem;
  --font-size-fluid-lede-min:       0.95rem;
  --font-size-fluid-lede-vw:        1.5vw;
  --font-size-fluid-lede-max:       1.25rem;
  --font-size-fluid-display-sm-min: 2rem;
  --font-size-fluid-display-sm-vw:  5vw;
  --font-size-fluid-display-sm-max: 3.4rem;
  --font-size-fluid-display-md-min: 2.6rem;
  --font-size-fluid-display-md-vw:  6.6vw;
  --font-size-fluid-display-md-max: 6rem;
  --font-size-fluid-display-lg-min: 2.8rem;
  --font-size-fluid-display-lg-vw:  7.4vw;
  --font-size-fluid-display-lg-max: 7rem;
  --font-size-fluid-display-xl-min: 3.4rem;
  --font-size-fluid-display-xl-vw:  11vw;
  --font-size-fluid-display-xl-max: 10.5rem;
  /* The footer's background wordmark: sized to the viewport so it always
     runs slightly wider than the page and is cropped at both edges. */
  --font-size-fluid-colossal-vw:    22.5vw;
  /* Nexa runs ~25% wider than Fraunces, so the hero wordmark needs a lower
     floor than display-xl's or it meets both edges of a 320px phone. */
  --font-size-fluid-logo-hero-min:  2.6rem;

  --font-size-body:       clamp(var(--font-size-fluid-body-min),       var(--font-size-fluid-body-vw),       var(--font-size-fluid-body-max));
  --font-size-lede:       clamp(var(--font-size-fluid-lede-min),       var(--font-size-fluid-lede-vw),       var(--font-size-fluid-lede-max));
  --font-size-display-sm: clamp(var(--font-size-fluid-display-sm-min), var(--font-size-fluid-display-sm-vw), var(--font-size-fluid-display-sm-max));
  --font-size-display-md: clamp(var(--font-size-fluid-display-md-min), var(--font-size-fluid-display-md-vw), var(--font-size-fluid-display-md-max));
  --font-size-display-lg: clamp(var(--font-size-fluid-display-lg-min), var(--font-size-fluid-display-lg-vw), var(--font-size-fluid-display-lg-max));
  --font-size-display-xl: clamp(var(--font-size-fluid-display-xl-min), var(--font-size-fluid-display-xl-vw), var(--font-size-fluid-display-xl-max));
  --font-size-logo-hero:  clamp(var(--font-size-fluid-logo-hero-min), var(--font-size-fluid-display-xl-vw), var(--font-size-fluid-display-xl-max));

  /* ── Tracking ── */
  --tracking-tight:     0.01em;
  --tracking-normal:    0.02em;
  --tracking-wide:      0.12em;
  --tracking-wider:     0.18em;
  --tracking-widest:    0.24em;
  --tracking-display:   0.16em;
  --tracking-caps:      0.3em;
  --tracking-caps-lg:   0.34em;
  --tracking-caps-xl:   0.36em;
  --tracking-caps-2xl:  0.4em;
  --tracking-caps-3xl:  0.42em;

  /* ── Leading ── */
  --leading-none:    1.02;
  --leading-snug:    1.4;
  --leading-relaxed: 1.7;
  --leading-loose:   1.75;

  /* ── Radii ── */
  --radius-none: 0;
  --radius-xs:   0.125rem;
  --radius-pill: 999px;

  /* ── Borders ── */
  --border-width-hairline: 1px;

  /* ── Blur ── */
  --blur-none: 0;
  --blur-sm:   6px;
  --blur-md:   8px;
  --blur-lg:   14px;
  --blur-xl:   28px;

  /* ── Motion · durations ── */
  --duration-none:    0s;
  --duration-instant: 0.45s;
  --duration-quick:   0.5s;
  --duration-base:    0.6s;
  --duration-smooth:  0.7s;
  --duration-slow:    0.9s;
  --duration-slower:  1.1s;
  --duration-cine:    1.2s;
  --duration-curtain: 1.3s;
  --duration-ambient: 2.4s;

  /* ── Motion · delays ── */
  --delay-none:  0s;
  --delay-short: 0.2s;
  --delay-mid:   0.5s;
  --delay-long:  0.6s;

  /* ── Motion · easing ── */
  --ease-cine: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-linear: linear;

  /* ── Motion · transforms ── */
  --rotate-half: 180deg;   /* turns vertical-rl type to read bottom-to-top */
  --translate-nudge:      0.25rem;
  --translate-chrome-in: -0.875rem;
  --translate-center:    -50%;
  --scale-none:  1;
  --ratio-mark-reveal: 0.62;   /* share of a wordmark's em box left showing above a bleed */
  --scale-zero:  0;
  --scale-press: 0.98;
  --scale-orb-hover: 1.06;
  --translate-orb-x:  3px;
  --translate-orb-y: -2px;
  /* Scroll parallax, as a share of the moving element's own height. */
  --translate-parallax-lg: 45%;
  --translate-curtain:    -100%;
  --translate-bleed-md:    24%;

  /* ── Z-index ── */
  --z-behind:   -1;   /* under its parent's content, inside an isolated stack */
  --z-stage:     1;
  --z-home-landing: 10;
  --z-overlays: 20;
  --z-chrome:   30;
  --z-grain:    40;
  --z-preloader: 100;
  --z-menu: 70;
  /* Above the menu overlay (a visitor can still see the cursor react while
     hovering menu links) but below the preloader, which owns the screen
     completely while it's up. */
  --z-cursor: 90;
  /* Inside the pinned line stage only. Both sit far below --z-site-header
     (50): the stage fills the viewport, and it must never cover the wordmark
     or the MENU trigger floating over it. */
  --z-line-canvas:  1;
  --z-line-content: 2;
  --z-site-header: 50;
  /* Below the header: the filter bar sticks underneath it and they share a
     scroll. At equal z the bar wins on DOM order and paints over the fixed
     header. */
  --z-filter-bar: 45;
  --z-drawer-backdrop: 55;
  --z-drawer: 60;

  /* ── Breakpoints ──
     Reference only: @media cannot read a custom property, so each query
     repeats the literal and carries a comment naming the token it mirrors. */
  --breakpoint-xs:  360px;
  --breakpoint-sm:  600px;
  --breakpoint-md:  900px;
  --breakpoint-lg: 1200px;

  /* ── Minimum comfortable tap target (WCAG 2.5.8) ── */
  --tap-target-min: 2.75rem;

  /* ── Page heading scale (fluid) ── */
  --font-size-h1-min: 2rem;      --font-size-h1-vw: 5vw;      --font-size-h1-max: 3.6rem;
  --font-size-h2-min: 1.6rem;    --font-size-h2-vw: 3.4vw;    --font-size-h2-max: 2.6rem;
  --font-size-h3-min: 1.15rem;   --font-size-h3-vw: 2.2vw;    --font-size-h3-max: 1.6rem;
  --font-size-prose-min: 0.9rem; --font-size-prose-vw: 1.1vw; --font-size-prose-max: 1.05rem;

  --font-size-h1:    clamp(var(--font-size-h1-min),    var(--font-size-h1-vw),    var(--font-size-h1-max));
  --font-size-h2:    clamp(var(--font-size-h2-min),    var(--font-size-h2-vw),    var(--font-size-h2-max));
  --font-size-h3:    clamp(var(--font-size-h3-min),    var(--font-size-h3-vw),    var(--font-size-h3-max));
  --font-size-prose: clamp(var(--font-size-prose-min), var(--font-size-prose-vw), var(--font-size-prose-max));


  /* ═════════ LAYER 2 · SEMANTIC ═════════ */

  /* ── Surfaces ── */
  --color-bg:                   var(--color-ink);
  --color-surface-glass:        rgb(var(--rgb-ink) / var(--alpha-30));
  --color-surface-glass-strong: rgb(var(--rgb-ink) / var(--alpha-35));
  --color-surface-glass-hover:  rgb(var(--rgb-ink-raised) / var(--alpha-50));
  --color-surface-meter:        rgb(var(--rgb-cream) / var(--alpha-15));

  /* ── Text ── */
  --color-text:         var(--color-cream);
  --color-text-strong:  var(--color-bone);
  --color-text-soft:    rgb(var(--rgb-cream) / var(--alpha-85));
  --color-text-body:    rgb(var(--rgb-cream) / var(--alpha-80));
  --color-text-muted:   rgb(var(--rgb-cream) / var(--alpha-60));
  --color-text-faint:   rgb(var(--rgb-cream) / var(--alpha-50));
  --color-text-meta:    var(--color-stone);
  --color-text-accent:  var(--color-bronze-hi);
  --color-text-oncontrast: var(--color-ink);

  /* ── Lines & borders ── */
  --color-border-subtle:        rgb(var(--rgb-cream) / var(--alpha-25));
  --color-border-rail:          rgb(var(--rgb-cream) / var(--alpha-30));
  --color-border-accent:        rgb(var(--rgb-bronze-hi) / var(--alpha-35));
  --color-border-accent-strong: rgb(var(--rgb-bronze-hi) / var(--alpha-50));
  --color-border-accent-hover:  rgb(var(--rgb-bronze-hi) / var(--alpha-65));

  /* ── Interaction ── */
  --color-selection-bg:     rgb(var(--rgb-bronze) / var(--alpha-35));
  --color-selection-text:   var(--color-bone);
  --color-scrollbar-thumb:  rgb(var(--rgb-bronze) / var(--alpha-55));
  --color-scrollbar-track:  transparent;

  /* ── Gradients ── */
  --gradient-accent-x: linear-gradient(90deg,  var(--color-bronze), var(--color-bronze-hi));
  --gradient-accent-y: linear-gradient(180deg, var(--color-bronze), var(--color-bronze-hi));
  --gradient-accent-d: linear-gradient(135deg, var(--color-bronze), var(--color-bronze-hi));
  --gradient-accent-d-hover: linear-gradient(135deg, var(--color-bronze-hi), var(--color-bronze));
  --gradient-hairline-accent: linear-gradient(180deg, transparent, var(--color-bronze-hi));
  /* Display type set as a watermark: a soft tone that dissolves downward. */
  --gradient-ghost-type: linear-gradient(180deg, rgb(var(--rgb-cream) / var(--alpha-20)), rgb(var(--rgb-cream) / var(--alpha-00)) 90%);

  --gradient-vignette: radial-gradient(120% 90% at 50% 42%,
                        transparent 55%,
                        rgb(var(--rgb-void) / var(--alpha-40)) 100%);
  --gradient-scrim: linear-gradient(180deg,
                        rgb(var(--rgb-void) / var(--alpha-55)) 0%,
                        rgb(var(--rgb-void) / var(--alpha-20)) 30%,
                        rgb(var(--rgb-void) / var(--alpha-20)) 70%,
                        rgb(var(--rgb-void) / var(--alpha-60)) 100%);
  --gradient-edge-fade:
      linear-gradient(90deg,  rgb(var(--rgb-void) / var(--alpha-35)) 0%, transparent 18%),
      linear-gradient(180deg, rgb(var(--rgb-void) / var(--alpha-30)) 0%, transparent 14%),
      linear-gradient(0deg,   rgb(var(--rgb-void) / var(--alpha-30)) 0%, transparent 16%);
  /* ── Elevation ── */
  --shadow-rail:          0 0 12px rgb(var(--rgb-void) / var(--alpha-50));
  /* The dark halos are also named on their own and never themed. The film
     stays dark in both themes and pins its chrome to these (css/style.css);
     without that pin the light theme's paper halo landed behind the film's
     cream type over photography and made it paler, not clearer. */
  --shadow-text-sm-dark:      0 1px 10px rgb(var(--rgb-void) / var(--alpha-80));
  --shadow-text-onimage-dark: 0 0 2px rgb(var(--rgb-void) / var(--alpha-90)),
                              0 1px 14px rgb(var(--rgb-void) / var(--alpha-85));
  --shadow-text-sm:       var(--shadow-text-sm-dark);
  /* Small type directly over bright imagery: a tight core plus a soft halo. */
  --shadow-text-onimage:  var(--shadow-text-onimage-dark);
  /* The smallest UI type over bright photography. One soft halo does nothing
     at --font-size-3xs: the strokes are a pixel wide and the halo spreads
     thinner than they are. Two solid cores hug the glyph, two soft rings lift
     it off the plate. Measured over the film's brightest frames, MENU went
     from 1.25:1 to 8.66:1 with --font-weight-medium. */
  --shadow-text-micro-onimage-dark: 0 0 1px rgb(var(--rgb-void)),
                                    0 0 2px rgb(var(--rgb-void)),
                                    0 0 6px rgb(var(--rgb-void) / var(--alpha-90)),
                                    0 1px 16px rgb(var(--rgb-void) / var(--alpha-80));
  /* The same cores for drawn marks - rules, discs - which text-shadow skips. */
  --shadow-drop-micro-onimage-dark: drop-shadow(0 0 1px rgb(var(--rgb-void)))
                                    drop-shadow(0 0 2px rgb(var(--rgb-void)));
  --shadow-text-body:     0 1px 24px rgb(var(--rgb-void) / var(--alpha-55));
  --shadow-text-display:  0 2px 40px rgb(var(--rgb-void) / var(--alpha-45));
  /* The film's bronze hero wordmark: a white glow feathered wide, so the word
     reads as lit rather than outlined. No tight core - three rings of
     falling strength blend into the plate with no visible edge. Unthemed:
     the film stays dark under the light theme. */
  --shadow-text-display-glow: 0 0 24px  rgb(var(--rgb-white) / var(--alpha-35)),
                              0 0 60px  rgb(var(--rgb-white) / var(--alpha-25)),
                              0 0 120px rgb(var(--rgb-white) / var(--alpha-15));
  /* The glow under a highlighted, filled CTA - the dealers CTA and a slab
     page's enquiry button. Bronze bloom on the dark ground; the light theme
     swaps it for an ink shadow, since bronze bloom on paper reads as a stain. */
  --shadow-accent-glow:       0 0 0 var(--border-width-hairline) rgb(var(--rgb-bronze-hi) / var(--alpha-35)),
                              0 12px 40px -10px rgb(var(--rgb-bronze) / var(--alpha-60));
  --shadow-accent-glow-hover: 0 0 0 var(--border-width-hairline) rgb(var(--rgb-bronze-hi) / var(--alpha-60)),
                              0 16px 56px -8px rgb(var(--rgb-bronze) / var(--alpha-80));
  --shadow-inset-specular: inset 0 1px 1px rgb(var(--rgb-white) / var(--alpha-35));

  /* ── Page surfaces (inner pages keep the film's dark editorial ground) ── */
  --color-surface-raised: var(--color-ink-raised);
  --color-surface-card:   rgb(var(--rgb-ink-raised) / var(--alpha-60));
  --color-surface-sunken: rgb(var(--rgb-void) / var(--alpha-40));
  --color-border-hairline: rgb(var(--rgb-cream) / var(--alpha-10));
  --color-border-transparent:   rgb(var(--rgb-bone) / var(--alpha-00));
  --color-focus-ring:      var(--color-bronze-hi);

  /* ── Layout ── */
  --layout-scroll-track-height: 760vh;
  --layout-gutter:        var(--space-10);
  --layout-gutter-block:  var(--space-8);
  --layout-gutter-sm:     var(--space-5);
  --layout-gutter-block-sm: var(--space-5);
  --layout-hairline:      var(--space-px);
  --layout-inset-full:    0;
  --layout-size-full:     100%;
  /* For resetting a max-width a component set further up - .prose--split
     drops the measure off its wrapper and applies it to the body column. */
  --layout-size-none:     none;
  /* For undoing a min-height a component set further up - the line's caption
     well reserves space when absolutely positioned and must not when it is
     back in flow under prefers-reduced-motion. */
  --layout-size-auto:     auto;
  --layout-center:        50%;

  --layout-ovl-pad-min: var(--space-6);
  --layout-ovl-pad-vw:  8vw;
  --layout-ovl-pad-max: var(--space-36);
  --layout-ovl-pad-inline: clamp(var(--layout-ovl-pad-min), var(--layout-ovl-pad-vw), var(--layout-ovl-pad-max));

  --layout-ovl-pad-left-min: var(--space-24);
  --layout-ovl-pad-left-vw:  14vw;
  --layout-ovl-pad-left-max: var(--space-60);
  --layout-ovl-pad-left: clamp(var(--layout-ovl-pad-left-min), var(--layout-ovl-pad-left-vw), var(--layout-ovl-pad-left-max));

  /* Page shell */
  --layout-container-max:    84rem;
  --layout-container-narrow: 46rem;
  --layout-container-pad:    var(--space-5);
  --layout-container-pad-lg: var(--space-10);
  --layout-section-pad:      var(--space-12);
  /* Scroll distance per beat on the Manufacturing line. Mobile first per
     LAW 2: --line-beat IS the mobile value and --line-beat-lg widens it.
     Six beats => ~360vh mobile, ~480vh from --breakpoint-md up. A phone
     crosses a viewport faster in real terms, so the same dwell time buys
     itself with less track. */
  /* The pinned stage's height. svh, not vh: on iOS Safari the viewport-height
     unit resolves to the LARGEST viewport, so a full-height sticky element
     extends under browser chrome whenever the URL bar is showing and the foot
     of the scene is never visible. svh is the small-viewport unit. */
  --line-stage-height: 100svh;
  --line-beat:    60vh;
  --line-beat-lg: 80vh;
  /* The header is fixed, so it no longer reserves a row in the flow and the
     first thing on the page would otherwise sit behind it. The hero carries
     that clearance itself rather than the body carrying a top offset, so the
     page ground still runs the full height under the header. */
  --layout-hero-pad-top:     calc(var(--site-header-height) + var(--layout-section-pad));
  --layout-hero-pad-top-lg:  calc(var(--site-header-height-lg) + var(--layout-section-pad-lg));
  --layout-section-pad-lg:   var(--space-24);
  --layout-grid-gap:         var(--space-4);
  --layout-grid-gap-lg:      var(--space-6);
  --layout-measure-prose:    38rem;
  /* Editorial split (.prose--split): the section heading sits in a left rail
     beside its body instead of stacked above it, so an inner page uses the
     width it reserves. Rail + gap + measure = 56rem inside an 84rem
     container, which is why the measure itself never has to grow. */
  --layout-rail-width:       14rem;
  --layout-split-gap:        var(--space-16);
  /* The hero lede sits beside the title rather than under it. Narrower than
     the prose measure on purpose: it is a standfirst, not body copy, and a
     608px column next to display type competes with it. */
  --layout-hero-lede:        24rem;

  --layout-viewport-min:  100vh;
  --layout-sidebar-width:  16rem;

  --layout-measure-body:  30rem;
  --layout-measure-body-sm: 24rem;
  --layout-ovl-drop-sm:   22vh;


  /* ═════════ LAYER 3 · COMPONENT ═════════ */

  /* ── Film grain ── */
  --grain-inset:   -50%;
  --grain-opacity: var(--alpha-05);
  --grain-tile:    240;
  --grain-frequency: 0.9;
  --grain-cycle:   0.9s;
  --grain-steps:   4;
  --grain-drift-1-x: -2%;  --grain-drift-1-y:  1%;
  --grain-drift-2-x:  1%;  --grain-drift-2-y: -2%;
  --grain-drift-3-x: -1%;  --grain-drift-3-y:  2%;
  --grain-drift-4-x:  2%;  --grain-drift-4-y: -1%;
  --grain-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* ── Preloader ── */
  --preloader-meter-width:  min(15rem, 50vw);
  --preloader-meter-height: var(--space-px);
  --preloader-meter-offset: var(--space-10);
  /* The curtain lifts by transform, not clip-path: a transform runs on the
     compositor and stays smooth while the main thread is busy; a clip-path
     is repainted by the main thread every frame, which stuttered on phones. */
  --preloader-shift-open:   translate3d(0, 0, 0);
  --preloader-shift-done:   translate3d(0, var(--translate-curtain), 0);

  /* ── Room nav ── */
  --roomnav-offset-x:   var(--layout-gutter);
  --roomnav-rail-width: var(--space-px);
  --roomnav-gap:        var(--space-5);
  --roomnav-list-gap:   var(--space-6);
  --roomnav-item-gap:   var(--space-3);

  /* ── Counter ── */
  --counter-offset-x: var(--layout-gutter);
  --counter-offset-y: var(--space-8);
  --counter-gap:      var(--space-4);

  /* ── Eyebrow pill ── */
  --eyebrow-pad-block:  var(--space-2);
  --eyebrow-pad-inline: var(--space-4);
  --eyebrow-gap-below:  var(--space-6);

  /* Button variants override these properties rather than declarations, so
     hover states cannot desync a surface from its foreground. */
  --btn-bg:           var(--color-surface-glass-strong);
  --btn-bg-hover:     var(--color-surface-glass-hover);
  --btn-fg:           var(--color-text-strong);
  --btn-border:       var(--color-border-subtle);
  --btn-border-hover: var(--color-border-accent-hover);

  --btn-accent-bg:           var(--gradient-accent-d);
  --btn-accent-bg-hover:     var(--gradient-accent-d-hover);
  --btn-accent-fg:           var(--color-text-oncontrast);
  --btn-accent-border-hover: var(--color-border-accent-hover);

  /* ── Scroll hint ── */
  --scrollhint-offset:      var(--space-10);
  --scrollhint-line-height: var(--space-13);
  --scrollhint-gap:         var(--space-3);

  /* ── Site menu overlay ── */
  --menu-bg:            rgb(var(--rgb-ink) / var(--alpha-95));
  --menu-blur:          var(--blur-lg);
  --menu-pad-block:     var(--space-16);
  --menu-link-size:     var(--font-size-h2);
  --menu-link-gap:      var(--space-1);
  --menu-stagger-step:  0.05s;
  --menu-rise:          var(--space-4);
  --menu-trigger-gap:   var(--space-2);
  --menu-rule-width:    var(--space-8);
  /* Header actions: the theme toggle beside MENU / CLOSE. The slot fits MENU
     and its rule mark; CLOSE takes the same width so the toggle beside it
     does not move when the menu opens. */
  --chrome-actions-gap:     var(--space-4);
  --chrome-action-slot:     5rem;
  --theme-toggle-mark-size: var(--space-3);
  --theme-toggle-mark-fill: linear-gradient(90deg, currentColor 50%, transparent 50%);
  --theme-toggle-mark-turn: rotate(180deg);

  /* Hover reveal. The image is unveiled by a clip-path wipe travelling up,
     settling out of a slight over-scale; leaving reverses it, faster, so a
     quick pass across the list never leaves two images fighting. */
  /* The hovered item's image becomes the whole background of the overlay.
     Anything less than full bleed puts an edge between the image and the
     overlay's own translucent ground, and that edge reads as a seam. */
  --menu-media-bleed:     var(--space-3);
  --menu-media-enter:     var(--duration-slower);
  --menu-media-exit:      var(--duration-smooth);
  --menu-media-scale-in:  1.06;
  --menu-media-scale-out: 1.03;
  --menu-media-drift:     var(--space-2);
  --menu-clip-below:      inset(100% 0 0 0);
  --menu-clip-shown:      inset(0 0 0 0);
  --menu-clip-above:      inset(0 0 100% 0);
  --menu-clip-full:       inset(0 0 0 0);
  --menu-media-z:         0;
  --menu-content-z:       1;
  /* A veil over the image so centred type stays readable on any frame:
     heavier at the edges, where the brand, close and footnote sit. */
  --menu-media-scrim: linear-gradient(
    180deg,
    rgb(var(--rgb-ink) / var(--alpha-75)) 0%,
    rgb(var(--rgb-ink) / var(--alpha-65)) 30%,
    rgb(var(--rgb-ink) / var(--alpha-65)) 70%,
    rgb(var(--rgb-ink) / var(--alpha-75)) 100%
  );

  /* The Collection reveal's veil. Its own token rather than reusing
     --menu-media-scrim: the overlay pins its text to cream in css/menu.css
     and so keeps a dark veil in both themes, while this reveal's names
     follow the page and go to ink under the light theme. Sharing one token
     put black type on a 70%-ink veil. */
  --home-collection-scrim: var(--menu-media-scrim);

  /* Home landing ------------------------------------------------------ */
  /* The landed chrome has no ground of its own - see the note beside
     body.is-landed .chrome--top in css/home-landing.css. Kept as a token so
     a ground can be put back in one place if print-through ever bites. */
  --home-landing-chrome-bg: rgb(var(--rgb-ink) / var(--alpha-00));
  --home-handoff-duration: var(--duration-slow);
  /* .chrome--top stays fixed over the landing and the finale CTA links
     straight to #collection - without this an anchor jump tucks the
     section's own eyebrow directly behind the fixed header. Pre-existing,
     surfaced by rebuilding this section; not new to the recede or the
     index list. Sized to the gap between .chrome--top's measured height
     and .section's own top padding at each breakpoint (style.css,
     pages.css), not to the header height alone - the section's padding
     already accounts for most of the clearance needed. */
  --home-anchor-clearance:    var(--space-10);
  --home-anchor-clearance-lg: var(--space-3);
  --home-wipe-duration:    var(--duration-smooth);
  --home-landing-surface:  var(--color-bg);

  /* The handoff no longer fades the film out - it recedes behind the landing
     as it rises, a frame settling back rather than a cut. Dim only (scale 1)
     was tried and rejected: see the report for why the scale reads as
     deliberate rather than as a bug. */
  --home-film-recede-scale: 0.9;
  --home-film-recede-dim:   0.35;

  /* Collection index - the hover reveal speaks the same clip-path language
     as the site menu's (css/menu.css), so it borrows that vocabulary's
     durations and scales directly rather than re-declaring the same
     numbers under a new name. */
  --home-collection-media-enter:     var(--menu-media-enter);
  --home-collection-media-exit:      var(--menu-media-exit);
  --home-collection-media-scale-in:  var(--menu-media-scale-in);
  --home-collection-media-scale-out: var(--menu-media-scale-out);
  --home-collection-row-gap:         var(--space-4);
  --home-collection-row-pad-block:   var(--space-6);
  --home-collection-row-pad-block-lg: var(--space-8);
  --home-collection-thumb-size:      var(--space-14);

  /* Dealers band - tightened from the generic section rhythm (which reads
     as mostly empty black around three short lines) and given a small
     accent rule so the shorter box still reads as intentional. */
  --home-dealers-pad:        var(--space-10);
  --home-dealers-pad-lg:     var(--space-16);
  --home-dealers-rule-width: var(--menu-rule-width);
  --home-dealers-rule-gap:   var(--space-6);
  /* The COBE globe under the dealers CTA. js/home-globe.js reads the
     channel tokens (bare "r g b", as the --rgb-* primitives are) and the
     two numbers, so the globe follows the theme like everything else. */
  --home-globe-size:       min(100%, 34rem);
  --home-globe-ratio:      1 / 1;
  --home-globe-gap:        var(--space-12);
  --home-globe-base:       var(--rgb-bronze);
  --home-globe-halo:       var(--rgb-bronze);
  --home-globe-marker:     var(--rgb-bronze-hi);
  --home-globe-dark:       1;
  --home-globe-brightness: 3;
  --home-globe-fade:       var(--duration-slow);
  /* ─ Dealers: two columns from --breakpoint-md, and the section's one loud
     element - a filled bronze CTA with the finale's orb, inverted. Its halo
     breathes on its own; nothing else in the section moves unprompted. */
  --home-dealers-gap:             var(--space-16);
  --home-dealers-copy-max:        32rem;
  --home-dealers-actions-gap:     var(--space-6);
  --home-dealers-cta-height:      var(--space-14);
  --home-dealers-cta-pad-start:   var(--space-8);
  --home-dealers-cta-pad-end:     var(--space-2);
  --home-dealers-cta-gap:         var(--space-5);
  --home-dealers-cta-label-size:  var(--font-size-xs);
  --home-dealers-cta-orb:         var(--space-10);
  --home-dealers-cta-orb-bg:      var(--color-ink);
  --home-dealers-cta-orb-fg:      var(--color-bronze-hi);
  --home-dealers-cta-glow:        var(--shadow-accent-glow);
  --home-dealers-cta-glow-hover:  var(--shadow-accent-glow-hover);
  --home-dealers-halo:            rgb(var(--rgb-bronze-hi) / var(--alpha-50));
  --home-dealers-halo-scale:      1.16;
  --home-dealers-halo-duration:   3.2s;
  --home-dealers-direct-gap:      var(--space-2);

  /* Formats panel - the two format numbers get the weight of a spec panel
     rather than reading as loose placeholder stats. */
  /* ── About: founder quote, scroll-filled ──
     Each word sits at --founder-word-min until the reader's scroll reaches
     it, then fills to full ink. js/about-motion.js writes the progress. */
  --founder-scrub-size:   var(--font-size-display-sm);
  --founder-word-min:     var(--alpha-15);
  --founder-word-fade:    var(--duration-instant);

  /* ── About: image sections ──
     A full-bleed band under the hero, splits beside the story and the
     profile, and a strip of the range. The band sits on a photograph in
     both themes, so its type and scrim are pinned light-on-dark rather
     than themed. */
  --about-band-height:     82svh;
  --about-band-height-sm:  64svh;
  --about-band-drift:      var(--space-16);
  --about-band-overscan:   calc(var(--layout-size-full) + var(--about-band-drift) * 2);
  --about-band-fg:         rgb(var(--rgb-bone));
  --about-band-fg-muted:   rgb(var(--rgb-bone) / var(--alpha-75));
  --about-band-scrim:      linear-gradient(180deg,
                             rgb(var(--rgb-void) / var(--alpha-00)) 45%,
                             rgb(var(--rgb-void) / var(--alpha-60)) 100%);
  --about-band-caption-size: var(--font-size-h2);
  --about-split-gap:       var(--space-10);
  --about-split-gap-lg:    var(--space-24);
  --about-slab-ratio:      2 / 3;
  --about-room-ratio:      4 / 5;
  --about-swatch-ratio:    2 / 3;
  --about-swatch-zoom:     1.06;
  --about-reveal-duration: var(--duration-cine);
  --about-reveal-stagger:  0.08s;

  /* ── About: the journey (Italy -> Morbi -> the world) ──
     From 900px the section pins for --journey-scroll-length of scroll while
     a bronze line draws through the three stops. Phones get a vertical line
     drawn by ordinary scrolling, no pin. */
  --journey-scroll-length: 260vh;
  --journey-pin-height:    100svh;
  --journey-node:          var(--space-3);
  --journey-traveller:     var(--space-2);
  --journey-track:         var(--color-border-hairline);
  --journey-fill:          var(--gradient-accent-x);
  --journey-fill-y:        var(--gradient-accent-y);
  --journey-node-border:   var(--color-border-accent-strong);
  --journey-node-reached:  var(--color-bronze-hi);
  --journey-glow:          var(--shadow-accent-glow);
  --journey-dim:           var(--alpha-30);
  --journey-gap:           var(--space-10);
  --journey-rail-inset:    var(--space-1);
  --journey-stop-pad:      var(--space-6);

  /* ── Format atlas (home Formats section) ──
     The formats, drawn to scale. Each slab's width and height arrive from
     nexstone_formats() as --slab-w / --slab-h; --atlas-units is the summed
     width a row is divided by (seven across at 600 and up, a wider unit on
     phones so an 800 slab still clears --tap-target-min). The measure caps
     the tallest slab near half a laptop screen. */
  --format-atlas-measure:     56rem;
  --format-atlas-gap:         var(--space-1);
  --format-atlas-gap-lg:      var(--space-4);
  --format-atlas-label-size:  var(--font-size-3xs);
  --format-atlas-label-size-lg: var(--font-size-xs);
  --format-atlas-label-inset: var(--space-3);
  --format-atlas-border:      var(--color-border-hairline);
  --format-atlas-border-hover: var(--color-border-accent-strong);
  --format-atlas-fill:        rgb(var(--rgb-cream) / var(--alpha-05));
  --format-atlas-fill-hover:  rgb(var(--rgb-bronze-hi) / var(--alpha-20));
  --format-atlas-dim:         var(--alpha-40);
  --format-atlas-draw:        var(--duration-cine);
  --format-atlas-stagger:     0.08s;

  /* Home motion — the Awwwards-style pass layered on the base wipe/handoff
     above (js/home-motion.js). GSAP durations, eases and pixel/degree
     offsets live in that file as plain JS numbers, matching js/main.js's
     own convention, so nothing there needs tokens here. */

  /* Section titles — the same 42px serif plays this role on the film's
     landing (.home-section__title) and on every inner page (.prose h2), but
     they carried --leading-none and --leading-snug respectively, so the same
     heading sat on two different rhythms depending on the route. One token,
     both consumers. Verified safe to tighten: all 12 .prose h2 across the
     five content pages set one line. */
  --section-title-leading: var(--leading-none);

  /* Custom cursor (css/cursor.css, js/cursor.js) — sitewide, not home-only,
     which is why these lost their --home- prefix. Only the ring's static
     geometry is CSS-authored; its follow duration and ease are plain JS
     numbers in cursor.js, per the convention above. */
  --cursor-size:        var(--space-6);
  --cursor-size-active: var(--space-10);
  --cursor-fill-active: rgb(var(--rgb-bronze-hi) / var(--alpha-15));

  /* ── Site header (inner pages) ── */
  /* What the header actually occupies: its top gutter plus the trigger. The
     three chromes - .site-header, the film's .chrome--top and the overlay's
     head - all now centre their contents in the same band, off the film's
     own --layout-gutter-block(-sm), so the MENU trigger and the overlay's
     CLOSE land on the same line and nothing jumps when the menu opens.
     Derived rather than set, so changing the gutter moves all three and the
     hero clearance together. */
  --site-header-height:    calc(var(--layout-gutter-block-sm) + var(--tap-target-min));
  --site-header-height-lg: calc(var(--layout-gutter-block) + var(--tap-target-min));
  /* Transparent, like the film's .chrome--top. The blur below is what keeps
     the wordmark and trigger legible over whatever scrolls beneath, without
     painting a bar across the top of the page. */
  --site-header-bg:        rgb(var(--rgb-ink) / var(--alpha-00));
  /* The filter bar is NOT the header and must keep a ground of its own -
     it sticks over a grid of slab photographs, and card images sliding
     under bare text is unreadable. It used to borrow --site-header-bg and
     went transparent with it. */
  --filter-bar-bg:         rgb(var(--rgb-ink) / var(--alpha-90));
  --filter-bar-blur:       var(--blur-lg);
  --site-header-blur:      var(--blur-lg);

  /* ── Site footer ──
     Readable sizes, not the --font-size-3xs fine print the footer used to
     set every line in - that is what made it read as a legal strip. The
     3xs treatment is kept for .site-footer__note, the genuine fine print
     in the bottom bar. */
  --site-footer-brand-size:   var(--font-size-md);
  --site-footer-heading-size: var(--font-size-xs);
  --site-footer-link-size:    var(--font-size-sm);
  --site-footer-lede-measure: var(--layout-measure-body-sm);
  --site-footer-col-gap:      var(--space-10);
  --site-footer-col-gap-sm:   var(--space-6);
  --site-footer-row-gap:      var(--space-8);
  --site-footer-list-gap:     var(--space-3);
  --site-footer-heading-gap:  var(--space-4);
  --site-footer-bottom-gap:   var(--space-10);
  --site-footer-bottom-pad:   var(--space-6);
  /* Editorial head: one display statement, its actions, the direct lines. */
  --site-footer-statement-size:    var(--font-size-display-sm);
  --site-footer-statement-size-lg: var(--font-size-display-md);
  --site-footer-head-gap:          var(--space-8);
  --site-footer-head-pad:          var(--space-16);
  /* The head's right column: CTAs stacked at one width, the direct lines
     as labelled rows under them on the same edges. 24rem holds the longer
     CTA label with its orb and leaves the statement two-thirds of a laptop. */
  --site-footer-aside-width:   24rem;
  --site-footer-aside-gap:     var(--space-8);
  --site-footer-direct-label:  6rem;
  --site-footer-direct-size:   var(--font-size-lede);
  /* The two calls to action. They were stock 0.55rem .btn pills and read
     as fine print beside a display-size statement; now they carry the home
     dealers CTA's language - taller pill, arrow orb, glow, and on the
     primary a slow bronze halo. Footer-scoped: .btn itself is untouched. */
  --site-footer-cta-height:      var(--space-14);
  --site-footer-cta-pad-start:   var(--space-8);
  --site-footer-cta-pad-end:     var(--space-2);
  --site-footer-cta-gap:         var(--space-5);
  --site-footer-cta-label-size:  var(--font-size-xs);
  --site-footer-cta-orb:         var(--space-10);
  --site-footer-cta-orb-bg:      var(--color-ink);
  --site-footer-cta-orb-fg:      var(--color-bronze-hi);
  --site-footer-cta-glow:        var(--shadow-accent-glow);
  --site-footer-cta-glow-hover:  var(--shadow-accent-glow-hover);
  --site-footer-cta-halo:        rgb(var(--rgb-bronze-hi) / var(--alpha-50));
  --site-footer-cta-halo-scale:  1.12;
  --site-footer-cta-halo-duration: 3.2s;
  /* Secondary: a bronze outline instead of a grey one. */
  --site-footer-cta2-fg:         var(--color-text-accent);
  --site-footer-cta2-border:     var(--color-border-accent-strong);
  --site-footer-cta2-bg-hover:   rgb(var(--rgb-bronze-hi) / var(--alpha-10));
  --site-footer-cta2-orb-bg:     var(--gradient-accent-d);
  --site-footer-cta2-orb-fg:     var(--color-ink);
  /* The wordmark behind everything. Its visible band is reserved as bottom
     padding so the fine print never sits on the densest part of it. */
  --site-footer-mark-size:     var(--font-size-fluid-colossal-vw);
  --site-footer-mark-tracking: var(--tracking-tight);
  --site-footer-mark-fill:     var(--gradient-ghost-type);
  --site-footer-mark-bleed:    var(--translate-bleed-md);
  --site-footer-mark-travel:   var(--translate-parallax-lg);
  --site-footer-mark-reveal:   calc(var(--site-footer-mark-size) * var(--ratio-mark-reveal));
  /* Middle band: identity on the left, the link index on the right.
     Links are set as display serif, not small sans - a row of little grey
     words was what made the band read as ordinary. */
  --site-footer-tagline-size:  var(--font-size-display-sm);
  /* Phones set the index a step down: two columns at the h3 minimum left
     "Manufacturing" wider than its column at 320. */
  --site-footer-index-size-sm: var(--font-size-lede);
  --site-footer-index-size:    var(--font-size-h3);
  --site-footer-index-num-size: var(--font-size-3xs);
  --site-footer-index-gap:     var(--space-1);
  --site-footer-index-col-gap: var(--space-8);
  --site-footer-band-gap:      var(--space-16);
  --site-footer-roll-duration: var(--duration-base);

  /* ── Slab card ── */
  --card-radius:       var(--radius-none);
  --card-media-ratio:  2 / 3;
  --card-pad:          var(--space-4);
  --card-bg:           var(--color-surface-card);
  --card-border:       var(--color-border-hairline);
  --card-border-hover: var(--color-border-accent);
  --card-lift:         -0.25rem;

  /* ── Filters ── */
  --filter-chip-pad-block:  var(--space-2);
  --filter-chip-pad-inline: var(--space-4);
  --filter-chip-gap:        var(--space-2);
  --filter-group-gap:       var(--space-6);
  --filter-drawer-width:    min(22rem, 88vw);
  /* Closed drawers fade and rise this far — the offset is VERTICAL on
     purpose. A drawer parked off the right edge still extends the document
     (a fixed element resolves against the viewport, so overflow-x: clip on
     an ancestor does not contain it) and creates horizontal scroll. */
  --drawer-closed-offset:   var(--space-4);
  --filter-bar-height:      var(--tap-target-min);

  /* ── Form fields ── */
  --field-height:              var(--tap-target-min);
  --field-pad-inline:          var(--space-3);
  --field-bg:                  var(--color-surface-sunken);
  --field-border:              var(--color-border-subtle);
  --field-radius:              var(--radius-none);
  --field-font-size:           var(--font-size-lg);
  --field-textarea-min-height: var(--space-60);
  --field-gap:                 var(--space-5);
  --field-label-gap:           var(--space-2);
  --focus-ring-width:          2px;
  --focus-ring-offset:         2px;

  /* ── Spec table ── */
  --spec-row-pad:     var(--space-3);
  --spec-label-width: 40%;

  /* Slab detail page. Image 7 : info 5 from --breakpoint-md, the info
     column sticking under the fixed header while the slab scrolls. */
  --catalog-detail-gap:        var(--space-8);
  --catalog-detail-gap-lg:     var(--space-16);
  --catalog-detail-sticky-top: calc(var(--site-header-height-lg) + var(--space-8));
  --catalog-detail-crumbs-gap: var(--space-8);
  --catalog-detail-block-gap:  var(--space-10);
  --catalog-detail-cta-height: var(--space-14);

  /* ── Blog (home.php, single.php) ── */
  --post-card-media-ratio: 3 / 2;
  --post-hero-media-ratio: 16 / 9;
  --post-grid-gap:         var(--layout-grid-gap);
  --post-grid-gap-lg:      var(--layout-grid-gap-lg);
  --post-block-gap:        var(--space-10);
  --post-crumbs-gap:       var(--space-8);

  /* ── Facts strip (About) ── */
  /* Narrow enough that four facts still fit inside the container at
     --breakpoint-lg, wide enough that three do not stretch to absurdity. */
  --stat-col-min: var(--space-60);

  /* ── WordPress admin bar (heights fixed by core) ── */
  --admin-bar-height:    32px;
  --admin-bar-height-sm: 46px;

  /* ── CTA ── */
  --cta-gap:         var(--space-4);
  --cta-offset-top:  var(--space-10);
  --cta-pad-block:   var(--space-2);
  --cta-pad-right:   var(--space-2);
  --cta-pad-left:    var(--space-7);
  --cta-orb-size:    var(--space-10);
  --cta-foot-offset: var(--space-12);

  /* ── Production line (css/line.css, js/line.js) ── */
  --line-count:         6;
  --line-caption-width: 22rem;
  --line-rail-gap:      var(--space-3);
  --line-caption-fade:  var(--duration-base);
  --line-machine-steel:  rgb(var(--rgb-machine-steel));
  --line-machine-yellow: rgb(var(--rgb-machine-yellow));
  --line-machine-cyan:   rgb(var(--rgb-machine-cyan));
  --line-machine-magenta: rgb(var(--rgb-machine-magenta));
  --line-machine-red:    rgb(var(--rgb-machine-red));
  --line-machine-blue:   rgb(var(--rgb-machine-blue));
  --line-machine-wood:   rgb(var(--rgb-machine-wood));
  --line-slab-color:     rgb(var(--rgb-slab-porcelain));
  --line-kiln-heat:      rgb(var(--rgb-kiln-heat));
  --line-roller-color:   rgb(var(--rgb-roller-alumina));
  /* The captions are absolutely positioned once pinned, so they no longer
     give the well any height. Reserved here, sized for the longest of the
     six bodies at the narrowest supported width. */
  --line-captions-min:  11rem;

  /* ── Contact ── */
  --contact-route-actions-gap: var(--space-3);
  --contact-route-actions-pad: var(--space-6);
  --contact-detail-gap:        var(--space-1);
  --direct-line-pad:           var(--space-6);
  --direct-line-block-gap:     var(--space-16);
  --direct-line-icon-box:      3rem;
  --direct-line-icon:          1.25rem;
  --direct-line-number-size:   var(--font-size-h2);
  --direct-line-label-size:    var(--font-size-xs);
  --direct-line-label-size-lg: var(--font-size-md);
  --direct-line-label-color:   var(--color-text-muted);
  --direct-line-value-size:    clamp(var(--font-size-fluid-lede-min), var(--font-size-fluid-lede-vw), var(--font-size-fluid-lede-max));
  --direct-line-cols:          minmax(0, 1fr) minmax(0, 28rem);
  --ratio-square:              1 / 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT THEME — semantic overrides
   Same token names as the dark palette in :root above; every consumer in
   css/base.css, css/pages.css, css/home-landing.css and the component
   layer already reads these names, so nothing outside this file changes.

   Deliberately scoped to :root, not to body.site-body/.home-landing: a
   component-layer token like --btn-bg (":root { --btn-bg: var(--color-
   surface-glass-strong) }") resolves its var() once, at :root, and that
   already-resolved value is what inherits down — redefining
   --color-surface-glass-strong further down the tree does NOT reach a
   --btn-bg that was declared at :root, because inheritance passes the
   computed value, not the token expression, for re-resolution at each
   descendant. Every --btn, --card and --field token in Layer 3 is this
   shape, so the override has to live where they're declared. The
   film's own chrome opts back OUT of this block instead — see
   css/style.css's own light-theme section, right after this file's
   component layer, for why and how. The site menu overlay (css/menu.css)
   reads none of these tokens either way. See
   docs/superpowers/specs/2026-09-08-light-theme-design.md. */

:root[data-theme="light"] {

  /* ── Surfaces ── */
  --color-bg:                   rgb(var(--rgb-paper));
  --color-surface-glass:        rgb(var(--rgb-paper) / var(--alpha-30));
  --color-surface-glass-strong: rgb(var(--rgb-paper) / var(--alpha-50));
  --color-surface-glass-hover:  rgb(var(--rgb-paper-raised) / var(--alpha-70));
  --color-surface-meter:        rgb(var(--rgb-graphite) / var(--alpha-15));
  --color-surface-raised:       rgb(var(--rgb-paper-raised));
  --color-surface-card:         rgb(var(--rgb-paper-raised));
  --color-surface-sunken:       rgb(var(--rgb-paper-sunken));

  /* ── Text ── */
  --color-text:         rgb(var(--rgb-graphite));
  --color-text-strong:  rgb(var(--rgb-ink));
  --color-text-soft:    rgb(var(--rgb-graphite) / var(--alpha-85));
  --color-text-body:    rgb(var(--rgb-graphite) / var(--alpha-80));
  --color-text-muted:   rgb(var(--rgb-slate));
  --color-text-faint:   rgb(var(--rgb-slate) / var(--alpha-70));
  --color-text-meta:    rgb(var(--rgb-slate));
  --color-text-accent:  var(--color-bronze-deep);
  --gradient-ghost-type: linear-gradient(180deg, rgb(var(--rgb-ink) / var(--alpha-15)), rgb(var(--rgb-ink) / var(--alpha-00)) 90%);

  /* ── Lines & borders ── */
  --color-border-subtle:        rgb(var(--rgb-ink) / var(--alpha-15));
  --color-border-rail:          rgb(var(--rgb-ink) / var(--alpha-20));
  --color-border-accent:        rgb(var(--rgb-bronze-deep) / var(--alpha-40));
  --color-border-accent-strong: rgb(var(--rgb-bronze-deep) / var(--alpha-55));
  --color-border-accent-hover:  rgb(var(--rgb-bronze-deep) / var(--alpha-70));
  --color-border-hairline:      rgb(var(--rgb-ink) / var(--alpha-10));

  /* ── Interaction ── */
  --color-selection-bg:    rgb(var(--rgb-bronze-deep) / var(--alpha-25));
  --color-selection-text:  rgb(var(--rgb-ink));
  --color-scrollbar-thumb: rgb(var(--rgb-bronze-deep) / var(--alpha-45));

  --color-focus-ring: var(--color-bronze-deep);

  /* ── Component-layer overrides ──
     These read primitives directly instead of routing through the semantic
     layer above, so the light theme has to restate them here. */
  --site-header-bg: rgb(var(--rgb-paper) / var(--alpha-00));
  --filter-bar-bg:  rgb(var(--rgb-paper) / var(--alpha-90));

  /* The dealers globe: a dark sphere on paper reads as a hole in the page. */
  --home-globe-base:       var(--rgb-paper-raised);
  --home-globe-halo:       var(--rgb-paper-sunken);
  --home-globe-marker:     var(--rgb-bronze-deep);
  --home-globe-dark:       0;
  --home-globe-brightness: 1.2;

  /* The dealers CTA is ink on paper here (--btn-accent-bg above), so its orb
     carries the bronze instead. */
  --home-dealers-cta-orb-bg:     var(--gradient-accent-d);
  --home-dealers-cta-orb-fg:     rgb(var(--rgb-paper));
  --home-dealers-halo:           rgb(var(--rgb-bronze-deep) / var(--alpha-45));

  /* The overlay follows the theme rather than staying pinned dark. Its
     ground and the veil over its hover images both have to come with the
     text, or light-theme ink type lands on a 95%-ink panel. */
  --menu-bg: rgb(var(--rgb-paper) / var(--alpha-95));
  --menu-media-scrim: linear-gradient(
    180deg,
    rgb(var(--rgb-paper) / var(--alpha-80)) 0%,
    rgb(var(--rgb-paper) / var(--alpha-65)) 30%,
    rgb(var(--rgb-paper) / var(--alpha-65)) 70%,
    rgb(var(--rgb-paper) / var(--alpha-80)) 100%
  );

  /* The text shadows are a dark halo, mixed to hold cream type against a
     bright film frame. Behind ink type on paper the same halo is a grey
     smudge, so they carry paper here and do the same job in reverse. */
  --shadow-text-sm:      0 1px 10px rgb(var(--rgb-paper) / var(--alpha-80));
  --shadow-text-onimage: 0 0 2px rgb(var(--rgb-paper) / var(--alpha-90)),
                         0 1px 12px rgb(var(--rgb-paper) / var(--alpha-70));
  --shadow-text-body:    0 1px 24px rgb(var(--rgb-paper) / var(--alpha-90));
  --shadow-text-display: 0 2px 40px rgb(var(--rgb-paper) / var(--alpha-80));
  --shadow-accent-glow:       0 0 0 var(--border-width-hairline) rgb(var(--rgb-ink) / var(--alpha-10)),
                              0 12px 36px -12px rgb(var(--rgb-ink) / var(--alpha-45));
  --shadow-accent-glow-hover: 0 0 0 var(--border-width-hairline) rgb(var(--rgb-ink) / var(--alpha-20)),
                              0 16px 48px -10px rgb(var(--rgb-ink) / var(--alpha-55));

  /* The primary control goes solid ink, not bronze. --gradient-accent-d is
     mixed for a near-black ground, where bronze reads as lit metal; laid on
     paper the same gradient is a slab of mustard, and it was the loudest
     thing on the page. Ink on stone carries the weight instead, and bronze
     is left to do what it does well here - rules, eyebrows, current state,
     hover borders. */
  --btn-accent-bg:           var(--color-ink);
  --btn-accent-bg-hover:     rgb(var(--rgb-ink) / var(--alpha-85));
  --btn-accent-fg:           rgb(var(--rgb-paper));
  --btn-accent-border-hover: var(--color-ink);

  /* A paper veil, not an ink one: the names under it are ink in this theme.
     Kept opaque enough that a dark slab photograph cannot pull them under. */
  --home-collection-scrim: linear-gradient(
    180deg,
    rgb(var(--rgb-paper) / var(--alpha-85)) 0%,
    rgb(var(--rgb-paper) / var(--alpha-75)) 30%,
    rgb(var(--rgb-paper) / var(--alpha-75)) 70%,
    rgb(var(--rgb-paper) / var(--alpha-85)) 100%
  );

  /* The photograph is the product; a hairline box around it is packaging.
     The caption sits on the page ground instead of in a tinted panel. */
  --card-bg:     rgb(var(--rgb-paper) / var(--alpha-00));
  --card-border: rgb(var(--rgb-ink) / var(--alpha-00));

  /* Journey: bronze-hi is mixed for ink; on paper the reached node and its
     line take the deep bronze. */
  --journey-node-reached:  var(--color-bronze-deep);

  /* Footer CTAs: the primary pill is ink on paper here (--btn-accent-bg),
     so its orb turns bronze, as the home dealers CTA's does. */
  --site-footer-cta-orb-bg:     var(--gradient-accent-d);
  --site-footer-cta-orb-fg:     rgb(var(--rgb-paper));
  --site-footer-cta-halo:       rgb(var(--rgb-bronze-deep) / var(--alpha-45));
  --site-footer-cta2-bg-hover:  rgb(var(--rgb-bronze-deep) / var(--alpha-10));
  --site-footer-cta2-orb-fg:    rgb(var(--rgb-paper));

  /* Format atlas: the dark theme's cream wash vanishes on paper. */
  --format-atlas-fill:       rgb(var(--rgb-ink) / var(--alpha-05));
  --format-atlas-fill-hover: rgb(var(--rgb-bronze-deep) / var(--alpha-20));
}
