/* =========================================================
   Visilex Trading — design system (vanilla HTML/CSS/JS)
   Fonts match last Next.js layout.jsx:
   - Outfit  → body, UI, headlines, display (single product sans)
   - JetBrains Mono → eyebrows, prices, codes
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Outfit:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  --obsidian: #0c0b0a;
  --graphite: #161412;
  --pearl: #f3efe6;
  --amber-metal: #c4a35a;
  --sand: #a39a8a;
  --hairline: rgba(243, 239, 230, 0.1);

  --bg: var(--obsidian);
  --bg-elevated: var(--graphite);
  --bg-soft: #1c1916;
  --ink: var(--pearl);
  --ink-muted: var(--sand);
  --ink-faint: rgba(243, 239, 230, 0.55);
  --line: var(--hairline);
  --line-strong: rgba(243, 239, 230, 0.16);
  --accent: var(--amber-metal);
  --accent-soft: rgba(196, 163, 90, 0.14);
  --accent-glow: rgba(196, 163, 90, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --nav-bg: rgba(12, 11, 10, 0.55);
  --nav-bg-scrolled: rgba(12, 11, 10, 0.88);
  --nav-fg: var(--pearl);
  --btn-solid-bg: var(--pearl);
  --btn-solid-fg: var(--obsidian);
  --btn-ghost-border: rgba(243, 239, 230, 0.28);
  --panel-bg: rgba(22, 20, 18, 0.96);
  --panel-border: rgba(243, 239, 230, 0.12);
  /* Stronger left/bottom hold so ivory type stays legible over bright metal frames */
  --hero-scrim: linear-gradient(
      105deg,
      rgba(8, 7, 6, 0.86) 0%,
      rgba(8, 7, 6, 0.52) 40%,
      rgba(8, 7, 6, 0.18) 66%,
      rgba(8, 7, 6, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 7, 6, 0.58) 0%,
      rgba(8, 7, 6, 0.16) 36%,
      rgba(8, 7, 6, 0.55) 70%,
      rgba(8, 7, 6, 0.96) 100%
    );
  /* logo-on-dark = dark-ink lockup (for light surfaces)
     logo-on-light = white lockup (for dark surfaces) */
  --logo-on-dark-display: none;
  --logo-on-light-display: block;

    /* next/font equivalents (layout.jsx → Outfit + JetBrains_Mono) */
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Display used Outfit in final Next build (no separate serif loaded) */
  --font-serif: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --font-sans-stack: var(--font-sans);
  --font-serif-stack: var(--font-serif);
  --font-mono-stack: var(--font-mono);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --pad-x: clamp(1.1rem, 4vw, 2.75rem);
  --max: 1180px;
  --nav-h: 4.25rem;
}

html[data-theme="light"] {
  --bg: #f3efe6;
  --bg-elevated: #ffffff;
  --bg-soft: #ebe6db;
  --ink: #141210;
  --ink-muted: #6f675c;
  --ink-faint: rgba(20, 18, 16, 0.55);
  --line: rgba(20, 18, 16, 0.08);
  --line-strong: rgba(20, 18, 16, 0.14);
  --accent: #a8843a;
  --accent-soft: rgba(168, 132, 58, 0.12);
  --accent-glow: rgba(168, 132, 58, 0.22);
  --shadow: 0 20px 50px rgba(40, 32, 18, 0.1);
  --shadow-soft: 0 8px 24px rgba(40, 32, 18, 0.08);
  --nav-bg: rgba(243, 239, 230, 0.55);
  --nav-bg-scrolled: rgba(243, 239, 230, 0.92);
  --nav-fg: #141210;
  --btn-solid-bg: #141210;
  --btn-solid-fg: #f3efe6;
  --btn-ghost-border: rgba(20, 18, 16, 0.22);
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(20, 18, 16, 0.1);
  --hero-scrim: linear-gradient(
      105deg,
      rgba(12, 11, 10, 0.82) 0%,
      rgba(12, 11, 10, 0.48) 42%,
      rgba(12, 11, 10, 0.16) 68%,
      rgba(12, 11, 10, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.55) 0%,
      rgba(12, 11, 10, 0.16) 38%,
      rgba(12, 11, 10, 0.52) 72%,
      rgba(12, 11, 10, 0.95) 100%
    );
  /* Light surfaces → dark-ink lockup */
  --logo-on-dark-display: block;
  --logo-on-light-display: none;
  --hairline: rgba(20, 18, 16, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip — NOT hidden: overflow-x:hidden on body/html kills position:sticky
     and leaves a tall black void while the hero stage scrolls away */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans-stack);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Do NOT set overflow-x here — breaks sticky hero pin */
  overflow-x: visible;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* Canvas must be free of max-width or full-bleed hero sizing breaks */
canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-sans-stack);
  font-weight: 500;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[data-next-badge-root],
[data-next-badge],
nextjs-portal {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--obsidian);
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #e0c989);
  pointer-events: none;
  will-change: transform;
}

/* Nav — only .site-nav (base.html). Breadcrumbs are .shop-crumbs */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding: 0.7rem var(--pad-x);
  color: var(--nav-fg);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    backdrop-filter 240ms var(--ease-out),
    color 240ms var(--ease-out);
}

.site-nav.scrolled,
.site-nav.nav-solid {
  color: var(--nav-fg);
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Transparent chrome ONLY over the home hero film — never on content pages */
.site-nav.nav-over-hero:not(.scrolled) {
  color: var(--pearl);
  background: transparent;
  border-bottom-color: transparent;
  /* Always white lockup over the dark cinema stage */
  --logo-on-dark-display: none;
  --logo-on-light-display: block;
}

.site-nav.nav-over-hero:not(.scrolled) .nav-cta {
  background: var(--pearl);
  color: var(--obsidian);
}

.site-nav.nav-over-hero:not(.scrolled) .theme-trigger,
.site-nav.nav-over-hero:not(.scrolled) .nav-burger {
  color: var(--pearl);
  border-color: rgba(243, 239, 230, 0.22);
  background: rgba(12, 11, 10, 0.28);
}

/* Scrolled / solid nav — theme-correct ink, no pearl wash */
.site-nav.scrolled .nav-links a,
.site-nav.nav-solid .nav-links a {
  color: var(--nav-fg);
  opacity: 0.78;
}

.site-nav.scrolled .nav-links a:hover,
.site-nav.nav-solid .nav-links a:hover {
  opacity: 1;
}

.site-nav.scrolled .nav-cta,
.site-nav.nav-solid .nav-cta {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
}

.site-nav.scrolled .theme-trigger,
.site-nav.scrolled .nav-burger,
.site-nav.nav-solid .theme-trigger,
.site-nav.nav-solid .nav-burger {
  color: var(--nav-fg);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

/* Brand lockup: logo LEFT + branch cards RIGHT — one shared baseline */
.nav-brand,
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
  z-index: 2;
}

/* Prefer brand lockup over middle nav links when space is tight */
.site-nav > .nav-brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(42%, 22rem);
}

.site-nav > .nav-links {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav > .nav-actions {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

/* Keep center links visible on desktop shop pages */
@media (min-width: 961px) {
  .site-nav > .nav-links a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .site-nav.scrolled .branch-row-nav {
    /* Slightly tighter pills so Shop/Range/Brands stay in the bar */
    gap: 0.35rem;
  }

  .site-nav.scrolled .branch-row-nav li {
    min-width: 0;
    padding-inline: 0.75rem;
  }
}

.logo,
.footer-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo {
  height: 32px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Light mode: tiny elevated card so the dark lockup reads clearly */
html[data-theme="light"] .site-nav.scrolled .logo,
html[data-theme="light"] .site-nav.nav-solid .logo {
  height: auto;
  padding: 0.32rem 0.55rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 18, 16, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(40, 32, 18, 0.08);
}

html[data-theme="light"] .site-nav.scrolled .logo-img,
html[data-theme="light"] .site-nav.nav-solid .logo-img {
  height: 28px;
}

/* Home hero (transparent): keep bare white logo — no card over film */
html[data-theme="light"] .site-nav.nav-over-hero:not(.scrolled) .logo {
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .site-nav.nav-over-hero:not(.scrolled) .logo-img {
  height: 32px;
}

/* Dark mode: no card — white lockup already contrasts */
html[data-theme="dark"] .site-nav .logo {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logo-on-dark {
  display: var(--logo-on-dark-display);
}

.logo-on-light {
  display: var(--logo-on-light-display);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.78;
  transition: opacity 180ms var(--ease-out), color 180ms var(--ease-out);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 0.45rem;
  z-index: 2;
  margin-left: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.nav-cta:hover {
  opacity: 0.92;
}

.nav-cta:active {
  transform: scale(0.97);
}

.nav-cta-mobile {
  display: none;
}

.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
}

.nav-burger-lines {
  position: relative;
  width: 16px;
  height: 10px;
  display: block;
}

.nav-burger-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), top 220ms var(--ease-out);
}

.nav-burger-lines i:first-child {
  top: 2px;
}

.nav-burger-lines i:last-child {
  top: 8px;
}

.site-nav.is-open .nav-burger-lines i:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-burger-lines i:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* Mobile/tablet bar — logo left, controls right; no branch pills in the bar */
@media (max-width: 960px) {
  .site-nav {
    gap: 0.65rem;
    padding-inline: max(0.85rem, var(--pad-x));
  }

  .site-nav > .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    /* Reserve space so logo never sits under theme + burger */
    padding-right: 0.25rem;
  }

  /* Hide top-bar branch pills (must beat later .branch-row display) */
  .site-nav .branch-row.branch-row-nav {
    display: none !important;
  }

  .logo {
    height: 28px;
  }

  .logo-img {
    height: 28px;
    max-width: min(148px, 42vw);
  }

  html[data-theme="light"] .site-nav.scrolled .logo,
  html[data-theme="light"] .site-nav.nav-solid .logo {
    padding: 0.26rem 0.45rem;
    border-radius: 9px;
  }

  html[data-theme="light"] .site-nav.scrolled .logo-img,
  html[data-theme="light"] .site-nav.nav-solid .logo-img {
    height: 24px;
    max-width: min(132px, 40vw);
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 0.35rem;
    margin-left: 0;
  }

  .theme-trigger,
  .nav-burger {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    z-index: 3;
    padding: calc(var(--nav-h) + 0.85rem) var(--pad-x) 1.35rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 320ms var(--ease-drawer),
      opacity 240ms var(--ease-out);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.12rem;
    padding: 0.7rem 0;
    opacity: 1;
    width: 100%;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 0.65rem;
    width: 100%;
  }

  .nav-burger {
    display: grid;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 0;
  }

  /* Branches live in the drawer on small screens */
  .nav-drawer-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
    list-style: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer-branches li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}

@media (min-width: 961px) {
  .nav-drawer-branches {
    display: none;
  }
}

/*
 * Branch cards — sit to the RIGHT of the logo on the same line.
 * Both pills share identical height as the logo lockup (32px nav / 36px footer).
 */
.branch-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.branch-row li {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px; /* matches .logo / .logo-img exactly */
  min-height: 32px;
  max-height: 32px;
  min-width: 7.25rem;
  padding: 0 0.95rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  border-radius: 999px;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition:
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.branch-row li:hover {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-color: var(--accent-soft);
  color: var(--ink);
}

.branch-row li:active {
  transform: scale(0.98);
}

/* Transparent hero nav — frosted dark glass pills over the film only */
.site-nav.nav-over-hero:not(.scrolled) .branch-row li {
  color: rgba(243, 239, 230, 0.88);
  background: rgba(12, 11, 10, 0.38);
  border-color: rgba(243, 239, 230, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-nav.nav-over-hero:not(.scrolled) .branch-row li:hover {
  color: var(--pearl);
  background: rgba(12, 11, 10, 0.55);
  border-color: rgba(243, 239, 230, 0.38);
}

/* Solid / scrolled nav — theme tokens only (no color flip on scroll) */
.site-nav.scrolled .branch-row li,
.site-nav.nav-solid .branch-row li {
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-soft);
}

.site-nav.scrolled .branch-row li:hover,
.site-nav.nav-solid .branch-row li:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-color: var(--accent-soft);
}

/* Footer lockup — slightly larger, same optical alignment */
.footer-brand .logo,
.footer-logo {
  height: 36px;
}

.footer-brand .lockup {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .branch-row li {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  min-width: 7.75rem;
  font-size: 0.78rem;
  padding: 0 1.05rem;
}

/* .branch-row-nav inherits .branch-row; no extra row padding */

/* Theme control */
.theme-control {
  position: relative;
}

.theme-trigger {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  color: var(--ink);
  transition:
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.theme-trigger:hover {
  border-color: var(--accent);
}

.theme-trigger:active {
  transform: scale(0.96);
}

.theme-trigger-icon {
  display: grid;
  place-items: center;
}

.theme-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  z-index: 70;
}

.theme-panel[hidden] {
  display: none;
}

.theme-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.theme-panel-kicker {
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.theme-panel-title {
  font-family: var(--font-sans-stack);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
}

.theme-panel-close {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1;
}

.theme-panel-close:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.theme-panel-copy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.theme-options {
  display: grid;
  gap: 0.35rem;
}

.theme-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition:
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

.theme-option:hover {
  background: var(--accent-soft);
}

.theme-option.is-selected {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
}

.theme-option-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}

.theme-option-text {
  display: grid;
  gap: 0.05rem;
}

.theme-option-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.theme-option-desc {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.theme-option-check {
  color: var(--accent);
  width: 1rem;
  display: grid;
  place-items: center;
}

.theme-panel-foot {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.theme-panel-foot strong {
  color: var(--ink);
  font-weight: 600;
  text-transform: capitalize;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 160ms var(--ease-out),
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

/* Solid CTA — theme tokens: dark text on light pearl (dark mode),
   light text on near-black fill (light mode) */
.btn-solid,
.btn-light {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
}

.btn-solid:hover,
.btn-light:hover {
  opacity: 0.92;
}

/* Ghost CTA — follows page ink so light mode = dark text, dark mode = light text */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--btn-ghost-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  outline: none;
}

/* Hero / cinema stages stay dark media — force light ghost labels there */
.hero-stage .btn-ghost,
.hero-track .btn-ghost,
.hero-copy .btn-ghost,
.beat-stage .btn-ghost,
.beat-copy .btn-ghost {
  color: var(--pearl);
  border-color: rgba(243, 239, 230, 0.28);
}

.hero-stage .btn-ghost:hover,
.hero-track .btn-ghost:hover,
.hero-copy .btn-ghost:hover,
.beat-stage .btn-ghost:hover,
.beat-copy .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--pearl) 55%, transparent);
  background: rgba(243, 239, 230, 0.06);
}

/* Hero — tall track drives scrub distance; stage stays pinned full-screen */
.hero-track {
  position: relative;
  height: 420vh;
  background: #0c0b0a;
  /* Avoid creating a containing block that breaks sticky/pin */
  overflow: visible;
}

.hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  /* 100% not 100vw — 100vw includes scrollbar and can force overflow + kill sticky */
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--app-vh, 1vh) * 100);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(var(--app-vh, 1vh) * 100);
  overflow: hidden;
  color: var(--pearl);
  background: #0c0b0a;
  /* paint only — layout containment can interfere with sticky in some engines */
  contain: paint;
  z-index: 1;
}


.hero-canvas,
.hero-poster,
.hero-poster-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.hero-canvas {
  z-index: 2;
  /* Transparent so poster underneath covers any missed canvas paint */
  background: transparent;
  transform: translateZ(0);
  will-change: contents;
  image-rendering: auto;
}

.hero-poster {
  /* Permanent safety layer under the canvas — never a black void */
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.hero-poster-static {
  display: none;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--hero-scrim);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: var(--pad-x);
  right: max(var(--pad-x), 36%);
  /* Display block sits lower as one solid unit */
  bottom: clamp(3.5rem, 10vh, 6.5rem);
  max-width: min(48rem, 60vw);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.78);
  margin-bottom: 0.85rem;
}

.hero-copy h1 {
  font-family: var(--font-sans-stack);
  /* Cinema scale — fills the left stage without crowding the product */
  font-size: clamp(3.4rem, 9.2vw, 7.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
  /* Bright warm ivory — higher contrast over dark film frames */
  color: #fffaf2;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.08),
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 14px 70px rgba(0, 0, 0, 0.42);
  overflow: visible;
}

/*
 * Line reveal mask:
 * overflow:hidden is required for the GSAP slide-up. Minimal bottom pad
 * protects italic Outfit descenders (g, y) without stacking huge gaps
 * between the three headline lines.
 */
.hero-copy h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.06em;
}

.hero-copy h1 .line > span {
  display: block;
  padding-bottom: 0.02em;
  transform: translateY(115%);
  will-change: transform;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  font-size: 1.04em;
  line-height: inherit;
  color: #e4c57a;
  padding: 0 0.02em 0.04em;
  text-shadow:
    0 0 42px rgba(228, 197, 122, 0.45),
    0 0 80px rgba(196, 163, 90, 0.28),
    0 2px 28px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin-top: 1.15rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 246, 230, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(14px);
}

.beat {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: end start;
  padding: 0 var(--pad-x) clamp(3.75rem, 11vh, 7rem);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.beat.active {
  pointer-events: auto;
}

.beat-card {
  max-width: min(46rem, 62vw);
}

.beat h2 {
  font-family: var(--font-sans-stack);
  /* Match opening cinema weight — was reading too small on film */
  font-size: clamp(2.85rem, 7.4vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 0.96;
  color: #fffaf2;
  overflow: visible;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.08),
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 12px 52px rgba(0, 0, 0, 0.38);
}

.beat h2 em {
  font-style: italic;
  font-weight: 600;
  color: #e4c57a;
  padding-bottom: 0.04em;
  text-shadow:
    0 0 40px rgba(228, 197, 122, 0.42),
    0 0 72px rgba(196, 163, 90, 0.25),
    0 2px 24px rgba(0, 0, 0, 0.35);
}

.beat p {
  margin-top: 0.95rem;
  max-width: 34rem;
  color: rgba(255, 246, 230, 0.8);
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.beat-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(243, 239, 230, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    height: auto;
  }

  .hero-stage {
    position: relative;
    height: auto;
    min-height: 100dvh;
  }

  .hero-canvas,
  .hero-poster {
    display: none;
  }

  .hero-poster-static {
    display: block;
  }

  .hero-copy h1 .line > span,
  .hero-sub,
  .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
  }

  .beat {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    place-items: start;
    padding: 2rem var(--pad-x) 0;
    background: #0c0b0a;
  }

  .beat + .beat {
    padding-top: 1.25rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Shorter on phones so the cinema doesn’t feel endless */
  .hero-track {
    height: 360vh;
  }

  .hero-copy {
    right: var(--pad-x);
    bottom: 4.5rem;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 13.5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
  }

  .hero-copy h1 .line {
    padding-bottom: 0.12em;
    margin-bottom: -0.07em;
  }

  .hero-sub {
    margin-top: 1rem;
    font-size: 1.05rem;
  }

  .hero-ctas {
    margin-top: 1.15rem;
  }

  .beat-card {
    max-width: 100%;
  }

  .beat h2 {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
    line-height: 0.98;
  }

  .beat p {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .hero-ctas .btn,
  .beat-ctas .btn {
    width: 100%;
  }
}

/* Mid screens keep a moderate scrub distance */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-track {
    height: 400vh;
  }
}

/* ── Signal rail (post-hero) ──────────────────────────────────────
   Replaces the sparse centered tagbar. Asymmetric split: editorial
   lede left, stacked proof signals right. No equal 3-card row.
   ──────────────────────────────────────────────────────────────── */
.signal-rail {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3.75rem, 8vw, 6.5rem) var(--pad-x);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      90% 120% at 8% 20%,
      color-mix(in srgb, var(--accent) 12%, transparent) 0%,
      transparent 52%
    ),
    radial-gradient(
      120% 90% at 100% 0%,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 55%
    ),
    var(--bg);
  overflow: hidden;
}

.signal-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent) 22%,
    color-mix(in srgb, var(--accent) 40%, var(--ink)) 78%,
    transparent 100%
  );
  opacity: 0.85;
}

.signal-rail-inner {
  width: min(100%, calc(1560px + 2 * var(--pad-x)));
  max-width: none;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
}

.signal-intro {
  max-width: 28rem;
  padding-bottom: 0.35rem;
}

.signal-kicker {
  display: inline-block;
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.signal-lede {
  font-family: var(--font-sans-stack);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 15ch;
  margin: 0;
  text-wrap: balance;
}

.signal-lede em {
  font-style: normal;
  color: var(--accent);
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.signal-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: baseline;
  padding: 1.15rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms var(--ease-out);
}

.signal-item:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.signal-index {
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  min-width: 1.6rem;
  padding-top: 0.2rem;
}

.signal-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.signal-copy strong {
  font-family: var(--font-sans-stack);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.signal-copy span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 36ch;
}

/* Range section header — split layout */
.range-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.range-head .sec-title {
  margin-bottom: 0;
  max-width: 14ch;
}

.range-head-aside {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34ch;
  padding-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .signal-rail-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .signal-lede {
    max-width: 18ch;
  }

  .range-head {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .range-head-aside {
    padding-top: 0.25rem;
    max-width: 42ch;
  }
}

@media (max-width: 520px) {
  .signal-rail {
    padding-block: 2.75rem;
  }

  .signal-item {
    gap: 0.85rem;
    padding-block: 1rem;
  }
}

section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin-inline: auto;
}

.sec-eyebrow {
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.sec-title {
  font-family: var(--font-sans-stack);
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--ink);
}

.sec-title em {
  color: var(--accent);
}

/* Film — base + Apple-style full-bleed breakout */
.film-bleed {
  --film-bleed-x: calc(50% - 50vw);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: var(--film-bleed-x);
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
  left: 0;
  right: 0;
}

.film-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #0c0b0a;
  border: 0;
  border-block: 1px solid rgba(243, 239, 230, 0.06);
  box-shadow: none;
  aspect-ratio: 21 / 9;
  min-height: clamp(280px, 42vw, 720px);
  max-height: min(78vh, 820px);
  width: 100%;
  margin-bottom: 0;
}

.film-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0c0b0a;
  display: block;
}

.film-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      rgba(243, 239, 230, 0.05) 37%,
      transparent 63%
    )
    var(--graphite);
  background-size: 200% 100%;
  animation: film-shimmer 1.4s linear infinite;
}

.film-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(243, 239, 230, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.film-card.is-ready .film-loader {
  display: none;
}

.film-controls {
  position: absolute;
  right: max(1rem, var(--pad-x));
  bottom: max(1rem, 1.25vw);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.film-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-pill);
  color: var(--pearl);
  background: rgba(12, 11, 10, 0.55);
  border: 1px solid rgba(243, 239, 230, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 160ms var(--ease-out),
    background 180ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.film-btn:hover {
  background: rgba(12, 11, 10, 0.72);
  border-color: rgba(243, 239, 230, 0.22);
  box-shadow: 0 0 12px rgba(196, 163, 90, 0.12);
}

.film-btn:active {
  transform: scale(0.94);
}

/* Sound button — muted state */
.film-sound {
  position: relative;
  overflow: hidden;
}

.film-sound::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
  pointer-events: none;
}

.film-sound[aria-label="Turn sound off"]::after {
  opacity: 0.12;
}

.film-sound:hover {
  box-shadow: 0 0 16px rgba(196, 163, 90, 0.2);
}

/* Icon crossfade */
.film-sound svg {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.film-sound svg[hidden] {
  display: none;
}

/* Tooltip on hover */
.film-sound::before {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(12, 11, 10, 0.88);
  color: var(--pearl);
  font: 500 0.65rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.film-sound:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.film-toggle {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.film-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.film-ring-track,
.film-ring-fill {
  fill: none;
  stroke-width: 2;
}

.film-ring-track {
  stroke: rgba(243, 239, 230, 0.18);
}

.film-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 120ms linear;
}

.film-toggle > svg:not(.film-ring) {
  position: relative;
  z-index: 1;
}

/* Play/Pause icon crossfade */
.film-toggle svg:not(.film-ring) {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.film-toggle svg[hidden] {
  display: none;
}

@keyframes film-shimmer {
  to {
    background-position-x: -200%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-loader,
  .film-spinner {
    animation: none;
  }
}

/* Categories — full-bleed retail gallery (edge-to-edge stage)
   Note: do NOT set overflow-x on #range — it clips the film bleed. */
#range {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--pad-x);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: visible;
}

#range .range-head,
#range .cat-grid {
  width: min(100%, 1560px);
  margin-inline: auto;
}

/* Film escapes section padding → true viewport edge-to-edge */
#range .film-bleed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

#range .film-card {
  border-radius: 0;
  border: 0;
  border-block: 1px solid rgba(243, 239, 230, 0.06);
  aspect-ratio: 21 / 9;
  min-height: clamp(280px, 42vw, 720px);
  max-height: min(78vh, 820px);
  box-shadow: none;
  width: 100%;
}

#range .sec-title {
  max-width: 16ch;
}

#range .range-head .sec-eyebrow {
  margin-bottom: 0.7rem;
}

@media (max-width: 720px) {
  #range .film-card {
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: min(56vh, 480px);
  }

  .film-controls {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

@media (min-width: 1400px) {
  #range .film-card {
    aspect-ratio: 2.4 / 1;
    min-height: clamp(420px, 38vw, 760px);
  }
}

/* ── Category bento ───────────────────────────────────────
   Desktop: 12-col asymmetric
   · Mobile (featured): full width, cinematic image + overlay meta
   · Laptops + Watches: half width each
   · Audio / Gaming / Accessories: equal thirds
   ───────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  width: 100%;
}

.cat {
  --cat-pad: clamp(1.15rem, 2.2vw, 1.6rem);
  position: relative;
  grid-column: span 4;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: clamp(300px, 30vw, 380px);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
}

/* Row 2: Laptops + Smart Watches */
.cat:nth-child(2),
.cat:nth-child(3) {
  grid-column: span 6;
  min-height: clamp(320px, 34vw, 420px);
}

/* Featured: full-bleed cinematic tile */
.cat-featured {
  grid-column: 1 / -1;
  min-height: clamp(400px, 48vw, 580px);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.cat:hover,
.cat:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-4px);
  outline: none;
}

.cat:active {
  transform: translateY(-1px) scale(0.995);
}

/* Media */
.cat .ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.cat .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 700ms var(--ease-out), filter 400ms ease;
  filter: saturate(0.92) contrast(1.04);
}

/* Laptops tile — right-weighted chassis, calm left for title */
.cat-laptops .ph img {
  object-position: 72% 42%;
  filter: saturate(0.78) contrast(1.06) brightness(0.92);
}

.cat-laptops .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.18) 0%,
      rgba(12, 11, 10, 0.22) 32%,
      rgba(12, 11, 10, 0.78) 70%,
      rgba(12, 11, 10, 0.96) 100%
    ),
    linear-gradient(
      105deg,
      rgba(12, 11, 10, 0.72) 0%,
      rgba(12, 11, 10, 0.28) 42%,
      rgba(12, 11, 10, 0.08) 68%,
      transparent 82%
    );
}

/* Smart Watches tile — HUAWEI FIT 5 Pro, right-weighted, calm left */
.cat-watches .ph img {
  object-position: 68% 46%;
  filter: saturate(0.88) contrast(1.05) brightness(0.94);
}

.cat-watches .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.14) 0%,
      rgba(12, 11, 10, 0.2) 34%,
      rgba(12, 11, 10, 0.76) 72%,
      rgba(12, 11, 10, 0.96) 100%
    ),
    linear-gradient(
      108deg,
      rgba(12, 11, 10, 0.7) 0%,
      rgba(12, 11, 10, 0.26) 40%,
      rgba(12, 11, 10, 0.06) 66%,
      transparent 80%
    );
}

/* Audio tile — JBL Boombox-style, warm gold studio, calm left */
.cat-audio .ph img {
  object-position: 62% 48%;
  filter: saturate(0.9) contrast(1.05) brightness(0.93);
}

.cat-audio .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.12) 0%,
      rgba(12, 11, 10, 0.2) 36%,
      rgba(12, 11, 10, 0.78) 72%,
      rgba(12, 11, 10, 0.96) 100%
    ),
    linear-gradient(
      108deg,
      rgba(12, 11, 10, 0.68) 0%,
      rgba(12, 11, 10, 0.24) 42%,
      rgba(12, 11, 10, 0.06) 68%,
      transparent 82%
    );
}

/* Gaming tile — DualSense / peripherals, right-weighted */
.cat-gaming .ph img {
  object-position: 70% 45%;
  filter: saturate(0.86) contrast(1.05) brightness(0.94);
}

.cat-gaming .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.14) 0%,
      rgba(12, 11, 10, 0.22) 34%,
      rgba(12, 11, 10, 0.78) 72%,
      rgba(12, 11, 10, 0.96) 100%
    ),
    linear-gradient(
      108deg,
      rgba(12, 11, 10, 0.7) 0%,
      rgba(12, 11, 10, 0.26) 40%,
      rgba(12, 11, 10, 0.06) 66%,
      transparent 80%
    );
}

/* Accessories tile — keyboard + mouse hero, right-weighted */
.cat-accessories .ph img {
  object-position: 70% 52%;
  filter: saturate(0.82) contrast(1.06) brightness(0.93);
}

.cat-accessories .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.12) 0%,
      rgba(12, 11, 10, 0.2) 32%,
      rgba(12, 11, 10, 0.76) 70%,
      rgba(12, 11, 10, 0.96) 100%
    ),
    linear-gradient(
      108deg,
      rgba(12, 11, 10, 0.72) 0%,
      rgba(12, 11, 10, 0.28) 42%,
      rgba(12, 11, 10, 0.06) 68%,
      transparent 82%
    );
}

.cat-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.08) 0%,
      rgba(12, 11, 10, 0.15) 35%,
      rgba(12, 11, 10, 0.72) 72%,
      rgba(12, 11, 10, 0.94) 100%
    ),
    linear-gradient(
      105deg,
      rgba(12, 11, 10, 0.55) 0%,
      rgba(12, 11, 10, 0.12) 48%,
      transparent 72%
    );
  z-index: 1;
}

.cat-featured .cat-scrim {
  background:
    linear-gradient(
      100deg,
      rgba(12, 11, 10, 0.88) 0%,
      rgba(12, 11, 10, 0.55) 34%,
      rgba(12, 11, 10, 0.18) 58%,
      rgba(12, 11, 10, 0.45) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.25) 0%,
      transparent 40%,
      rgba(12, 11, 10, 0.75) 100%
    );
}

html[data-theme="light"] .cat-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.05) 0%,
      rgba(12, 11, 10, 0.2) 40%,
      rgba(12, 11, 10, 0.78) 100%
    ),
    linear-gradient(
      105deg,
      rgba(12, 11, 10, 0.45) 0%,
      transparent 55%
    );
}

@media (hover: hover) and (pointer: fine) {
  .cat:hover .ph img,
  .cat:focus-visible .ph img {
    transform: scale(1.07);
    filter: saturate(1.05) contrast(1.06);
  }
}

/* Meta panel sits over the image */
.cat .meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-content: end;
  gap: 0.65rem 1rem;
  margin-top: auto;
  padding: var(--cat-pad);
  color: var(--pearl);
  min-height: 100%;
}

.cat-idx {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--accent) 85%, var(--pearl));
  opacity: 0.9;
}

.cat-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 28ch;
  align-self: end;
}

.cat h3 {
  font-family: var(--font-sans-stack);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--pearl);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.cat-featured h3 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 10ch;
}

.cat-blurb {
  margin: 0;
  max-width: 32ch;
  font-family: var(--font-sans-stack);
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.72);
  text-wrap: pretty;
}

.cat:not(.cat-featured) .cat-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat .from {
  margin-top: 0.2rem;
  font-family: var(--font-mono-stack);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--accent) 70%, var(--pearl));
}

.cat-featured .from {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* CTA chip */
.cat-cta {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 239, 230, 0.18);
  background: rgba(12, 11, 10, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.cat-cta-label {
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.88);
}

.cat .go {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(243, 239, 230, 0.12);
  color: var(--pearl);
  font-size: 0.95rem;
  line-height: 1;
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat-cta,
  .cat:focus-visible .cat-cta {
    background: color-mix(in srgb, var(--accent) 88%, #0c0b0a);
    border-color: transparent;
    transform: translateX(2px);
  }

  .cat:hover .cat-cta-label,
  .cat:focus-visible .cat-cta-label {
    color: var(--obsidian);
  }

  .cat:hover .go,
  .cat:focus-visible .go {
    background: rgba(12, 11, 10, 0.2);
    color: var(--obsidian);
    transform: translateX(2px);
  }
}

/* Featured meta: left rail over wide film */
.cat-featured .meta {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: min(40rem, 92%);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  gap: 1rem 1.25rem;
}

.cat-featured .cat-copy {
  max-width: 22ch;
  gap: 0.65rem;
}

.cat-featured .cat-blurb {
  max-width: 34ch;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  color: rgba(243, 239, 230, 0.78);
}

.cat-featured .cat-idx {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .cat,
  .cat:nth-child(2),
  .cat:nth-child(3) {
    grid-column: span 3;
    min-height: clamp(260px, 40vw, 320px);
  }

  .cat-featured {
    grid-column: 1 / -1;
    min-height: clamp(320px, 52vw, 420px);
  }

  .cat-featured h3 {
    max-width: 12ch;
  }
}

/* ── Phone ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cat,
  .cat:nth-child(2),
  .cat:nth-child(3),
  .cat-featured {
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .cat-featured {
    min-height: 320px;
  }

  .cat .meta {
    padding: 1.1rem 1.15rem 1.2rem;
  }

  .cat-featured .meta {
    padding: 1.35rem 1.25rem 1.4rem;
    max-width: none;
  }

  .cat h3 {
    font-size: clamp(1.4rem, 6vw, 1.65rem);
  }

  .cat-featured h3 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    max-width: none;
  }

  .cat:not(.cat-featured) .cat-blurb {
    -webkit-line-clamp: 2;
  }

  .cat-cta-label {
    display: none;
  }

  .cat-cta {
    padding: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat,
  .cat .ph img,
  .cat-cta,
  .cat .go {
    transition: none;
  }

  .cat:hover,
  .cat:focus-visible {
    transform: none;
  }

  .cat:hover .ph img,
  .cat:focus-visible .ph img {
    transform: none;
  }
}


/* ── Shop by Brand — full-bleed shell ───────────────────────────────────── */
#brands.brands-section,
.brands-section,
#brands {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(3.75rem, 8vw, 7rem) var(--pad-x);
  background:
    radial-gradient(
      80% 70% at 50% 0%,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 60%
    ),
    var(--bg);
}

.brands-shell {
  position: relative;
  width: min(100%, 1560px);
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3.25rem)
    clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: calc(var(--radius-lg) + 10px);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, var(--accent-soft), transparent 58%),
    radial-gradient(ellipse 50% 60% at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--shadow-soft);
  overflow: hidden;
  min-height: clamp(28rem, 55vh, 42rem);
}

.brands-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), transparent 88%);
  opacity: 0.95;
}

.brands-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--ink) 3%, transparent) 0%,
      transparent 42%
    );
  opacity: 0.5;
}

.brands-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(11rem, 0.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.brands-head .sec-title {
  max-width: 18ch;
  margin-bottom: 0.95rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.brands-lede {
  max-width: 58ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.brands-cta-wrap {
  justify-self: end;
  padding-bottom: 0.35rem;
}

.brands-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-family: var(--font-sans-stack);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.28s var(--ease-out), background 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.brands-cta:hover,
.brands-cta:focus-visible {
  border-color: var(--accent-glow);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.brands-cta .go {
  transition: transform 0.28s var(--ease-out);
}

.brands-cta:hover .go {
  transform: translateX(3px);
}

.brands-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
}

.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: clamp(6.75rem, 12vw, 8rem);
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: calc(var(--radius-sm) + 2px);
  background: color-mix(in srgb, var(--bg) 88%, var(--bg-elevated));
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.28s var(--ease-out), background 0.28s var(--ease-out),
    transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.brand-tile:hover,
.brand-tile:focus-visible {
  border-color: var(--accent-glow);
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.brand-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-tile-name {
  font-family: var(--font-sans-stack);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Official brand logo (admin upload) — normalized to a mono mark that
   adapts to theme: dark ink on light, ivory on dark. */
.brand-tile-logo {
  width: auto;
  height: auto;
  max-width: min(72%, 6.75rem);
  max-height: 1.9rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) opacity(0.85);
}

html:not([data-theme="light"]) .brand-tile-logo {
  filter: brightness(0) invert(1) opacity(0.9);
}

.brand-tile-line {
  font-family: var(--font-mono-stack);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.brands-note {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.5rem, 3.2vw, 2.1rem);
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

.brands-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
  transition: border-color 0.2s var(--ease-out);
}

.brands-note a:hover,
.brands-note a:focus-visible {
  border-color: var(--accent);
}

@media (max-width: 1100px) {
  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .brands-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .brands-cta-wrap {
    justify-self: start;
    padding-bottom: 0;
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-shell {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .brands-shell {
    padding: 1.45rem 1.15rem 1.55rem;
    border-radius: calc(var(--radius-lg) + 4px);
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .brand-tile {
    min-height: 5.5rem;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-tile {
    transition: none;
  }

  .brand-tile:hover,
  .brand-tile:focus-visible {
    transform: none;
  }
}


/* Rooms — full-bleed stage */
#rooms {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(4.25rem, 9vw, 7.5rem) var(--pad-x);
}

#rooms .sec-eyebrow,
#rooms .sec-title,
#rooms .rooms-grid {
  width: min(100%, 1560px);
  margin-inline: auto;
}

#rooms .sec-title {
  max-width: 14ch;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.room {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: clamp(18rem, 28vw, 24rem);
  padding: clamp(1.6rem, 3.4vw, 2.35rem);
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.room .city {
  font-family: var(--font-mono-stack);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.room h3 {
  font-family: var(--font-sans-stack);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.room p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36ch;
}

.room-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.room .hours {
  color: var(--ink);
}

.room .hours b {
  font-weight: 600;
}

.room .address,
.room-phone {
  color: var(--ink-muted);
}

.room-phone:hover {
  color: var(--accent);
}

.room-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), opacity 180ms var(--ease-out);
}

.room-cta:hover {
  opacity: 0.92;
}

.room-cta:active {
  transform: scale(0.97);
}

@media (max-width: 720px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }
}

/* Proof */
#proof {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-card {
  padding: 1.25rem 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  min-height: 100%;
}

.proof-index {
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.proof-card h3 {
  font-family: var(--font-sans-stack);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.proof-card p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  margin-top: 1rem;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad-x) 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 65%, var(--bg));
}

.footer-top {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 36rem;
}

/* footer-brand already is logo + pills on one row */
.footer-brand {
  width: 100%;
}

footer .lockup {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-sans-stack);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-label {
  font-family: var(--font-mono-stack);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 160ms var(--ease-out), color 160ms var(--ease-out);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max);
  margin-inline: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer-note {
  opacity: 0.75;
}

.rv {
  opacity: 1;
}

html[data-theme="light"] .hero-track,
html[data-theme="light"] .hero-stage {
  background: #0c0b0a;
}


/* ---- full-viewport chrome ---- */
html {
  width: 100%;
  max-width: 100%;
  /* clip keeps horizontal bleed in check WITHOUT killing position:sticky */
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

main {
  display: block;
  width: 100%;
  overflow: visible;
}

.hero-track {
  width: 100%;
  max-width: none;
  overflow: visible;
}

/* Range / rooms sections stay centered but use full available width like Next */
section {
  width: 100%;
  box-sizing: border-box;
}

.cat-grid,
.rooms-grid,
.proof-grid {
  width: 100%;
}

#range .film-bleed,
#range .film-card {
  width: 100vw;
  max-width: 100vw;
}

/* =========================================================
   Shop / category product-list (e-commerce catalog)
   ========================================================= */
.shop-page {
  padding: calc(var(--nav-h) + 1.5rem) 0 4rem;
  min-height: 100dvh;
}

.shop-wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad-x)));
  margin-inline: auto;
}

.shop-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.shop-crumbs a:hover {
  color: var(--accent);
}

.shop-hero {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.shop-kicker {
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.shop-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

.shop-lead {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.shop-btn-ghost {
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}

.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .shop-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .shop-cat-grid {
    grid-template-columns: 1fr;
  }
}

.shop-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.shop-cat-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.shop-cat-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.shop-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cat-ph,
.cat-ph-fallback {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 70%, var(--accent) 8%), var(--bg-soft));
  font-family: var(--font-mono-stack);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.shop-cat-count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 11, 10, 0.72);
  color: var(--pearl);
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-cat-body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.shop-cat-body h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.shop-cat-body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.shop-cat-go {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.shop-chip:hover,
.shop-chip.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #ffffff;
  color: #141210;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 14, 12, 0.05);
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(16, 14, 12, 0.2);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  box-sizing: border-box;
  transition: transform 320ms var(--ease-out);
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono-stack);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: rgba(20, 18, 16, 0.35);
  background: #ffffff;
}

.product-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--obsidian);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
  background: #ffffff;
}

.product-brand {
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #141210;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.product-meta li {
  font-size: 0.72rem;
  color: rgba(20, 18, 16, 0.62);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 16, 0.14);
  background: #ffffff;
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(20, 18, 16, 0.1);
}

.product-price {
  font-family: var(--font-mono-stack);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(20, 18, 16, 0.62);
}

.product-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f3efe6;
  background: #141210;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.product-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.shop-empty {
  padding: 2rem 0;
  color: var(--ink-muted);
}

.shop-more {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.shop-more-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.shop-more-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-seo-note {
  margin-top: 2.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 70ch;
}

.shop-seo-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   Wave accessories — image-led cards (own brand)
   Distinct from standard product-card grid
   ========================================================= */

.wave-hero .wave-kicker {
  color: #1a8fd6;
  letter-spacing: 0.16em;
}

.wave-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 1024px) {
  .wave-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wave-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.wave-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  border: 1px solid rgba(20, 18, 16, 0.1);
  background: #ffffff;
  color: #141210;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.wave-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 143, 214, 0.45);
}

.wave-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0b1c2c;
  overflow: hidden;
}

.wave-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 480ms var(--ease-out);
}

.wave-card:hover .wave-card-media img {
  transform: scale(1.04);
}

.wave-card-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono-stack);
  letter-spacing: 0.2em;
  color: rgba(243, 239, 230, 0.55);
  background: linear-gradient(160deg, #0b1c2c, #12324a);
}

.wave-card-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(
    to top,
    rgba(8, 16, 24, 0.55) 0%,
    rgba(8, 16, 24, 0) 100%
  );
  pointer-events: none;
}

.wave-sku {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  background: #1a8fd6;
  color: #fff;
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wave-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1c2c;
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wave-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.1rem;
  background: #ffffff;
  flex: 1;
}

.wave-brand {
  margin: 0;
  font-family: var(--font-mono-stack);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a8fd6;
}

.wave-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #141210;
  text-wrap: balance;
}

.wave-desc {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(20, 18, 16, 0.68);
}

.wave-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.wave-specs li {
  font-size: 0.7rem;
  line-height: 1.25;
  color: rgba(20, 18, 16, 0.72);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 143, 214, 0.22);
  background: rgba(26, 143, 214, 0.06);
}

.wave-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
}

.wave-price {
  margin: 0;
  font-family: var(--font-mono-stack);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(20, 18, 16, 0.58);
}

.wave-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: #0b1c2c;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.wave-cta:hover {
  background: #1a8fd6;
  transform: translateY(-1px);
}

/* =========================================================
   Error pages (404 · 403 · 400) — shared styles
   500 is self-contained (inline CSS) since context is unavailable
   ========================================================= */

.error-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  overflow-x: hidden;
}

.error-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  width: 100%;
}

.error-logo {
  display: block;
  margin-bottom: 3rem;
}
.error-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.error-logo:hover img {
  opacity: 1;
}

.error-scene {
  position: relative;
  margin-bottom: 1.5rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--amber-metal);
  text-shadow:
    0 0 80px rgba(196, 163, 90, 0.15),
    0 0 160px rgba(196, 163, 90, 0.07);
}
.error-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  width: 120%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 55% at 50% 30%,
    rgba(196, 163, 90, 0.07),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.error-h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.error-body-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 460px;
  margin: 0 auto 2.2rem;
}

.error-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-divider {
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 2.2rem;
}

.error-recovery {
  margin-bottom: 2rem;
}
.error-recovery-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-metal);
  margin-bottom: 0.75rem;
}
.error-recovery-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  justify-content: center;
}
.error-recovery-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.error-recovery-list a:hover {
  color: var(--ink);
}

.error-contact {
  margin-bottom: 0;
}
.error-contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-metal);
  margin-bottom: 1rem;
}
.error-showrooms {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-showroom {
  text-align: center;
}
.error-showroom-city {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.error-showroom-phone {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--amber-metal);
  text-decoration: none;
  transition: color 0.2s;
}
.error-showroom-phone:hover {
  color: #d4b86a;
}

.error-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-faint);
  opacity: 0.55;
}

@media (max-width: 480px) {
  .error-body { padding: 1.5rem 1rem; }
  .error-code { font-size: 5rem; }
  .error-actions { flex-direction: column; align-items: center; }
  .error-actions .btn { width: 100%; justify-content: center; max-width: 280px; }
  .error-showrooms { flex-direction: column; gap: 1.2rem; }
}

/* Page-load top progress bar (nprogress-style) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--amber-metal);
  z-index: 9999;
  transform-origin: left;
  will-change: transform;
}

/* Reduced motion — kill glows + transitions on error pages */
@media (prefers-reduced-motion: reduce) {
  .error-glow { display: none; }
  .error-logo img,
  .error-recovery-list a,
  .error-showroom-phone { transition: none; }
}

/* ── Legal / Privacy page ──────────────────────────────────── */

.legal-page {
  min-height: 100dvh;
  padding-top: 10rem;
  padding-bottom: 5rem;
  color: var(--ink);
  background: var(--bg);
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-x, 1.5rem);
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  font-family: var(--font-mono), "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  max-width: 65ch;
}

.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-body a:hover,
.legal-body a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  .legal-header h1 {
    font-size: 1.6rem;
  }
}

/* ── About / Services story pages ─────────────────────────────────────────── */

.contact-anchor {
  position: relative;
  top: -5.5rem;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------
   About + Services story pages — theme-token driven
   (works in both dark and light modes)
   ------------------------------------------------------------ */
.story-page {
  padding-bottom: 4rem;
  color: var(--ink);
  background: var(--bg);
}

.story-hero {
  padding: 9.5rem var(--pad-x) 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, var(--accent-soft), transparent 62%),
    var(--bg);
}

.story-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.story-kicker {
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.story-title {
  font-family: var(--font-sans-stack);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.story-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-muted);
}

.story-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.story-inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.story-inline-link:hover,
.story-inline-link:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
}

.story-hero-actions,
.story-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

/* Story-page buttons: explicit theme ink so CTAs never wash out */
.story-page .btn-solid,
.story-page .btn-light {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  border-color: transparent;
}

.story-page .btn-ghost {
  color: var(--ink);
  border-color: var(--btn-ghost-border);
  background: transparent;
}

.story-page .btn-ghost:hover,
.story-page .btn-ghost:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.story-page .sec-title,
.story-page .sec-title em {
  color: var(--ink);
}

.story-page .sec-eyebrow {
  color: var(--accent);
}

.story-page h1,
.story-page h2,
.story-page h3 {
  color: var(--ink);
}

.story-page p,
.story-page li {
  color: inherit;
}

.story-page .story-body,
.story-page .story-lede,
.story-page .story-parent-copy,
.story-page .svc-card > p,
.story-page .svc-points li,
.story-page .svc-step p,
.story-page .story-pillar p,
.story-page .story-room-address,
.story-page .story-room-hours {
  color: var(--ink-muted);
}

.story-section {
  padding: 4.5rem var(--pad-x) 0;
}

.story-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.story-section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.story-section-head .sec-title {
  max-width: 22ch;
}

.story-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
  max-width: 62ch;
}

.story-body-narrow {
  max-width: 48ch;
}

.story-body strong {
  color: var(--ink);
  font-weight: 600;
}

.story-split {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.story-split-compact {
  gap: 2rem;
}

.story-parent-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.story-parent-cta:hover,
.story-parent-cta:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
}

.story-parent-cta:active {
  transform: translateY(1px);
}

.story-parent-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 58%),
    var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.65rem 1.6rem;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

/* Top: copy left · logo right (matches hit layout) */
.story-parent-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.35rem;
  align-items: start;
  width: 100%;
  margin: 0 0 0.15rem;
}

.story-parent-intro {
  min-width: 0;
}

.story-parent-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.story-parent-logo {
  display: block;
  width: auto;
  max-width: 148px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  background: transparent;
}

/* Dark mode: light chip so the navy Pasons wordmark stays readable */
html:not([data-theme="light"]) .story-parent-logo-wrap {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 28px rgba(0, 0, 0, 0.28);
}

html:not([data-theme="light"]) .story-parent-logo {
  /* Slight lift if the PNG still has a faint gray edge */
  mix-blend-mode: normal;
  filter: none;
}

html[data-theme="light"] .story-parent-logo-wrap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

.story-parent-label {
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}

.story-parent-name {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.55rem;
  text-wrap: balance;
}

.story-parent-copy {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 34ch;
}

.story-parent-meta {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  margin: 1.1rem 0 1.15rem;
  padding: 0;
}

.story-parent-meta div {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.story-parent-meta dt {
  font-family: var(--font-mono-stack);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.story-parent-meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.story-parent-btn {
  width: auto;
  min-width: 10.5rem;
  justify-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .story-parent-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-parent-logo-wrap {
    order: -1;
    justify-content: flex-start;
    margin: 0;
  }

  .story-parent-logo {
    max-height: 68px;
    max-width: 140px;
  }

  .story-parent-copy {
    max-width: none;
  }

  .story-parent-btn {
    width: 100%;
  }
}

.story-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.story-vm-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.story-vm-title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0.35rem 0 1rem;
}

.story-pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.story-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.story-pillar-index {
  font-family: var(--font-mono-stack);
  font-size: 0.75rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.story-pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.story-pillar p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.story-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.story-room-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.4rem 1.3rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.story-room-city {
  font-family: var(--font-mono-stack);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}

.story-room-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.story-room-address,
.story-room-hours {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.story-room-hours strong {
  color: var(--ink);
  font-weight: 600;
}

.story-room-phone {
  display: inline-block;
  margin: 0.55rem 0 0.35rem;
  font-family: var(--font-mono-stack);
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}

.story-room-phone:hover,
.story-room-phone:focus-visible {
  text-decoration: underline;
  outline: none;
}

.story-room-maps {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease-out);
}

.story-room-maps:hover,
.story-room-maps:focus-visible {
  opacity: 1;
  outline: none;
}

/* Services grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.svc-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.45rem 1.3rem 1.35rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.svc-card:hover {
  border-color: var(--line-strong);
}

.svc-index {
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.svc-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.svc-card > p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  flex: 1;
}

.svc-points {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}

.svc-points li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.svc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.svc-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.svc-step-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono-stack);
  font-size: 0.78rem;
  color: var(--btn-solid-fg);
  background: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.svc-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.svc-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.svc-contact-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.svc-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease-out);
}

.svc-contact-row:hover,
.svc-contact-row:focus-visible {
  opacity: 0.88;
  outline: none;
}

.svc-contact-row span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.svc-contact-row strong {
  font-family: var(--font-mono-stack);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

.story-closing {
  padding-bottom: 1rem;
}

.story-closing-inner {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  text-align: center;
}

.story-closing-inner .sec-title {
  max-width: 18ch;
  margin-inline: auto;
}

.story-closing-inner .story-body-narrow {
  margin-inline: auto;
}

/* Alternating section bands for clearer hierarchy */
.story-page .story-vm,
.story-page .story-how,
.story-page .story-locations {
  margin-top: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

html[data-theme="light"] .story-parent-card,
html[data-theme="light"] .story-vm-card,
html[data-theme="light"] .story-room-card,
html[data-theme="light"] .svc-card,
html[data-theme="light"] .svc-step {
  border-color: rgba(20, 18, 16, 0.1);
  background:
    linear-gradient(165deg, rgba(168, 132, 58, 0.06), transparent 50%),
    #ffffff;
}

html[data-theme="light"] .story-parent-card {
  background:
    linear-gradient(160deg, rgba(168, 132, 58, 0.1), transparent 55%),
    #ffffff;
}

html[data-theme="light"] .svc-step-num {
  color: #141210;
  background: var(--accent);
}

html:not([data-theme="light"]) .story-parent-card,
html:not([data-theme="light"]) .story-vm-card,
html:not([data-theme="light"]) .story-room-card,
html:not([data-theme="light"]) .svc-card,
html:not([data-theme="light"]) .svc-step {
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
}

html:not([data-theme="light"]) .svc-step-num {
  color: #0c0b0a;
  background: var(--accent);
}

@media (max-width: 960px) {
  .story-split,
  .story-vm-grid,
  .story-pillar-list,
  .story-room-grid,
  .svc-grid,
  .svc-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }

  .story-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .story-section {
    padding-top: 3.25rem;
  }

  .story-page .story-vm,
  .story-page .story-how,
  .story-page .story-locations {
    margin-top: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .story-parent-meta div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-parent-cta,
  .story-inline-link,
  .svc-card,
  .story-room-maps,
  .svc-contact-row {
    transition: none;
  }
}


/* === SEO product detail + card links === */
a.product-card-link,
a.wave-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

a.product-card-link:focus-visible,
a.wave-card-link:focus-visible {
  outline: 2px solid var(--accent, #c9a227);
  outline-offset: 3px;
}

.product-card-link .product-cta,
.wave-card-link .wave-cta {
  pointer-events: none;
}

.pdp {
  margin-top: 0.5rem;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pdp-media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, rgba(20, 18, 16, 0.1));
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

/* Accessories / Wave PDP — full-bleed lifestyle image (matches listing cards) */
.pdp-accessories .pdp-media,
.pdp-media-fill {
  aspect-ratio: 4 / 5;
  background: #0b1c2c;
  border: none;
  place-items: stretch;
}

.pdp-accessories .pdp-media img,
.pdp-media-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
}

.pdp-ph {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  color: rgba(20, 18, 16, 0.2);
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pdp-brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted, #6b6560);
  font-family: "JetBrains Mono", monospace;
}

.pdp-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink, #141210);
  text-wrap: balance;
}

.pdp-sku {
  margin: 0;
  font-size: 0.82rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--ink-muted, #6b6560);
}

.pdp-price {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
}

.pdp-price-label {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink, #141210);
  font-family: "JetBrains Mono", monospace;
}

.pdp-price-note {
  font-size: 0.8rem;
  color: var(--ink-muted, #6b6560);
}

.pdp-lead {
  margin: 0;
  max-width: 52ch;
  line-height: 1.6;
  color: var(--ink-muted, #6b6560);
}

.pdp-specs {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pdp-specs li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line, rgba(20, 18, 16, 0.08));
  font-size: 0.92rem;
  color: var(--ink, #141210);
}

.pdp-specs li span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #6b6560);
}

.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pdp-local {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted, #6b6560);
  max-width: 48ch;
}

.pdp-related {
  margin-top: 3rem;
}

.product-grid-related {
  margin-top: 1rem;
}

.product-card h3.product-name {
  font-size: 1rem;
  margin: 0.15rem 0 0.4rem;
}

@media (max-width: 820px) {
  .pdp-grid {
    grid-template-columns: 1fr;
  }

  .pdp-media {
    max-width: 28rem;
    margin-inline: auto;
    width: 100%;
  }
}

/* ────────────────────────────────────────────────────────────
   Branch pill links (dedicated location pages)
   ──────────────────────────────────────────────────────────── */
.branch-row li a.branch-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  white-space: inherit;
}

.branch-row li a.branch-link:hover {
  color: inherit;
  text-decoration: none;
}

.branch-row li a.branch-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 999px;
}

/* ────────────────────────────────────────────────────────────
   Abu Dhabi location page (core/abu_dhabi.html)
   ──────────────────────────────────────────────────────────── */
.story-page-ad .story-parent-meta dd a {
  color: var(--accent);
  text-decoration: none;
}

.story-page-ad .story-parent-meta dd a:hover,
.story-page-ad .story-parent-meta dd a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.story-page-ad .story-serve {
  border-top: 1px solid var(--line);
}

.serve-rail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.75rem;
}

.serve-chip {
  font-family: var(--font-mono-stack);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-soft);
}

.serve-chip-accent {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.serve-line {
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* Visible breadcrumb (mirrors the BreadcrumbList schema) */
.story-crumbs {
  padding: 1rem var(--pad-x) 0;
}

.story-crumbs ol {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.story-crumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-crumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.story-crumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.story-crumbs a:hover,
.story-crumbs a:focus-visible {
  color: var(--accent);
  outline: none;
}

.story-crumbs [aria-current="page"] {
  color: var(--ink);
}

/* Category chip links (internal linking) */
.story-cats {
  padding: 1.5rem var(--pad-x) 0;
}

.cat-chip-list {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-chip-list a {
  display: inline-block;
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.cat-chip-list a:hover,
.cat-chip-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-soft);
  outline: none;
}

/* Pillar headings + inline CTAs */
.story-pillar .pillar-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.story-pillar .pillar-link:hover,
.story-pillar .pillar-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.pillar-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.7rem;
}

.pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.pillar-cta:hover,
.pillar-cta:focus-visible {
  color: var(--ink);
  outline: none;
}

.pillar-cta span {
  transition: transform 0.2s var(--ease-out);
}

.pillar-cta:hover span {
  transform: translateX(2px);
}

.story-faq-wrap {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono-stack);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 62ch;
}

@media (max-width: 560px) {
  .serve-rail {
    gap: 0.5rem;
  }

  .serve-line {
    width: 0.75rem;
  }

  .serve-chip {
    font-size: 0.68rem;
    padding: 0.45rem 0.8rem;
  }
}

/* ------------------------------------------------------------
   Blog - listing + article pages (theme-token driven)
   ------------------------------------------------------------ */
.blog-hero {
  padding-bottom: 4.5rem;
}

.blog-section {
  padding-top: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  text-decoration: none;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono-stack);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, var(--accent-soft), transparent 70%),
    var(--bg-soft);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.3rem 1.4rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-mono-stack);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-card-meta span {
  color: var(--accent);
}

.blog-card-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover,
.blog-card-title a:focus-visible {
  color: var(--accent);
  outline: none;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.blog-card .story-parent-cta {
  margin-top: auto;
  font-size: 0.85rem;
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.blog-empty .sec-title {
  margin-inline: auto;
}

.blog-empty .story-body {
  margin-inline: auto;
}

/* Article detail */
.blog-article-hero {
  padding-bottom: 2.25rem;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono-stack);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-article-meta .blog-byline {
  color: var(--accent);
  font-weight: 500;
}

.article-excerpt {
  font-size: 1.1rem;
}

.blog-article-cover {
  max-width: 1100px;
  padding: 0 var(--pad-x);
}

.blog-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.blog-article-section {
  padding-top: 2.5rem;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}

.blog-article-body {
  max-width: 68ch;
  color: var(--ink-muted);
}

.blog-article-body h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.9rem 0 0.8rem;
}

.blog-article-body h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1.6rem 0 0.6rem;
}

.blog-article-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.15rem;
}

.blog-article-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.blog-article-body li {
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0.3rem 0;
}

.blog-article-body strong {
  color: var(--ink);
  font-weight: 650;
}

.blog-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.blog-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-related {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.blog-related .sec-eyebrow {
  margin-bottom: 0.25rem;
}

.blog-related-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out);
}

.blog-related-item:hover,
.blog-related-item:focus-visible {
  border-color: var(--accent-soft);
  outline: none;
}

.blog-related-item img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-related-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.blog-related-item:hover .blog-related-title {
  color: var(--accent);
}

@media (max-width: 860px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-related {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-related .sec-eyebrow {
    width: 100%;
  }

  .blog-related-item {
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
