/* =========================================================================
   Helen Cam — Court After Dark
   Design system tokens
   ========================================================================= */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  /* ---- Brand constants ------------------------------------------------ */
  --gold: light-dark(#8f6a1f, #dab26b);
  --gold-bright: light-dark(#a87f2c, #f0d49a);
  --gold-deep: light-dark(#6d4f13, #a47c34);
  --gold-wash: light-dark(rgba(143, 106, 31, 0.10), rgba(218, 178, 107, 0.13));
  --gold-line: light-dark(rgba(143, 106, 31, 0.28), rgba(218, 178, 107, 0.30));

  --tortie-amber: light-dark(#b56a22, #e0964f);
  --tortie-rust: light-dark(#8d3f27, #c2664a);
  --tortie-cream: light-dark(#7a6a55, #efdcc0);

  --live: light-dark(#1f7a4d, #55c98c);
  --standby: light-dark(#8a6a1e, #d9ad5e);
  --offline: light-dark(#8b463a, #d08476);
  --danger: light-dark(#9b2f24, #ef8a7c);

  /* ---- Surfaces ------------------------------------------------------- */
  --bg: light-dark(#f6f1e8, #120e0e);
  --bg-deep: light-dark(#efe7da, #0b0808);
  --surface: light-dark(#fffdf8, #1b1615);
  --surface-2: light-dark(#f6efe3, #241d1c);
  --surface-3: light-dark(#ece2d2, #2e2523);
  --glass: light-dark(rgba(255, 253, 248, 0.78), rgba(27, 22, 21, 0.72));
  --glass-strong: light-dark(rgba(255, 253, 248, 0.985), rgba(17, 13, 13, 0.975));

  --line: light-dark(rgba(36, 27, 22, 0.12), rgba(240, 220, 190, 0.11));
  --line-strong: light-dark(rgba(36, 27, 22, 0.22), rgba(240, 220, 190, 0.20));

  /* ---- Text ----------------------------------------------------------- */
  --fg: light-dark(#231b18, #f5ece0);
  --fg-muted: light-dark(#5d5046, #b7a89a);
  --fg-faint: light-dark(#7d7064, #8d8077);
  --fg-invert: light-dark(#fffdf8, #14100f);
  --on-gold: light-dark(#fffdf8, #16110c);

  /* ---- Type ----------------------------------------------------------- */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --step--2: clamp(0.69rem, 0.67rem + 0.08vw, 0.74rem);
  --step--1: clamp(0.80rem, 0.78rem + 0.11vw, 0.87rem);
  --step-0: clamp(1.00rem, 0.97rem + 0.16vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.34vw, 1.35rem);
  --step-2: clamp(1.40rem, 1.24rem + 0.78vw, 1.90rem);
  --step-3: clamp(1.80rem, 1.44rem + 1.72vw, 2.85rem);
  --step-4: clamp(2.30rem, 1.66rem + 3.05vw, 4.30rem);
  --step-5: clamp(2.90rem, 1.72rem + 5.60vw, 6.40rem);

  --tracking-eyebrow: 0.22em;
  --tracking-tight: -0.022em;

  /* ---- Space & shape -------------------------------------------------- */
  --gutter: clamp(1.15rem, 0.7rem + 2.1vw, 2.5rem);
  --content: 74rem;
  --content-wide: 92rem;
  --content-narrow: 46rem;

  --section-y: clamp(3.75rem, 2.4rem + 6vw, 8.5rem);
  --block-y: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px light-dark(rgba(40, 28, 18, 0.07), rgba(0, 0, 0, 0.45));
  --shadow-md:
    0 2px 6px light-dark(rgba(40, 28, 18, 0.06), rgba(0, 0, 0, 0.42)),
    0 14px 32px -12px light-dark(rgba(40, 28, 18, 0.18), rgba(0, 0, 0, 0.66));
  --shadow-lg:
    0 4px 10px light-dark(rgba(40, 28, 18, 0.07), rgba(0, 0, 0, 0.45)),
    0 34px 70px -24px light-dark(rgba(40, 28, 18, 0.26), rgba(0, 0, 0, 0.8));
  --shadow-gold: 0 18px 48px -22px light-dark(rgba(143, 106, 31, 0.55), rgba(218, 178, 107, 0.42));

  /* ---- Motion --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 520ms;

  --header-h: 68px;
}

:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

@supports not (color: light-dark(#000, #fff)) {
  /* Very old engines: fall back to the dark palette, which matches the merch. */
  :root {
    --gold: #dab26b; --gold-bright: #f0d49a; --gold-deep: #a47c34;
    --gold-wash: rgba(218, 178, 107, 0.13); --gold-line: rgba(218, 178, 107, 0.30);
    --tortie-amber: #e0964f; --tortie-rust: #c2664a; --tortie-cream: #efdcc0;
    --live: #55c98c; --standby: #d9ad5e; --offline: #d08476; --danger: #ef8a7c;
    --bg: #120e0e; --bg-deep: #0b0808; --surface: #1b1615; --surface-2: #241d1c; --surface-3: #2e2523;
    --glass: rgba(27, 22, 21, 0.72); --glass-strong: rgba(17, 13, 13, 0.975);
    --line: rgba(240, 220, 190, 0.11); --line-strong: rgba(240, 220, 190, 0.2);
    --fg: #f5ece0; --fg-muted: #b7a89a; --fg-faint: #8d8077; --fg-invert: #14100f; --on-gold: #16110c;
  }
}

/* =========================================================================
   Reset + base
   ========================================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  hanging-punctuation: first last;
}

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

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  /* Warm vignette + gilded aura that anchors the whole page. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(80rem 48rem at 78% -12%, var(--gold-wash), transparent 62%),
    radial-gradient(60rem 40rem at 8% 6%, light-dark(rgba(181, 106, 34, 0.08), rgba(194, 102, 74, 0.10)), transparent 58%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 34%, var(--bg));
}

body::after {
  /* Fine paper grain — keeps large dark fields from banding. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: light-dark(0.5, 0.42);
  mix-blend-mode: light-dark(multiply, overlay);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

p, li { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 42;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h2 { font-variation-settings: 'opsz' 36; }
h3 { font-size: var(--step-1); line-height: 1.16; font-variation-settings: 'opsz' 24; font-weight: 500; }
h4 { font-size: var(--step-0); font-variation-settings: 'opsz' 18; font-weight: 600; }

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: light-dark(rgba(36, 27, 22, 0.22), rgba(240, 220, 190, 0.16));
  border-radius: var(--r-full);
  border: 3px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--on-gold);
  font-size: var(--step--1);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---- Cross-document view transitions --------------------------------- */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 180ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 300ms var(--ease-out) both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---- Reveal on scroll ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .is-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
  }
  .is-reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   Layout primitives
   ========================================================================= */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}
.shell-wide { width: min(100% - (var(--gutter) * 2), var(--content-wide)); margin-inline: auto; }
.shell-narrow { width: min(100% - (var(--gutter) * 2), var(--content-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: var(--block-y); }
.section-sunken { background: light-dark(rgba(36, 27, 22, 0.035), rgba(0, 0, 0, 0.24)); }
.section-sunken::before,
.section-sunken::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.section-sunken::before { top: 0; }
.section-sunken::after { bottom: 0; }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

.grid { display: grid; gap: var(--grid-gap, clamp(1rem, 0.6rem + 1.6vw, 1.75rem)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }

/* ---- Section headers ------------------------------------------------- */
.section-head {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem);
}
.section-head.is-centered { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.is-split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.4rem 2.5rem;
}
.section-head.is-split > .section-head-text { display: grid; gap: 0.9rem; max-width: 44rem; }
@media (max-width: 720px) {
  .section-head.is-split { grid-template-columns: 1fr; align-items: start; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head.is-centered .eyebrow::after {
  content: '';
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 42ch;
}
.section-head.is-centered .lede { max-width: 52ch; }

.muted { color: var(--fg-muted); }
.fine {
  font-size: var(--step--1);
  color: var(--fg-faint);
  line-height: 1.55;
}

/* ---- Gilded ornaments ------------------------------------------------ */
.rule-gold {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1 1 auto;
  max-width: 8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-line), transparent); }

/* =========================================================================
   Buttons, chips, pills
   ========================================================================= */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.4rem;
  border-radius: var(--r-full);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out);
}
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; transform: none; }

.btn-primary {
  --btn-bg: linear-gradient(140deg, var(--gold-bright), var(--gold) 46%, var(--gold-deep));
  --btn-fg: var(--on-gold);
  --btn-border: transparent;
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 22px 54px -20px light-dark(rgba(143, 106, 31, 0.7), rgba(218, 178, 107, 0.55)); }

.btn-ghost {
  --btn-bg: light-dark(rgba(255, 253, 248, 0.6), rgba(255, 245, 230, 0.045));
  --btn-border: var(--gold-line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { --btn-border: var(--gold); --btn-bg: var(--gold-wash); color: var(--gold-bright); }

.btn-quiet { --btn-border: transparent; --btn-fg: var(--fg-muted); padding-inline: 0.9rem; }
.btn-quiet:hover { --btn-fg: var(--gold); --btn-bg: var(--gold-wash); }

.btn-sm { padding: 0.62rem 1.05rem; font-size: var(--step--2); }
.btn-lg { padding: 1rem 1.75rem; font-size: var(--step-0); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: light-dark(rgba(255, 253, 248, 0.7), rgba(255, 245, 230, 0.05));
  color: var(--fg-muted);
  backdrop-filter: blur(10px);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-line); transform: translateY(-1px); }
.icon-btn .icon { width: 1.15rem; height: 1.15rem; }

.icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), gap var(--dur) var(--ease-out);
}
.text-link:hover { color: var(--gold-bright); border-color: var(--gold-line); gap: 0.7rem; }
.text-link .icon { width: 1em; height: 1em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: light-dark(rgba(255, 253, 248, 0.65), rgba(255, 245, 230, 0.04));
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: all var(--dur) var(--ease-out);
}
.chip .icon { width: 0.95rem; height: 0.95rem; }
button.chip:hover { border-color: var(--gold-line); color: var(--gold); }
.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
  box-shadow: var(--shadow-gold);
}
.chip-gold { border-color: var(--gold-line); color: var(--gold); background: var(--gold-wash); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: var(--r-full);
  background: light-dark(rgba(255, 253, 248, 0.86), rgba(12, 9, 9, 0.72));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-full);
  background: var(--standby);
  box-shadow: 0 0 0 0 currentColor;
}
[data-status='live'] { color: var(--live); }
[data-status='live'] .status-dot { background: var(--live); animation: pulse-dot 2.4s var(--ease-out) infinite; }
[data-status='standby'] { color: var(--standby); }
[data-status='standby'] .status-dot { background: var(--standby); }
[data-status='offline'] { color: var(--offline); }
[data-status='offline'] .status-dot { background: var(--offline); }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 55%, transparent); }
  70% { box-shadow: 0 0 0 0.6rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  [data-status='live'] .status-dot { animation: none; }
}

/* ---- Cards ----------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card-hover:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
}

/* ---- Forms ----------------------------------------------------------- */
.field { display: grid; gap: 0.45rem; }
.field > label {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.input, .select {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: light-dark(#fffdf8, rgba(0, 0, 0, 0.28));
  color: var(--fg);
  font-size: var(--step--1);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.input::placeholder { color: var(--fg-faint); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
.select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a08a63' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.05rem;
}

.form-status { font-size: var(--step--1); min-height: 1.4em; }
.form-status[data-state='success'] { color: var(--live); }
.form-status[data-state='error'] { color: var(--danger); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 0.25rem;
  background: light-dark(#fffdf8, rgba(0, 0, 0, 0.28));
}
.stepper button {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: var(--r-full);
  color: var(--fg-muted);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.stepper button:hover { background: var(--gold-wash); color: var(--gold); }
.stepper input {
  width: 2.4rem;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }

/* =========================================================================
   Site chrome — announcement, header, nav, footer
   ========================================================================= */

.announce {
  position: relative;
  z-index: 60;
  /* Always the dark ribbon: it reads as a gilded plaque in either theme. */
  background: #0d0a0a;
  color: #e8c98d;
  border-bottom: 1px solid rgba(218, 178, 107, 0.28);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.1rem;
  padding-block: 0.35rem;
  text-align: center;
}
.announce-crown { font-size: 0.95em; opacity: 0.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px -26px light-dark(rgba(40, 28, 18, 0.5), rgba(0, 0, 0, 0.9));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.2rem + 1.4vw, 1.6rem);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--r-full);
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
  flex: none;
}
.brand-mark .icon { width: 1.15rem; height: 1.15rem; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 30;
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 960px) { .nav { display: flex; } }

.nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-full);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav a:hover { color: var(--fg); background: var(--gold-wash); }
.nav a[aria-current='page'] { color: var(--gold-bright); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  translate: -50% 0;
  width: 0.9rem;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.search-trigger {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.5rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: light-dark(rgba(255, 253, 248, 0.62), rgba(255, 245, 230, 0.04));
  color: var(--fg-faint);
  font-size: var(--step--2);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.search-trigger:hover { border-color: var(--gold-line); color: var(--gold); }
.search-trigger kbd {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.36rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: light-dark(rgba(36, 27, 22, 0.05), rgba(255, 245, 230, 0.06));
}
@media (min-width: 1120px) { .search-trigger { display: inline-flex; } }

.cart-button { position: relative; }
.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.63rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--bg);
}

.menu-toggle { display: inline-grid; }
@media (min-width: 960px) { .menu-toggle { display: none; } }

/* ---- Mobile drawer nav ----------------------------------------------- */
.mobile-nav {
  border: 0;
  padding: 0;
  margin: 0;
  width: min(23rem, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin-left: auto;
  background: var(--surface);
  color: var(--fg);
  border-left: 1px solid var(--line);
  overflow: auto;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out), overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.mobile-nav[open] { transform: none; }
@starting-style { .mobile-nav[open] { transform: translateX(100%); } }
.mobile-nav::backdrop {
  background: light-dark(rgba(30, 22, 16, 0.35), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.mobile-nav[open]::backdrop { opacity: 1; }
@starting-style { .mobile-nav[open]::backdrop { opacity: 0; } }

.mobile-nav-inner { padding: 1.2rem 1.3rem 2.5rem; display: grid; gap: 1.4rem; align-content: start; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mobile-nav-links { display: grid; gap: 0.15rem; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: 'opsz' 30;
  transition: color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current='page'] { color: var(--gold); padding-left: 0.75rem; }
.mobile-nav-links .icon { color: var(--gold); opacity: 0.55; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line);
  background: light-dark(rgba(36, 27, 22, 0.03), rgba(0, 0, 0, 0.3));
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
}
.footer-brand { display: grid; gap: 1rem; max-width: 26rem; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: var(--step--1);
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}
.footer-col a:hover { color: var(--gold); padding-left: 0.25rem; }

.footer-wordmark {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 1rem + 13vw, 12rem);
  line-height: 0.86;
  font-weight: 300;
  letter-spacing: -0.04em;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, var(--gold-line), transparent 88%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  font-variation-settings: 'opsz' 144;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--fg-faint);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-legal a:hover { color: var(--gold); }

/* =========================================================================
   Overlays — cart, quick view, lightbox, palette, toasts
   ========================================================================= */

/* Author styles below set display on dialogs, which would otherwise beat the
   UA rule that hides a closed dialog. Restore it explicitly. */
dialog:not([open]) { display: none !important; }
dialog { color: var(--fg); }
body:has(dialog[open]) { overflow: hidden; }

.sheet {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  background: transparent;
}
.sheet::backdrop {
  background: light-dark(rgba(30, 22, 16, 0.4), rgba(0, 0, 0, 0.68));
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }

/* Cart drawer */
.cart-drawer {
  width: min(27rem, 100vw);
  height: 100dvh;
  margin-left: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out), overlay var(--dur-slow) allow-discrete, display var(--dur-slow) allow-discrete;
}
.cart-drawer[open] { transform: none; }
@starting-style { .cart-drawer[open] { transform: translateX(100%); } }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: var(--step-1); }
.drawer-body { overflow: auto; padding: 1.1rem 1.3rem; overscroll-behavior: contain; }
.drawer-foot { padding: 1.1rem 1.3rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 0.8rem; }

.ship-meter { display: grid; gap: 0.45rem; }
.ship-meter-track {
  height: 5px;
  border-radius: var(--r-full);
  background: light-dark(rgba(36, 27, 22, 0.1), rgba(255, 245, 230, 0.09));
  overflow: hidden;
}
.ship-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width var(--dur-slow) var(--ease-out);
}
.ship-meter-label { font-size: var(--step--2); color: var(--fg-muted); }
.ship-meter-label strong { color: var(--gold); }

.cart-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.cart-item {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  animation: item-in var(--dur) var(--ease-out) both;
}
@keyframes item-in { from { opacity: 0; transform: translateY(6px); } }
.cart-item-image {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  aspect-ratio: 1;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700; line-height: 1.3; }
.cart-item-variant { font-size: var(--step--2); color: var(--fg-faint); margin-bottom: 0.5rem; }
.cart-item-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.cart-item-remove {
  margin-top: 0.45rem;
  font-size: var(--step--2);
  color: var(--fg-faint);
  border-bottom: 1px solid transparent;
}
.cart-item-remove:hover { color: var(--danger); border-color: currentColor; }

.cart-empty { display: grid; gap: 0.9rem; justify-items: center; text-align: center; padding: 3rem 1rem; color: var(--fg-muted); }
.cart-empty .icon { width: 2.6rem; height: 2.6rem; color: var(--gold); opacity: 0.6; }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cart-total strong { font-family: var(--font-display); font-size: var(--step-2); font-variation-settings: 'opsz' 40; }

.undo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.9rem;
  border-radius: var(--r-sm);
  border: 1px dashed var(--gold-line);
  background: var(--gold-wash);
  font-size: var(--step--2);
}

/* Centered modal (quick view) */
.modal {
  width: min(58rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring),
    overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-close { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3; }

.quick-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 780px) { .quick-view { grid-template-columns: 1fr; } }
.quick-view-media { background: var(--surface-2); aspect-ratio: 1; }
.quick-view-media img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-body { padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); display: grid; gap: 0.85rem; align-content: start; }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: light-dark(rgba(246, 241, 232, 0.97), rgba(8, 6, 6, 0.97));
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.lightbox-counter { font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; padding-inline: clamp(0.5rem, 3vw, 3.5rem); min-height: 0; }
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: lb-in var(--dur) var(--ease-out) both;
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-nav.is-prev { left: 0.4rem; }
.lightbox-nav.is-next { right: 0.4rem; }
.lightbox-caption { padding: 1rem 1.2rem 1.6rem; text-align: center; font-size: var(--step--1); color: var(--fg-muted); }

/* Command palette */
.palette {
  width: min(38rem, calc(100vw - 1.5rem));
  margin: clamp(2rem, 9vh, 7rem) auto auto;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
    overlay var(--dur) allow-discrete, display var(--dur) allow-discrete;
}
.palette[open] { opacity: 1; transform: none; }
@starting-style { .palette[open] { opacity: 0; transform: translateY(-10px) scale(0.99); } }
.palette-search { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--line); }
.palette-search .icon { color: var(--gold); flex: none; }
.palette-search input { flex: 1; border: 0; background: none; font-size: var(--step-0); outline: none; }
.palette-results { max-height: min(26rem, 60dvh); overflow: auto; padding: 0.5rem; overscroll-behavior: contain; }
.palette-group-label {
  padding: 0.6rem 0.75rem 0.35rem;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-faint);
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--fg);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.palette-item:hover, .palette-item.is-active { background: var(--gold-wash); }
.palette-item.is-active { outline: 1px solid var(--gold-line); }
.palette-thumb {
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--surface-2);
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
}
.palette-thumb img { width: 100%; height: 100%; object-fit: cover; }
.palette-item-text { display: grid; gap: 0.1rem; min-width: 0; }
.palette-item-text strong { font-size: var(--step--1); font-weight: 600; }
.palette-item-text span { font-size: var(--step--2); color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-empty { padding: 2rem 1rem; text-align: center; color: var(--fg-faint); font-size: var(--step--1); }
.palette-foot {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 0.6rem 1.15rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--fg-faint);
}
.palette-foot kbd {
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700;
  padding: 0.1rem 0.32rem; border-radius: 4px;
  border: 1px solid var(--line-strong);
}

/* Toasts */
.toast-region {
  position: fixed;
  inset-block-end: 1.1rem;
  inset-inline: 1.1rem;
  z-index: 120;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  pointer-events: none;
}
@media (min-width: 640px) { .toast-region { inset-inline: auto 1.4rem; justify-items: end; } }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-line);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  animation: toast-in var(--dur) var(--ease-spring) both;
}
.toast.is-leaving { animation: toast-out 200ms var(--ease-in-out) both; }
.toast > .icon { color: var(--gold); flex: none; }
.toast-text { display: grid; gap: 0.1rem; min-width: 0; }
.toast-text strong { font-size: var(--step--1); }
.toast-text span { font-size: var(--step--2); color: var(--fg-muted); }
.toast button { color: var(--fg-faint); flex: none; }
.toast button:hover { color: var(--fg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ------------------------------------------------- sticky feed button --- */

.feed-sticky {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 2rem);
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 46%, var(--gold-deep));
  color: var(--on-gold);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  box-shadow: var(--shadow-gold), var(--shadow-md);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out);
}
.feed-sticky:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px -20px light-dark(rgba(143, 106, 31, 0.7), rgba(218, 178, 107, 0.55));
}
.feed-sticky:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.feed-sticky .icon { width: 1.15em; height: 1.15em; }

/* Out of the way of the cart drawer and on small screens. */
@media (max-width: 520px) {
  .feed-sticky { padding: 0.75rem 1rem; font-size: var(--step--2); }
}
body:has(dialog[open]) .feed-sticky { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .feed-sticky { transition: none; }
  .feed-sticky:hover { transform: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(70rem, 110%);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-wash), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy { display: grid; gap: 1.35rem; justify-items: start; }
.hero-title {
  font-size: var(--step-5);
  line-height: 0.94;
  font-weight: 450;
  font-optical-sizing: none;
  /* opsz 144 turns the hairlines invisible at display sizes; 54 keeps the
     high-contrast character while the thin strokes still render. */
  font-variation-settings: 'opsz' 54;
}
.hero-title em {
  display: block;
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 40%, var(--tortie-amber) 78%, var(--gold-bright));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s var(--ease-in-out) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-title em { animation: none; } }

.hero-lede { font-size: var(--step-1); color: var(--fg-muted); max-width: 34ch; line-height: 1.52; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero-scroll .icon { animation: bob 2.6s var(--ease-in-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .icon { animation: none; } }

/* ---- The gilded portrait (echoes the Royal Portrait print) ------------ */
.portrait {
  position: relative;
  aspect-ratio: 4 / 4.9;
  border-radius: var(--r-lg);
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  background:
    linear-gradient(160deg, #171110, #0c0908 55%, #14100e);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(218, 178, 107, 0.12);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  overflow: hidden;
}
.portrait::before {
  /* inner gold hairline border, offset like a real print */
  content: '';
  position: absolute;
  inset: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  border: 1px solid rgba(218, 178, 107, 0.32);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(218, 178, 107, 0.14), transparent 60%);
  pointer-events: none;
}
.portrait-oval {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.portrait-oval img {
  width: min(78%, 22rem);
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 58% 32%;
  border-radius: 50%;
  filter: saturate(1.05) contrast(1.03);
}
.portrait-ring {
  position: absolute;
  inset: 6% 9%;
  border-radius: 50%;
  border: 1px solid rgba(218, 178, 107, 0.5);
  pointer-events: none;
}
.portrait-ring.is-outer { inset: 2% 5%; border-color: rgba(218, 178, 107, 0.28); }
.portrait-ring.is-inner { inset: 9.5% 12.5%; border-color: rgba(218, 178, 107, 0.7); box-shadow: 0 0 32px -8px rgba(218, 178, 107, 0.35); }
.portrait-plaque { text-align: center; display: grid; gap: 0.4rem; position: relative; z-index: 1; }
.portrait-plaque .ornament { color: rgba(218, 178, 107, 0.85); }
.portrait-plaque strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c98d;
  font-variation-settings: 'opsz' 20;
}
.portrait-plaque span {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(232, 201, 141, 0.6);
}
.portrait-badge {
  position: absolute;
  z-index: 2;
  right: clamp(0.9rem, 0.4rem + 1.6vw, 1.6rem);
  top: clamp(0.9rem, 0.4rem + 1.6vw, 1.6rem);
}

/* ---- Marquee band ---------------------------------------------------- */
.marquee {
  --marquee-duration: 42s;
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: light-dark(rgba(36, 27, 22, 0.03), rgba(0, 0, 0, 0.26));
  padding-block: 0.85rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
  white-space: nowrap;
}
.marquee-item .icon { color: var(--gold); width: 1rem; height: 1rem; }
.marquee-item b { color: var(--fg); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* =========================================================================
   Cameras — theater
   ========================================================================= */

.theater {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 22vw, 19rem);
}
@media (max-width: 940px) { .theater { grid-template-columns: 1fr; } }

.stage {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #0a0808;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 560px) { .stage { aspect-ratio: 4 / 3; } }
.stage-media { position: absolute; inset: 0; }
.stage-media img, .stage-media video, .stage-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  animation: frame-in 420ms var(--ease-out) both;
}
@keyframes frame-in { from { opacity: 0.35; } }
.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 4, 4, 0.55) 0%, transparent 26%, transparent 52%, rgba(6, 4, 4, 0.72) 100%);
}
.stage-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}
.stage-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: #f6ece0;
}
.stage-title { display: grid; gap: 0.2rem; }
.stage-title .kicker {
  font-size: var(--step--2);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: #dab26b;
}
.stage-title h3 { font-size: var(--step-2); color: #fdf6ea; font-variation-settings: 'opsz' 40; }
.stage-title p { font-size: var(--step--1); color: rgba(246, 236, 224, 0.72); max-width: 42ch; }
.stage-tools { display: flex; gap: 0.4rem; }
.stage-tools .icon-btn { background: rgba(10, 8, 8, 0.55); border-color: rgba(240, 220, 190, 0.18); color: #f0e2cf; }
.stage-tools .icon-btn:hover { color: #f0d49a; border-color: rgba(218, 178, 107, 0.6); }
.stage-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: rgba(246, 236, 224, 0.82);
  font-size: var(--step--1);
  background: rgba(8, 6, 6, 0.55);
  backdrop-filter: blur(3px);
}
.stage-note .icon { width: 1.9rem; height: 1.9rem; color: #dab26b; }
.stage-freshness {
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 236, 224, 0.6);
}

.rail-col { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.rail { display: grid; gap: 0.75rem; align-content: start; }
.rail-note {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: light-dark(rgba(36, 27, 22, 0.03), rgba(0, 0, 0, 0.22));
}
.rail-note .trust-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 940px) { .rail-note { display: none; } }
@media (max-width: 940px) {
  .rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(13rem, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }
  .rail > * { scroll-snap-align: start; }
}

.rail-item {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  width: 100%;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.rail-item:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.rail-item[aria-current='true'] {
  border-color: var(--gold);
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.rail-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: #0c0909;
}
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail-thumb .status-dot { position: absolute; top: 0.35rem; right: 0.35rem; }
.rail-text { display: grid; gap: 0.12rem; min-width: 0; }
.rail-text strong { font-size: var(--step--1); font-weight: 600; }
.rail-text span { font-size: var(--step--2); color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cam-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-top: 1.2rem;
}

/* =========================================================================
   Gallery
   ========================================================================= */

.gallery {
  display: grid;
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  cursor: zoom-in;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
@media (max-width: 860px) { .gallery-item:first-child { grid-column: span 2; grid-row: auto; } }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease-out);
}
.gallery-item:hover { border-color: var(--gold-line); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.8rem;
  font-size: var(--step--2);
  font-weight: 600;
  color: #f7eddf;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 6, 0.82));
  opacity: 0;
  translate: 0 8px;
  transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; translate: 0; }

/* =========================================================================
   Sounds of Helen
   ========================================================================= */

.sound-grid { display: grid; gap: clamp(0.8rem, 0.5rem + 1vw, 1.2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }

.sound-btn {
  position: relative;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  padding: 1.4rem 1rem 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.sound-btn:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.sound-btn.is-playing { border-color: var(--gold); background: var(--gold-wash); }

.sound-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-full);
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
}
.sound-orb .icon { width: 1.35rem; height: 1.35rem; }
.sound-orb::before, .sound-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  border: 1px solid var(--gold);
  opacity: 0;
}
.sound-btn.is-playing .sound-orb::before { animation: ripple 1.5s var(--ease-out) infinite; }
.sound-btn.is-playing .sound-orb::after { animation: ripple 1.5s var(--ease-out) 0.4s infinite; }
@keyframes ripple {
  0% { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.75); }
}
@media (prefers-reduced-motion: reduce) {
  .sound-btn.is-playing .sound-orb::before,
  .sound-btn.is-playing .sound-orb::after { animation: none; }
}

.sound-name { font-family: var(--font-display); font-size: var(--step-1); font-variation-settings: 'opsz' 30; }
.sound-sub { font-size: var(--step--2); color: var(--fg-faint); }

.sound-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 1.4rem; }
.sound-wave span {
  width: 3px;
  height: 20%;
  border-radius: var(--r-full);
  background: var(--gold);
  opacity: 0.35;
  transition: height 90ms linear, opacity 90ms linear;
}
.sound-btn.is-playing .sound-wave span { opacity: 0.9; }

/* =========================================================================
   Story timeline
   ========================================================================= */

.story {
  display: grid;
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

.story-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
@media (min-width: 901px) { .story-media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  font-size: var(--step--2);
  color: #f2e6d6;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 6, 0.85));
}

.timeline { display: grid; gap: 0.9rem; counter-reset: step; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.timeline-item:hover { border-color: var(--gold-line); transform: translateX(3px); }
.timeline-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--r-full);
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.timeline-body { display: grid; gap: 0.3rem; }
.timeline-body h3 { font-size: var(--step-1); font-variation-settings: 'opsz' 30; }
.timeline-body p { font-size: var(--step--1); color: var(--fg-muted); }

/* =========================================================================
   Replay + newsletter
   ========================================================================= */

.replay {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0808;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.replay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.replay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.replay-play {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  justify-items: center;
  color: #f7eddf;
  padding: 1rem;
}
.replay-play .orb {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease-spring);
}
.replay-play:hover .orb { transform: scale(1.08); }
.replay-play .orb .icon { width: 1.5rem; height: 1.5rem; fill: currentColor; stroke: none; margin-left: 3px; }
.replay-play span { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }

.newsletter {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(70% 120% at 85% 0%, var(--gold-wash), transparent 62%),
    var(--surface);
  padding: clamp(1.8rem, 1.2rem + 3vw, 3.6rem);
  display: grid;
  gap: clamp(1.4rem, 0.8rem + 2.4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 22rem), 0.8fr);
  align-items: center;
}
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter-form { display: grid; gap: 0.7rem; }
.newsletter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-row .input { flex: 1 1 12rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* =========================================================================
   Feed Helen a treat
   ========================================================================= */

.section-feed { scroll-margin-top: calc(var(--header-h) + 1rem); }

.feed-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0, var(--gold-wash), transparent 58%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-gold), var(--shadow-md);
  overflow: hidden;
}
.feed-card::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}

@media (max-width: 860px) {
  .feed-card { grid-template-columns: 1fr; text-align: left; }
}

.feed-copy h2 { font-size: var(--step-3); margin-block: 0.35rem 0.6rem; }
.feed-copy .eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; }
.feed-copy .eyebrow .icon { width: 1em; height: 1em; }

.feed-facts {
  list-style: none;
  margin-block-start: 1.25rem;
  display: grid;
  gap: 0.6rem;
  padding: 0;
}
.feed-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.feed-facts .icon { flex: none; width: 1.05em; height: 1.05em; margin-block-start: 0.15em; color: var(--gold); }

.feed-action {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: light-dark(rgba(255, 253, 248, 0.72), rgba(0, 0, 0, 0.26));
  backdrop-filter: blur(6px);
}

.feed-qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.feed-qty-label { font-size: var(--step--1); color: var(--fg-muted); }

.stepper-value {
  min-width: 2.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper button:disabled:hover { background: none; color: var(--fg-muted); }

.feed-price { font-size: var(--step--1); color: var(--fg-faint); }
.feed-price strong { color: var(--gold-bright); font-family: var(--font-display); font-size: var(--step-0); }

.feed-submit .icon { width: 1.15em; height: 1.15em; }
.feed-submit:disabled { filter: grayscale(0.45) brightness(0.75); cursor: not-allowed; }

.feed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--step--2);
  color: var(--fg-faint);
}
.feed-foot strong { color: var(--tortie-cream); font-family: var(--font-display); }
.feed-secure { display: inline-flex; align-items: center; gap: 0.35rem; }
.feed-secure .icon { width: 1em; height: 1em; }
.feed-fine { margin: 0; }

/* =========================================================================
   Product cards + shop
   ========================================================================= */

.product-grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.product-grid[data-density='comfortable'] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }

.product-card {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 7rem);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product-card:hover { border-color: var(--gold-line); transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: light-dark(#f1e9dc, #0e0b0b);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-flag {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-full);
  background: rgba(10, 8, 8, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(218, 178, 107, 0.45);
  color: #f0d49a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-quick {
  position: absolute;
  /* Must sit above the stretched card link, or the button is unclickable. */
  z-index: 3;
  inset-inline: 0.7rem;
  bottom: 0.7rem;
  opacity: 0;
  translate: 0 10px;
  transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
}
.product-card:hover .product-quick,
.product-card:focus-within .product-quick { opacity: 1; translate: 0; }
@media (hover: none) { .product-quick { opacity: 1; translate: 0; } }

.product-body { display: grid; gap: 0.35rem; align-content: start; padding: 1rem 1.05rem 1.15rem; }
.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.product-price { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; text-transform: none; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.product-body h3 { font-size: var(--step-1); font-variation-settings: 'opsz' 28; }
.product-body h3 a::after { content: ''; position: absolute; inset: 0; }
.product-summary { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.5; }

.shop-toolbar {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: calc(var(--header-h) + 0.6rem);
  z-index: 20;
  backdrop-filter: blur(14px);
  margin-bottom: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
}
.shop-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.shop-search { position: relative; flex: 1 1 14rem; min-width: 0; }
.shop-search .icon { position: absolute; left: 0.85rem; top: 50%; translate: 0 -50%; color: var(--fg-faint); pointer-events: none; }
.shop-search .input { padding-left: 2.5rem; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.shop-count { font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); white-space: nowrap; }

.skeleton-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.skeleton-card::before { content: ''; display: block; aspect-ratio: 1; }
.skeleton-card::before,
.skeleton-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-body { padding: 1rem; display: grid; gap: 0.6rem; }
.skeleton-line { height: 0.7rem; border-radius: var(--r-full); }
.skeleton-line.is-short { width: 45%; }
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-card::before, .skeleton-line { animation: none; } }

.empty-state {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--fg-muted);
}
.empty-state .icon { width: 2.4rem; height: 2.4rem; color: var(--gold); opacity: 0.6; }

/* =========================================================================
   Product detail
   ========================================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--2);
  color: var(--fg-faint);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .icon { width: 0.85rem; height: 0.85rem; opacity: 0.6; }

.product-layout {
  display: grid;
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }

.product-gallery { display: grid; gap: 0.8rem; }
@media (min-width: 901px) { .product-gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.product-stage {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: light-dark(#f1e9dc, #0e0b0b);
  aspect-ratio: 1;
  cursor: zoom-in;
}
.product-stage img { width: 100%; height: 100%; object-fit: cover; }
.product-zoom { position: absolute; right: 0.8rem; bottom: 0.8rem; }

.product-info { display: grid; gap: 1.05rem; align-content: start; }
.product-title { font-size: var(--step-3); }
.product-price-lg {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'opsz' 40;
}
.product-lede { color: var(--fg-muted); font-size: var(--step-0); }

.product-form { display: grid; gap: 0.9rem; padding: 1.15rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.product-form-row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem; }
.product-form-row .field { flex: 1 1 11rem; }

.detail-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.detail-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--step--1); color: var(--fg-muted); }
.detail-list .icon { color: var(--gold); flex: none; margin-top: 0.18rem; width: 1rem; height: 1rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.sticky-buy {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem clamp(0.9rem, 4vw, 1.4rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  translate: 0 110%;
  transition: translate var(--dur) var(--ease-out);
}
.sticky-buy.is-visible { translate: 0; }
.sticky-buy-text { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.sticky-buy-text strong { font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy-text span { font-size: var(--step--2); color: var(--gold); font-variant-numeric: tabular-nums; }
@media (min-width: 901px) { .sticky-buy { display: none; } }

/* =========================================================================
   Picks, orgs, misc pages
   ========================================================================= */

.pick-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.5rem 1.35rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pick-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.pick-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.pick-icon .icon { width: 1.35rem; height: 1.35rem; }
.pick-card h3 { font-size: var(--step-1); font-variation-settings: 'opsz' 28; }
.pick-card p { font-size: var(--step--1); color: var(--fg-muted); }
.pick-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--fg-faint);
}

.org-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.5rem 1.35rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.org-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.org-logo {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: var(--r-md);
  object-fit: contain;
  background: #fffdf8;
  padding: 0.5rem;
  border: 1px solid var(--line);
}
.org-card h3 { font-size: var(--step-1); font-variation-settings: 'opsz' 28; }
.org-role { font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.org-card p { font-size: var(--step--1); color: var(--fg-muted); }

.stat-grid { display: grid; gap: clamp(0.8rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.stat {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  font-variation-settings: 'opsz' 40;
  line-height: 1;
}
.stat-label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.stat p { font-size: var(--step--1); color: var(--fg-muted); }

/* Page hero for interior pages */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 5rem) clamp(1.6rem, 1rem + 2.4vw, 3rem);
}
.page-hero-inner { display: grid; gap: 1rem; max-width: 46rem; }

/* Prose (privacy, terms, about long copy) */
.prose { max-width: 42rem; display: grid; gap: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 0.8rem; }
.prose p, .prose li { color: var(--fg-muted); }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.15rem; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.prose strong { color: var(--fg); }

/* Status pages (success / cancel / 404 / offline) */
.status-page {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.15rem;
  padding-block: clamp(3rem, 2rem + 5vw, 7rem);
}
.status-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--r-full);
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
}
.status-mark .icon { width: 1.8rem; height: 1.8rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.order-summary { display: grid; gap: 0.6rem; width: min(28rem, 100%); text-align: left; }
.order-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.order-row:last-child { border-bottom: 0; font-weight: 700; }
.order-row strong { font-variant-numeric: tabular-nums; }
