/* ==========================================================================
   Gold Rummy - "Spotlight" design system  (v2, full overhaul)

   Language : ink and gold. A cool near-neutral page, one locked gold accent,
              and a deep night-green hero block that reads as a lit stage.
   Display  : Bricolage Grotesque   Body : Geist
   Radius   : media 20px · panels 18px · inputs 10px · interactive full pill
   Rules    : no numeric labels, no decorative dots, no prose width caps.
              Only .container caps width.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Accent - one, locked, used identically on every surface */
  --gold:       #E3A72F;
  --gold-deep:  #B27812;
  --gold-ink:   #8A5A08;   /* AA-safe gold for small text on light surfaces */
  --gold-soft:  #F6E3B4;

  /* Night surfaces (hero, footer, accent panels) */
  --night:      #061109;
  --night-2:    #0A2016;
  --night-3:    #103624;
  --on-night:      #EDF1EC;
  --on-night-soft: rgba(237, 241, 236, .70);
  --on-night-dim:  rgba(237, 241, 236, .58);
  --night-line:    rgba(227, 167, 47, .22);

  /* Page surfaces */
  --paper:    #F1F2EF;
  --paper-2:  #FFFFFF;
  --paper-3:  #E6E8E3;
  --ink:      #0C110E;
  --ink-soft: #414D45;
  --ink-dim:  #5E6C64;
  --line:      rgba(12, 17, 14, .13);
  --line-soft: rgba(12, 17, 14, .07);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Shape - documented scale, applied everywhere */
  --r-media: 20px;
  --r-panel: 18px;
  --r-input: 10px;
  --r-pill:  999px;

  /* Elevation - tinted to the page hue, never pure black */
  --lift-1: 0 1px 2px rgba(12, 17, 14, .04), 0 10px 28px -14px rgba(12, 17, 14, .18);
  --lift-2: 0 2px 6px rgba(12, 17, 14, .06), 0 26px 56px -24px rgba(12, 17, 14, .30);
  --lift-gold: 0 12px 30px -12px rgba(178, 120, 18, .55);

  /* Layout */
  --container: 1200px;
  --gutter: 1.5rem;
  --head-h: 4.5rem;
  --band-space: 60px;   /* gap between two adjacent sections */

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #0A0E0C;
    --paper-2:  #111815;
    --paper-3:  #161E1A;
    --ink:      #ECF1EE;
    --ink-soft: #A6B3AC;
    --ink-dim:  #75837C;
    --gold-ink: var(--gold);
    --line:      rgba(236, 241, 238, .15);
    --line-soft: rgba(236, 241, 238, .08);
    --lift-1: 0 1px 2px rgba(0, 0, 0, .40), 0 10px 28px -14px rgba(0, 0, 0, .60);
    --lift-2: 0 2px 6px rgba(0, 0, 0, .45), 0 26px 56px -24px rgba(0, 0, 0, .75);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
/* HTML width/height attrs must never win over an authored aspect-ratio */
img[width][height] { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .6em;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -.015em; }
h4 { font-size: .96rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; }

p { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--gold-deep); }
strong { font-weight: 650; color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: #0C110E; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Width contract - ONLY this caps width. Text is never measure-limited.
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Buttons - interactive shapes are full pill, everywhere
   -------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-night {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 650; letter-spacing: -.005em;
  white-space: nowrap;              /* CTA labels never wrap */
  padding: .85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--gold);
  color: #17120A;                    /* 8.9:1 on gold */
  box-shadow: var(--lift-gold);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0) scale(.98); }

/* On night surfaces */
.btn-night {
  background: transparent;
  color: var(--on-night);
  border-color: rgba(237, 241, 236, .34);
}
.btn-night:hover { background: rgba(237, 241, 236, .10); border-color: var(--on-night); transform: translateY(-2px); }
.btn-night:active { transform: translateY(0) scale(.98); }

/* --------------------------------------------------------------------------
   Header - one row, 72px, transparent over the hero then solid on scroll
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 80;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-head .container {
  min-height: var(--head-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-head.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
/* Over the night hero the header reads light until it turns solid */
body.has-night-hero .site-head:not(.is-solid) .nav-link,
body.has-night-hero .site-head:not(.is-solid) .brandmark-word { color: var(--on-night); }
body.has-night-hero .site-head:not(.is-solid) .brandmark-word span { color: var(--gold); }
body.has-night-hero .site-head:not(.is-solid) .burger-bar { background: var(--on-night); }

.brandmark { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; }
.brandmark img { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; }
.brandmark-word {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--font-display); font-weight: 700; font-size: 1.14rem;
  letter-spacing: -.03em; color: var(--ink);
}
.brandmark-word span {
  font-family: var(--font-body); font-size: .58rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink);
  margin-top: .18rem;
}

.nav { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-block; padding: .3rem 0;
  font-size: .92rem; font-weight: 550; color: var(--ink-soft);
  transition: color .2s;
}
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
body.has-night-hero .site-head:not(.is-solid) .nav-link { color: var(--on-night-soft); }
body.has-night-hero .site-head:not(.is-solid) .nav-link:hover,
body.has-night-hero .site-head:not(.is-solid) .nav-link.is-current { color: var(--on-night); }

.head-cta { display: flex; align-items: center; gap: .7rem; }
.head-cta .btn-primary { padding: .62rem 1.25rem; font-size: .88rem; }

.burger {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); cursor: pointer; position: relative;
}
.burger-bar {
  position: absolute; left: 12px; width: 18px; height: 1.8px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger-bar:nth-child(1) { top: 15px; }
.burger-bar:nth-child(2) { top: 20px; }
.burger-bar:nth-child(3) { top: 25px; }
.burger.is-open .burger-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open .burger-bar:nth-child(2) { opacity: 0; }
.burger.is-open .burger-bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile sheet */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 79;
  background: var(--night);
  padding: calc(var(--head-h) + 1rem) 0 2.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-sheet .container { margin-block: auto; }
.mobile-sheet ul { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.mobile-sheet li { margin: 0; opacity: 0; transform: translateY(12px); }
.mobile-sheet.is-open li { animation: sheet-in .45s var(--ease) forwards; }
@keyframes sheet-in { to { opacity: 1; transform: none; } }
.mobile-sheet ul a {
  display: block; padding: .72rem 0;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--on-night);
}
.mobile-sheet ul a:hover { color: var(--gold); }
.mobile-sheet .btn-primary { width: 100%; }
body.sheet-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   HERO - the lit stage. Deliberately a different world from the page body.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--head-h) * -1);
  padding: calc(var(--head-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 620px at 76% 18%, rgba(227, 167, 47, .30), transparent 62%),
    radial-gradient(900px 700px at 6% 92%, rgba(20, 110, 70, .42), transparent 66%),
    linear-gradient(168deg, var(--night-2) 0%, var(--night) 58%, #04150D 100%);
  color: var(--on-night);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {   /* a single gold hairline is the only transition into the page */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  pointer-events: none;
}
.hero h1, .hero h2, .hero h3 { color: var(--on-night); }

.hero-grid { position: relative; z-index: 1; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 0; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-variation-settings: 'wdth' 90, 'opsz' 88; }
.hero h1 em {
  font-style: normal; font-weight: 800; color: var(--gold);
  font-variation-settings: 'wdth' 100, 'opsz' 72;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--on-night-soft);
  margin-bottom: 1.7rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-media {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  border: 1px solid var(--night-line);
}
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(6, 17, 9, .70));
  pointer-events: none;
}

/* Page hero for inner pages - same night block, quieter */
.page-hero {
  position: relative;
  margin-top: calc(var(--head-h) * -1);
  padding: calc(var(--head-h) + clamp(2rem, 4.5vw, 3.4rem)) 0 clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(227, 167, 47, .24), transparent 62%),
    linear-gradient(160deg, var(--night-2), var(--night) 72%);
  color: var(--on-night);
  overflow: hidden;
}
.page-hero h1 { color: var(--on-night); font-variation-settings: 'wdth' 94, 'opsz' 64; }
.page-hero .hero-sub { margin-bottom: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--on-night-dim); margin-bottom: 1.1rem; }
.crumbs a { color: var(--gold); font-weight: 550; }
.crumbs a:hover { color: var(--gold-soft); }
.byline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--on-night-dim); margin: 0; }
.byline b { font-weight: 600; color: var(--on-night-soft); }

/* --------------------------------------------------------------------------
   Fact bar - sits under the hero, hairline separated, no cards, no dots
   -------------------------------------------------------------------------- */
.factbar { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.factbar .container {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.fact { padding: 1.6rem 1.4rem 1.6rem 0; border-right: 1px solid var(--line-soft); }
.fact:last-child { border-right: 0; }
.fact:not(:first-child) { padding-left: 1.4rem; }
.fact b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em;
  color: var(--gold-ink); line-height: 1;
  margin-bottom: .45rem;
}
.fact span { font-size: .86rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Bands (sections)
   -------------------------------------------------------------------------- */
.band { padding: calc(var(--band-space) / 2) 0; }
.band--tint { background: var(--paper-3); }
.band--night {
  background:
    radial-gradient(700px 420px at 84% 0%, rgba(227, 167, 47, .20), transparent 64%),
    linear-gradient(158deg, var(--night-2), var(--night));
  color: var(--on-night);
}
.band--night h2, .band--night h3 { color: var(--on-night); }
.band--night p { color: var(--on-night-soft); }

.band-head { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.band-head h2 { margin-bottom: 0; }
.band-head + .band-body { margin-top: 0; }

/* Editorial lead paragraph - full container width, no measure cap */
.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--ink);
}
.lede p { margin-bottom: .9rem; }
.lede > :last-child { margin-bottom: 0; }

.prose p { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Rule tiles - hairline typographic blocks, NOT boxed cards.
   Used for every H3 group the builder emits.
   -------------------------------------------------------------------------- */
.rule-grid { display: grid; gap: 0; }
.rule-grid--1 { grid-template-columns: minmax(0, 1fr); }
.rule-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rule-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rule-tile {
  position: relative;
  padding: 1.7rem 1.6rem 1.9rem 0;
  border-top: 1px solid var(--line);
}
.rule-tile::before {   /* the gold segment that marks the start of each tile */
  content: ''; position: absolute; top: -1px; left: 0; width: 34px; height: 3px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.rule-tile:hover::before { width: 72px; }
.rule-grid--2 .rule-tile:not(:nth-child(2n+1)),
.rule-grid--3 .rule-tile:not(:nth-child(3n+1)),
.rule-grid--4 .rule-tile:not(:nth-child(4n+1)) { padding-left: 1.6rem; }
.rule-tile h3 { margin-bottom: .55rem; }
.rule-tile p { font-size: .95rem; color: var(--ink-soft); }
.rule-tile > :last-child { margin-bottom: 0; }
.rule-tile ul, .rule-tile ol { font-size: .95rem; color: var(--ink-soft); }

.band--night .rule-tile { border-top-color: var(--night-line); }
.band--night .rule-tile p, .band--night .rule-tile li { color: var(--on-night-soft); }

/* Rich variant - H3 group carrying H4 sub-headings and step lists */
.rule-grid--rich { grid-template-columns: minmax(0, 1fr); }
.rule-grid--rich .rule-tile { padding: 2.2rem 0 2.4rem; }
.rule-grid--rich .rule-tile h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-bottom: .9rem; }
.rule-grid--rich h4 {
  margin: 2rem 0 .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--gold-ink);
  font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.band--night .rule-grid--rich h4 { border-top-color: var(--night-line); color: var(--gold); }

/* Step lists inside rich tiles: hairline rows, gold tick, no boxes, no numbers */
.rule-grid--rich .rule-tile > ul,
.rule-grid--rich .rule-tile > ol {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  display: grid; gap: 0;
}
.rule-grid--rich .rule-tile > ul > li,
.rule-grid--rich .rule-tile > ol > li {
  position: relative; margin: 0;
  padding: .95rem 0 .95rem 1.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .95rem; color: var(--ink-soft);
}
.rule-grid--rich .rule-tile > ul > li:last-child,
.rule-grid--rich .rule-tile > ol > li:last-child { border-bottom: 0; }
.rule-grid--rich .rule-tile > ul > li::before,
.rule-grid--rich .rule-tile > ol > li::before {
  content: ''; position: absolute; left: 0; top: 1.45rem;
  width: 10px; height: 2px; background: var(--gold); border-radius: 2px;
}
.rule-grid--rich .rule-tile li strong { color: var(--ink); }
.band--night .rule-grid--rich .rule-tile > ul > li { border-bottom-color: var(--night-line); color: var(--on-night-soft); }

/* --------------------------------------------------------------------------
   Check list - for list-only sections
   -------------------------------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checks li {
  position: relative; margin: 0;
  padding: 1.05rem 0 1.05rem 1.75rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: .97rem;
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {          /* a real tick, drawn from two borders */
  content: ''; position: absolute; left: .25rem; top: 1.35rem;
  width: 6px; height: 11px;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checks li strong { color: var(--ink); }
.band--night .checks li { border-bottom-color: var(--night-line); color: var(--on-night-soft); }
.band--night .checks li strong { color: var(--on-night); }
.band--night .checks li::before { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Duo - split copy + media
   -------------------------------------------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}
.duo--flip .duo-copy { order: 2; }
.duo--flip .duo-media { order: 1; }
.duo-copy > :last-child { margin-bottom: 0; }
.duo-media {
  border-radius: var(--r-media); overflow: hidden;
  box-shadow: var(--lift-2); border: 1px solid var(--line-soft);
}
.duo-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* --------------------------------------------------------------------------
   Figure band - full-container image with the caption BELOW, no overlays
   -------------------------------------------------------------------------- */
.figure-band { margin: 0; }
.figure-band .shot {
  border-radius: var(--r-media); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--lift-2);
}
.figure-band img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.figure-band figcaption {
  margin-top: .9rem;
  font-size: .88rem; color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Bento - asymmetric, image-backed cells (used on the homepage game floor)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.bento-cell {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel);
  padding: 1.8rem 1.7rem;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--lift-1);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.bento-cell h3 { margin-bottom: .6rem; }
.bento-cell p { font-size: .95rem; color: var(--ink-soft); }
.bento-cell > :last-child { margin-bottom: 0; }
.bento-cell--lead {
  grid-column: span 2; grid-row: span 2; padding: 0;
  /* night ground by default so the cell reads correctly even with no photo */
  background: linear-gradient(150deg, var(--night-2), var(--night));
  border-color: var(--night-line);
}
.bento-cell--lead .bento-shot { position: absolute; inset: 0; }
.bento-cell--lead .bento-shot img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.bento-cell--lead .bento-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(6, 17, 9, .30) 0%, rgba(6, 17, 9, .88) 66%);
}
.bento-cell--lead .bento-text {
  position: relative; z-index: 1; margin-top: auto;
  padding: 1.9rem 1.8rem;
  min-height: 22rem; display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-cell--lead h3 { color: var(--on-night); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.bento-cell--lead p { color: var(--on-night-soft); }
.bento-cell--gold {
  background: linear-gradient(150deg, var(--gold-soft), #F1D289);
  border-color: rgba(178, 120, 18, .3);
}
.bento-cell--gold h3, .bento-cell--gold p { color: #201705; }
.bento-cell--gold .golink { color: #3A2606; }
.bento-cell--night {
  background: linear-gradient(150deg, var(--night-2), var(--night));
  border-color: var(--night-line);
}
.bento-cell--night h3 { color: var(--on-night); }
.bento-cell--night p { color: var(--on-night-soft); }

.golink {
  margin-top: auto; padding-top: 1rem;
  font-size: .82rem; font-weight: 650; letter-spacing: .04em;
  color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
}
.golink::after { content: '→'; transition: transform .25s var(--ease); }
.golink:hover::after { transform: translateX(4px); }
.bento-cell--lead .golink, .bento-cell--night .golink { color: var(--gold); }

/* --------------------------------------------------------------------------
   Panel - reserved for surfaces where elevation is real (FAQ, callouts)
   -------------------------------------------------------------------------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--lift-1);
}
.panel > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); letter-spacing: -.015em;
  color: var(--ink);
}
.faq-sign {
  flex: 0 0 auto; position: relative; width: 1.3rem; height: 1.3rem;
  transition: transform .35s var(--ease);
}
.faq-sign::before, .faq-sign::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--gold-deep); border-radius: 2px;
}
.faq-sign::before { width: 100%; height: 2px; }
.faq-sign::after  { width: 2px; height: 100%; }
.faq-item[open] .faq-sign { transform: rotate(135deg); }
.faq-a { padding: 0 0 1.5rem; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.band--night .faq-item { border-color: var(--night-line); }
.band--night .faq-q { color: var(--on-night); }
.band--night .faq-a p { color: var(--on-night-soft); }
.band--night .faq-sign::before, .band--night .faq-sign::after { background: var(--gold); }

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.closer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; align-items: center; }
.closer h2 { margin-bottom: .5rem; }
.closer p { margin: 0; }
.closer-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--night);
  color: var(--on-night-soft);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.foot-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: 2.6rem;
}
.foot-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 13px; margin-bottom: 1rem; }
.foot-brand p { font-size: .9rem; color: var(--on-night-soft); }
.rails { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.rails span {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: var(--r-pill);
  border: 1px solid var(--night-line); color: var(--gold-soft);
}
.foot-col h3 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-night-dim); margin-bottom: 1.05rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .55rem; }
.foot-col a { font-size: .92rem; color: var(--on-night-soft); transition: color .2s, transform .2s; display: inline-block; }
.foot-col a:hover { color: var(--gold); transform: translateX(3px); }

.foot-base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--night-line);
  font-size: .8rem; color: var(--on-night-dim);
}
.foot-base p { margin: 0; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.err {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background:
    radial-gradient(800px 500px at 70% 20%, rgba(227, 167, 47, .22), transparent 62%),
    linear-gradient(160deg, var(--night-2), var(--night));
  color: var(--on-night);
  margin-top: calc(var(--head-h) * -1);
  padding-top: calc(var(--head-h) + clamp(4rem, 10vw, 8rem));
}
.err h1 { color: var(--on-night); }
.err p { color: var(--on-night-soft); }
.err-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Motion - entry choreography (hierarchy + storytelling), reduced-motion safe
   -------------------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(26px); }
.rise.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero .rise { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive - every multi-column layout declares its collapse
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .factbar .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-cell--lead { grid-column: span 2; grid-row: auto; }
  .bento-cell--lead .bento-text { min-height: 17rem; }
  .foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav, .head-cta .btn-primary { display: none; }
  .burger { display: block; }
  .head-cta { margin-left: auto; }
  .rule-grid--3, .rule-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo, .closer { grid-template-columns: minmax(0, 1fr); }
  .duo--flip .duo-copy, .duo--flip .duo-media { order: initial; }
  .duo-media img { aspect-ratio: 16 / 10; }
  .closer-actions { justify-content: flex-start; }
  .figure-band img { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  :root { --gutter: 1.15rem; }
  .hero { padding-bottom: 2.5rem; }
}
@media (max-width: 560px) {
  .rule-grid--2, .rule-grid--3, .rule-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .rule-grid--2 .rule-tile, .rule-grid--3 .rule-tile, .rule-grid--4 .rule-tile { padding-left: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cell--lead { grid-column: span 1; }
  .factbar .container { grid-template-columns: minmax(0, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0 !important; }
  .fact:last-child { border-bottom: 0; }
  .foot-map { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn-primary, .hero-actions .btn-night { width: 100%; }
  .figure-band img { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .brandmark-word { font-size: 1rem; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}
