/* DEMO DRILL storefront design system
   Four built-in preset themes (admin console switch, task 59):
   :root carries the DEFAULT light pack - the client's final design decision
   (2026-11-14): pure white surfaces, technical grey sections, graphite
   chrome (footer / CTA band), industrial orange accent, deep black text.
   [data-theme="dark"|"blue"|"warm"] override the TOKEN BLOCK ONLY - every
   component below reads var() and is never themed directly. The dark pack
   is the original production palette, byte-preserved.
   WCAG AA for all four packs is enforced by scripts/verify-themes.mjs. */
:root {
  /* --- surfaces --- */
  --bg: #ffffff;
  --bg-deep: #f1f3f5;
  --card: #ffffff;
  --card-2: #f8f9fa;
  --field: #ffffff;
  --line: rgba(23, 27, 32, .10);
  --line-strong: rgba(23, 27, 32, .22);
  /* --- ink --- */
  --text: #171b20;
  --muted: #5a6472;
  --dim: #656d7a;
  /* --- accent: industrial orange (fills / borders / ink-on-dark) --- */
  --gold: #1f5fbf;
  --gold-hover: #1b54a9;
  --gold-ink: #ffffff;
  /* --- accent: text-safe shade on light surfaces (AA) --- */
  --gold-2: #1f5fbf;
  --gold-text: #1f5fbf;
  --gold-deep: #184993;
  /* --- chrome: white sticky header, graphite footer + CTA band --- */
  --header-bg: rgba(255, 255, 255, .92);
  --footer-bg: #202b36;
  --footer-text: #c7cdd6;
  --footer-dim: #99a2ae;
  --footer-line: rgba(255, 255, 255, .12);
  --footer-link-hover: #e87524;
  --band-bg: #202b36;
  --band-fg: #ffffff;
  --band-sub: #c7cdd6;
  --btn-dark-bg: #e87524;
  --btn-dark-fg: #171b20;
  --btn-dark-hover: #d9661a;
  /* --- component tints --- */
  --ghost-bg: rgba(23, 27, 32, .04);
  --row-hover: rgba(23, 27, 32, .05);
  --chip-bg: rgba(23, 27, 32, .07);
  --tint-hero: rgba(232, 117, 36, .12);
  --tint-page: rgba(232, 117, 36, .10);
  --tint: rgba(31, 95, 191, 0.12);
  --tint-strong: rgba(232, 117, 36, .25);
  --tree-active: rgba(31, 95, 191, 0.14);
  --accent-line: rgba(31, 95, 191, .55);
  --frame-ink: #7e8894;
  /* --- elevation: layered soft shadows (per theme; dark packs run blacker) --- */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .14);
  --shadow-2: 0 2px 4px rgba(16, 24, 40, .06), 0 20px 44px -18px rgba(16, 24, 40, .24);
  /* --- layout / type --- */
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  /* Self-hosted / system fonts only — no third-party font CDN (GDPR Art. 6, Art. 44). */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Preset pack: dark (original production palette, gold accent).
   2026-12-02 visual pass: cards lifted off the page bg (the old pack had
   card vs bg contrast so low the layout read as one flat slab). */
[data-theme="dark"] {
  --bg: #10141d;
  --bg-deep: #0c1017;
  --card: #1c2432;
  --card-2: #232c3c;
  --field: #141b27;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --text: #e9edf2;
  --muted: #98a3b2;
  --dim: #8d99aa;
  --gold: #2f74dd;
  --gold-hover: #4583e1;
  --gold-ink: #000000;
  --gold-2: #5f95e5;
  --gold-text: #5f95e5;
  --gold-deep: #98baee;
  --header-bg: rgba(18, 22, 31, .92);
  --footer-bg: #0e121a;
  --footer-text: #98a3b2;
  --footer-dim: #838e9f;
  --footer-line: rgba(255, 255, 255, .09);
  --footer-link-hover: #f2c14e;
  --band-bg: linear-gradient(120deg, #f9d471 0%, #f2c14e 52%, #eab541 100%);
  --band-fg: #14120a;
  --band-sub: rgba(20, 18, 10, .78);
  --btn-dark-bg: #0e121a;
  --btn-dark-fg: #ffffff;
  --btn-dark-hover: #000000;
  --ghost-bg: rgba(255, 255, 255, .03);
  --row-hover: rgba(255, 255, 255, .05);
  --chip-bg: rgba(255, 255, 255, .06);
  --tint-hero: rgba(242, 193, 78, .14);
  --tint-page: rgba(242, 193, 78, .10);
  --tint: rgba(47, 116, 221, 0.12);
  --tint-strong: rgba(242, 193, 78, .25);
  --tree-active: rgba(47, 116, 221, 0.14);
  --accent-line: rgba(47, 116, 221, .55);
  --frame-ink: rgba(255, 255, 255, .40);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .38), 0 12px 32px -16px rgba(0, 0, 0, .52);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .42), 0 24px 52px -20px rgba(0, 0, 0, .62);
}

/* Preset pack: blue (deep-blue tech surfaces, gold accent unchanged). */
[data-theme="blue"] {
  --bg: #0a1424;
  --bg-deep: #060e1b;
  --card: #14233e;
  --card-2: #1a2c4e;
  --field: #0d1a31;
  --line: rgba(125, 175, 255, .14);
  --line-strong: rgba(125, 175, 255, .26);
  --text: #e9f1fc;
  --muted: #94a9c7;
  --dim: #8199ba;
  --gold: #3176de;
  --gold-hover: #4785e2;
  --gold-ink: #000000;
  --gold-2: #6196e5;
  --gold-text: #6196e5;
  --gold-deep: #9abcef;
  --header-bg: rgba(10, 21, 38, .92);
  --footer-bg: #060e1b;
  --footer-text: #94a9c7;
  --footer-dim: #7791b3;
  --footer-line: rgba(125, 175, 255, .13);
  --footer-link-hover: #f2c14e;
  --band-bg: linear-gradient(120deg, #f9d471 0%, #f2c14e 52%, #eab541 100%);
  --band-fg: #14120a;
  --band-sub: rgba(20, 18, 10, .78);
  --btn-dark-bg: #060e1b;
  --btn-dark-fg: #ffffff;
  --btn-dark-hover: #000000;
  --ghost-bg: rgba(255, 255, 255, .03);
  --row-hover: rgba(255, 255, 255, .05);
  --chip-bg: rgba(255, 255, 255, .06);
  --tint-hero: rgba(242, 193, 78, .14);
  --tint-page: rgba(242, 193, 78, .10);
  --tint: rgba(49, 118, 222, 0.12);
  --tint-strong: rgba(242, 193, 78, .25);
  --tree-active: rgba(49, 118, 222, 0.14);
  --accent-line: rgba(49, 118, 222, .55);
  --frame-ink: rgba(255, 255, 255, .40);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .38), 0 12px 32px -16px rgba(0, 0, 0, .52);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .42), 0 24px 52px -20px rgba(0, 0, 0, .62);
}

/* Preset pack: warm (cream surfaces, gold fills, bronze text accent). */
[data-theme="warm"] {
  --bg: #f6f3ed;
  --bg-deep: #ebe6dc;
  --card: #fffdfa;
  --card-2: #f2eee6;
  --field: #fffefb;
  --line: rgba(64, 48, 32, .13);
  --line-strong: rgba(64, 48, 32, .24);
  --text: #2c261f;
  --muted: #6d6355;
  --dim: #6e6558;
  --gold: #1f5fbf;
  --gold-hover: #1b54a9;
  --gold-ink: #ffffff;
  --gold-2: #1e5dba;
  --gold-text: #1e5dba;
  --gold-deep: #164488;
  --header-bg: rgba(246, 243, 237, .92);
  --footer-bg: #ebe6dc;
  --footer-text: #6d6355;
  --footer-dim: #6e6558;
  --footer-line: rgba(64, 48, 32, .13);
  --footer-link-hover: #7a5c15;
  --band-bg: linear-gradient(120deg, #f9d471 0%, #f2c14e 52%, #eab541 100%);
  --band-fg: #14120a;
  --band-sub: rgba(20, 18, 10, .78);
  --btn-dark-bg: #2c261f;
  --btn-dark-fg: #ffffff;
  --btn-dark-hover: #453c33;
  --ghost-bg: rgba(64, 48, 32, .05);
  --row-hover: rgba(64, 48, 32, .05);
  --chip-bg: rgba(64, 48, 32, .07);
  --tint-hero: rgba(242, 193, 78, .14);
  --tint-page: rgba(242, 193, 78, .10);
  --tint: rgba(31, 95, 191, 0.12);
  --tint-strong: rgba(242, 193, 78, .25);
  --tree-active: rgba(31, 95, 191, 0.14);
  --accent-line: rgba(31, 95, 191, .55);
  --frame-ink: rgba(64, 48, 32, .60);
  --shadow-1: 0 1px 2px rgba(64, 48, 32, .06), 0 10px 28px -14px rgba(64, 48, 32, .16);
  --shadow-2: 0 2px 4px rgba(64, 48, 32, .07), 0 20px 44px -18px rgba(64, 48, 32, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }

/* ---------- top bar ---------- */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.brand img { height: 58px; width: auto; }
.main-nav { display: flex; gap: 18px; margin-left: auto; }
.nav-link {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); padding: 8px 0; position: relative; transition: color .18s;
}
.nav-link:hover, .nav-link.active { color: var(--gold-text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; padding: 6px 12px; cursor: pointer; transition: .18s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--gold); color: var(--gold-ink); }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold); color: var(--gold-ink);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--gold) 55%, transparent);
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
/* Only used inside the CTA band: orange quote button on the graphite band
   in the light pack, graphite button on the gold gradient in the others. */
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { background: var(--btn-dark-hover); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- home banner carousel (client-supplied photography) ----------
   Four local 1600 x 900 frames. A dark gradient overlay keeps the copy
   readable on the left; no remote image or font requests are made.
   The slide chrome stays dark in EVERY theme: it sits on the photography. */
.banner-section { padding-bottom: 20px; }
.banner-head { align-items: flex-end; }
.banner-eyebrow {
  color: var(--gold-text); font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px;
}
.banner-frame {
  font-family: var(--display); font-size: 28px; font-weight: 800;
  letter-spacing: .04em; color: var(--frame-ink); margin: 0; white-space: nowrap;
}
.banner-hint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--dim); }

.carousel {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--bg-deep); isolation: isolate;
  box-shadow: var(--shadow-1);
}
.carousel:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.carousel-track { position: relative; height: clamp(360px, 40vw, 500px); }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transform: scale(1.045);
  transition: opacity .65s ease, transform 1.5s ease, visibility .65s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }
/* Placeholder photography: one cohesive graphite family with a single
   desaturated glow hue per frame — reads as an art-directed set, not candy. */
.slide-1 { background: radial-gradient(120% 90% at 72% 18%, rgba(96,138,182,.32), transparent 58%), linear-gradient(115deg, #1d2430 0%, #2e3d52 44%, #1a2130 78%, #12161e 100%); }
.slide-2 { background: radial-gradient(120% 90% at 72% 18%, rgba(158,124,66,.30), transparent 58%), linear-gradient(115deg, #211d16 0%, #443521 44%, #1e1b14 78%, #14131a 100%); }
.slide-3 { background: radial-gradient(120% 90% at 72% 18%, rgba(148,84,72,.30), transparent 58%), linear-gradient(115deg, #231c1b 0%, #4a2c26 44%, #1f1a1c 78%, #15141a 100%); }
.slide-4 { background: radial-gradient(120% 90% at 72% 18%, rgba(88,128,116,.30), transparent 58%), linear-gradient(115deg, #1c231f 0%, #2f463e 44%, #1a2124 78%, #131720 100%); }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,12,18,.84) 0%, rgba(9,12,18,.56) 46%, rgba(9,12,18,.08) 100%),
    linear-gradient(0deg, rgba(9,12,18,.52), transparent 62%);
}
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 15px);
}
.slide-art { position: absolute; inset: 0; overflow: hidden; }
.slide-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.slide-copy {
  position: relative; z-index: 3; max-width: 640px;
  padding: 0 clamp(28px, 5vw, 68px) clamp(52px, 6vw, 74px) clamp(80px, 7vw, 104px);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s .12s ease, transform .6s .12s ease;
}
.slide.is-active .slide-copy { opacity: 1; transform: none; }
.slide-kicker {
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px;
}
.slide-title {
  font-family: var(--display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06;
  font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0 0 14px; text-wrap: balance;
}
.slide-text { color: rgba(255,255,255,.84); font-size: 15.5px; max-width: 46ch; margin: 0 0 26px; }
.carousel-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(12,15,22,.5);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: .2s;
}
.carousel-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.carousel-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots { position: absolute; z-index: 5; right: 26px; bottom: 24px; display: flex; gap: 12px; }
.carousel-dot {
  position: relative;
  width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
  background: rgba(255,255,255,.32); cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
/* Enlarge the tap target to 38px without making the visible dot bulky. */
.carousel-dot::after { content: ""; position: absolute; inset: -14px; }
.carousel-dot:hover { background: rgba(255,255,255,.7); }
.carousel-dot.is-active {
  background: var(--gold); border-color: var(--gold); transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(212,175,55,.22);
}
.carousel-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.carousel-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.13); }
.carousel-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.prose-note { margin-top: 22px; font-size: 13px; line-height: 1.7; color: var(--dim); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(96px, 9vw, 124px) 0 clamp(88px, 8vw, 112px);
  background:
    radial-gradient(900px 500px at 82% 20%, var(--tint-hero), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(99, 116, 123, .18), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  color: var(--gold-text); font-size: 12.5px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; margin: 0 0 18px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 20px; text-wrap: balance;
}
.hero-sub { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 52ch; margin: 0 0 28px; }
.hero-list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 13px; }
.hero-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.hero-list li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px);
  border: 1.5px solid var(--gold);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; isolation: isolate; }
/* Themed glow disc behind the placeholder art so the same transparent SVG
   reads as intentional in all four packs (the SVG itself carries no colour). */
.hero-art::before {
  content: ""; position: absolute; z-index: -1; inset: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint-hero), transparent 74%);
}
.hero-art img { width: 100%; animation: float 7s ease-in-out infinite; }
/* Hero video / gallery (batch B3, layout pass 6.39): both fill the right
   column instead of the old 480px cap, and the gallery box is taller
   (5/4) so the window stops looking like a thumbnail next to the copy.
   Neither floats - a moving picture plus the float animation is too busy. */
.hero-art .hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  background: #000;
}
.hero-art .hero-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.hero-art .hero-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  opacity: 0;
  /* Crossfade plus a slow settle: without the scale cue, similar-looking
     product photos make the rotation read as a hard cut. */
  transform: scale(1.06);
  transition: opacity .9s ease, transform 6s ease-out;
}
.hero-art .hero-gallery img.is-active { opacity: 1; transform: scale(1); }
/* Indicator pill: dots + an "n / total" counter so the rotation is visible
   even when two frames look alike. Sits on a dark pill for legibility on
   any photograph. */
.hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 14, 20, .55);
}
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-active { width: 20px; border-radius: 999px; background: var(--gold); }
.hero-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hero-count {
  color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; margin-left: 3px; white-space: nowrap;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- hero immersive (6.40, desktop >= 901px only) ----------
   A: the configured gallery/video fills the WHOLE hero as a bleed
   background (no card, no radius, no shadow) while the copy sits on a
   token-driven veil. Two hard rules from the theme system:
   1. the veil colour is ALWAYS the theme token --bg-deep (plus a
      --tint-hero glow), never a hardcoded dark hex - the four
      admin-switchable packs follow automatically;
   2. the copy column stays inside the veil's solid zone, i.e. on the
      same surface token verify-themes.mjs already proves AA, so no new
      contrast pair is needed.
   Everything is scoped to .hero-immersive (set by site.js only for the
   gallery/video types) AND to min-width 901, so phones keep the 6.39
   stacked card byte-for-byte. */
@media (min-width: 901px) {
  .hero-immersive .hero-copy { position: relative; z-index: 2; }
  .hero-immersive .hero-art {
    position: absolute; inset: 0; z-index: 1; display: block;
  }
  .hero-immersive .hero-art .hero-gallery,
  .hero-immersive .hero-art .hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto; border-radius: 0; box-shadow: none;
  }
  .hero-immersive .hero-art .hero-video { object-fit: cover; }
  /* Veil: solid theme surface under the copy, dissolving into the photo
     at 47%-82% of the width. The tint radial rides on top so the left
     zone keeps the hero's decorative glow instead of going flat. */
  .hero-immersive .hero-art::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(900px 500px at 18% 30%, var(--tint-hero), transparent 60%),
      linear-gradient(to right, var(--bg-deep) 0%, var(--bg-deep) 47%, transparent 82%);
  }
  /* Indicator: pinned to the hero's bottom edge the 6.39 pill would sit
     below the first fold (the hero is taller than a 789px viewport),
     so anchor it to the photo's lower third instead. */
  .hero-immersive .hero-dots { bottom: 24%; }
}

/* ---------- strip ---------- */
.strip { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 24px; }
.strip-item {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.strip-item::before { content: "✓"; color: var(--gold-text); font-weight: 800; }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--display); font-size: clamp(27px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.018em; margin: 0 0 10px; line-height: 1.12; text-wrap: balance;
}
.section-sub { color: var(--muted); margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.65; }
.link-more {
  color: var(--gold-text); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-1);
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--accent-line); background: var(--card-2); box-shadow: var(--shadow-2); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--gold-text); font-size: 22px;
}
.cat-name { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.cat-count { color: var(--dim); font-size: 13px; }
.cat-go { color: var(--gold-text); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: auto; }
/* Category thumbnail (010, client feedback item 6): photo on top of the
   name. Only applied when a category has a thumbnail; icon rows (and the
   static why-us cards, which reuse .cat-card) are untouched. */
.cat-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.prod-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.prod-thumb { background: #f5f6f8; aspect-ratio: 1 / 1; overflow: hidden; }
/* Square thumb crops the 16:9 photograph instead of letterboxing it. */
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod-cat { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod-name {
  font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--gold-2); line-height: 1.4; margin: 0;
}
.prod-card:hover .prod-name { color: var(--gold-text); }
.prod-sku { font-size: 12px; color: var(--dim); letter-spacing: .05em; margin-top: auto; }

/* ---------- CTA band ---------- */
.band {
  background: var(--band-bg);
  color: var(--band-fg); border-radius: 20px; padding: 54px 56px;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-1);
}
.band-title { font-family: var(--display); font-size: clamp(25px, 3vw, 36px); font-weight: 800; margin: 0 0 10px; line-height: 1.15; }
.band-sub { margin: 0; font-size: 16.5px; color: var(--band-sub); max-width: 52ch; }
.band-actions { display: flex; justify-content: flex-end; }

/* ---------- page head / breadcrumbs ---------- */
.page-hero {
  padding: 54px 0 46px; background:
    radial-gradient(700px 320px at 85% 0%, var(--tint-page), transparent 65%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 16px; }
.crumbs a:hover { color: var(--gold-text); }
.crumbs .sep { opacity: .5; }
.crumbs .current { color: var(--muted); }
.page-title { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 0; letter-spacing: -.015em; }
.page-sub { color: var(--muted); margin: 12px 0 0; max-width: 64ch; }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 285px 1fr; gap: 42px; align-items: start; }
.catalog-side {
  position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-1);
}
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 13px; padding-left: 12px; border-left: 1px solid var(--line); }
.tree-item { margin: 2px 0; }
.tree-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 9px; border-radius: 7px; font-size: 14px; color: var(--muted);
  transition: background .15s, color .15s; cursor: pointer;
}
.tree-link:hover { background: var(--row-hover); color: var(--text); }
.tree-link.active { background: var(--tree-active); color: var(--gold-text); font-weight: 600; }
.tree-link.lvl-1 { font-weight: 600; color: var(--text); }
/* B1: optional category thumbnail. flex:none keeps it square at any width;
   .tree-name takes the leftover space so the count stays right-aligned. */
.tree-thumb { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; }
.tree-name { flex: 1; min-width: 0; }
.tree-count { font-size: 11.5px; color: var(--dim); background: var(--chip-bg); border-radius: 999px; padding: 1px 8px; flex: none; }
.tree-link.active .tree-count { background: var(--tint-strong); color: var(--gold-text); }

/* Feedback 4 - mobile category rail. The rail is a horizontal chip strip that
   only appears under 900px (see the media query below); desktop keeps the
   sticky sidebar tree exactly as it was. */
.cat-rail { display: none; }
#catalog-count { margin: 0 0 16px; }
#catalog-grid { scroll-margin-top: 104px; }

.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.input, .select, .textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-text); }
/* One-click clear (x) for single-line inputs - enableClear() in site.js
   wraps the input in .input-wrap so the button can sit inside the box.
   The button only exists while the field has a value (has-clear adds the
   right padding so text never runs under it). */
.input-wrap { position: relative; display: block; }
.input-wrap .input { display: block; }
.input-wrap.has-clear .input { padding-right: 40px; }
.input-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--dim); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.input-clear:hover { background: var(--field); color: var(--text); }
.input-clear[hidden] { display: none; }
.select { width: auto; min-width: 190px; cursor: pointer; }
.result-count { font-size: 13.5px; color: var(--dim); }
.empty {
  background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 46px 24px; text-align: center; color: var(--muted);
}

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
/* Grid items default to min-width:auto: a 1521px rich-text table stretched
   the whole 1fr column (body scrollWidth 1791 on a 1440 viewport) instead of
   scrolling inside .pdp-desc's overflow-x:auto. min-width:0 caps the track
   so the scroll container actually gets a bounded width. */
.pdp-info, .gallery { min-width: 0; }
.gallery { position: sticky; top: 96px; }
.gallery-main {
  position: relative; background: #f5f6f8; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-zoom {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; color: #141a24; font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.gallery-note { font-size: 12.5px; color: var(--dim); margin-top: 12px; text-align: center; }
/* Thumbnail strip under the hero photo (010). Click switches the main
   frame; the active thumb gets the gold ring. */
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.gallery-thumb {
  width: 66px; height: 66px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); background: #f5f6f8; cursor: pointer; transition: border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--accent-line); }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-main { cursor: zoom-in; }
/* Hover magnifier (011): a lens tracks the cursor inside the hero frame and
   the detail pane shows the same region magnified, parked to the right of the
   gallery. Both stay display:none until .gallery gets .is-zoomed, so touch
   devices and narrow layouts render nothing extra at all. Pointer-events stay
   off on both so a click still reaches the lightbox. */
.pdp-zoom-lens {
  position: absolute; width: 140px; height: 140px; border-radius: 50%;
  box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(20, 26, 36, .32), 0 8px 22px rgba(20, 26, 36, .28);
  background: rgba(255, 255, 255, .12);
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .12s ease;
  z-index: 4;
}
.pdp-zoom-pane {
  position: absolute; left: calc(100% + 12px); top: 0;
  width: 380px; height: 380px;
  background-color: #fff; background-repeat: no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(20, 26, 36, .20);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .12s ease;
  z-index: 30;
}
.gallery.is-zoomed .pdp-zoom-lens,
.gallery.is-zoomed .pdp-zoom-pane { opacity: 1; visibility: visible; }
/* The pane parks over the right column, but .pdp-desc carries opacity:.92,
   which makes it a level-0 stacking context ordered AFTER .gallery in the
   tree - so the description sentence painted on top of the magnified photo.
   Lift the whole gallery one level while zoomed: it beats every z:0 context
   in the column yet stays far under the sticky header (60) and lightbox (200). */
.gallery.is-zoomed { z-index: 5; }
@media (max-width: 900px) {
  .pdp-zoom-lens, .pdp-zoom-pane { display: none; }
}
/* Specification matrix (010): a real table with horizontal scrolling so
   wide matrices stay usable on phones. */
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec-matrix { border-collapse: collapse; width: 100%; min-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-matrix th, .spec-matrix td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; text-align: left; }
.spec-matrix th { background: var(--tint); font-weight: 700; white-space: nowrap; }
.spec-matrix td { color: var(--ink); }
.spec-matrix tr:nth-child(even) td { background: var(--card-2); }
/* Lightbox (010): click-to-enlarge with wheel / pinch zoom, arrows for the
   gallery, swipe on touch. Scroll of the page is locked while open. */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 20, .92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox-stage { max-width: min(92vw, 1200px); max-height: 84vh; display: grid; place-items: center; overflow: hidden; }
.lightbox-stage img {
  max-width: min(92vw, 1200px); max-height: 84vh; object-fit: contain; border-radius: 8px;
  transform-origin: center center; will-change: transform; cursor: grab; user-select: none; -webkit-user-drag: none;
}
.lightbox-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfd6e0; font-size: 13px; }
.lightbox-close {
  position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.pdp-eyebrow { color: var(--gold-text); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.pdp-title {
  font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 18px;
}
.pdp-lead { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.pdp-desc { color: var(--text); font-size: 15.5px; opacity: .92; }
/* Rich-text tables (client feedback: "宽幅很丑 / 不能自适应"). Before this,
   .pdp-desc styled only color and <p> - a pasted Excel sheet rendered as a
   bare 0px-border grid, and on a 390px phone its min-content width pushed
   the whole body sideways (measured 457px table / 481px body scrollWidth).
   Same visual language as table.spec-matrix; overflow-x on the container is
   the scroll wrapper (spec-matrix uses .spec-scroll for the same job). */
.pdp-desc { overflow-x: auto; }
.pdp-desc table {
  border-collapse: collapse;
  width: max-content; min-width: 100%;
  margin: 6px 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.pdp-desc th, .pdp-desc td {
  border: 1px solid var(--line);
  padding: 9px 13px; font-size: 14px;
  text-align: left; vertical-align: top;
}
.pdp-desc th { background: var(--tint); font-weight: 700; }
.pdp-desc tr:nth-child(even) td { background: var(--card-2); }
.pdp-desc h2 { font-size: 20px; margin: 22px 0 8px; }
.pdp-desc h3 { font-size: 16.5px; margin: 18px 0 6px; }
.pdp-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.pdp-desc a { color: var(--gold-2); text-decoration: underline; }
.pdp-desc ul, .pdp-desc ol { margin: 0 0 14px; padding-left: 22px; }
.pdp-desc li { margin: 4px 0; }
.pdp-desc p { margin: 0 0 14px; }
.block-label {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.spec-table { display: grid; gap: 0; }
.spec-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.spec-k { color: var(--muted); }
.spec-v { color: var(--text); font-weight: 600; }
.meta-list { display: grid; gap: 9px; font-size: 14.5px; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-k { color: var(--muted); }
.meta-v { color: var(--gold-2); font-weight: 600; }
.meta-v.plain { color: var(--text); }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.pdp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; align-items: center; }
.pdp-fallback { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }

/* ---- Phase 2: model line, feature icon strip, PDF download buttons ------ */
.pdp-model {
  display: flex; gap: 10px; align-items: baseline; font-size: 14.5px;
  color: var(--text); margin: -6px 0 18px;
}
.pdp-model span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}
.feature-row {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none;
  padding: 0; margin: 0 0 22px;
}
.feat-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 13.5px; color: var(--text);
}
.feat-ic { color: var(--gold-text); flex: none; }
.doc-btn { gap: 8px; }
.doc-btn svg { flex: none; }

/* ---- Phase 2: read-only enquiry context inside the quote form ---------- */
#qf-context {
  margin-top: 6px; padding: 14px 16px; background: var(--tint);
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm);
}
#qf-context .block-label { margin: 0 0 10px; padding-bottom: 8px; border-bottom-color: var(--accent-line); }
.quote-context { display: grid; gap: 7px; margin: 0; }
.qc-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 13.5px; }
.qc-row dt { color: var(--dim); font-weight: 600; }
.qc-row dd { margin: 0; color: var(--text); word-break: break-word; }
.qc-row dd a { color: var(--gold-text); }
@media (max-width: 640px) { .qc-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Phase 2: a specification row the visitor picked for the quote ----- */
.spec-matrix tbody tr[data-spec-text] { cursor: pointer; }
.spec-matrix tbody tr[data-spec-text]:hover td { background: var(--tint); }
.spec-matrix tr.is-sel td { background: var(--tint-strong); box-shadow: inset 0 0 0 1px var(--gold-text); }
.spec-matrix tr.is-sel td:first-child { font-weight: 700; }

/* ---- Phase 3: catalogue facet bar -------------------------------------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.filter-bar[hidden] { display: none; }
.filter-search { flex: 1 1 240px; min-width: 200px; }
.filter-search .input { padding: 10px 14px; font-size: 14px; }
.filter-bar .select { min-width: 160px; padding: 10px 12px; font-size: 14px; }
.filter-bar .btn { flex: none; }

/* ---------- about / facts ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--muted); font-size: 16.5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 34px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fact-k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.fact-v { font-size: 15px; font-weight: 600; word-break: break-word; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row-2 { grid-template-columns: 1fr; } }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--muted); }
.form .consent input { margin-top: 3px; accent-color: var(--gold); flex: none; }
.form .consent a { color: var(--gold-text); text-decoration: underline; }
.field { display: grid; gap: 8px; }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--dim); }
.alert {
  background: var(--tint); border: 1px solid var(--accent-line);
  color: var(--gold-text); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px;
}
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-row { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ---------- blocked page ---------- */
.blocked-wrap { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.blocked-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center;
  background: var(--tint); border: 2px solid var(--gold); color: var(--gold-text); font-size: 34px;
}
.blocked-title { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 14px; }
.blocked-sub { color: var(--muted); max-width: 56ch; margin: 0 auto 26px; font-size: 16.5px; }
.blocked-code { font-size: 13px; color: var(--dim); letter-spacing: .1em; margin-bottom: 26px; }
.blocked-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-line); padding: 64px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 46px; }
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-text { color: var(--footer-text); font-size: 14.5px; max-width: 34ch; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--footer-dim); margin: 6px 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--footer-text); font-size: 14.5px; }
.footer-links a:hover { color: var(--footer-link-hover); }
.footer-bottom {
  border-top: 1px solid var(--footer-line); padding: 20px 0; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--footer-dim);
}
/* Attribution credit (client-approved). Inherited color keeps it dim; the
   underline marks it as a link, hover rides the theme-verified accent token. */
.footer-credit a { text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--footer-link-hover); }
.footer-disclaimer {
  border-top: 1px solid var(--footer-line); padding: 14px 0 26px; margin: 0;
  font-size: 12px; line-height: 1.6; color: var(--footer-dim);
}
.cookie-note {
  position: fixed; left: 22px; bottom: 22px; z-index: 60; max-width: 440px;
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 12px 34px rgba(0,0,0,.45);
  font-size: 13px; line-height: 1.55; color: var(--muted);
}
.cookie-note a { color: var(--gold-text); text-decoration: underline; }
.cookie-note button {
  flex: none; border: 0; border-radius: 6px; padding: 8px 14px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12.5px;
}
@media (max-width: 640px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: flex-start; } }
.en-tag { font-size: 11px; color: var(--dim); font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); border: 0; cursor: pointer; font-size: 18px;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6, 8, 12, .72); z-index: 100;
  display: none; place-items: center; padding: 24px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: grid; }
.modal {
  background: var(--card-2); border: 1px solid var(--line-strong); border-radius: 18px;
  width: min(560px, 100%); padding: 32px; max-height: 90vh; overflow: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; }
.modal-title { font-family: var(--display); font-size: 24px; font-weight: 800; margin: 0; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--gold-text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav {
    position: absolute; top: 88px; left: 0; right: 0; background: var(--bg-deep);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 18px;
    display: none;
  }
  .carousel-track { height: 400px; }
  .slide-copy { max-width: 88%; padding: 0 26px 58px 70px; }
  .banner-frame { font-size: 22px; }
  .brand img { height: 48px; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; margin-left: auto; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 14px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  /* Stacked layout: the window grows from the old 340px cap but keeps a
     4/3 box - a 5/4 photo block this wide would tower over the copy. */
  .hero-art img { width: min(100%, 480px); }
  .hero-art .hero-video,
  .hero-art .hero-gallery { width: min(100%, 480px); }
  .hero-art .hero-gallery { aspect-ratio: 4 / 3; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .catalog { grid-template-columns: 1fr; gap: 14px; }
  /* Feedback 4: the sidebar tree sat above the grid, so on a phone a visitor
     had to scroll past every category before seeing a single product. The
     tree is replaced by the sticky chip rail below; the grid then starts
     directly under the page hero. */
  .catalog-side { display: none; }
  .catalog-section { padding-top: 0; }
  .cat-rail {
    display: flex; align-items: center; gap: 8px;
    position: sticky; top: 88px; z-index: 50;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px; margin-bottom: 16px;
  }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-chip {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); color: var(--muted); text-decoration: none;
    font-size: 13.5px; line-height: 1.25; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
  }
  .cat-chip.deep { background: var(--field); color: var(--dim); font-size: 13px; }
  .cat-chip.active {
    background: var(--tree-active); border-color: var(--gold-text);
    color: var(--gold-text); font-weight: 600;
  }
  .cat-chip.active .tree-count { background: var(--tint-strong); color: var(--gold-text); }
  /* The grid must land BELOW the sticky header + rail after a chip tap. */
  #catalog-grid { scroll-margin-top: 158px; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
  .band { grid-template-columns: 1fr; padding: 40px 30px; }
  .band-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-body { padding: 14px; }
  .prod-name { font-size: 13.5px; }
  .topbar-inner { flex-wrap: wrap; gap: 4px 14px; padding-top: 6px; padding-bottom: 6px; font-size: 11px; }
  .topbar-item:first-child { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  /* 6.39: the gallery USED to be display:none here, so a phone visitor
     never saw the configured rotation at all. It now stays on top of the
     copy (order comes from the 900px block) at the stacked width. */
  .hero-art { display: flex; }
  .form .row-2 { grid-template-columns: 1fr; }
  .band { border-radius: 14px; }
  .carousel-track { height: 430px; }
  .slide-title { font-size: 30px; }
  .slide-text { font-size: 14px; margin-bottom: 20px; }
  .slide-copy { max-width: 100%; padding: 0 20px 62px; }
  /* Small arrows sit below the copy; dots stay centred and clearly visible.
     Touch swiping is handled in site.js, vertical page scrolling is preserved. */
  .carousel-arrow {
    display: block; width: 36px; height: 36px; font-size: 22px;
    top: auto; bottom: 12px; transform: none;
  }
  .carousel-arrow.prev { left: 12px; }
  .carousel-arrow.next { right: 12px; }
  .carousel-dots { left: 0; right: 0; bottom: 24px; justify-content: center; gap: 14px; }
  .carousel-dot { background: rgba(255,255,255,.5); }
  .carousel { touch-action: pan-y; }
  .banner-frame { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide-copy { animation: none !important; transition: none !important; }
  /* Hero (6.39): no float on the blade, no crossfade/scale on the gallery
     frames - site.js also skips the auto-rotate under this query. */
  .hero-art img { animation: none !important; }
  .hero-art .hero-gallery img { transition: none !important; transform: none !important; }
}
