/* ============================================================
   Variation 5 — "Midnight Still, Pre-launch + detail pages"
   Based on V4, with per-spirit detail pages (card kept in its
   Range column) and graceful photo placeholders.
   ============================================================ */

:root {
  --bg: #0e100d;
  --bg-2: #151814;
  --panel: #1b1f1a;
  --ink: #ece9df;
  --muted: #9a988c;
  --gold: #c9a85c;
  --gold-2: #e6cf94;
  --green: #2c4a3a;
  --line: rgba(201, 168, 92, 0.22);
  --font-head: 'Playfair Display', serif;
  --font-body: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* scrollbar-gutter reserves the scrollbar's space permanently, so the modal
   and the age gates can lock body scroll without the page jumping sideways. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* Inset scrollbars — a thin gold thumb floating inside a transparent track.
   The transparent border + content-box clip is what insets the thumb. */
* { scrollbar-width: thin; scrollbar-color: rgba(201, 168, 92, 0.32) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 92, 0.32); background-clip: content-box;
  border: 3px solid transparent; border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 92, 0.55); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.75rem; }

/* Anchor targets clear the sticky header. _navscroll.pug only intercepts
   links starting with "#", so cross-page ones like /#range and /#club are
   handled natively by the browser and would otherwise land underneath it. */
section[id] { scroll-margin-top: 5.5rem; }

/* gold hairline helper */
.v5-rule {
  width: 64px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 1.5rem;
}
.v5-rule.center { margin: 0 auto 1.5rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* header */
.v5-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 16, 13, 0.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.v5-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.75rem; }
.v5-brand {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink);
  /* matches the label branding line: Jost, bold, uppercase, wide tracking */
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.v5-brand img {
  width: 28px;
  height: 28px;
  /* filter: drop-shadow(0 0 6px rgba(201, 168, 92, 0.5)); */
  position: relative;
  bottom: 2px;
}
.v5-nav { display: flex; align-items: center; gap: 1.8rem; }
.v5-nav a {
  text-decoration: none; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.v5-nav a:hover { color: var(--gold-2); }
/* hamburger toggle — hidden on desktop, shown on mobile via the media query */
.v5-navtoggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  margin: -0.5rem 0; line-height: 0;
}
.v5-navtoggle-bar {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.v5-navtoggle-bar + .v5-navtoggle-bar { margin-top: 5px; }
.v5-navtoggle.is-open .v5-navtoggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v5-navtoggle.is-open .v5-navtoggle-bar:nth-child(2) { opacity: 0; }
.v5-navtoggle.is-open .v5-navtoggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.v5-btn {
  border: 1px solid var(--gold); color: var(--gold-2) !important;
  padding: 0.6rem 1.3rem; border-radius: 1px; font-size: 0.72rem !important; letter-spacing: 0.18em;
  transition: all 0.3s ease;
}
.v5-btn:hover { background: var(--gold); color: var(--bg) !important; }
/* Secondary nav button (Club) — same shape as Order, but a neutral hairline so
   the two sit together without competing. Order stays the gold one. */
.v5-btn-alt { border-color: var(--line); color: var(--ink) !important; }
.v5-btn-alt:hover { background: transparent; border-color: var(--gold); color: var(--gold-2) !important; }

/* pre-launch notice bar — pinned to the top of the hero, overlaying it */
.v5-notice {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(90deg, rgba(201,168,92,0.16), rgba(201,168,92,0.06));
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink); text-align: center;
}
.v5-notice .wrap { padding: 0.8rem 1.75rem; }
.v5-notice-tag {
  display: inline-block; margin-right: 0.7rem; padding: 0.18rem 0.6rem;
  background: var(--gold); color: var(--bg); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; border-radius: 1px; vertical-align: middle;
}

/* hero */
.v5-hero {
  position: relative; text-align: center; padding: 8.5rem 0; overflow: hidden;
  display: flex; align-items: center; min-height: 88vh;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(201,168,92,0.14), transparent 70%),
    var(--bg);
}
.v5-hero-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 560px; height: 720px; z-index: 0; max-width: 92vw;
  background: radial-gradient(ellipse at center, rgba(201,168,92,0.28), rgba(201,168,92,0.05) 45%, transparent 70%);
  filter: blur(12px);
}
.v5-hero .wrap { position: relative; z-index: 2; width: 100%; }
/* dark scrim directly behind the text for legibility over the bottle */
.v5-hero .wrap::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 130%; height: 150%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10,11,9,0.78) 0%, rgba(10,11,9,0.45) 45%, transparent 72%);
}
.v5-hero-eyebrow {
  font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.5rem;
}
.v5-hero h1 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.02; margin: 0 0 1.5rem; letter-spacing: 0.01em;
}
.v5-hero h1 .gold { color: var(--gold-2); font-style: italic; }
.v5-hero p { max-width: 38rem; margin: 0 auto 2.5rem; color: var(--muted); font-size: 1.08rem; }
.v5-hero-bottle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: clamp(260px, 34vw, 420px); height: auto; z-index: 1; pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(201,168,92,0.2));
}
.v5-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.v5-btn-solid {
  background: var(--gold); color: var(--bg) !important; border: 1px solid var(--gold);
  padding: 0.85rem 1.9rem; border-radius: 1px; text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  transition: all 0.3s ease; cursor: pointer;
}
.v5-btn-solid:hover { background: transparent; color: var(--gold-2) !important; }
.v5-btn-ghost {
  border: 1px solid var(--line); color: var(--ink) !important; padding: 0.85rem 1.9rem;
  border-radius: 1px; text-decoration: none; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; transition: all 0.3s ease; cursor: pointer; background: transparent;
}
.v5-btn-ghost:hover { border-color: var(--gold); color: var(--gold-2) !important; }

/* section common */
.v5-kicker {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem;
}
.v5-story h2, .v5-range h2, .v5-experimental h2, .v5-club h2 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1; margin: 0 0 1.25rem;
}

/* story */
.v5-story { padding: 6.5rem 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.v5-story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.v5-story-figure {
  aspect-ratio: 4/5; overflow: hidden; position: relative; border: 1px solid var(--line);
}
.v5-story-figure img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) sepia(0.15); }
.v5-story-figure::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.7); pointer-events: none;
}
.v5-story p { color: var(--muted); margin: 0 0 1.1rem; }
.v5-story p strong { color: var(--gold-2); font-weight: 500; }
.v5-story .v5-pull {
  font-family: var(--font-head); font-style: italic; font-size: 1.4rem; color: var(--gold-2);
  border-left: 2px solid var(--gold); padding-left: 1.25rem; margin: 1.75rem 0 0;
}

/* range + experimental cards */
.v5-range { padding: 6.5rem 0; text-align: center; }
.v5-experimental { padding: 6.5rem 0; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); }
.v5-range-head { max-width: 40rem; margin: 0 auto 3.5rem; }
.v5-range-head p { color: var(--muted); margin: 0; }
.v5-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.v5-card {
  position: relative; background: linear-gradient(180deg, var(--panel), #12150f);
  border: 1px solid var(--line); padding: 2rem 1.75rem 1.5rem; text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex; flex-direction: column;
  /* auto margins keep the card centred in any track wider than this — the
     range grid, the modal column, and the single-column mobile layout. */
  max-width: 340px; margin-inline: auto;
}
/* cards are anchor triggers on the homepage — open the modal on click */
a.v5-card { text-decoration: none; color: inherit; cursor: pointer; }
.v5-card:hover {
  transform: translateY(-6px); border-color: var(--gold);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.v5-card-bottle {
  /* Explicit height reserves the space before the image loads — with
     height:auto the card collapsed and then jumped once it arrived. The art is
     square, so 220x220 is its natural size; object-fit letterboxes anything
     that isn't (e.g. the generic portrait fallback). */
  width: 220px; height: 220px; object-fit: contain; margin: 0 auto 1rem; display: block;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5));
}
/* Coming-soon / sold-out bottles render at full strength like the rest — the
   "Coming soon" badge and the footer meta already carry the availability. */
.v5-card h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; margin: 0 0 0.5rem; }
.v5-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.v5-card-serve { font-style: italic; color: var(--gold-2) !important; opacity: 0.85; }
/* Serve line hidden for now. The copy is untouched — still in the `serve:`
   field in src/server.js and still in the markup — so deleting this one rule
   brings it back exactly as it was. */
.v5-card-serve { display: none; }
.v5-card-foot { margin-top: auto; }
.v5-card-meta {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.v5-card-more {
  display: inline-block; margin-top: 0.9rem; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); transition: color 0.3s ease;
}
.v5-card:hover .v5-card-more { color: var(--gold-2); }
.v5-badge {
  position: absolute; top: 1rem; right: 1rem; font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bg); background: var(--gold); padding: 0.28rem 0.6rem;
  font-weight: 700;
}

/* ---- per-spirit detail page ---- */
.v5-detail-main { padding: 6rem 0 5rem; min-height: 70vh; }
.v5-back {
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  color: var(--muted); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 2.5rem; transition: color 0.3s ease;
}
.v5-back:hover { color: var(--gold-2); }
.v5-back-arrow { font-size: 1rem; }

.v5-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.v5-detail-card { align-self: start; text-align: center; }
.v5-detail-card:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* card stays in its Range column; story + aside fill the rest */
.pos-left   .v5-detail-card  { grid-column: 1; }
.pos-left   .v5-detail-story { grid-column: 2; }
.pos-left   .v5-detail-aside { grid-column: 3; }
.pos-middle .v5-detail-story { grid-column: 1; }
.pos-middle .v5-detail-card  { grid-column: 2; }
.pos-middle .v5-detail-aside { grid-column: 3; }
.pos-right  .v5-detail-story { grid-column: 1; }
.pos-right  .v5-detail-aside { grid-column: 2; }
.pos-right  .v5-detail-card  { grid-column: 3; }
/* no aside → story spans the two non-card columns */
.pos-left.no-aside  .v5-detail-story { grid-column: 2 / 4; }
.pos-right.no-aside .v5-detail-story { grid-column: 1 / 3; }

.v5-detail-story {
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #12150f);
  padding: 2.5rem 2.25rem;
}
.v5-detail-story h2 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1; margin: 0 0 1.25rem;
}
.v5-detail-story p { color: var(--muted); margin: 0 0 1.1rem; }
.v5-detail-story p:last-child { margin-bottom: 0; }

.v5-detail-aside {
  border: 1px solid var(--line); background: rgba(201, 168, 92, 0.04); padding: 2.25rem;
  display: flex; flex-direction: column;
}
.v5-served { list-style: none; margin: 0; padding: 0; }
.v5-served li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; color: var(--ink); font-size: 0.95rem; }
.v5-served li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }

.v5-detail-photo {
  position: relative; margin: 1.5rem 0 0; border: 1px solid var(--line);
  aspect-ratio: 4/3; overflow: hidden; background: rgba(201, 168, 92, 0.04);
}
.v5-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v5-detail-photo figcaption { display: none; }
.v5-detail-photo.is-empty { display: flex; align-items: center; justify-content: center; }
.v5-detail-photo.is-empty figcaption {
  display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---- standardised spirit modal ---- */
/* Opens in two stages: the JS unhides the modal, then adds .is-open on the
   next frame so these transitions actually run. On close .is-open comes off
   first and the content is only cleared once the fade has finished. */
/* The container itself never animates. Fading IT would flatten the whole
   subtree — dialog, cloned card, shadows — into one texture every frame,
   which is what made this run at ~12fps. The scrim below and the dialog
   further down each animate on their own compositor layer instead. */
.v5-modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
/* Scrim as a pseudo-element so its fade is independent of the dialog's.
   No backdrop-filter: re-blurring the full viewport every frame was the
   single most expensive thing here, and at 0.9 alpha it was barely visible. */
.v5-modal::before {
  content: ''; position: absolute; inset: 0; background: rgba(6, 7, 5, 0.92);
  opacity: 0; transition: opacity 0.2s ease; will-change: opacity;
}
.v5-modal.is-open::before { opacity: 1; }
.v5-modal[hidden] { display: none; }
.v5-modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; max-height: 90vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--gold); border-radius: 2px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7); padding: 2.75rem 2.5rem 2.5rem;
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
  /* translate3d + will-change keep the dialog on the GPU, so its box-shadow
     and the cloned bottle's drop-shadow paint once instead of every frame */
  will-change: transform, opacity;
}
.v5-modal.is-open .v5-modal-dialog { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
/* Honour a reduced-motion preference: still fades, but nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .v5-modal::before, .v5-modal-dialog { transition-duration: 0.01ms; }
  .v5-modal-dialog { transform: none; }
}
.v5-modal-close {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 5;
  width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
  background: rgba(21, 24, 20, 0.85); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.v5-modal-close:hover { color: var(--gold-2); border-color: var(--gold); }
/* First column is pinned to the range card's own width so the cloned card
   wraps its text identically instead of re-flowing taller. Cards cap at
   340px (see .v5-card); the old 1fr here resolved to 304px inside the
   1200px dialog, which re-wrapped the text and made the card taller. */
.v5-modal-grid {
  display: grid; grid-template-columns: minmax(0, 340px) 1.5fr 1fr;
  gap: 1.75rem; align-items: start;
}
.v5-modal-cardclone { pointer-events: none; padding: 1rem 1.75rem; }
.v5-modal-cart {
  margin-top: 1.25rem; width: 100%; display: block;
  padding: 0.85rem 1.5rem; border-radius: 1px; border: 1px solid rgba(154, 152, 140, 0.4);
  background: rgba(154, 152, 140, 0.15); color: var(--muted);
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; cursor: not-allowed;
}
.v5-modal-cart:not(:disabled) {
  border-color: var(--gold); background: var(--gold); color: var(--bg);
  cursor: pointer; transition: all 0.3s ease;
}
.v5-modal-cart:not(:disabled):hover { background: transparent; color: var(--gold-2); }
.v5-modal-story-content h2 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1; margin: 0 0 1.25rem;
}
.v5-modal-story-content p { color: var(--muted); margin: 0 0 1.05rem; }
.v5-modal-story-content p:last-child { margin-bottom: 0; }
.v5-modal-aside-content .v5-kicker { margin-bottom: 0.9rem; }

/* "Behind the label" cross-link, appended to the story column of every
   Blonde-named spirit. The label portrait itself is the thumbnail, so the
   link shows you what it is about before you read it. */
.v5-story-link {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem;
  padding: 0.85rem 1rem; text-decoration: none;
  border: 1px solid var(--line); background: rgba(201, 168, 92, 0.04);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.v5-story-link:hover { border-color: var(--gold); background: rgba(201, 168, 92, 0.09); }
.v5-story-link-thumb {
  flex: none; width: 56px; height: 56px; object-fit: cover; object-position: 50% 30%;
  border: 1px solid var(--line); background: #000;
}
.v5-story-link-text { display: block; flex: 1; min-width: 0; }
.v5-story-link-kicker {
  display: block; font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.2rem;
}
.v5-story-link-title { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.v5-story-link-arrow { flex: none; color: var(--gold); font-size: 1.1rem; line-height: 1; }
.v5-story-link:hover .v5-story-link-arrow { color: var(--gold-2); }

/* club / newsletter */
.v5-club { padding: 6.5rem 0; text-align: center; border-top: 1px solid var(--line); }
.v5-club .lead { color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.v5-club-msg { max-width: 32rem; margin: 0 auto 1.5rem; padding: 0.85rem 1.25rem; border-radius: 1px; font-size: 0.95rem; }
.v5-club-msg.ok { color: var(--gold-2); border: 1px solid var(--gold); background: rgba(201,168,92,0.08); }
.v5-club-msg.err { color: #f0b4b4; border: 1px solid rgba(229,85,85,0.5); background: rgba(229,85,85,0.08); }
.v5-club-form { max-width: 30rem; margin: 0 auto; }
.v5-club-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.v5-club-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 0.85rem 1rem; border-radius: 1px;
  border: 1px solid var(--line); background: rgba(201, 168, 92, 0.06); color: var(--ink);
  font-size: 0.95rem; font-family: var(--font-body);
}
.v5-club-form input::placeholder { color: var(--muted); }
.v5-club-form input:focus { outline: none; border-color: var(--gold); }
/* honeypot — hidden from humans */
.v5-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* hide the floating reCAPTCHA badge — branding shown inline under the form instead */
.grecaptcha-badge { visibility: hidden; }
.v5-recaptcha-note {
  margin: 1rem auto 0; max-width: 30rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted);
}
.v5-recaptcha-note a { color: var(--gold); text-decoration: none; }
.v5-recaptcha-note a:hover { color: var(--gold-2); }

/* footer */
.v5-footer { background: #090a08; color: var(--muted); padding: 3.5rem 0 4rem; text-align: center; border-top: 1px solid var(--line); }
.v5-footer .v5-foot-brand { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-2); margin-bottom: 0.5rem; }
.v5-footer p { margin: 0.35rem 0; font-size: 0.88rem; }
.v5-foot-warn { color: var(--gold); letter-spacing: 0.04em; }
.v5-footer a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 92, 0.35); padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.v5-footer a:hover { color: var(--gold-2); border-bottom-color: var(--gold-2); }

/* ---- 18+ age gate ---- */
.v5-agegate {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 7, 5, 0.92); backdrop-filter: blur(8px);
}
.v5-agegate[hidden] { display: none; }
.v5-agegate-card {
  max-width: 460px; width: 100%; text-align: center;
  background: linear-gradient(180deg, var(--panel), #10120d);
  border: 1px solid var(--gold); border-radius: 2px;
  padding: 3rem 2.25rem; box-shadow: 0 40px 90px rgba(0,0,0,0.7);
}
.v5-agegate-card h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.9rem; margin: 0.4rem 0 0.75rem; }
.v5-agegate-card p { color: var(--muted); margin: 0 0 1.5rem; }
.v5-agegate-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.v5-agegate-deny { color: #f0b4b4 !important; margin: 1.5rem 0 0 !important; font-size: 0.9rem; }
.v5-agegate-deny[hidden] { display: none; }

/* switcher */
.vswitch {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; gap: 0.35rem; align-items: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); border: 1px solid var(--line);
  padding: 0.4rem 0.5rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.vswitch a { text-decoration: none; color: #cfcabb; font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; }
.vswitch a.active { background: var(--gold); color: #111; }
.vswitch .vswitch-label { color: #777; font-size: 0.68rem; padding-left: 0.5rem; }

@media (max-width: 900px) {
  .v5-story .wrap { grid-template-columns: 1fr; }
  .v5-story-figure { order: -1; max-width: 380px; margin: 0 auto; }
  .v5-cards { grid-template-columns: 1fr; }
  /* mobile nav: hamburger reveals a full-width dropdown under the header */
  .v5-navtoggle { display: block; }
  .v5-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 16, 13, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0; display: none;
  }
  .v5-nav.is-open { display: flex; }
  .v5-nav a { padding: 0.95rem 1.75rem; font-size: 0.82rem; }
  .v5-nav a.v5-btn {
    margin: 0.6rem 1.75rem 0.4rem; padding: 0.85rem 1.3rem; text-align: center;
    font-size: 0.78rem !important;
  }
  .v5-detail-grid { grid-template-columns: 1fr; }
  .v5-detail-grid > * { grid-column: auto !important; }
  .v5-modal-grid { grid-template-columns: 1fr; }
  .v5-modal-dialog { padding: 3.25rem 1.5rem 2rem; }
  /* on mobile the notice shows only the "Opening soon" tag */
  .v5-notice-text { display: none; }
  .v5-notice-tag { margin-right: 0; }
  /* size the hero to the initial visible viewport (toolbars shown), not the full vh */
  .v5-hero { min-height: 88svh; }
}
