/* =========================================================
   AxeOne · Design tokens v2
   Racing editorial · heritage premium · motorsport mood
   ========================================================= */

:root {
  /* --- Brand (aligned with live site style.css) --- */
  --axe-blue:        #002b77;   /* primary accent */
  --axe-blue-deep:   #001a4d;   /* deeper accent */
  --axe-blue-bright: #003694;   /* hover / brighter accent */
  --axe-blue-soft:   #e6ecf5;

  /* --- Paper tones --- */
  --paper:     #ffffff;   /* pure white */
  --paper-alt: #f9f9f9;   /* subtle section tint */
  --paper-dark:#f1f1f1;   /* subtle gray tint */

  /* --- Ink (true black + opacities) --- */
  --ink-900: #000000;
  --ink-800: rgba(0,0,0,.85);
  --ink-700: rgba(0,0,0,.70);
  --ink-500: rgba(0,0,0,.55);
  --ink-400: rgba(0,0,0,.40);
  --ink-300: rgba(0,0,0,.25);
  --ink-200: rgba(0,0,0,.12);
  --ink-100: rgba(0,0,0,.06);

  /* --- Racing accent --- */
  --racing-red: #c8362b;
  --gold:       #c9a86a;

  /* --- Semantic (light default) --- */
  --fg:          #000000;
  --fg-soft:     rgba(0,0,0,.70);
  --fg-mute:     rgba(0,0,0,.55);
  --fg-faint:    rgba(0,0,0,.40);
  --bg:          #ffffff;
  --bg-alt:      #f9f9f9;
  --bg-sunk:     #f1f1f1;
  --rule:        rgba(0,0,0,.10);
  --rule-strong: rgba(0,0,0,.22);
  --accent:      #002b77;
  --accent-ink:  #003694;

  /* --- Type --- */
  --font-display: "Fraunces", "GT Super", "Canela", "Times New Roman", serif;
  --font-sans: "Inter Tight", "Neue Haas Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Scale --- */
  --fs-micro:  11px;
  --fs-label:  12px;
  --fs-small:  14px;
  --fs-body:   16.5px;
  --fs-lead:   20px;

  /* --- Rhythm --- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 200px;

  --gutter: clamp(20px, 4vw, 56px);
  --max-w: 1480px;

  /* --- Motion --- */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Dark mode */
[data-theme="dark"] {
  --fg: #f1ede5;
  --fg-soft: #c8c3b8;
  --fg-mute: #8a8f9e;
  --fg-faint: #5a6070;
  --bg: #0a0e1a;
  --bg-alt: #12182a;
  --bg-sunk: #070a14;
  --rule: #24293a;
  --rule-strong: #373d52;
  --accent: #6b8fce;
  --accent-ink: #9bb5df;
}

[data-density="condensed"] {
  --s-7: 32px; --s-8: 44px; --s-9: 64px;
  --s-10: 88px; --s-11: 112px;
}

/* Mobile: scale down section spacing automatically */
@media (max-width: 600px) {
  :root {
    --s-7: 28px;
    --s-8: 36px;
    --s-9: 52px;
    --s-10: 64px;
    --s-11: 80px;
    --s-12: 96px;
  }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* All italic text uses brand blue by default. Dark sections override with a
   lighter blue (#7ea3dc / #8fb0e5) via more specific selectors that win on
   specificity. */
em {
  color: var(--accent);
  font-style: italic;
  font-weight: inherit;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

/* =========================================================
   Layout
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Type
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow .idx { color: var(--fg); font-weight: 600; }

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
.serif em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 148px);
  line-height: .92;
  letter-spacing: -.032em;
  font-weight: 400;
  text-wrap: balance;
  color: var(--fg);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.display-hero em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.h1 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 84px); line-height: 1.0; letter-spacing: -.025em; font-weight: 400; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.02em; font-weight: 400; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.018em; font-weight: 400; text-wrap: balance; }
.h4 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
.h5 { font-size: 18px; line-height: 1.25; letter-spacing: -.005em; font-weight: 500; }

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 50ch;
  text-wrap: pretty;
}
.copy { font-size: 16px; line-height: 1.65; color: var(--fg-soft); text-wrap: pretty; }
.small { font-size: var(--fs-small); color: var(--fg-mute); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* =========================================================
   Header / footer
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.brand-logo { height: 28px; width: auto; color: var(--accent); }
.brand-logo path, .brand-logo polygon { fill: currentColor; }
.brand-word {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: -.02em;
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  color: var(--accent);
}

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 32px); font-size: 14.5px; letter-spacing: -.005em; }
.nav-links a {
  color: var(--fg-soft);
  position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-mute); padding: 8px 10px;
}
.lang-toggle b { color: var(--fg); font-weight: 600; }
.nav-cta {
  font-size: 13px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  letter-spacing: -.005em;
  transition: background-color .25s var(--ease);
  font-family: var(--font-sans);
}
.nav-cta:hover { background: var(--accent-ink); }

.nav-burger { display: none; width: 44px; height: 44px; align-items:center; justify-content:center; background: transparent; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--fg); position: relative; }
.nav-burger span::before, .nav-burger span::after { content:""; position: absolute; left:0; right:0; height:1.5px; background: var(--fg); }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Mobile dropdown menu — anchored top-right, page stays visible behind */
  /* Important: remove backdrop-filter from header — otherwise it creates a
     containing block that traps the fixed dropdown inside the 78px header. */
  body.menu-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.menu-open .nav-links {
    display: flex;
    position: fixed;
    top: calc(78px + 8px);
    right: var(--gutter);
    left: auto;
    bottom: auto;
    width: 260px;
    max-width: calc(100vw - var(--gutter) * 2);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: var(--s-3) var(--s-4);
    gap: 0;
    z-index: 49;
    border: 1px solid var(--rule);
    box-shadow: 0 16px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 78px - var(--s-5));
  }
  body.menu-open .nav-links a {
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.3;
    letter-spacing: -.005em;
    font-weight: 400;
    color: var(--fg);
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
  body.menu-open .nav-links a:last-child { border-bottom: 0; }
  body.menu-open .nav-links a.is-active { color: var(--accent); font-weight: 500; }
  body.menu-open .nav-links a.is-active::after { display: none; }

  /* CTA stays hidden in mobile burger menu */

  /* Burger morphs into X */
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    transition: transform .25s var(--ease), background-color .25s var(--ease), top .25s var(--ease);
  }
  .nav-burger[aria-expanded="true"] { z-index: 51; }
  .nav-burger[aria-expanded="true"] span { background: transparent; }
  .nav-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-8);
  margin-top: 0;
  background: var(--bg);
}
.footer-marquee {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--ink-900);
  color: var(--paper);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 84px);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.footer-marquee .track {
  display: inline-flex; gap: 60px;
  animation: marquee 40s linear infinite;
}
.footer-marquee .track span { display: inline-block; }
.footer-marquee .track span::after {
  content: "✦"; display: inline-block; margin-left: 60px;
  color: var(--axe-blue-bright); font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.footer-inner {
  padding: var(--s-8) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col a { display: block; padding: 5px 0; color: var(--fg-soft); font-size: 15px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--fg-mute);
  font-family: var(--font-mono); letter-spacing: .05em;
}
.footer-bottom .legal { display: flex; gap: 24px; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: var(--s-7); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col h3 { margin-bottom: 10px; font-size: 10.5px; }
  .footer-col a { padding: 4px 0; font-size: 14px; }
  .footer-col .copy { font-size: 14px; max-width: 38ch; margin-top: 12px !important; }
  .footer-col p.small { font-size: 13px; }
  .footer-bottom { padding: var(--s-4) 0; font-size: 11.5px; }
  .footer-bottom .legal { gap: 18px; flex-wrap: wrap; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  font-size: 14.5px; letter-spacing: -.005em;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn .arrow { width: 16px; height: 10px; position: relative; }
.btn .arrow::before {
  content:""; position:absolute; inset:0;
  background: currentColor;
  clip-path: polygon(0 45%, 70% 45%, 70% 20%, 100% 50%, 70% 80%, 70% 55%, 0 55%);
  transition: transform .3s var(--ease);
}
.btn:hover .arrow::before { transform: translateX(3px); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn.light {
  background: #fff; color: var(--accent);
}
.btn.light:hover { background: var(--accent-ink); color: #fff; }

/* =========================================================
   Ticker marquee (top of page)
   ========================================================= */
.ticker {
  background: var(--ink-900);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-700);
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 12px 0;
  animation: marquee 55s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.ticker-track span { display: inline-block; }
.ticker-track em {
  font-style: normal;
  color: var(--axe-blue-bright);
  margin-right: 8px;
}
.ticker-track i {
  display: inline-block; margin: 0 12px;
  color: var(--ink-500); font-style: normal;
}

/* =========================================================
   Checker/racing patterns
   ========================================================= */
.checker {
  background-image:
    linear-gradient(45deg, var(--fg) 25%, transparent 25%),
    linear-gradient(-45deg, var(--fg) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--fg) 75%),
    linear-gradient(-45deg, transparent 75%, var(--fg) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  opacity: .9;
}

/* =========================================================
   Image placeholder · warm paper tones
   ========================================================= */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(
      -45deg,
      #f4f5f7 0 12px,
      #e8eaee 12px 24px
    );
  color: var(--fg-mute);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--rule-strong);
  pointer-events: none;
}
.ph .ph-tag {
  position: relative; z-index: 1;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--fg-soft);
  text-align: center;
  line-height: 1.45;
  max-width: 80%;
  font-size: 11px;
}

/* When .ph or hero .bg contains a real <img>, suppress placeholder UI and cover the area */
/* .ph holds either a bare <img>, a <picture> (with nested <img> + WebP sources),
   or a <video>. Make all three fill the container the same way. */
.ph > img,
.ph > video,
.ph > picture { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.ph > img,
.ph > video { object-fit: cover; }
.ph > picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* When .ph holds real content, drop the striped placeholder background
   and the decorative 1 px inset border so they don't peek through. */
.ph:has(> img),
.ph:has(> video),
.ph:has(> picture) { background: none; }
.ph:has(> img)::before,
.ph:has(> video)::before,
.ph:has(> picture)::before { display: none; }
.bg > img,
.bg > picture { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.bg > img { object-fit: cover; }
.bg > picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dark placeholders · for use on dark backgrounds */
.ph.dark {
  background:
    repeating-linear-gradient(
      -45deg,
      #001a4d 0 12px,
      #002b77 12px 24px
    );
  color: #8a8f9e;
}
.ph.dark::before { border-color: #373d52; }
.ph.dark .ph-tag { background: #0a0e1a; border-color: #373d52; color: #c8c3b8; }

/* Immersive hero image (full-bleed, editorial) */
.hero-image {
  position: relative;
  aspect-ratio: 21/9;
  width: 100%;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -45deg,
      #001a4d 0 14px,
      #002b77 14px 28px
    );
  color: #8a8f9e;
  isolation: isolate;
}
.hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.7) 100%); z-index: 1; }
.hero-image .hi-tag { position: absolute; top: 20px; left: 20px; z-index: 2; padding: 10px 14px; background: rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; max-width: 70%; line-height: 1.4; }
.hero-image .hi-caption { position: absolute; bottom: 20px; right: 20px; z-index: 2; padding: 8px 12px; background: rgba(255,255,255,.95); color: var(--ink-900); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }

/* Image+text split */
.split-media {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  align-items: stretch;
}
.split-media.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-media .media { min-height: 560px; }
.split-media .content { padding: var(--s-8) var(--s-7); display: flex; flex-direction: column; justify-content: center; background: var(--bg); }
.split-media.reverse .content { order: -1; }
.split-media .content h3 { font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.018em; font-weight: 400; margin: 18px 0 16px; }
.split-media .content h3 em { color: var(--accent); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.split-media .content .copy { max-width: 46ch; }
@media (max-width: 900px) {
  .split-media, .split-media.reverse { grid-template-columns: 1fr; }
  .split-media .media { min-height: 360px; aspect-ratio: 4/3; }
  .split-media.reverse .content { order: 0; }
  .split-media .content { padding: var(--s-6) var(--s-5); }
}

/* Editorial image band (full bleed, no container) */
.bleed-band { position: relative; width: 100%; }
.bleed-band .ph { aspect-ratio: 21/9; }

/* Two-up image row */
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.img-duo .ph { aspect-ratio: 4/5; }
@media (max-width: 700px) { .img-duo { grid-template-columns: 1fr; } }

/* =========================================================
   Section primitives
   ========================================================= */
.section {
  padding-block: var(--s-10);
}
.section.tight { padding-block: var(--s-8); }
.section--dark {
  background: var(--ink-900);
  color: var(--paper);
}
.section--dark .copy { color: #c8c3b8; }
.section--dark .eyebrow { color: #8a8f9e; }
.section--dark .eyebrow::before { background: var(--axe-blue-bright); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-8);
  align-items: end;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* =========================================================
   Reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rev-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.is-in > * { opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(1) { transition-delay: .02s; }
.stagger.is-in > *:nth-child(2) { transition-delay: .10s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .18s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .26s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .34s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .stagger > * { opacity: 1; transform: none; transition: none; }
  .ticker-track, .footer-marquee .track { animation: none; }
}

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  padding: 16px;
  min-width: 260px;
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks h5 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 14px; color: var(--fg-mute); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h5 button { font: inherit; color: var(--fg-mute); padding: 4px; }
.tweak-row { margin-bottom: 12px; }
.tweak-row label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-mute); margin-bottom: 6px; }
.seg {
  display: inline-flex; border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.seg button {
  padding: 7px 11px; font-size: 12px; color: var(--fg-mute);
  border-right: 1px solid var(--rule-strong);
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
