/*
  Brand language tokens. Version 1.1.0. Status: production v1.1.0, owner yes in chat 2026-10-30 00:08 (motion components); v1.0.0 owner approved in chat 2026-10-29 15:07.
  GENERATED from tokens.json by brand-tool/_build/build.py. Do not edit by hand.
  Brand name: {{COMPANY_NAME}}. No private values in this file.
  Themes: dark and light. Default follows the device (prefers-color-scheme).
  Manual override: data-theme="light" | "dark" on <html> (or on any element for a local scope).
*/
:root {
  color-scheme: dark light;
  /* Core palette */
  --brand-broken-white: #F3EDE0;
  --brand-baja-sand: #EDDDBF;
  --brand-racing-red: #D7261E;
  --brand-rally-orange: #F26B1D;
  --brand-amber: #FDB515;
  --brand-ink: #1A1714;
  --brand-night: #121110;

  /* Brand scales 50 to 900 */
  --red-50: #FFEEE4;
  --red-100: #FEDDD1;
  --red-200: #FABBAC;
  --red-300: #F2907F;
  --red-400: #E66352;
  --red-500: #D7261E;
  --red-600: #BA291F;
  --red-700: #962A1F;
  --red-800: #70271E;
  --red-900: #4B221B;
  --orange-50: #FFF1E6;
  --orange-100: #FFE5D4;
  --orange-200: #FFCDB2;
  --orange-300: #FDAE87;
  --orange-400: #F98E5A;
  --orange-500: #F26B1D;
  --orange-600: #D05F21;
  --orange-700: #A65023;
  --orange-800: #7A3F21;
  --orange-900: #502E1D;
  --amber-50: #FFF6E7;
  --amber-100: #FFF0D8;
  --amber-200: #FFE4B8;
  --amber-300: #FFD590;
  --amber-400: #FEC562;
  --amber-500: #FDB515;
  --amber-600: #D99C20;
  --amber-700: #AD7E25;
  --amber-800: #7D5D25;
  --amber-900: #513E20;
  --sand-50: #FEF9EF;
  --sand-100: #FCF6EB;
  --sand-200: #F9F1E1;
  --sand-300: #F5EAD6;
  --sand-400: #F1E4CA;
  --sand-500: #EDDDBF;
  --sand-600: #CCBEA4;
  --sand-700: #A29783;
  --sand-800: #766E5F;
  --sand-900: #4D473E;

  /* Warm neutrals */
  --neutral-0: #FFFDF8;
  --neutral-50: #FBF8F1;
  --neutral-100: #F3EDE0;
  --neutral-200: #E4DCCC;
  --neutral-300: #D3C3A4;
  --neutral-400: #A89E8F;
  --neutral-500: #857D71;
  --neutral-600: #5A5248;
  --neutral-700: #3A3631;
  --neutral-800: #25231F;
  --neutral-850: #1B1A18;
  --neutral-900: #121110;
  --neutral-950: #0B0A09;

  /* Sunset Extended ramp */
  --ext-flash-yellow: #FFE15A;
  --ext-amber: #FDB515;
  --ext-rally-orange: #F26B1D;
  --ext-racing-red: #D7261E;
  --ext-hot-pink: #F0336F;
  --ext-magenta: #C8177F;
  --ext-orchid: #9A1E8C;
  --ext-violet: #62218A;
  --ext-dusk-purple: #3A1C68;
  --ext-night-indigo: #1A1440;
  --ext-ramp: linear-gradient(90deg, #FFE15A 0%, #FDB515 11%, #F26B1D 22%, #D7261E 33%, #F0336F 44%, #C8177F 56%, #9A1E8C 67%, #62218A 78%, #3A1C68 89%, #1A1440 100%);
  --ext-proof-note: "Hot Pink, Magenta, Orchid, Violet and Dusk Purple are at or outside the CMYK gamut edge. They print duller. Make a press proof before any print run. For screen print and textiles use spot colours (OPEN item 14).";

  /* Semantic colours (themed) */

  /* Status colours (themed) */

  /* Gradients and fades */
  --fade-sunset: linear-gradient(180deg, #FDB515 0%, #F26B1D 50%, #D7261E 100%);
  --fade-sun-sky: linear-gradient(180deg, #FFE4B8 0%, #FDB515 22%, #F26B1D 52%, #D7261E 78%, #70271E 100%);
  --fade-poster: linear-gradient(180deg, #EDDDBF 0%, #EDDDBF 38%, #FFD590 62%, #F98E5A 84%, #E66352 100%);
  --fade-dusk: linear-gradient(180deg, #D7261E 0%, #962A1F 40%, #4B221B 75%, #121110 100%);
  --fade-flood: linear-gradient(135deg, #D7261E 0%, #F26B1D 50%, #FDB515 100%);
  --fade-heat: linear-gradient(180deg, #F26B1D 0%, #D7261E 100%);
  --fade-sand: linear-gradient(180deg, #F3EDE0 0%, #EDDDBF 100%);
  --fade-sun-disc: var(--sun-day);
  --fade-image-bottom: linear-gradient(180deg, rgba(26, 23, 20, 0) 40%, rgba(26, 23, 20, 0.72) 100%);
  --fade-image-left: linear-gradient(90deg, rgba(26, 23, 20, 0.62) 0%, rgba(26, 23, 20, 0) 60%);
  --fade-image-warm: linear-gradient(180deg, rgba(253, 181, 21, 0.18) 0%, rgba(215, 38, 30, 0.24) 100%);
  --fade-image-sand: linear-gradient(90deg, #EDDDBF 0%, #EDDDBF 30%, rgba(237, 221, 191, 0) 70%);

  /* Gradient strength and UI gradients */
  --gradient-strength-soft: 0.45;
  --gradient-strength-default: 0.7;
  --gradient-strength-bold: 1;
  --gradient-action-size: 160% 100%;
  --gradient-action-pos: 0% 50%;
  --gradient-action-pos-hover: 100% 50%;
  --fade-sun-sky-soft: linear-gradient(180deg, #FFF0D6 0%, #FFE0A8 30%, #FCC08A 64%, #F2A08A 100%);
  --fade-sunset-soft: linear-gradient(180deg, #FED68A 0%, #FBB27A 55%, #F2907C 100%);
  --fade-dusk-soft: linear-gradient(180deg, #5A2420 0%, #3A1F1B 40%, #221A17 75%, #121110 100%);
  --fade-hero: linear-gradient(180deg, #EDDDBF 0%, #EDDDBF 42%, #FFE3B0 66%, #FBC39A 86%, #F2A592 100%);

  /* Font families */
  --font-poster: "Bebas Neue", "Bebas Neue Pro", "Arial Narrow", sans-serif;
  --font-race: "Saira", "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --font-display: var(--font-race);
  --font-label: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body: "Inter", "Akzidenz-Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-engrave: "Cinzel", "Trajan Pro", serif;
  --font-race-stretch: 87.5%;
  --font-display-weight: 800;
  --font-display-style: italic;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* Type scale (ratio 1.25, base 16 px) */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.562rem;
  --text-2xl: 1.938rem;
  --text-3xl: 2.438rem;
  --text-4xl: 3.062rem;
  --text-5xl: 3.812rem;
  --text-6xl: 4.75rem;
  --text-7xl: 5.938rem;
  --text-8xl: 7.438rem;
  --text-9xl: 9.312rem;
  --text-10xl: 11.62rem;
  --leading-poster: 0.84;
  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-body: 1.5;
  --leading-relaxed: 1.65;
  --tracking-poster: 0.005em;
  --tracking-display: 0.01em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-label: 0.12em;
  --tracking-eyebrow: 0.18em;
  --tracking-mono: 0.06em;
  --tracking-spec: 0.12em;
  --text-dash-body: 0.8125rem;
  --text-dash-kpi: 2.5rem;

  /* Fluid sizes (390 to 1440 px viewport) */
  --text-fluid-hero: clamp(4.5rem, 1.529rem + 12.19vw, 12.5rem);
  --text-fluid-poster: clamp(4rem, 1.957rem + 8.381vw, 9.5rem);
  --text-fluid-h1: clamp(3.25rem, 2.043rem + 4.952vw, 6.5rem);
  --text-fluid-h2: clamp(2.5rem, 1.757rem + 3.048vw, 4.5rem);
  --text-fluid-h3: clamp(1.75rem, 1.379rem + 1.524vw, 2.75rem);
  --text-fluid-accent: clamp(1.625rem, 1.114rem + 2.095vw, 3rem);
  --text-fluid-lede: clamp(1.125rem, 1.032rem + 0.381vw, 1.375rem);
  --text-fluid-kpi: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);

  /* Spacing (4 px base) */
  --space-0: 0;
  --space-0-5: 2px;
  --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;
  --space-11: 160px;
  --space-12: 192px;
  --space-section: clamp(64px, 4rem + 4vw, 128px);
  --space-gutter: clamp(16px, 0.75rem + 1vw, 24px);
  --space-page: clamp(20px, 0.5rem + 3vw, 56px);

  /* Sizing */
  --size-icon-xs: 12px;
  --size-icon-sm: 16px;
  --size-icon-md: 20px;
  --size-icon-lg: 24px;
  --size-icon-xl: 32px;
  --size-control-sm: 32px;
  --size-control-md: 40px;
  --size-control-lg: 48px;
  --size-control-xl: 56px;
  --size-touch-min: 44px;
  --size-avatar-xs: 24px;
  --size-avatar-sm: 32px;
  --size-avatar-md: 40px;
  --size-avatar-lg: 56px;
  --size-avatar-xl: 96px;
  --size-plate-sm: 72px;
  --size-plate-md: 112px;
  --size-plate-lg: 160px;
  --size-nav-height: 64px;
  --size-measure: 68ch;
  --size-measure-narrow: 52ch;
  --size-container-sm: 640px;
  --size-container-md: 960px;
  --size-container-lg: 1280px;
  --size-container-xl: 1440px;
  --container-max: 1280px;

  /* Grid and breakpoints */
  --bp-xs: 390px;
  --bp-sm: 600px;
  --bp-md: 900px;
  --bp-lg: 1200px;
  --bp-xl: 1440px;
  --grid-columns: 12;
  --grid-columns-md: 8;
  --grid-columns-sm: 4;
  --grid-gutter: 24px;
  --grid-gutter-sm: 16px;
  --page-margin: 24px;
  --dash-grid-gutter: 16px;
  --grid-hairline-fine: 10px;
  --grid-hairline-major: 50px;

  /* Radii */
  --radius-0: 0;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;
  --radius-button: var(--radius-md);
  --radius-input: var(--radius-md);
  --radius-card: var(--radius-lg);
  --radius-panel: 20px;
  --radius-widget: 28px;
  --radius-hero: var(--radius-xl);
  --radius-plate: 8px;
  --radius-chip: var(--radius-pill);

  /* Borders and hairlines */
  --border-hairline: 0.5px;
  --border-thin: 1px;
  --border-medium: 1.5px;
  --border-thick: 2px;
  --border-heavy: 3px;
  --focus-ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-focus);
  --focus-offset: 2px;
  --accent-hairline: 0.5px;

  /* Elevation and shadows (themed) */

  /* Z-index */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 300;
  --z-drawer: 400;
  --z-overlay: 500;
  --z-modal: 600;
  --z-popover: 700;
  --z-toast: 800;
  --z-tooltip: 900;

  /* Motion */
  --duration-instant: 0ms;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-moderate: 320ms;
  --duration-slow: 480ms;
  --duration-slower: 720ms;
  --duration-poster: 1200ms;
  --ease-race: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-linear: linear;
  --press-scale: 0.97;
  --press-y: 1px;
  --hover-lift: -2px;
  --motion-distance: 12px;

  /* Motion loops and timing */
  --motion-loop-grain: 720ms;
  --motion-grain-steps: 8;
  --motion-loop-beam: 6000ms;
  --motion-loop-scan: 8400ms;
  --motion-loop-lap: 1700ms;
  --motion-loop-morph-hold: 1800ms;
  --motion-loop-morph-change: 1200ms;
  --motion-loop-cut: 4000ms;
  --motion-marquee-speed: 70;
  --motion-marquee-scroll: 0.45;
  --motion-marquee-lean-max: 14deg;
  --motion-orbit-speed-outer: 0.2;
  --motion-orbit-speed-inner: -0.3;
  --motion-orbit-hover-slow: 0.18;
  --motion-flap-step: 70ms;
  --motion-flap-step-add: 6ms;
  --motion-flap-last: 260ms;
  --motion-flap-radius: 38px;
  --motion-beam-rate-hot: 2.8;
  --motion-still-time: 8;

  /* Motion springs */
  --motion-spring-tilt: 150 13;
  --motion-spring-magnetic: 210 15;
  --motion-spring-magnetic-label: 320 20;
  --motion-spring-light: 90 16;
  --motion-spring-needle: 60 7;
  --motion-spring-odometer: 42 13;
  --motion-spring-camera: 40 12;
  --motion-spring-rate: 30 11;
  --motion-spring-slow: 40 13;
  --motion-spring-chroma: 60 14;

  /* Motion physics and render limits */
  --motion-magnetic-radius: 140px;
  --motion-magnetic-pull: 0.36 0.44;
  --motion-magnetic-label-pull: 0.16 0.2;
  --motion-magnetic-squash: 0.12;
  --motion-tilt-max: 12deg;
  --motion-tilt-drag-max: 38deg;
  --motion-tilt-throw: 0.12;
  --motion-tilt-still: 4deg -8deg;
  --motion-light-falloff: 220px;
  --motion-dust-density: 2000;
  --motion-dust-max: 520;
  --motion-dust-whirl: 150px;
  --motion-dpr-cap: 1.5;
  --motion-dpr-cap-mobile: 1;
  --motion-render-scale-dust: 0.75;
  --motion-render-scale-mobile: 0.6;
  --motion-dither: 2px;
  --motion-grid-horizon: 0.34;
  --motion-grid-sun: 0 0.53 0.27;
  --motion-dust-sun: 0 0.24 0.43;
  --motion-lazy-margin: 200px;
  --motion-pause-margin: 80px;

  /* Motion theme aliases */

  /* Opacity */
  --opacity-0: 0;
  --opacity-5: 0.05;
  --opacity-10: 0.10;
  --opacity-14: 0.14;
  --opacity-20: 0.20;
  --opacity-35: 0.35;
  --opacity-42: 0.42;
  --opacity-60: 0.60;
  --opacity-72: 0.72;
  --opacity-85: 0.85;
  --opacity-100: 1;
  --opacity-disabled: 0.42;
  --opacity-hover: 0.08;
  --opacity-pressed: 0.14;

  /* Glass system (themed) */
  --glass-blur: 16px;
  --glass-blur-subtle: 8px;
  --glass-blur-strong: 24px;
  --glass-blur-image: 18px;
  --glass-saturate: 1.2;
  --glass-saturate-subtle: 1.1;
  --glass-saturate-strong: 1.3;
  --glass-saturate-image: 1.25;
  --glass-backdrop: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  --glass-noise-opacity: 0.06;
  --glass-radius: var(--radius-panel);

  /* Stripes */
  --stripe-angle: 30deg;
  --stripe-angle-a: 20deg;
  --stripe-angle-c: 12deg;
  --stripe-gradient-angle: 150deg;
  --stripe-unit: 8px;
  --stripe-red-ratio: 8;
  --stripe-pin-ratio: 0.6;
  --stripe-triple-bar: 34px;
  --stripe-triple-gap: 10px;
  --stripe-min-band-px: 12px;
  --stripe-min-line-px: 2px;
  --stripe-accent-height: 6px;
  --stripe-accent: linear-gradient(to bottom, #D7261E 0 33.333%, #F26B1D 33.333% 66.666%, #FDB515 66.666% 100%);
  --stripe-band: linear-gradient(150deg, transparent 0 52%, #FDB515 52% 53.2%, transparent 53.2% 54.4%, #F26B1D 54.4% 55.6%, transparent 55.6% 56.8%, #D7261E 56.8% 72.8%, transparent 72.8% 74%, #F26B1D 74% 75.2%, transparent 75.2% 76.4%, #FDB515 76.4% 77.6%, transparent 77.6%);
  --stripe-triple: linear-gradient(150deg, transparent 0 46%, #D7261E 46% 54%, transparent 54% 56%, #F26B1D 56% 64%, transparent 64% 66%, #FDB515 66% 74%, transparent 74%);
  --stripe-tab-clip: polygon(0 0, 100% 0, calc(100% - 0.577 * var(--tab-h, 56px)) 100%, 0 100%);

  /* Sun */
  --sun-fill: var(--sun-gradient);
  --sun-fill-flat: #FDB515;
  --sun-slats: 5;
  --sun-slat-start: 0.52;
  --sun-slat-gap: 0.025;
  --sun-slat-bar: 0.07;
  --sun-horizon: 0.78;
  --sun-size-sm: 48px;
  --sun-size-md: 120px;
  --sun-size-lg: 320px;
  --sun-size-hero: min(42vw, 560px);

  /* Theme suns (day and night) */
  --sun-day: linear-gradient(180deg, #FFE15A 0%, #FDB515 30%, #F26B1D 64%, #D7261E 100%);
  --sun-night: linear-gradient(180deg, #FFE15A 0%, #FDB515 18%, #F0336F 46%, #C8177F 72%, #9A1E8C 100%);
  --sun-swap-duration: var(--duration-slow);

  /* Motifs v1 (approved masters) */
  --stripe-01-angle: 20deg;
  --stripe-01-unit: 30px;
  --stripe-01-taper: 0.06;
  --stripe-05-angle: 18deg;
  --stripe-05-strips: 8;
  --stripe-05-strip: 20px;
  --stripe-05-solid: 500px;
  --stripe-05-spread: 2.6;
  --stripe-05-thin: 0.3;
  --stripe-12-arcs: 7;
  --stripe-12-band: 92px;
  --stripe-12-step: 0.86;
  --stripe-12-gap: 8px;
  --stripe-12-radius: 760px;
  --sun-06-unit: 10px;
  --sun-06-angle: 30deg;
  --sun-06-slip: 18px;
  --sun-10-cuts: 7;
  --sun-10-start: 0.52;
  --sun-10-gap: 4px;
  --sun-10-gap-step: 1.35;
  --sun-10-bar: 30px;
  --sun-10-bar-step: 0.78;
  --sun-11-radius: 270px;
  --sun-11-cut: 0.74;
  --lockup-01: "assets/motifs/v1/lockup-01.svg";
  --lockup-02: "assets/motifs/v1/lockup-02.svg";
  --lockup-05: "assets/motifs/v1/lockup-05.svg";
  --lockup-safe: 10mm;

  /* Detail accents */
  --accent-budget: 10%;
  --accent-grid-fine: 10px;
  --accent-grid-major: 50px;
  --accent-label-size: 9.5px;
  --accent-label-tracking: 0.12em;
  --accent-stamp-color: #D7261E;
  --accent-stamp-opacity: 0.85;
  --accent-stamp-tilt: -6deg;
  --accent-seal-color: #D7261E;
  --accent-chart-line: var(--color-chart-grid);
  --accent-cartouche-radius: 14px;
  --accent-dimension-stroke: 0.8px;
  --accent-callout-marker: 20px;
  --accent-destijl-line: 6px;
  --texture-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-opacity: 0.10;

  /* Grain and halftone */
  --grain-fine-frequency: 1.25;
  --grain-fine-octaves: 2;
  --grain-fine-holes: -16 11.6;
  --grain-medium-frequency: 0.9;
  --grain-medium-octaves: 2;
  --grain-medium-holes: -13 9.1;
  --grain-heavy-frequency: 0.62;
  --grain-heavy-octaves: 3;
  --grain-heavy-holes: -10 6.8;
  --grain-speck-light-alpha: 0.5;
  --halftone-angle: 45deg;
  --halftone-pitch-fine: 6px;
  --halftone-pitch-medium: 10px;
  --halftone-pitch-coarse: 14px;
  --halftone-dot-max: 0.76;
  --halftone-gamma: 1.25;
  --halftone-tint-50: 0.38;

  /* Texture strengths */
  --texture-crackle-light-frequency: 0.020;
  --texture-crackle-medium-frequency: 0.024;
  --texture-crackle-strong-frequency: 0.030;
  --texture-crackle-light-octaves: 3;
  --texture-crackle-medium-octaves: 3;
  --texture-crackle-strong-octaves: 4;
  --texture-crackle-light-width: 12;
  --texture-crackle-medium-width: 8;
  --texture-crackle-strong-width: 5.5;
  --texture-worn-light-alpha: 0.08;
  --texture-worn-medium-alpha: 0.13;
  --texture-worn-strong-alpha: 0.20;
  --texture-fold-light-alpha: 0.10;
  --texture-fold-medium-alpha: 0.18;
  --texture-fold-strong-alpha: 0.28;
  --texture-fold-light-width: 10px;
  --texture-fold-medium-width: 14px;
  --texture-fold-strong-width: 18px;
  --texture-misreg-light-offset: 3px 2px;
  --texture-misreg-medium-offset: 6px 4px;
  --texture-misreg-strong-offset: 10px 7px;
  --texture-vhs-light-line: 3px;
  --texture-vhs-medium-line: 3px;
  --texture-vhs-strong-line: 4px;
  --texture-vhs-light-alpha: 0.12;
  --texture-vhs-medium-alpha: 0.20;
  --texture-vhs-strong-alpha: 0.30;
  --texture-vhs-light-shift: 8;
  --texture-vhs-medium-shift: 18;
  --texture-vhs-strong-shift: 34;
  --texture-vhs-light-split: 2;
  --texture-vhs-medium-split: 3;
  --texture-vhs-strong-split: 5;
  --texture-letterpress-light-rough: 2;
  --texture-letterpress-medium-rough: 3.5;
  --texture-letterpress-strong-rough: 5;
  --texture-letterpress-light-spread: 0.4;
  --texture-letterpress-medium-spread: 0.7;
  --texture-letterpress-strong-spread: 1.0;
  --texture-letterpress-light-void: 0.30;
  --texture-letterpress-medium-void: 0.42;
  --texture-letterpress-strong-void: 0.55;
  --texture-strength: medium;
  --texture-max-per-item: 2;
}

/* Theme: dark values are the base. */
:root {
  --color-bg: #121110;
  --color-bg-alt: #0B0A09;
  --color-surface: #1B1A18;
  --color-surface-2: #25231F;
  --color-surface-3: #2F2C27;
  --color-border: #3A3631;
  --color-border-strong: #5A5248;
  --color-hairline: rgba(243, 237, 224, 0.12);
  --color-text: #F3EDE0;
  --color-text-muted: #B3AA9C;
  --color-text-faint: #857D71;
  --color-text-inverse: #1A1714;
  --color-heading: #F3EDE0;
  --color-accent: #FDB515;
  --color-accent-strong: #F26B1D;
  --color-link: #FDB515;
  --color-link-hover: #FEC562;
  --color-red-text: #FF6B57;
  --color-action: #BA291F;
  --color-action-hover: #D7261E;
  --color-action-active: #962A1F;
  --color-on-action: #F3EDE0;
  --color-secondary: #FDB515;
  --color-on-secondary: #1A1714;
  --color-focus: #FDB515;
  --color-selection: rgba(253, 181, 21, 0.35);
  --color-scrim: rgba(11, 10, 9, 0.66);
  --color-glow-1: rgba(215, 38, 30, 0.55);
  --color-glow-2: rgba(253, 181, 21, 0.35);
  --color-glow-3: rgba(242, 107, 29, 0.40);
  --color-skeleton: #25231F;
  --color-skeleton-shine: #3A3631;
  --color-chart-grid: rgba(243, 237, 224, 0.10);
  --color-chart-axis: #857D71;
  --color-chart-1: #FDB515;
  --color-chart-2: #F26B1D;
  --color-chart-3: #FF6B57;
  --color-chart-4: #F3EDE0;
  --color-chart-5: #857D71;
  --status-done: #3FCB7A;
  --status-open: #5AA9FF;
  --status-blocked: #FF5A4E;
  --status-waiting: #FFC24B;
  --status-bg-alpha: 0.14;
  --status-done-bg: rgba(63, 203, 122, 0.14);
  --status-open-bg: rgba(90, 169, 255, 0.14);
  --status-blocked-bg: rgba(255, 90, 78, 0.14);
  --status-waiting-bg: rgba(255, 194, 75, 0.14);
  --gradient-ui-soft: linear-gradient(135deg, #C8177F 0%, #9A1E8C 100%);
  --gradient-ui-default: linear-gradient(135deg, #F0336F 0%, #C8177F 50%, #9A1E8C 100%);
  --gradient-ui-bold: linear-gradient(135deg, #FFE15A 0%, #F0336F 45%, #62218A 100%);
  --gradient-ui: var(--gradient-ui-soft);
  --gradient-action: linear-gradient(135deg, #C8177F 0%, #B11D86 50%, #9A1E8C 100%);
  --gradient-action-solid: #B11D86;
  --color-on-gradient-action: #F3EDE0;
  --gradient-secondary: linear-gradient(135deg, #FFE15A 0%, #FFCB3F 50%, #FDB515 100%);
  --gradient-chip: linear-gradient(135deg, rgba(240, 51, 111, 0.24) 0%, rgba(154, 30, 140, 0.24) 100%);
  --gradient-bar: linear-gradient(90deg, #C8177F 0%, #F0336F 100%);
  --fade-hero-themed: linear-gradient(180deg, #1A1440 0%, #241A50 50%, #3A1C68 100%);
  --accent-hairline-color: rgba(243, 237, 224, 0.12);
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-3: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-4: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-5: 0 24px 80px rgba(0, 0, 0, 0.60);
  --shadow-glow-red: 0 8px 28px rgba(215, 38, 30, 0.45);
  --shadow-glow-amber: 0 0 24px rgba(253, 181, 21, 0.45);
  --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-plate: 0 3px 0 rgba(0, 0, 0, 0.45);
  --motion-beam-1: var(--ext-flash-yellow);
  --motion-beam-2: var(--ext-hot-pink);
  --motion-beam-3: var(--ext-magenta);
  --motion-dust-1: var(--ext-flash-yellow);
  --motion-dust-2: var(--ext-hot-pink);
  --motion-dust-3: var(--brand-broken-white);
  --motion-plate-a: var(--ext-hot-pink);
  --motion-plate-b: var(--brand-amber);
  --motion-plate-blend: screen;
  --motion-ink-blend: screen;
  --motion-grain-blend: overlay;
  --motion-scan-display: block;
  --motion-scan: 1;
  --motion-stage-sky: var(--fade-hero-themed);
  --motion-odo-bg: var(--fade-hero-themed);
  --motion-tcard-sky: var(--fade-hero-themed);
  --motion-tcard-ink: var(--brand-broken-white);
  --motion-heat-1: var(--brand-amber);
  --motion-heat-2: var(--ext-hot-pink);
  --motion-floor-line: var(--sun-rule);
  --motion-palm-opacity: 0.92;
  --glass-fill: rgba(255, 255, 255, 0.05);
  --glass-fill-subtle: rgba(255, 255, 255, 0.03);
  --glass-fill-strong: rgba(255, 255, 255, 0.10);
  --glass-fill-image: rgba(26, 23, 20, 0.32);
  --glass-border: rgba(243, 237, 224, 0.12);
  --glass-border-subtle: rgba(243, 237, 224, 0.08);
  --glass-border-strong: rgba(243, 237, 224, 0.18);
  --glass-border-image: rgba(243, 237, 224, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-fallback: rgba(27, 26, 24, 0.94);
  --glass-text: #F3EDE0;
  --glass-text-image: #F3EDE0;
  --sun-gradient: var(--sun-night);
  --sun-day-opacity: 0;
  --sun-night-opacity: 1;
  --sun-ground: #121110;
  --sun-rule: #F0336F;
  --accent-dimension-color: rgba(243, 237, 224, 0.7);
  --grain-fine-opacity: 0.08;
  --grain-medium-opacity: 0.13;
  --grain-heavy-opacity: 0.19;
}
/* Device in light mode, and no manual dark override. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --color-bg: #EDDDBF;
    --color-bg-alt: #F3EDE0;
    --color-surface: #F3EDE0;
    --color-surface-2: #FBF8F1;
    --color-surface-3: #FFFDF8;
    --color-border: #D3C3A4;
    --color-border-strong: #A89E8F;
    --color-hairline: rgba(26, 23, 20, 0.16);
    --color-text: #1A1714;
    --color-text-muted: #5A5248;
    --color-text-faint: #7A7266;
    --color-text-inverse: #F3EDE0;
    --color-heading: #1A1714;
    --color-accent: #B81F18;
    --color-accent-strong: #D7261E;
    --color-link: #B81F18;
    --color-link-hover: #962A1F;
    --color-red-text: #B81F18;
    --color-action: #BA291F;
    --color-action-hover: #962A1F;
    --color-action-active: #70271E;
    --color-on-action: #F3EDE0;
    --color-secondary: #1A1714;
    --color-on-secondary: #F3EDE0;
    --color-focus: #D7261E;
    --color-selection: rgba(215, 38, 30, 0.20);
    --color-scrim: rgba(26, 23, 20, 0.42);
    --color-glow-1: rgba(215, 38, 30, 0.38);
    --color-glow-2: rgba(253, 181, 21, 0.45);
    --color-glow-3: rgba(242, 107, 29, 0.34);
    --color-skeleton: #E4DCCC;
    --color-skeleton-shine: #F3EDE0;
    --color-chart-grid: rgba(26, 23, 20, 0.10);
    --color-chart-axis: #7A7266;
    --color-chart-1: #D7261E;
    --color-chart-2: #F26B1D;
    --color-chart-3: #AD7E25;
    --color-chart-4: #1A1714;
    --color-chart-5: #A89E8F;
    --status-done: #1A6B3C;
    --status-open: #1F5FB8;
    --status-blocked: #B3221A;
    --status-waiting: #7A5000;
    --status-bg-alpha: 0.12;
    --status-done-bg: rgba(26, 107, 60, 0.12);
    --status-open-bg: rgba(31, 95, 184, 0.12);
    --status-blocked-bg: rgba(179, 34, 26, 0.12);
    --status-waiting-bg: rgba(122, 80, 0, 0.12);
    --gradient-ui-soft: linear-gradient(135deg, #FDB515 0%, #F26B1D 100%);
    --gradient-ui-default: linear-gradient(135deg, #FDB515 0%, #F26B1D 60%, #D7261E 100%);
    --gradient-ui-bold: linear-gradient(135deg, #FFE15A 0%, #FDB515 25%, #F26B1D 60%, #D7261E 100%);
    --gradient-ui: var(--gradient-ui-soft);
    --gradient-action: linear-gradient(135deg, #FDB515 0%, #F9911A 50%, #F26B1D 100%);
    --gradient-action-solid: #F9911A;
    --color-on-gradient-action: #1A1714;
    --gradient-secondary: linear-gradient(135deg, #3A3631 0%, #25231F 50%, #1A1714 100%);
    --gradient-chip: linear-gradient(135deg, rgba(253, 181, 21, 0.34) 0%, rgba(242, 107, 29, 0.26) 100%);
    --gradient-bar: linear-gradient(90deg, #F26B1D 0%, #FDB515 100%);
    --fade-hero-themed: var(--fade-hero);
    --accent-hairline-color: rgba(26, 23, 20, 0.16);
    --shadow-0: none;
    --shadow-1: 0 1px 2px rgba(26, 23, 20, 0.10);
    --shadow-2: 0 4px 12px rgba(26, 23, 20, 0.10);
    --shadow-3: 0 8px 24px rgba(26, 23, 20, 0.12);
    --shadow-4: 0 16px 40px rgba(26, 23, 20, 0.16);
    --shadow-5: 0 24px 64px rgba(26, 23, 20, 0.22);
    --shadow-glow-red: 0 8px 24px rgba(215, 38, 30, 0.28);
    --shadow-glow-amber: 0 0 20px rgba(253, 181, 21, 0.40);
    --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.80);
    --shadow-plate: 0 3px 0 rgba(26, 23, 20, 0.18);
    --motion-beam-1: var(--brand-amber);
    --motion-beam-2: var(--brand-rally-orange);
    --motion-beam-3: var(--brand-racing-red);
    --motion-dust-1: var(--brand-amber);
    --motion-dust-2: var(--brand-rally-orange);
    --motion-dust-3: var(--brand-racing-red);
    --motion-plate-a: var(--brand-racing-red);
    --motion-plate-b: transparent;
    --motion-plate-blend: multiply;
    --motion-ink-blend: multiply;
    --motion-grain-blend: multiply;
    --motion-scan-display: none;
    --motion-scan: 0;
    --motion-stage-sky: var(--fade-hero-themed);
    --motion-odo-bg: var(--fade-sunset);
    --motion-tcard-sky: var(--fade-poster);
    --motion-tcard-ink: var(--brand-ink);
    --motion-heat-1: var(--brand-rally-orange);
    --motion-heat-2: var(--brand-racing-red);
    --motion-floor-line: var(--sun-rule);
    --motion-palm-opacity: 0.92;
    --glass-fill: rgba(255, 255, 255, 0.42);
    --glass-fill-subtle: rgba(255, 255, 255, 0.28);
    --glass-fill-strong: rgba(255, 255, 255, 0.60);
    --glass-fill-image: rgba(243, 237, 224, 0.22);
    --glass-border: rgba(255, 255, 255, 0.80);
    --glass-border-subtle: rgba(255, 255, 255, 0.55);
    --glass-border-strong: rgba(255, 255, 255, 0.90);
    --glass-border-image: rgba(255, 255, 255, 0.50);
    --glass-highlight: rgba(255, 255, 255, 0.90);
    --glass-shadow: 0 8px 24px rgba(26, 23, 20, 0.12);
    --glass-fallback: rgba(243, 237, 224, 0.94);
    --glass-text: #1A1714;
    --glass-text-image: #1A1714;
    --sun-gradient: var(--sun-day);
    --sun-day-opacity: 1;
    --sun-night-opacity: 0;
    --sun-ground: #EDDDBF;
    --sun-rule: #1A1714;
    --accent-dimension-color: rgba(26, 23, 20, 0.7);
    --grain-fine-opacity: 0.1;
    --grain-medium-opacity: 0.16;
    --grain-heavy-opacity: 0.24;
  }
}
/* Manual override, also usable on any element for a local scope. */
[data-theme="light"] {
  color-scheme: light;
  --color-bg: #EDDDBF;
  --color-bg-alt: #F3EDE0;
  --color-surface: #F3EDE0;
  --color-surface-2: #FBF8F1;
  --color-surface-3: #FFFDF8;
  --color-border: #D3C3A4;
  --color-border-strong: #A89E8F;
  --color-hairline: rgba(26, 23, 20, 0.16);
  --color-text: #1A1714;
  --color-text-muted: #5A5248;
  --color-text-faint: #7A7266;
  --color-text-inverse: #F3EDE0;
  --color-heading: #1A1714;
  --color-accent: #B81F18;
  --color-accent-strong: #D7261E;
  --color-link: #B81F18;
  --color-link-hover: #962A1F;
  --color-red-text: #B81F18;
  --color-action: #BA291F;
  --color-action-hover: #962A1F;
  --color-action-active: #70271E;
  --color-on-action: #F3EDE0;
  --color-secondary: #1A1714;
  --color-on-secondary: #F3EDE0;
  --color-focus: #D7261E;
  --color-selection: rgba(215, 38, 30, 0.20);
  --color-scrim: rgba(26, 23, 20, 0.42);
  --color-glow-1: rgba(215, 38, 30, 0.38);
  --color-glow-2: rgba(253, 181, 21, 0.45);
  --color-glow-3: rgba(242, 107, 29, 0.34);
  --color-skeleton: #E4DCCC;
  --color-skeleton-shine: #F3EDE0;
  --color-chart-grid: rgba(26, 23, 20, 0.10);
  --color-chart-axis: #7A7266;
  --color-chart-1: #D7261E;
  --color-chart-2: #F26B1D;
  --color-chart-3: #AD7E25;
  --color-chart-4: #1A1714;
  --color-chart-5: #A89E8F;
  --status-done: #1A6B3C;
  --status-open: #1F5FB8;
  --status-blocked: #B3221A;
  --status-waiting: #7A5000;
  --status-bg-alpha: 0.12;
  --status-done-bg: rgba(26, 107, 60, 0.12);
  --status-open-bg: rgba(31, 95, 184, 0.12);
  --status-blocked-bg: rgba(179, 34, 26, 0.12);
  --status-waiting-bg: rgba(122, 80, 0, 0.12);
  --gradient-ui-soft: linear-gradient(135deg, #FDB515 0%, #F26B1D 100%);
  --gradient-ui-default: linear-gradient(135deg, #FDB515 0%, #F26B1D 60%, #D7261E 100%);
  --gradient-ui-bold: linear-gradient(135deg, #FFE15A 0%, #FDB515 25%, #F26B1D 60%, #D7261E 100%);
  --gradient-ui: var(--gradient-ui-soft);
  --gradient-action: linear-gradient(135deg, #FDB515 0%, #F9911A 50%, #F26B1D 100%);
  --gradient-action-solid: #F9911A;
  --color-on-gradient-action: #1A1714;
  --gradient-secondary: linear-gradient(135deg, #3A3631 0%, #25231F 50%, #1A1714 100%);
  --gradient-chip: linear-gradient(135deg, rgba(253, 181, 21, 0.34) 0%, rgba(242, 107, 29, 0.26) 100%);
  --gradient-bar: linear-gradient(90deg, #F26B1D 0%, #FDB515 100%);
  --fade-hero-themed: var(--fade-hero);
  --accent-hairline-color: rgba(26, 23, 20, 0.16);
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(26, 23, 20, 0.10);
  --shadow-2: 0 4px 12px rgba(26, 23, 20, 0.10);
  --shadow-3: 0 8px 24px rgba(26, 23, 20, 0.12);
  --shadow-4: 0 16px 40px rgba(26, 23, 20, 0.16);
  --shadow-5: 0 24px 64px rgba(26, 23, 20, 0.22);
  --shadow-glow-red: 0 8px 24px rgba(215, 38, 30, 0.28);
  --shadow-glow-amber: 0 0 20px rgba(253, 181, 21, 0.40);
  --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.80);
  --shadow-plate: 0 3px 0 rgba(26, 23, 20, 0.18);
  --motion-beam-1: var(--brand-amber);
  --motion-beam-2: var(--brand-rally-orange);
  --motion-beam-3: var(--brand-racing-red);
  --motion-dust-1: var(--brand-amber);
  --motion-dust-2: var(--brand-rally-orange);
  --motion-dust-3: var(--brand-racing-red);
  --motion-plate-a: var(--brand-racing-red);
  --motion-plate-b: transparent;
  --motion-plate-blend: multiply;
  --motion-ink-blend: multiply;
  --motion-grain-blend: multiply;
  --motion-scan-display: none;
  --motion-scan: 0;
  --motion-stage-sky: var(--fade-hero-themed);
  --motion-odo-bg: var(--fade-sunset);
  --motion-tcard-sky: var(--fade-poster);
  --motion-tcard-ink: var(--brand-ink);
  --motion-heat-1: var(--brand-rally-orange);
  --motion-heat-2: var(--brand-racing-red);
  --motion-floor-line: var(--sun-rule);
  --motion-palm-opacity: 0.92;
  --glass-fill: rgba(255, 255, 255, 0.42);
  --glass-fill-subtle: rgba(255, 255, 255, 0.28);
  --glass-fill-strong: rgba(255, 255, 255, 0.60);
  --glass-fill-image: rgba(243, 237, 224, 0.22);
  --glass-border: rgba(255, 255, 255, 0.80);
  --glass-border-subtle: rgba(255, 255, 255, 0.55);
  --glass-border-strong: rgba(255, 255, 255, 0.90);
  --glass-border-image: rgba(255, 255, 255, 0.50);
  --glass-highlight: rgba(255, 255, 255, 0.90);
  --glass-shadow: 0 8px 24px rgba(26, 23, 20, 0.12);
  --glass-fallback: rgba(243, 237, 224, 0.94);
  --glass-text: #1A1714;
  --glass-text-image: #1A1714;
  --sun-gradient: var(--sun-day);
  --sun-day-opacity: 1;
  --sun-night-opacity: 0;
  --sun-ground: #EDDDBF;
  --sun-rule: #1A1714;
  --accent-dimension-color: rgba(26, 23, 20, 0.7);
  --grain-fine-opacity: 0.1;
  --grain-medium-opacity: 0.16;
  --grain-heavy-opacity: 0.24;
}
[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #121110;
  --color-bg-alt: #0B0A09;
  --color-surface: #1B1A18;
  --color-surface-2: #25231F;
  --color-surface-3: #2F2C27;
  --color-border: #3A3631;
  --color-border-strong: #5A5248;
  --color-hairline: rgba(243, 237, 224, 0.12);
  --color-text: #F3EDE0;
  --color-text-muted: #B3AA9C;
  --color-text-faint: #857D71;
  --color-text-inverse: #1A1714;
  --color-heading: #F3EDE0;
  --color-accent: #FDB515;
  --color-accent-strong: #F26B1D;
  --color-link: #FDB515;
  --color-link-hover: #FEC562;
  --color-red-text: #FF6B57;
  --color-action: #BA291F;
  --color-action-hover: #D7261E;
  --color-action-active: #962A1F;
  --color-on-action: #F3EDE0;
  --color-secondary: #FDB515;
  --color-on-secondary: #1A1714;
  --color-focus: #FDB515;
  --color-selection: rgba(253, 181, 21, 0.35);
  --color-scrim: rgba(11, 10, 9, 0.66);
  --color-glow-1: rgba(215, 38, 30, 0.55);
  --color-glow-2: rgba(253, 181, 21, 0.35);
  --color-glow-3: rgba(242, 107, 29, 0.40);
  --color-skeleton: #25231F;
  --color-skeleton-shine: #3A3631;
  --color-chart-grid: rgba(243, 237, 224, 0.10);
  --color-chart-axis: #857D71;
  --color-chart-1: #FDB515;
  --color-chart-2: #F26B1D;
  --color-chart-3: #FF6B57;
  --color-chart-4: #F3EDE0;
  --color-chart-5: #857D71;
  --status-done: #3FCB7A;
  --status-open: #5AA9FF;
  --status-blocked: #FF5A4E;
  --status-waiting: #FFC24B;
  --status-bg-alpha: 0.14;
  --status-done-bg: rgba(63, 203, 122, 0.14);
  --status-open-bg: rgba(90, 169, 255, 0.14);
  --status-blocked-bg: rgba(255, 90, 78, 0.14);
  --status-waiting-bg: rgba(255, 194, 75, 0.14);
  --gradient-ui-soft: linear-gradient(135deg, #C8177F 0%, #9A1E8C 100%);
  --gradient-ui-default: linear-gradient(135deg, #F0336F 0%, #C8177F 50%, #9A1E8C 100%);
  --gradient-ui-bold: linear-gradient(135deg, #FFE15A 0%, #F0336F 45%, #62218A 100%);
  --gradient-ui: var(--gradient-ui-soft);
  --gradient-action: linear-gradient(135deg, #C8177F 0%, #B11D86 50%, #9A1E8C 100%);
  --gradient-action-solid: #B11D86;
  --color-on-gradient-action: #F3EDE0;
  --gradient-secondary: linear-gradient(135deg, #FFE15A 0%, #FFCB3F 50%, #FDB515 100%);
  --gradient-chip: linear-gradient(135deg, rgba(240, 51, 111, 0.24) 0%, rgba(154, 30, 140, 0.24) 100%);
  --gradient-bar: linear-gradient(90deg, #C8177F 0%, #F0336F 100%);
  --fade-hero-themed: linear-gradient(180deg, #1A1440 0%, #241A50 50%, #3A1C68 100%);
  --accent-hairline-color: rgba(243, 237, 224, 0.12);
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-3: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-4: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-5: 0 24px 80px rgba(0, 0, 0, 0.60);
  --shadow-glow-red: 0 8px 28px rgba(215, 38, 30, 0.45);
  --shadow-glow-amber: 0 0 24px rgba(253, 181, 21, 0.45);
  --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-plate: 0 3px 0 rgba(0, 0, 0, 0.45);
  --motion-beam-1: var(--ext-flash-yellow);
  --motion-beam-2: var(--ext-hot-pink);
  --motion-beam-3: var(--ext-magenta);
  --motion-dust-1: var(--ext-flash-yellow);
  --motion-dust-2: var(--ext-hot-pink);
  --motion-dust-3: var(--brand-broken-white);
  --motion-plate-a: var(--ext-hot-pink);
  --motion-plate-b: var(--brand-amber);
  --motion-plate-blend: screen;
  --motion-ink-blend: screen;
  --motion-grain-blend: overlay;
  --motion-scan-display: block;
  --motion-scan: 1;
  --motion-stage-sky: var(--fade-hero-themed);
  --motion-odo-bg: var(--fade-hero-themed);
  --motion-tcard-sky: var(--fade-hero-themed);
  --motion-tcard-ink: var(--brand-broken-white);
  --motion-heat-1: var(--brand-amber);
  --motion-heat-2: var(--ext-hot-pink);
  --motion-floor-line: var(--sun-rule);
  --motion-palm-opacity: 0.92;
  --glass-fill: rgba(255, 255, 255, 0.05);
  --glass-fill-subtle: rgba(255, 255, 255, 0.03);
  --glass-fill-strong: rgba(255, 255, 255, 0.10);
  --glass-fill-image: rgba(26, 23, 20, 0.32);
  --glass-border: rgba(243, 237, 224, 0.12);
  --glass-border-subtle: rgba(243, 237, 224, 0.08);
  --glass-border-strong: rgba(243, 237, 224, 0.18);
  --glass-border-image: rgba(243, 237, 224, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-fallback: rgba(27, 26, 24, 0.94);
  --glass-text: #F3EDE0;
  --glass-text-image: #F3EDE0;
  --sun-gradient: var(--sun-night);
  --sun-day-opacity: 0;
  --sun-night-opacity: 1;
  --sun-ground: #121110;
  --sun-rule: #F0336F;
  --accent-dimension-color: rgba(243, 237, 224, 0.7);
  --grain-fine-opacity: 0.08;
  --grain-medium-opacity: 0.13;
  --grain-heavy-opacity: 0.19;
}

/* Reduced motion: all durations collapse. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms; --duration-base: 0.01ms; --duration-moderate: 0.01ms;
    --duration-slow: 0.01ms; --duration-slower: 0.01ms; --duration-poster: 0.01ms;
    --motion-distance: 0px; --press-scale: 1; --hover-lift: 0px;
  }
}
/* Reduced transparency: glass becomes solid. */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: var(--glass-fallback); --glass-fill-subtle: var(--glass-fallback); --glass-fill-strong: var(--glass-fallback); --glass-fill-image: var(--glass-fallback); }
}

/* ---------- Helper classes (part of the token layer) ---------- */
.glass {
  --_fill: var(--glass-fill); --_border: var(--glass-border); --_blur: var(--glass-blur); --_sat: var(--glass-saturate);
  position: relative; isolation: isolate;
  background: var(--_fill);
  border: var(--border-thin) solid var(--_border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--_blur)) saturate(var(--_sat));
  backdrop-filter: blur(var(--_blur)) saturate(var(--_sat));
  color: var(--glass-text);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: var(--texture-grain); opacity: var(--glass-noise-opacity); mix-blend-mode: overlay;
}
.glass--subtle { --_fill: var(--glass-fill-subtle); --_border: var(--glass-border-subtle); --_blur: var(--glass-blur-subtle); --_sat: var(--glass-saturate-subtle); }
.glass--strong { --_fill: var(--glass-fill-strong); --_border: var(--glass-border-strong); --_blur: var(--glass-blur-strong); --_sat: var(--glass-saturate-strong); }
.glass--image  { --_fill: var(--glass-fill-image); --_border: var(--glass-border-image); --_blur: var(--glass-blur-image); --_sat: var(--glass-saturate-image); color: var(--glass-text-image); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass--subtle, .glass--strong, .glass--image { --_fill: var(--glass-fallback); }
}
.stripe-band   { background-image: var(--stripe-band); background-repeat: no-repeat; }
.stripe-triple { background-image: var(--stripe-triple); background-repeat: no-repeat; }
.stripe-accent { height: var(--stripe-accent-height); background: var(--stripe-accent); }
.grain { position: relative; }
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--texture-grain); opacity: var(--grain-opacity); mix-blend-mode: multiply; z-index: 1; }
.spec-label {
  font-family: var(--font-mono); font-size: var(--accent-label-size);
  letter-spacing: var(--accent-label-tracking); text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
  border: var(--border-hairline) solid currentColor; padding: 6px 2px; opacity: var(--opacity-60);
}
/* Type roles */
.t-hero    { font-family: var(--font-poster); font-size: var(--text-fluid-hero); line-height: var(--leading-poster); letter-spacing: var(--tracking-poster); text-transform: uppercase; font-weight: 400; }
.t-poster  { font-family: var(--font-poster); font-size: var(--text-fluid-poster); line-height: var(--leading-poster); letter-spacing: var(--tracking-poster); text-transform: uppercase; font-weight: 400; }
.t-h1      { font-family: var(--font-poster); font-size: var(--text-fluid-h1); line-height: 0.9; letter-spacing: var(--tracking-poster); text-transform: uppercase; font-weight: 400; }
.t-h2      { font-family: var(--font-poster); font-size: var(--text-fluid-h2); line-height: 0.95; letter-spacing: var(--tracking-poster); text-transform: uppercase; font-weight: 400; }
.t-h3      { font-family: var(--font-race); font-stretch: var(--font-race-stretch); font-style: italic; font-weight: var(--weight-extrabold); font-size: var(--text-fluid-h3); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.t-accent  { font-family: var(--font-race); font-stretch: var(--font-race-stretch); font-style: italic; font-weight: var(--weight-extrabold); font-size: var(--text-fluid-accent); line-height: var(--leading-tight); color: var(--color-accent-strong); }
.t-h4      { font-family: var(--font-race); font-stretch: var(--font-race-stretch); font-style: italic; font-weight: var(--weight-extrabold); font-size: var(--text-xl); line-height: var(--leading-snug); }
.t-lede    { font-family: var(--font-body); font-size: var(--text-fluid-lede); line-height: var(--leading-body); color: var(--color-text-muted); }
.t-body    { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); }
.t-small   { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-body); }
.t-label   { font-family: var(--font-label); font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.t-eyebrow { font-family: var(--font-label); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-red-text); }
.t-mono    { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-mono); }
.t-kpi     { font-family: var(--font-mono); font-size: var(--text-fluid-kpi); font-weight: var(--weight-bold); line-height: 1; font-variant-numeric: tabular-nums; }
.t-engrave { font-family: var(--font-engrave); font-size: var(--text-sm); letter-spacing: 0.24em; text-transform: uppercase; }
