/* ==========================================================================
   MAISON CHAMPONS ($CHAMP) — a black-tie gala on the centre circle
   Brand law I  : the bottle is always already open and spraying
   Brand law II : every position is 1ST — no second place anywhere, ever
   Brand law III: every vintage is "an excellent year"
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --midnight: #0A0A0F;   /* background            */
  --cellar:   #14141C;   /* cards, panels         */
  --gold:     #D4AF6A;   /* champagne gold        */
  --cream:    #F7F0E1;   /* foam cream, text      */
  --pitch:    #12291B;   /* deep pitch green      */
  --blush:    #E8C9A0;   /* soft highlights       */

  --gold-soft: rgba(212, 175, 106, 0.45);
  --gold-hair: rgba(212, 175, 106, 0.22);
  --gold-glow: rgba(212, 175, 106, 0.14);
  --cream-62:  rgba(247, 240, 225, 0.62);
  --cream-45:  rgba(247, 240, 225, 0.45);

  --ticker-h: 34px;
  --nav-h:    70px;

  --wrap:     1220px;
  --wrap-nar: 820px;
  --radius:   3px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bebas: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ticker-h) + var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--ticker-h);
  background: var(--midnight);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.64;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
svg { overflow: visible; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

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

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap--narrow { max-width: var(--wrap-nar); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY — serif whispers, condensed caps shout
   -------------------------------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 600; }
.bebas { font-family: var(--bebas); font-weight: 400; }
.mono  { font-family: var(--mono); font-variant-ligatures: none; }

.display-serif--xl,
.display-serif--lg,
.display-serif--md,
.display-serif--sm {
  margin: 0 0 0.45em;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.display-serif--xl {
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.display-serif--lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.display-serif--md { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.display-serif--sm { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

.eyebrow {
  margin: 0 0 1.1em;
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.lede {
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--cream-62);
}
.body-muted { max-width: 62ch; color: var(--cream-62); }
.gold { color: var(--gold); }

.shout {
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.figure {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.card__text { margin: 0; color: var(--cream-62); font-size: 0.95rem; }

.readout {
  margin: 18px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   4. TEXTURE — bubbles, chandelier glow, pitch glimpses
   -------------------------------------------------------------------------- */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gold);
  animation: bubble-rise var(--dur, 22s) linear var(--delay, 0s) infinite;
}
@keyframes bubble-rise {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--sway, 0px), -112vh, 0); }
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(66px, 8vw, 112px) 0;
  isolation: isolate;
}
/* chandelier-glow at the head of every major section */
.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 240px at 50% 0, var(--gold-glow), transparent 72%);
}
/* grass just out of frame at the foot of alternating sections */
.section--pitch::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 220px at 50% 100%, rgba(18, 41, 27, 0.65), transparent 74%);
}

/* --------------------------------------------------------------------------
   5. PLAQUE (hairline + engraved corner flourishes) & the 1ST badge
   -------------------------------------------------------------------------- */
.plaque {
  --fl: rgba(212, 175, 106, 0.8);
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--gold-hair);
  border-radius: var(--radius);
  background-color: var(--cellar);
  background-image:
    linear-gradient(var(--fl), var(--fl)), linear-gradient(var(--fl), var(--fl)),
    linear-gradient(var(--fl), var(--fl)), linear-gradient(var(--fl), var(--fl)),
    linear-gradient(var(--fl), var(--fl)), linear-gradient(var(--fl), var(--fl)),
    linear-gradient(var(--fl), var(--fl)), linear-gradient(var(--fl), var(--fl));
  background-repeat: no-repeat;
  background-size:
    14px 1px, 1px 14px,
    14px 1px, 1px 14px,
    14px 1px, 1px 14px,
    14px 1px, 1px 14px;
  background-position:
    7px 7px, 7px 7px,
    calc(100% - 7px) 7px, calc(100% - 7px) 7px,
    7px calc(100% - 7px), 7px calc(100% - 7px),
    calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) calc(100% - 7px);
}

.badge-1st {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 3px 11px 1px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blush), var(--gold) 60%, #B8873B);
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--midnight);
  box-shadow: 0 4px 14px -4px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & CA PILL
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--bebas);
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-pop), background-position 0.55s ease,
              background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: 0.98rem; }
.btn--block { display: flex; width: 100%; }

/* gold foil: the shimmer sweeps on hover */
.btn--gold {
  background-image: linear-gradient(110deg,
    #B8873B 0%, var(--gold) 32%, #F0DDB4 50%, var(--gold) 68%, #B8873B 100%);
  background-size: 230% 100%;
  background-position: 12% 0;
  color: var(--midnight);
}
.btn--gold:hover {
  color: var(--midnight);
  background-position: 88% 0;
  box-shadow: 0 10px 30px -10px var(--gold-glow);
}
.btn--outline { border-color: rgba(247, 240, 225, 0.5); color: var(--cream); }
.btn--outline:hover { background: var(--cream); color: var(--midnight); }
.btn--ghost { color: var(--cream-62); padding-inline: 8px; }
.btn--ghost:hover { color: var(--gold); }

.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: #101018;
}
.ca__label { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--gold); }
.ca__value {
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--cream);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca__copy {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background-color 0.16s, color 0.16s;
}
.ca__copy:hover { background: var(--gold); color: var(--midnight); }
.ca--stacked { width: 100%; margin: 12px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   7. TICKER TAPE
   -------------------------------------------------------------------------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--ticker-h);
  overflow: hidden;
  background: var(--midnight);
  border-bottom: 1px solid var(--gold-hair);
}
.ticker__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: ticker-slide 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; align-items: center; }
.ticker__item,
.ticker__sep {
  font-family: var(--bebas);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--gold);
}
.ticker__item { padding: 0 14px; }
.ticker__sep { opacity: 0.5; }

@keyframes ticker-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   8. NAVBAR
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: var(--ticker-h);
  z-index: 90;
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--gold-hair);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand__logo { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.brand--footer .brand__logo { width: 56px; height: 56px; }
.brand__word {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}
.brand--footer .brand__word { font-size: 1.5rem; }

.nav__links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.nav__links > a:not(.btn) {
  position: relative;
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-62);
  transition: color 0.16s;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-pop);
}
.nav__links > a:not(.btn):hover,
.nav__links > a.is-active { color: var(--gold); }
.nav__links > a.is-active::after,
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px 6px; margin-left: auto; }
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   9. HERO & MEDIA SLOTS
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 6vw, 84px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.media-frame { padding: 10px; }
.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  object-fit: cover;
  background: #101018;
}
/* CSS fallback: if the file errors out, the poster art takes over */
.hero-video.is-failed {
  background: url("../assets/img/hero.png") center / cover no-repeat;
}

.member-photo {
  display: block;
  width: min(100%, 200px);
  height: auto;   /* the width/height attributes stay for layout stability */
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  object-fit: cover;
}
.member-name {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  text-align: center;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   9b. THE HOUSE LIST — one address, one cuvée
   -------------------------------------------------------------------------- */
.house-list { padding: clamp(40px, 5vw, 68px) 0; }
.house-list__box {
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--cellar);
  box-shadow: 0 0 60px -26px var(--gold-glow);
}
.house-list__title {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  color: var(--gold);
}
.house-list__ca {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  background: #101018;
}
.hl-ca {
  display: block;
  flex: 1;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: clamp(15px, 2.4vw, 24px);
  line-height: 1.4;
  word-break: break-all;
  color: #F7F0E1;
}
.hl-copy {
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--midnight);
  transition: background-color 0.16s, transform 0.16s;
}
.hl-copy:hover { background: #F0DDB4; transform: translateY(-1px); }
.house-list__warning {
  margin: 0 0 22px;
  max-width: 72ch;
  color: var(--cream-62);
}
.house-list__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--big {
  flex: 1 1 220px;
  min-height: 52px;
  font-size: 1.12rem;
}

/* --------------------------------------------------------------------------
   10. TRUST BAR
   -------------------------------------------------------------------------- */
.trustbar {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  border-block: 1px solid var(--gold-hair);
  background: rgba(20, 20, 28, 0.5);
  text-align: center;
}
.trustbar p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 240, 225, 0.6);   /* ≥4.5:1 on the tinted bar */
}

/* --------------------------------------------------------------------------
   11. THE HOUSE — cuvée plaques
   -------------------------------------------------------------------------- */
.cuvees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.cuvee { padding-top: 30px; }
.cuvee__glyph { width: 28px; height: 30px; margin-bottom: 14px; color: var(--gold); opacity: 0.9; }
.cuvee__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   12. THE CEREMONY — the tower (scroll-poured)
   -------------------------------------------------------------------------- */
.ceremony { padding-bottom: clamp(66px, 8vw, 112px); }

.tower-scroll { position: relative; height: 240vh; margin-top: 10px; }
.tower-stage {
  position: sticky;
  top: calc(var(--ticker-h) + var(--nav-h));
  height: calc(100vh - var(--ticker-h) - var(--nav-h));
  height: calc(100svh - var(--ticker-h) - var(--nav-h));
  display: grid;
  align-content: center;
  overflow: hidden;
}
.tower-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.tower-mount { display: grid; justify-items: center; }
.tower-mount .tower-svg { width: min(100%, 500px); height: auto; max-height: 74vh; }
.tower-fallback {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--cream-45);
}

.tower-foam { opacity: 0; transition: opacity 0.35s ease; }
.tower-svg.is-over .tower-foam { opacity: 1; }

.tower-slam {
  margin: 10px 0 4px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.92);
}
.tower-slam.is-on { animation: slam-in 0.5s var(--ease-pop) both; }

/* --------------------------------------------------------------------------
   13. SHAKE & POP
   -------------------------------------------------------------------------- */
.pop-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-top: clamp(56px, 7vw, 96px);
}
.pop-ritual { padding: 32px 28px 26px; }
.pop-note { font-size: 0.92rem; }

.bottle-rig {
  width: min(60%, 210px);
  margin: 10px auto 6px;
  will-change: transform;
}
.bottle-svg { width: 100%; height: auto; }

.wisps { opacity: 0.85; }
.wisps > * { animation: wisp-drift 2.1s ease-out infinite; transform-origin: 110px 22px; }
.wisps > *:nth-child(2) { animation-delay: 0.4s; }
.wisps > *:nth-child(3) { animation-delay: 0.8s; }
.wisps > *:nth-child(4) { animation-delay: 0.2s; }
.wisps > *:nth-child(5) { animation-delay: 0.6s; }
@keyframes wisp-drift {
  0%   { opacity: 0; transform: translateY(10px) scale(0.7); }
  25%  { opacity: 0.9; transform: translateY(3px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.8); }
}

.bub { animation: bub-rise 2.6s linear infinite; }
.bottle-svg.is-shaking .bub { animation-duration: 0.6s; }
@keyframes bub-rise {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.8; }
  100% { transform: translateY(-190px); opacity: 0; }
}

.pressure {
  height: 6px;
  margin: 16px 0 12px;
  border: 1px solid var(--gold-hair);
  border-radius: 4px;
  background: #101018;
  overflow: hidden;
}
.pressure__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #B8873B, var(--gold) 60%, #F0DDB4);
  transition: width 0.35s ease;
}
.pressure__bar.no-trans { transition: none; }

#shake-btn { font-size: 1.2rem; padding-block: 16px; touch-action: none; user-select: none; -webkit-user-select: none; }
#shake-btn.is-held { transform: translateY(1px) scale(0.99); box-shadow: 0 0 0 transparent; }

main.is-trembling { animation: tremble 0.09s linear infinite; }
@keyframes tremble {
  0%   { transform: translate(0.6px, -0.6px); }
  50%  { transform: translate(-0.7px, 0.5px); }
  100% { transform: translate(0.5px, 0.6px); }
}

.pop-result { display: grid; }
.result-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 320px;
  text-align: center;
}
.result-card.is-in { animation: card-flip 0.55s var(--ease-pop); }
@keyframes card-flip {
  0%   { opacity: 0; transform: perspective(700px) rotateX(76deg); }
  62%  { opacity: 1; transform: perspective(700px) rotateX(-7deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.result-card__empty {
  margin: 0;
  max-width: 30ch;
  font-size: 0.64rem;
  line-height: 2;
  letter-spacing: 0.16em;
  color: var(--cream-45);
}
.result-card__label {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--cream-45);
}
.result-card__place {
  margin: 0;
  font-size: clamp(5rem, 11vw, 8.5rem);
  line-height: 0.9;
  color: var(--gold);
  text-shadow: 0 12px 44px var(--gold-glow);
}
.result-card__line {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   14. THE SOMMELIER'S TERMINAL
   -------------------------------------------------------------------------- */
.officials {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.term {
  border: 1px solid var(--gold-hair);
  border-radius: 6px;
  background: #0B0B12;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gold-hair);
  background: rgba(212, 175, 106, 0.07);
}
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-soft); }
.term__dots i:nth-child(2) { background: rgba(18, 41, 27, 0.9); }
.term__dots i:nth-child(3) { background: rgba(247, 240, 225, 0.2); }
.term__title { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--cream-45); }
.term__code {
  margin: 0;
  padding: 20px 18px 26px;
  min-height: 478px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: rgba(247, 240, 225, 0.88);
  tab-size: 4;
  white-space: pre;
}
.tok-com { color: rgba(212, 175, 106, 0.55); font-style: italic; }
.tok-str { color: var(--gold); }
.tok-kw  { color: var(--blush); }
.tok-fn  { color: #FDF8EC; }
.tok-num { color: #F0DDB4; }
.term__cursor {
  display: inline-block;
  width: 8px;
  margin-left: 1px;
  border-bottom: 2px solid var(--gold);
  animation: cursor-blink 1s steps(2, start) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   15. THE CELLAR — vintages
   -------------------------------------------------------------------------- */
.vintages { margin-top: 40px; border-top: 1px solid var(--gold-hair); }
.vintage {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--gold-hair);
}
.vintage__year {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--gold);
}
.vintage__year span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--cream-45);
}
.vintage__title { margin: 0 0 0.4rem; font-size: 1.5rem; color: var(--cream); }
.vintage__verdict {
  margin: 0.6rem 0 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   16. THE CABINET — testimonials
   -------------------------------------------------------------------------- */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.quote { display: flex; flex-direction: column; padding-top: 30px; }
.quote__text {
  margin: 0 0 16px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: rgba(247, 240, 225, 0.8);
}
.quote__name {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gold-hair);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   17. JOIN THE TOAST — rites
   -------------------------------------------------------------------------- */
.rites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.rite { display: flex; flex-direction: column; padding-top: 24px; }
.rite__num {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.rite--final {
  border-color: var(--gold-soft);
  background-color: #191826;
  box-shadow: 0 0 48px -22px var(--gold-glow);
}
.rite--final .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 34px; border-top: 1px solid var(--gold-hair); }
.faq__item { border-bottom: 1px solid var(--gold-hair); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--cream);
  list-style: none;
  transition: color 0.16s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "✦";
  flex: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold);
  transition: transform 0.25s var(--ease-pop);
}
.faq__item[open] summary::after { transform: rotate(90deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__item p {
  margin: 0;
  padding: 0 4px 22px;
  max-width: 60ch;
  color: var(--cream-62);
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 54px;
  background: rgba(8, 8, 12, 0.7);
}
.footer__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 0;
}
.footer__rule::before,
.footer__rule::after { content: ""; flex: 1; border-top: 1px solid var(--gold-hair); }
.footer__coupe { width: 22px; height: 24px; flex: none; color: var(--gold); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-bottom: 28px;
}
.footer__links { display: flex; gap: 22px; }
.footer__links a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__ca {
  margin: 0 0 0 auto;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.64rem;
  color: rgba(247, 240, 225, 0.6);   /* ≥4.5:1 on the footer panel */
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer__ca-label { color: var(--gold); letter-spacing: 0.16em; }

.disclaimer {
  margin: 0;
  max-width: 96ch;
  font-size: 0.68rem;
  line-height: 1.85;
  color: rgba(247, 240, 225, 0.56);   /* faint legalese, but ≥4.5:1 */
}

/* --------------------------------------------------------------------------
   20. OVERLAYS — particles (confetti, foam, cork) & copy toast
   -------------------------------------------------------------------------- */
.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 58;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -24px;
  width: 6px;
  height: 12px;
  border-radius: 1px;
  background: var(--gold);
  will-change: transform, opacity;
  animation: confetti-fall var(--dur, 3s) linear var(--delay, 0s) forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), 106vh, 0) rotate(var(--spin, 540deg)); }
}

.foam {
  position: absolute;
  border-radius: 50%;
  background: var(--cream);
  will-change: transform, opacity;
  animation: foam-fly 0.9s ease-out forwards;
}
@keyframes foam-fly {
  0%   { opacity: 0.95; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--fx, 0px), var(--fy, -120px), 0) scale(0.4); }
}

.cork {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 21px;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #E8D2A2, #B98F3E 60%, #8C6A24);
  box-shadow: 0 0 12px 2px rgba(212, 175, 106, 0.45);
}
.cork--path {
  offset-rotate: auto;
  animation: cork-travel 1.7s cubic-bezier(0.2, 0.5, 0.6, 1) forwards;
}
@keyframes cork-travel {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
.cork--fallback {
  animation: cork-arc 1.7s cubic-bezier(0.2, 0.5, 0.6, 1) forwards;
}
@keyframes cork-arc {
  0%   { transform: translate(0, 0) rotate(0deg); }
  40%  { transform: translate(calc(var(--tx, 400px) * 0.45), var(--peak, -300px)) rotate(320deg); }
  100% { transform: translate(var(--tx, 400px), var(--fall, 0px)) rotate(720deg); }
}

.toastmsg {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--midnight);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s var(--ease-pop);
}
.toastmsg.is-up { opacity: 1; transform: translate(-50%, 0); }

/* mobile sticky CA bar (≤768px; session-dismissable, no storage) */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 15, 0.96);
  border-top: 1px solid var(--gold);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stickybar__sym { flex: none; font-size: 1rem; letter-spacing: 0.1em; color: var(--gold); }
.stickybar__ca {
  flex: 1;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.76rem;
  white-space: nowrap;
  color: var(--cream);
}
.stickybar__copy {
  flex: none;
  min-width: 48px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 3px;
  background: var(--gold);
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  color: var(--midnight);
}
.stickybar__close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--cream-62);
}
.stickybar__close:hover { color: var(--cream); }

@media (max-width: 768px) {
  .stickybar:not([hidden]) { display: flex; }
  body.has-stickybar { padding-bottom: 76px; }
  body.has-stickybar .toastmsg { bottom: 92px; }
}

/* --------------------------------------------------------------------------
   21. REVEALS — serif fades softly, stadium lines slam
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  animation: fade-up 0.7s ease both;
  animation-delay: calc(var(--rd, 0) * 90ms);
}
@keyframes fade-up { to { opacity: 1; transform: none; } }

.slam { opacity: 0; transform: translateY(14px) scale(0.94); }
.slam.is-in {
  animation: slam-in 0.5s var(--ease-pop) both;
  animation-delay: calc(var(--rd, 0) * 80ms);
}
@keyframes slam-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.9); }
  62%  { opacity: 1; transform: translateY(0) scale(1.06); }
  100% { opacity: 1; transform: none; }
}

/* no-JS: never leave content invisible */
html:not(.js-ready) .reveal,
html:not(.js-ready) .slam { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero__inner,
  .officials,
  .tower-grid,
  .pop-grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; }
  .officials__copy { order: -1; }
  .cuvees { grid-template-columns: repeat(2, 1fr); }
  .tower-mount .tower-svg { max-height: 54vh; }
  .tower-stage { align-content: start; padding-top: 16px; }
  .result-card { min-height: 260px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; --ticker-h: 30px; }

  .burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 22px 22px;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--gold-hair);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid rgba(247, 240, 225, 0.06);
    font-size: 1rem;
  }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 16px 0 0; }

  .cabinet-grid,
  .rites { grid-template-columns: 1fr; }
  .term__code { min-height: 452px; font-size: 0.7rem; }
  .quote .media-slot--square { width: min(100%, 230px); }
}

@media (max-width: 560px) {
  .cuvees { grid-template-columns: 1fr; }
  .house-list__ca { flex-direction: column; align-items: stretch; }
  .hl-copy { width: 100%; padding: 14px 0; }
  .house-list__actions { flex-direction: column; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn--ghost { flex-basis: auto; }
  .ca { width: 100%; }
  .footer__ca { margin-left: 0; }
  .footer__top { gap: 14px; }
  .term__code { min-height: 420px; font-size: 0.64rem; padding: 16px 14px 22px; }
  .vintage { grid-template-columns: 1fr; gap: 8px; }
  .toastmsg { white-space: normal; text-align: center; max-width: calc(100% - 32px); }
  .pop-ritual { padding: 26px 18px 22px; }
  .tower-scroll { height: 200vh; }
}

@media (max-width: 380px) {
  .display-serif--xl { font-size: 2.2rem; }
  .brand__word { font-size: 1.02rem; }
  .result-card__place { font-size: 4.4rem; }
}

/* --------------------------------------------------------------------------
   23. REDUCED MOTION — no bubbles, no slams, no tremble, soft fades only
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker__track { animation: none; }
  .bubbles { display: none; }
  .particle-layer { display: none; }
  /* the hero shows its poster; js/main.js also pauses and unloads the video */
  .hero-video { background: url("../assets/img/hero.png") center / cover no-repeat; }
  .wisps > * { animation: none; opacity: 0.8; }
  .bub { animation: none; opacity: 0; }
  .term__cursor { animation: none; }
  main.is-trembling { animation: none; }

  .reveal, .slam, .tower-slam { opacity: 1; transform: none; }
  .reveal.is-in, .slam.is-in, .tower-slam.is-on { animation: none; opacity: 1; transform: none; }
  .result-card.is-in { animation: none; }
  .btn:hover { transform: none; }
}
