/* CrestBall — Tactile Matchday Equipment Workshop Design System
 * Palette: OKLCH tinted neutrals + Matchday Pitch Forest Green + Leather Amber accent
 * Zero pure-white/pure-black hex literals, zero side-stripe >1px borders, zero gradient text.
 */

/* Self-hosted fonts (SIL OFL 1.1, latin subset) — no third-party font requests (GDPR) */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces (tinted slightly toward warm pitch chalk & turf green) */
  --bg: oklch(0.978 0.008 98);
  --surface: oklch(0.992 0.004 98);
  --surface-alt: oklch(0.946 0.012 118);
  --surface-inset: oklch(0.928 0.014 128);

  /* Ink & borders */
  --ink: oklch(0.195 0.022 152);
  --ink-muted: oklch(0.43 0.020 152);
  --border: oklch(0.862 0.016 142);
  --border-strong: oklch(0.74 0.024 148);

  /* Brand */
  --pitch: oklch(0.32 0.085 152);
  --pitch-hover: oklch(0.255 0.078 152);
  --pitch-deep: oklch(0.205 0.058 152);
  --pitch-tint: oklch(0.932 0.028 150);
  --on-pitch: oklch(0.975 0.008 98);
  --on-pitch-muted: oklch(0.83 0.024 145);

  /* Accent (used sparingly — 10% weight) */
  --signal: oklch(0.61 0.155 46);
  --signal-hover: oklch(0.54 0.155 46);
  --on-signal: oklch(0.985 0.006 95);

  /* Typography */
  --font-display: 'Barlow Condensed', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* 4pt semantic spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 1px 2px oklch(0.195 0.022 152 / 0.06), 0 8px 24px oklch(0.195 0.022 152 / 0.05);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1220px;
}

html[data-theme="dark"] {
  --bg: oklch(0.155 0.018 152);
  --surface: oklch(0.195 0.020 152);
  --surface-alt: oklch(0.175 0.018 152);
  --surface-inset: oklch(0.235 0.022 152);

  --ink: oklch(0.945 0.010 100);
  --ink-muted: oklch(0.72 0.018 140);
  --border: oklch(0.295 0.024 150);
  --border-strong: oklch(0.41 0.030 150);

  --pitch: oklch(0.54 0.115 152);
  --pitch-hover: oklch(0.60 0.120 152);
  --pitch-deep: oklch(0.13 0.024 152);
  --pitch-tint: oklch(0.24 0.040 152);
  --on-pitch: oklch(0.14 0.020 152);
  --on-pitch-muted: oklch(0.76 0.024 145);

  --signal: oklch(0.69 0.155 48);
  --signal-hover: oklch(0.74 0.150 48);
  --on-signal: oklch(0.14 0.018 50);

  --shadow-subtle: 0 2px 16px oklch(0.05 0.01 150 / 0.45);
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body { line-height: 1.68; }

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="range"], input[type="checkbox"], input[type="radio"] { accent-color: var(--pitch); }

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--pitch);
  color: var(--on-pitch);
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  top: 8px;
  inset-inline-start: 16px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  overflow: visible;
  clip-path: none;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.35rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }

p { margin: 0 0 14px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.mono-tag, .mono-eyebrow, .mono-label, .mono-value, .mono-cell {
  font-family: var(--font-mono);
}
.mono-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pitch);
  margin-bottom: 10px;
}
.mono-tag {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.small-note { font-size: 0.86rem; color: var(--ink-muted); }

/* Utility Top Bar */
.top-utility {
  background: var(--pitch-deep);
  color: var(--on-pitch-muted);
  border-bottom: 1px solid oklch(0.32 0.04 150 / 0.45);
  font-size: 0.74rem;
}
html[data-theme="dark"] .top-utility {
  background: oklch(0.12 0.02 152);
  color: var(--ink-muted);
}
.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.top-utility .mono-tag { color: inherit; }
.top-utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}
.top-utility-right a { text-decoration: none; border-bottom: 1px solid currentColor; }
.top-utility-right .sep { opacity: 0.45; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-icon { color: var(--pitch); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--ink);
  background: var(--surface-alt);
}
.nav-link.is-active {
  color: var(--pitch);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switch {
  position: relative;
}
.lang-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.18s var(--ease-out);
  user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { border-color: var(--pitch); color: var(--pitch); }
.lang-caret { transition: transform 0.18s var(--ease-out); opacity: 0.7; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.14s var(--ease-out), color 0.14s var(--ease-out);
}
.lang-opt:hover { background: var(--surface-alt); color: var(--pitch); }
.lang-opt.is-active { background: var(--pitch-tint); color: var(--pitch); font-weight: 700; }
.lang-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  width: 24px;
}
.lang-opt.is-active .lang-code { color: var(--pitch); }

.mobile-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.lang-pill {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-muted);
}
.lang-pill.is-active {
  background: var(--pitch);
  border-color: var(--pitch);
  color: var(--on-pitch);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--pitch); }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 16px 0 22px;
  gap: 4px;
}
.mobile-link {
  padding: 11px 10px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.mobile-link.is-active { background: var(--pitch-tint); color: var(--pitch); }
.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-lg { padding: 13px 24px; font-size: 0.98rem; }

.btn-primary {
  background: var(--pitch);
  color: var(--on-pitch);
}
.btn-primary:hover { background: var(--pitch-hover); }

.btn-signal {
  background: var(--signal);
  color: var(--on-signal);
}
.btn-signal:hover { background: var(--signal-hover); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--pitch);
  color: var(--pitch);
}

.btn-ghost {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--pitch); color: var(--pitch); }

.btn-pitch-ghost {
  background: transparent;
  border-color: oklch(0.85 0.02 145 / 0.4);
  color: oklch(0.97 0.008 98);
}
.btn-pitch-ghost:hover {
  background: oklch(0.98 0.005 98 / 0.1);
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pitch);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--pitch) 40%, transparent);
  padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: var(--pitch); }

.mini-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--ink);
}
.mini-btn:hover { border-color: var(--pitch); color: var(--pitch); }

/* Hero Section — Tactical Pitch Hairline Backdrop */
.hero-section {
  position: relative;
  padding: clamp(36px, 5vw, 68px) 0 clamp(44px, 6vw, 76px);
  overflow: hidden;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--border) 48%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--border) 48%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: top center;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 42%, transparent 18%, var(--bg) 74%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-facts > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-facts > div > span:last-child {
  font-size: 0.83rem;
  color: var(--ink-muted);
}

/* Interactive Hero 3D Stage */
.stage-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}
.stage-header, .stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.stage-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.stage-footer .text-link { white-space: nowrap; flex-shrink: 0; }
.hero-copy, .hero-stage, .stage-frame, .studio-viewport, .studio-panel, .rfq-form-wrap, .track-panel {
  min-width: 0;
}
.stage-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at 50% 45%, var(--pitch-tint) 0%, var(--surface) 70%);
}
#heroBallCanvas {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1 / 1;
  height: auto;
  cursor: grab;
  touch-action: none;
}
#heroBallCanvas:active { cursor: grabbing; }
.drag-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.stage-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.swatch-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 7px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 0.16s var(--ease-out);
}
.swatch-btn:hover { border-color: var(--pitch); color: var(--ink); }
.swatch-btn.is-active {
  background: var(--pitch);
  border-color: var(--pitch);
  color: var(--on-pitch);
}

/* Sections */
.section {
  padding: clamp(48px, 6.5vw, 84px) 0;
}
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-pitch {
  background: var(--pitch-deep);
  color: oklch(0.96 0.008 98);
}
.section-pitch .mono-eyebrow { color: oklch(0.78 0.12 52); }
.section-pitch p { color: oklch(0.84 0.02 145); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-muted); }
.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-split p { max-width: 46ch; margin: 0; }

/* Dual Track Cards */
.dual-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.track-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.track-oem {
  background: var(--bg);
  border-color: var(--border-strong);
}
.track-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.track-top .mono-eyebrow { margin-bottom: 0; }
.track-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--pitch-tint);
  color: var(--pitch);
}
.track-panel h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  margin-bottom: 12px;
}
.track-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.track-head-row h3 { flex: 1; }
.track-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.tactile-icon {
  object-fit: contain;
  filter: drop-shadow(0 6px 10px oklch(0.18 0.025 150 / 0.18));
  transition: transform 0.25s var(--ease-out);
}
html[data-theme="dark"] .tactile-icon {
  filter: drop-shadow(0 8px 14px oklch(0.04 0.01 150 / 0.55));
}
.section-head-icon {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.head-hardware-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.step-card:hover .tactile-icon,
.track-panel:hover .track-icon {
  transform: translateY(-2px);
}
.track-summary { color: var(--ink-muted); margin-bottom: 18px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1.8px solid var(--pitch);
  border-radius: 2px;
  transform: rotate(45deg);
}
.track-meta {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  margin-bottom: 18px;
}
.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Construction Spec Rows (Asymmetric Horizontal Catalog Layout) */
.spec-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) minmax(260px, 1.3fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.spec-row-head h3 { margin-bottom: 10px; }
.spec-price-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.spec-price-line .mono-label { font-size: 0.72rem; color: var(--ink-muted); }
.spec-price-line .mono-value { font-size: 1.05rem; color: var(--pitch); }

.cutaway-svg {
  width: 100%;
  height: auto;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.spec-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.spec-dl > div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.9rem;
}
.spec-dl dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  padding-top: 2px;
}
.spec-dl dd { margin: 0; }

.table-note {
  margin-top: 16px;
  line-height: 1.55;
}

/* Studio Banner (Dark Turf Band) */
.studio-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: center;
}
.studio-banner h2 { margin-bottom: 14px; }
.studio-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.studio-checklist {
  border: 1px solid oklch(0.85 0.02 145 / 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: oklch(0.16 0.04 152 / 0.55);
}
.studio-checklist .mono-tag { color: oklch(0.78 0.12 52); display: block; margin-bottom: 14px; }
.studio-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-checklist li {
  padding-left: 18px;
  position: relative;
  font-size: 0.94rem;
  color: oklch(0.92 0.012 105);
}
.studio-checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: oklch(0.78 0.12 52);
}

/* Product Grids */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.prod-item {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
}
.prod-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.prod-photo {
  width: 144px;
  height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px oklch(0.18 0.025 150 / 0.18));
  transition: transform 0.28s var(--ease-out);
}
.catalog-photo {
  width: 184px;
  height: 184px;
}
html[data-theme="dark"] .prod-photo {
  filter: drop-shadow(0 14px 22px oklch(0.03 0.01 150 / 0.65));
}
.prod-item:hover .prod-photo,
.catalog-card:hover .catalog-photo {
  transform: translateY(-4px) scale(1.03);
}

/* Editorial Factory Gallery */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.factory-gallery-compact {
  margin-bottom: 32px;
}
.factory-fig {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.factory-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
}
.factory-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
.factory-fig:hover .factory-img-wrap img {
  transform: scale(1.03);
}
.factory-fig figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.factory-fig figcaption .mono-eyebrow { margin-bottom: 0; font-size: 0.7rem; }
.factory-fig figcaption h3 { font-size: 1.18rem; }
.factory-fig figcaption p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }
.prod-body h3 { margin-bottom: 8px; }
.prod-body p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 10px; }
.prod-specs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.prod-price { color: var(--pitch); font-weight: 600; margin-bottom: 12px; }
.prod-links { display: flex; gap: 18px; align-items: center; }

/* Full Catalog Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.catalog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.catalog-card[hidden] { display: none; }
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.catalog-visual {
  display: flex;
  justify-content: center;
  padding: 12px 0 18px;
}
.catalog-card h3 { margin-bottom: 8px; }
.catalog-card p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 14px; }
.mini-dl {
  margin: 0 0 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 6px;
}
.mini-dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.85rem;
}
.mini-dl dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-muted); }
.mini-dl dd { margin: 0; }
.catalog-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* Nantong Flow Steps */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.flow-step {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flow-icon { width: 48px; height: 48px; }
.flow-step:hover .flow-icon { transform: translateY(-2px) rotate(-2deg); }
.flow-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--pitch);
  line-height: 1;
}
.flow-step p { font-size: 0.92rem; color: var(--ink-muted); }
.flow-spec { margin-top: auto; color: var(--ink); }

/* Page Hero (Subpages) */
.page-hero {
  padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
}
.page-hero-compact { padding: 28px 0 28px; }
.breadcrumb { margin-bottom: 12px; display: block; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.page-hero h1 { margin-bottom: 14px; }
.page-lead {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--ink-muted);
  margin-bottom: 22px;
}

/* Data Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--surface-alt);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.mono-cell { font-size: 0.84rem; white-space: nowrap; }

/* 4-Step Row */
.steps-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-card p { font-size: 0.9rem; color: var(--ink-muted); }

/* Container Calculator */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.calc-stat { display: flex; flex-direction: column; gap: 4px; }
.calc-stat strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--pitch);
}
.calc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Packaging & Compliance */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pack-card, .comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.pack-card.has-media {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 20px;
  align-items: start;
}
.pack-card.has-media > :not(.pack-media) { grid-column: 2; }
.pack-media {
  grid-column: 1;
  grid-row: 1 / span 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-inset);
  aspect-ratio: 1 / 1;
}
.pack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.pack-card:hover .pack-media img { transform: scale(1.04); }
.pack-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.comp-card h3 { margin-bottom: 10px; }
.comp-card p { font-size: 0.92rem; color: var(--ink-muted); }
.comp-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--ink) !important;
  font-weight: 500;
}

/* Factory Page */
.factory-reality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.factory-reality h3 { margin-bottom: 10px; }
.factory-reality p { color: var(--ink-muted); font-size: 0.95rem; }

.factory-timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.factory-stage {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.stage-num-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.stage-icon { width: 56px; height: 56px; }
.stage-text-col h3 { margin-bottom: 8px; }
.stage-text-col p { color: var(--ink-muted); margin-bottom: 8px; }

.photo-slot-note {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Interactive 3D Ball Studio */
.studio-section { padding-top: 28px; }
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.studio-viewport {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 86px;
}
.viewport-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.viewport-canvas-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 14px;
  background: radial-gradient(circle at 50% 45%, var(--pitch-tint) 0%, var(--surface) 72%);
}
#studioBallCanvas {
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1;
  height: auto;
  cursor: grab;
  touch-action: none;
}
#studioBallCanvas:active { cursor: grabbing; }
.viewport-controls {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.studio-estimate-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.studio-estimate-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--pitch);
}
.studio-estimate-bar small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.studio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ctrl-group { display: flex; flex-direction: column; gap: 10px; }
.ctrl-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  transition: all 0.16s var(--ease-out);
}
.pill-btn span {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.pill-btn:hover { border-color: var(--pitch); }
.pill-btn.is-active {
  background: var(--pitch);
  border-color: var(--pitch);
  color: var(--on-pitch);
}
.pill-btn.is-active span { color: var(--on-pitch-muted); }

.preset-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preset-chip {
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
}
.preset-chip:hover { border-color: var(--pitch); }

.color-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.color-inputs label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.82rem;
}
.color-inputs input[type="color"] {
  width: 28px;
  height: 24px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.upload-row { display: flex; align-items: center; gap: 10px; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.upload-btn:hover { border-color: var(--pitch); color: var(--pitch); }
.upload-btn input { display: none; }
.field-inline { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px; }
.qty-ticks { display: flex; justify-content: space-between; }

/* FAQ Page */
.faq-layout { max-width: 880px; }
.faq-group { margin-bottom: 34px; }
.faq-cat {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--pitch);
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 18px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--pitch);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding-bottom: 18px;
  color: var(--ink-muted);
  font-size: 0.94rem;
}
.faq-cta-box {
  margin-top: 32px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.faq-cta-box h3 { margin-bottom: 8px; }
.faq-cta-box p { color: var(--ink-muted); margin-bottom: 16px; }

/* RFQ Forms & Quote Page */
.rfq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}
.rfq-intro h2 { margin-bottom: 12px; }
.rfq-intro p { color: var(--ink-muted); }
.direct-box {
  margin-top: 24px;
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.direct-box .mono-tag { display: block; margin-bottom: 8px; color: var(--pitch); }

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}
.quote-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rfq-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.rfq-form { display: flex; flex-direction: column; gap: 16px; }
.rfq-form h2 { font-size: 1.65rem; margin-bottom: 4px; }

.design-banner {
  padding: 14px 16px;
  background: var(--pitch-tint);
  border: 1px solid var(--pitch);
  border-radius: var(--radius-sm);
}
.design-banner .mono-tag { color: var(--pitch); display: block; margin-bottom: 4px; }
.design-banner p { font-size: 0.88rem; margin: 0; font-family: var(--font-mono); }

.track-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.track-radio {
  position: relative;
  cursor: pointer;
}
.track-radio input {
  position: absolute;
  opacity: 0;
}
.track-radio span {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all 0.16s var(--ease-out);
}
.track-radio strong { font-size: 0.94rem; }
.track-radio small { font-size: 0.78rem; color: var(--ink-muted); }
.track-radio input:checked + span {
  border-color: var(--pitch);
  background: var(--pitch-tint);
}

.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.94rem;
  transition: border-color 0.16s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pitch);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--pitch) 18%, transparent);
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.form-result {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pitch);
  background: var(--pitch-tint);
  font-size: 0.9rem;
}
.form-result.is-error {
  border-color: var(--signal);
  background: color-mix(in oklch, var(--signal) 12%, var(--surface));
}
.form-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  background: var(--pitch-deep);
  color: oklch(0.92 0.012 105);
  padding: 56px 0 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid oklch(0.85 0.02 145 / 0.18);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo .mono-tag { color: oklch(0.78 0.12 52); }
.footer-desc { color: oklch(0.80 0.018 140); font-size: 0.9rem; margin-bottom: 12px; }
.footer-meta { color: oklch(0.72 0.018 140); }
.footer-col h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: oklch(0.96 0.008 98);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.footer-col a {
  text-decoration: none;
  color: oklch(0.82 0.018 140);
}
.footer-col a:hover { color: oklch(0.98 0.005 98); text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: oklch(0.74 0.018 140);
}
.footer-bottom .mono-tag { color: oklch(0.78 0.02 140); }

/* Floating Quick Contact Dock */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}
.float-dock {
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}
.js .float-dock:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
}
.dock-wa, .dock-wx, .dock-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
}
.dock-wa, .dock-wx { background: var(--surface-alt); color: var(--ink); }
.dock-wa:hover, .dock-wx:hover { color: var(--pitch); }
.dock-quote { background: var(--pitch); color: var(--on-pitch); }
.dock-quote:hover { background: var(--pitch-hover); }

/* WeChat QR Popover & Quote Sidebar Inline Card */
.wx-qr {
  position: relative;
  display: inline-block;
}
.wx-qr > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.wx-qr > summary::-webkit-details-marker { display: none; }
.wx-qr-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 212px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  z-index: 130;
}
.wx-qr-up .wx-qr-pop {
  top: auto;
  bottom: calc(100% + 10px);
}
.float-dock .wx-qr-pop {
  left: auto;
  right: 0;
}
html[dir="rtl"] .wx-qr-pop {
  left: auto;
  right: 0;
}
html[dir="rtl"] .float-dock .wx-qr-pop {
  right: auto;
  left: 0;
}
.wx-qr-pop img,
.wx-qr-inline img {
  background: oklch(0.99 0.004 98);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-inline: auto;
}
.wx-qr-pop img { width: 160px; height: 160px; }
.wx-qr-pop p {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.wx-qr-pop strong { color: var(--ink); font-size: 0.84rem; }
.wx-qr-pop span { color: var(--ink-muted); }

.footer-wx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid oklch(0.85 0.02 145 / 0.3);
  border-radius: var(--radius-sm);
  color: oklch(0.92 0.012 105);
  font-size: 0.84rem;
  font-weight: 600;
}
.footer-wx-btn:hover {
  border-color: oklch(0.78 0.12 52);
  color: oklch(0.98 0.005 98);
}
.direct-wx-row { margin: 12px 0; }
.wx-drawer-btn { width: 100%; }
.mobile-drawer-cta .wx-qr { width: 100%; }
.mobile-drawer-cta .wx-qr-pop {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
}

.wx-qr-inline {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.wx-qr-inline img { width: 144px; height: 144px; }
.wx-qr-inline figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.wx-qr-inline figcaption strong { color: var(--ink); font-size: 0.86rem; }

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid,
  .studio-banner,
  .studio-workspace,
  .rfq-split,
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-viewport { position: static; }
  .spec-row { grid-template-columns: minmax(0, 1fr); }
  .flow-grid,
  .comp-grid,
  .factory-reality,
  .factory-gallery,
  .calc-controls,
  .calc-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .top-utility-right { display: none; }
  .hero-facts,
  .dual-tracks,
  .prod-grid,
  .pack-grid,
  .flow-grid,
  .comp-grid,
  .factory-reality,
  .factory-gallery,
  .steps-4,
  .calc-controls,
  .calc-results,
  .form-row-2,
  .form-row-3,
  .track-switch,
  .studio-estimate-bar,
  .field-inline,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head-icon { align-items: flex-start; }
  .head-hardware-icon { width: 54px; height: 54px; }
  .prod-item { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .stage-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-stage { grid-template-columns: 52px minmax(0, 1fr); }
  .spec-dl > div { grid-template-columns: 102px minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
  .float-dock {
    left: 12px;
    right: 12px;
    bottom: 10px;
    justify-content: space-between;
  }
  .dock-wa, .dock-quote { flex: 1; justify-content: center; }
  .float-dock .wx-qr { display: none; }
  .header-actions .btn-sm { display: none; }
  .header-inner { gap: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.4rem; }
  .header-actions { gap: 6px; }
  .lang-trigger { padding: 0 8px; }
  .pack-card.has-media { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .flow-icon { width: 42px; height: 42px; }
  .stage-icon { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .lang-caret { display: none; }
  .brand-icon { width: 24px; height: 24px; }
  .brand-name { font-size: 1.25rem; }
}

/* Multilingual Typography & RTL Support */
html[lang="zh-Hans"] body {
  font-family: 'Hanken Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
  font-family: 'Barlow Condensed', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: none;
}

html[lang="ja"] body {
  font-family: 'Hanken Grotesk', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', system-ui, sans-serif;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  font-family: 'Barlow Condensed', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  line-height: 1.24;
  letter-spacing: 0.01em;
  text-transform: none;
}

html[lang="ar"] body {
  font-family: 'SF Arabic', 'Geeza Pro', 'Tahoma', 'Noto Sans Arabic', system-ui, sans-serif;
  line-height: 1.72;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: 'SF Arabic', 'Geeza Pro', 'Tahoma', 'Noto Sans Arabic', sans-serif;
  line-height: 1.28;
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] .mono-eyebrow,
html[lang="ar"] .ctrl-label,
html[lang="ar"] .data-table th {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 20px;
}
html[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .studio-checklist li {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .studio-checklist li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
  text-align: right;
}
html[dir="rtl"] .pill-btn {
  text-align: right;
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .drag-hint {
  right: auto;
  left: 14px;
}
html[dir="rtl"] .float-dock {
  right: auto;
  left: 18px;
}
html[dir="rtl"] .cutaway-svg {
  direction: ltr;
}
html[dir="rtl"] .mono-cell,
html[dir="rtl"] .mono-value,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="number"] {
  unicode-bidi: isolate;
}
@media (max-width: 720px) {
  html[dir="rtl"] .prod-item { text-align: right; }
  html[dir="rtl"] .float-dock { left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Factory gallery disclosure */
.gallery-note {
  margin: 14px 0 32px;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

/* 3D canvases: keyboard focus ring */
#heroBallCanvas:focus-visible,
#studioBallCanvas:focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 4px;
  border-radius: 50%;
}

/* Catalog filter / studio pill pressed-state */
.preset-chip.is-active {
  border-color: var(--pitch);
  color: var(--pitch);
  background: var(--pitch-tint);
}
.pack-head .mono-tag { white-space: nowrap; }

/* 404 page */
.notfound { min-height: 56vh; display: flex; align-items: center; }
.notfound .hero-actions { flex-wrap: wrap; margin-top: 8px; }
.notfound-langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 4px; color: var(--ink-muted); }
.notfound-langs a { color: var(--ink); }
