/* ==========================================================================
   Cluck Point — cluckpoint.com
   One hand-written stylesheet, no framework, no build step.

   The palette is lifted verbatim from the game's own src/ui/styles.css so the
   site and the app read as one object. The page runs daylight paper; the hero
   and the finale sit on the same night field as the app's splash screen.
   ========================================================================== */

/* ---- fonts ---------------------------------------------------------------
   Tanker and Ranade, self hosted from Fontshare (ITF license, free for web).
   The fallback faces are metric-tuned so the first paint holds the same
   linebreaks the real faces will keep. */

@font-face {
  font-family: 'Tanker';
  src: url('/fonts/tanker-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ranade';
  src: url('/fonts/ranade-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ranade';
  src: url('/fonts/ranade-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ranade';
  src: url('/fonts/ranade-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tanker Fallback';
  src: local('Arial Narrow Bold'), local('Arial Bold'), local('Arial');
  size-adjust: 94%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Ranade Fallback';
  src: local('Segoe UI'), local('Arial'), local('Roboto');
  size-adjust: 101%;
  ascent-override: 98%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ---- tokens ------------------------------------------------------------ */

:root {
  /* the game's own colours */
  --ink: #2b1d12;
  --ink-2: #6a5238;
  --ink-3: #8c7452;
  --paper: #fff7e7;
  --parchment: #f4e4c2;
  --parchment-2: #e8d3a9;
  --gold: #f2b53c;
  --gold-deep: #c0821a;
  --gold-pale: #ffe6a6;
  --barn: #c4442f;
  --barn-deep: #8d2b1d;
  --meadow: #7fa844;
  --sky: #78aed6;

  /* night field, from the splash art */
  --night: #2b1d12;
  --night-2: #1b120a;
  --night-3: #3a2716;
  --night-text: #fff3d6;
  --night-muted: #c9ac83;
  --night-line: rgba(255, 230, 166, 0.14);

  --line: rgba(43, 29, 18, 0.16);
  --radius: 20px;
  --lip: 0 5px 0 rgba(92, 56, 20, 0.38);
  --lip-sm: 0 3px 0 rgba(92, 56, 20, 0.36);
  --cast: 0 14px 30px rgba(28, 16, 6, 0.18);
  --cast-sm: 0 6px 16px rgba(28, 16, 6, 0.14);
  --spring: cubic-bezier(0.2, 1.5, 0.35, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Tanker', 'Tanker Fallback', 'Arial Narrow', sans-serif;
  --font-body: 'Ranade', 'Ranade Fallback', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 76px;

  /* the wordmark gradient, straight off the title card */
  --wordmark: linear-gradient(180deg, #fff5d8, #f2b53c 56%, #b3760f);
}

/* ---- reset & primitives ------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

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

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

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
}
.skip:focus { left: 12px; }

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

/* paper tooth over the whole page, same recipe as the game's plaques */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- kicker -------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* darker than --gold-deep: 13px text needs 4.5:1 even on parchment */
  color: #7a5008;
}
.kicker::before {
  content: '';
  width: 8px; height: 10px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%; /* a tiny egg, point up */
  background: linear-gradient(180deg, #fffdf6, #ecd9b0);
  border: 1.5px solid currentColor;
  flex: none;
}
.on-night .kicker, .legal-hero .kicker { color: var(--gold-pale); }

/* ---- buttons ------------------------------------------------------------- */

/* Hover motion rides transitioned custom properties, never `transform`
   itself: GSAP writes inline transforms during the intro and the reveals,
   and a CSS transition on transform chases those writes. Combined with a
   ScrollTrigger refresh re-running the matchMedia context, that chase gets
   read back as the element's natural position and parks it askew forever.
   Transitioning the variables sidesteps the whole fight. */
@property --btn-mx { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --btn-my { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --btn-lift { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --hop { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --spot-lift { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --spot-rot { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.btn {
  --btn-mx: 0px; --btn-my: 0px; --btn-lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transform: translate(var(--btn-mx), calc(var(--btn-my) + var(--btn-lift)));
  transition: --btn-lift 0.45s var(--spring), --btn-mx 0.2s ease-out,
    --btn-my 0.2s ease-out, box-shadow 0.3s ease;
}
.btn:hover { --btn-lift: -2px; }
.btn:active { --btn-lift: 1px; }

.btn-gold {
  background: linear-gradient(180deg, #ffdd8c, #f2b53c 48%, #c0821a);
  color: #3a2508;
  box-shadow: 0 4px 0 #8a5c10, var(--cast-sm);
}
.btn-gold:hover { box-shadow: 0 6px 0 #8a5c10, var(--cast); }
.btn-gold:active { box-shadow: 0 2px 0 #8a5c10, var(--cast-sm); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.on-night .btn-ghost { color: var(--night-text); box-shadow: inset 0 0 0 2px var(--night-line); }
.on-night .btn-ghost:hover { box-shadow: inset 0 0 0 2px rgba(255, 230, 166, 0.4); }

/* ---- nav ----------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.is-solid {
  background: rgba(43, 29, 18, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--night-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--night-text);
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--night-muted);
}
.nav-links a { transition: color 0.25s ease; }
.nav-links a:hover { color: var(--night-text); }
.nav .btn { padding: 10px 22px; font-size: 14px; }

/* on paper pages (privacy, terms, support) the nav starts solid */
.nav.nav-paper { background: rgba(43, 29, 18, 0.92); }

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  color: var(--night-text);
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 62% at 68% 44%, rgba(242, 181, 60, 0.22), transparent 68%),
    radial-gradient(120% 120% at 50% 40%, #3a2716, #2b1d12 52%, #1b120a 100%);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#hero-canvas.is-ready { opacity: 1; }

.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(58px, 9.4vw, 138px);
  margin: 22px 0 26px;
}
.h1-line { display: block; overflow: clip; }
.h1-word { display: inline-block; will-change: transform; }
.hero h1 .gold {
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--night-muted);
  max-width: 40ch;
}
.hero-sub + .hero-sub { margin-top: 10px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 172, 131, 0.85);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 72px);
}
.hero-stats .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .lbl {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--night-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: '';
  width: 1.5px; height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hint-drop 2.2s var(--out) infinite;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- marquee ------------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, #ffd97a, #f2b53c 55%, #d99a24);
  color: #3a2508;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -28px 0;
  box-shadow: var(--cast-sm);
  overflow: clip;
}
.marquee-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
}
.marquee-track span::after {
  content: '';
  display: inline-block;
  width: 10px; height: 13px;
  margin: 0 26px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: #3a2508;
  opacity: 0.85;
}

/* ---- sections ------------------------------------------------------------ */

.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(42px, 5.8vw, 80px);
  margin: 18px 0 20px;
}
.section-head .lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
}

.on-parchment { background: linear-gradient(180deg, var(--parchment), var(--parchment-2)); }
.on-night {
  background:
    radial-gradient(70% 60% at 50% 8%, rgba(242, 181, 60, 0.14), transparent 70%),
    linear-gradient(180deg, var(--night-3), var(--night) 40%, var(--night-2));
  color: var(--night-text);
}
.on-night .section-head .lede { color: var(--night-muted); }

/* ---- plaque cards -------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.plaque {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, var(--paper), var(--parchment) 60%, var(--parchment-2));
  border: 1px solid rgba(92, 56, 20, 0.22);
  box-shadow: var(--lip), var(--cast-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 8px rgba(140, 96, 34, 0.14);
  transform: translateY(var(--hop, 0px));
  transition: --hop 0.5s var(--spring), box-shadow 0.4s ease;
  overflow: clip;
}
.plaque::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
@media (hover: hover) {
  .plaque:hover {
    --hop: -5px;
    box-shadow: 0 8px 0 rgba(92, 56, 20, 0.34), var(--cast),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -4px 8px rgba(140, 96, 34, 0.14);
  }
}
.plaque h3 {
  font-size: clamp(21px, 1.9vw, 26px);
  margin-bottom: 12px;
}
.plaque p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.plaque .glyph {
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--gold-deep);
}
.plaque .glyph svg { width: 100%; height: 100%; }

/* stamp corner on cards, like the result card's grade stamp */
.plaque .stamp {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--barn);
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 3px 9px;
  transform: rotate(6deg);
  opacity: 0.85;
}

/* ---- acts (pinned horizontal) --------------------------------------------
   The track is a vertical stack by default; js/main.js adds .has-pin on the
   section only when the desktop pin tween actually exists. Reduced motion,
   no JS, or a failed script therefore never strand cards behind the clip. */

.acts { overflow: clip; }
.acts-viewport { position: relative; }
.acts-track {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}
.acts.has-pin .acts-track {
  flex-direction: row;
  width: max-content;
  padding-right: 8vw;
}
/* while pinned, the whole section must fit one viewport: the pin holds it on
   screen for ~1400px of scroll, so anything past the fold stays cut off the
   entire time */
.acts.has-pin { padding: calc(var(--nav-h) + 24px) 0 40px; }
.acts.has-pin .section-head { margin-bottom: 30px; }
.acts.has-pin .section-head h2 { font-size: clamp(36px, 4.4vw, 64px); }
.acts.has-pin .act img { aspect-ratio: auto; height: min(300px, 30svh); }
.act {
  width: min(560px, 100%);
  flex: none;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--paper), var(--parchment));
  border: 1px solid rgba(92, 56, 20, 0.22);
  box-shadow: var(--lip), var(--cast-sm);
  overflow: clip;
  position: relative;
}
.acts.has-pin .act { width: min(560px, 78vw); }
.act img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(92, 56, 20, 0.18);
}
.act-body { padding: 24px 26px 30px; position: relative; }
.act-num {
  position: absolute;
  top: -34px; right: 18px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(92, 56, 20, 0.4);
}
.act h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 10px; }
.act p { color: var(--ink-2); font-size: 15.5px; }
.act p + p { margin-top: 6px; }

/* ---- yard (spots) --------------------------------------------------------- */

.spot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  max-width: 900px;
}
.spot {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid rgba(92, 56, 20, 0.3);
  box-shadow: var(--lip-sm);
  transform: translateY(var(--spot-lift, 0px)) rotate(var(--spot-rot, 0deg));
  transition: --spot-lift 0.4s var(--spring), --spot-rot 0.4s var(--spring),
    background 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
  .spot:hover {
    --spot-lift: -3px;
    --spot-rot: -1deg;
    background: var(--ink);
    color: var(--gold-pale);
  }
}
.yard-aside {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: clamp(44px, 6vw, 64px);
  align-items: start;
}
.yard-aside .plaque p + p { margin-top: 10px; }

/* ---- code (night editorial) ----------------------------------------------- */

.craft-list {
  counter-reset: craft;
  display: grid;
  gap: 0;
  max-width: 900px;
}
.craft-item {
  counter-increment: craft;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--night-line);
}
.craft-item:last-child { border-bottom: 1px solid var(--night-line); }
.craft-item::before {
  content: counter(craft, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.craft-item h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.craft-item p { color: var(--night-muted); max-width: 58ch; }
.craft-item p + p { margin-top: 6px; }

/* ---- purse ---------------------------------------------------------------- */

.honesty {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: clamp(40px, 5vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.honesty span { display: inline-flex; align-items: center; gap: 12px; }
.honesty span::before {
  content: '';
  width: 8px; height: 10px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: var(--gold);
  border: 1.5px solid var(--gold-deep);
}

/* ---- phone shots ----------------------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(48px, 6vw, 72px);
  align-items: end;
}
.shot {
  border-radius: 26px;
  border: 1px solid rgba(92, 56, 20, 0.28);
  box-shadow: var(--lip), var(--cast);
  overflow: clip;
  background: var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.shot img { width: 100%; }
.shot:nth-child(1) { --tilt: -2deg; }
.shot:nth-child(2) { margin-bottom: 26px; }
.shot:nth-child(3) { --tilt: 2deg; }
.shot figcaption {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: var(--ink);
  text-align: center;
  padding: 12px 10px 14px;
}

/* ---- faq ------------------------------------------------------------------- */

.faq-list { max-width: 860px; }
.faq-item {
  border-radius: 14px;
  background: linear-gradient(180deg, var(--paper), var(--parchment));
  border: 1px solid rgba(92, 56, 20, 0.2);
  box-shadow: var(--lip-sm);
  margin-bottom: 14px;
  overflow: clip;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 23px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-deep);
  transition: transform 0.35s var(--spring);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 24px 22px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---- finale ----------------------------------------------------------------- */

.finale {
  text-align: center;
  padding: clamp(120px, 16vw, 210px) 0 clamp(100px, 13vw, 170px);
  overflow: clip;
}
.finale h2 {
  font-size: clamp(58px, 11.5vw, 176px);
  line-height: 0.92;
  margin: 20px 0 26px;
}
.finale h2 .gold {
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.finale .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--night-muted);
}
.finale .hero-cta { justify-content: center; }

/* ---- footer ------------------------------------------------------------------ */

.footer {
  background: var(--night-2);
  color: var(--night-muted);
  padding: clamp(56px, 8vw, 90px) 0 42px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--night-line);
}
.footer .brand { font-size: 20px; }
.footer-tag { margin-top: 14px; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin: 0 0 16px;
}
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--night-text); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
}
.footer-pips { display: flex; gap: 8px; }
.footer-pips i {
  width: 10px; height: 13px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
}
.footer-pips i:nth-child(1) { background: var(--gold); }
.footer-pips i:nth-child(2) { background: var(--barn); }
.footer-pips i:nth-child(3) { background: var(--meadow); }
.footer-pips i:nth-child(4) { background: var(--sky); }

/* ---- legal pages --------------------------------------------------------------- */

.legal-hero {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 110px)) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(62% 62% at 50% 20%, rgba(242, 181, 60, 0.18), transparent 68%),
    linear-gradient(180deg, var(--night-3), var(--night));
  color: var(--night-text);
}
.legal-hero h1 { font-size: clamp(44px, 7vw, 92px); margin: 16px 0 14px; }
.legal-hero .updated {
  color: var(--night-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-body { padding: clamp(56px, 8vw, 90px) 0 clamp(90px, 12vw, 140px); }
.legal-body .wrap { max-width: 820px; }
.legal-summary {
  border: 1.5px solid rgba(192, 130, 26, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff3d3, #ffe9b8);
  box-shadow: var(--lip-sm);
  padding: 26px 28px;
  margin-bottom: clamp(44px, 6vw, 64px);
  color: var(--ink-2);
}
.legal-summary strong { color: var(--ink); }
.legal-body section + section { margin-top: clamp(44px, 6vw, 64px); }
.legal-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 18px;
}
.legal-body h3 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: none; margin-bottom: 14px; }
.legal-body li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 9px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
}
.legal-body strong { color: var(--ink); }
.legal-body a { color: #7a5008; text-decoration: underline; text-underline-offset: 3px; }
.legal-body code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: rgba(92, 56, 20, 0.1);
  border-radius: 6px;
  padding: 2px 7px;
}

/* support page reuses legal shell + faq items */
.legal-body .faq-item { background: linear-gradient(180deg, #fffbf0, var(--parchment)); }
.legal-body .faq-item summary { font-size: clamp(17px, 1.7vw, 21px); }

/* ---- reveal defaults (js adds motion, css keeps content visible without js) ---- */

[data-reveal], [data-reveal-stagger] > * { will-change: transform; }

/* ---- responsive ------------------------------------------------------------------ */

/* 1023.98 rather than 1023 so fractional widths under page zoom cannot fall
   between this block and the scripts' (min-width: 1024px) checks */
@media (max-width: 1023.98px) {
  .nav-links a:not(.btn) { display: none; }
  /* the diorama gets its own band under the copy instead of hiding behind it */
  .hero { padding-bottom: min(470px, 64svh); }
  #hero-canvas { top: auto; bottom: 0; height: min(460px, 62svh); }
  .scroll-hint { display: none; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .yard-aside { grid-template-columns: 1fr; }
  .craft-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 599.98px) {
  body { font-size: 16px; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .shots { grid-template-columns: 1fr; }
  .shot:nth-child(2) { margin-bottom: 0; }
  .shot { --tilt: 0deg !important; max-width: 340px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px 32px; }
}

/* the hero stays one screen even on short desktop windows */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 56px; }
  .hero h1 { font-size: clamp(48px, 7vw, 96px); }
  .hero-stats { margin-top: 28px; }
}

/* ---- print: the legal pages are the ones people actually print ---------- */

@media print {
  .grain, .nav, .scroll-hint, .marquee, #hero-canvas, .hero-bg,
  .skip, .footer-pips { display: none !important; }
  body { background: #fff; color: #111; }
  .hero, .legal-hero, .on-night, .on-parchment, .finale, .footer {
    background: none !important;
    color: #111 !important;
  }
  .legal-hero .kicker, .legal-hero .updated, .kicker,
  .legal-body p, .legal-body li, .footer, .footer a { color: #333 !important; }
  .legal-summary { background: none; border-color: #999; }
  .legal-body a { color: #111; }
  .hero h1 .gold, .finale h2 .gold, .hero-stats .num {
    -webkit-background-clip: initial;
    background-clip: initial;
    background: none;
    color: #111;
  }
}

/* ---- reduced motion ---------------------------------------------------------------- */

/* The marquee is deliberately absent here: its drift is created only by JS
   that is itself behind the same media gate (plus the ?motion override, which
   CSS cannot see and must not fight). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint::after { animation: none; }
  .btn, .plaque, .spot, .faq-item summary::after { transition: none; }
}
