/* css/site.css — shared by every page: tokens, header, footer, page shell,
   buttons, fields, cards, the offer card, the mini poster.
   Page-specific styles live next to each page.

   Look: dark glass and thin light. Lines are hairlines that catch light and
   fade out, never boxes around text. Gold is a light, not a paint: buttons are
   glass warmed from inside. Motion is slow and quiet, and stops for anyone
   who asks for reduced motion. One content width (--page-w) shared by
   header, pages and footer. */

:root {
  --bg: #0a0a14;
  --bg-raised: #0e0e1c;
  --gold: #d4af37;
  --gold-soft: rgba(222,190,90,0.95);
  --gold-dim: rgba(212,175,55,0.8);
  --cream: #f4e4b7;
  --ink-warm: #f8ebbd;
  --text: rgba(244,228,183,0.92);
  --text-dim: rgba(244,228,183,0.8);
  --old: rgba(200,183,148,0.78);

  /* Lines: --hair is one device pixel on retina screens */
  --hair: 1px;
  --line: rgba(212,175,55,0.3);          /* dividers between pieces of content */
  --line-soft: rgba(212,175,55,0.16);    /* rows inside a list */
  --line-ctl: rgba(212,175,55,0.7);      /* edges of things you can press or type in (≥3:1) */
  --gold-line: var(--line);
  --gold-wash: rgba(212,175,55,0.08);

  /* Light: an edge bright at the top-left that lets go towards the bottom-right */
  --lit: linear-gradient(140deg, rgba(255,240,190,0.95) 0%, rgba(212,175,55,0.45) 28%, rgba(212,175,55,0.14) 62%, rgba(255,236,170,0.55) 100%);
  --glass: linear-gradient(180deg, #1b1b33 0%, #111122 55%, #0c0c1a 100%);
  --gold-edge: linear-gradient(180deg, #fff8dc 0%, #d9b648 45%, #8f6c14 100%);
  --gold-warm: linear-gradient(180deg, rgba(236,205,110,0.30) 0%, rgba(212,175,55,0.10) 52%, rgba(212,175,55,0.20) 100%);
  /* rules that fade out instead of ending */
  --rule-right: linear-gradient(90deg, rgba(255,240,190,0.8) 0%, rgba(212,175,55,0.45) 30%, rgba(212,175,55,0) 100%);
  --rule-mid: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,0.5) 18%, rgba(255,240,190,0.8) 50%, rgba(212,175,55,0.5) 82%, rgba(212,175,55,0) 100%);
  --rule-down: linear-gradient(180deg, rgba(212,175,55,0) 0%, rgba(255,240,190,0.6) 30%, rgba(212,175,55,0.35) 70%, rgba(212,175,55,0) 100%);
  --rule-soft: linear-gradient(90deg, rgba(212,175,55,0.3), rgba(212,175,55,0));

  --r: 11px;                 /* controls: soft, like polished glass */
  --r-in: 8px;               /* a pressed cell inside a control */
  --r-card: 18px;            /* the offer card, banners */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --page-w: 1240px;
  --gutter: 28px;
  --edge: max(var(--gutter), calc((100% - var(--page-w)) / 2));
  --header-h: 56px;
  --keeper-h: 70px;          /* the date/time/place keeper; every page title shares its line */
  --font-body: 'Zain', sans-serif;
  --font-script: 'Waterfall', Georgia, serif;
  --font-caps: 'Cormorant Unicase', serif;
}
@media (min-resolution: 2dppx) {
  :root { --hair: 0.5px; --line: rgba(212,175,55,0.5); --line-soft: rgba(212,175,55,0.3); --line-ctl: rgba(212,175,55,0.9); }
}
@media (max-width: 980px) { :root { --gutter: 16px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-weight: 300; background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Atmosphere: three very faint lights behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% -5%, rgba(86,98,178,0.20), transparent 70%),
    radial-gradient(45% 40% at 100% 28%, rgba(176,124,62,0.11), transparent 72%),
    radial-gradient(60% 45% at 40% 108%, rgba(212,175,55,0.07), transparent 70%);
}
main { flex: 1; }
:focus-visible { outline: 1.5px solid var(--cream); outline-offset: 3px; }
a { color: inherit; }
img { max-width: 100%; }
b, strong { font-weight: 400; color: var(--cream); }

/* ── Shared type ─────────────────────────────────────────────── */
.kicker {
  font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft);
}
/* Script titles in brushed gold */
.script-title {
  font-family: var(--font-script); font-weight: 400; color: var(--gold);
  font-size: clamp(46px, 8vw, 78px); line-height: 1.1;
  background: linear-gradient(100deg, #f9ecb8 0%, #dcb84a 30%, #b98d26 55%, #ecd27c 80%, #f9ecb8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* room for the swashes, which reach outside the text box */
  padding: 0.14em 0.3em; margin: -0.14em -0.3em;
}
.page-head { text-align: center; padding: 34px 16px 8px; }
.page-head p.lead {
  max-width: 600px; margin: 10px auto 0; font-size: 17px; line-height: 1.65; color: var(--text);
}
.section { width: 100%; max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons: dark glass with a lit edge, 44px tall ──────────── */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px;
  font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--r); border: var(--hair) solid transparent; cursor: pointer;
  transition: box-shadow 0.7s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.btn-ghost, .btn-ghost:hover {
  color: var(--cream);
  background: var(--glass) padding-box, var(--lit) border-box;
}
.btn-ghost {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 12px 30px -16px rgba(0,0,0,0.9), 0 0 0 0 rgba(212,175,55,0);
}
.btn-ghost:hover, .poster-band a:hover .btn {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 30px -16px rgba(0,0,0,0.9), 0 0 34px -4px rgba(212,175,55,0.4);
}
/* The main button: the same glass, warmed with gold from inside, a full gold
   edge. Still at rest; on hover the same slow glow as the ghost button, and a
   light travels round its border. */
.btn-gold, .btn-gold:hover {
  color: var(--ink-warm);
  background: var(--gold-warm) padding-box, var(--glass) padding-box, var(--gold-edge) border-box;
}
.btn-gold {
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.22), 0 12px 30px -16px rgba(0,0,0,0.9), 0 0 0 0 rgba(212,175,55,0);
}
.btn-gold:hover {
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.28), 0 12px 30px -16px rgba(0,0,0,0.9), 0 0 34px -4px rgba(212,175,55,0.45);
}
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-gold::before {
  content: ''; position: absolute; inset: calc(-1 * var(--hair)); border-radius: inherit; pointer-events: none;
  padding: var(--hair);
  background: conic-gradient(from var(--spin), transparent 0deg, rgba(255,246,210,0.95) 40deg, transparent 90deg,
                             transparent 180deg, rgba(255,246,210,0.7) 220deg, transparent 270deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.9s var(--ease);
  animation: border-light 6s linear infinite paused;
}
.btn-gold:hover::before, .btn-gold:focus-visible::before { opacity: 1; animation-play-state: running; }
.btn:active { transform: translateY(0.5px); }
@keyframes border-light { to { --spin: 360deg; } }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* Text fields: dark glass, lit edge (poster words, restore form, donation) */
.opt-input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r);
  color: var(--cream); font-family: var(--font-body); font-weight: 300; font-size: 16px;
  border: var(--hair) solid transparent;
  background: var(--glass) padding-box, var(--lit) border-box;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45);
  transition: box-shadow 0.6s var(--ease);
}
.opt-input::placeholder { color: rgba(222,190,90,0.7); }
.opt-input:hover, .opt-input:focus { box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 0 28px -6px rgba(212,175,55,0.4); }
.opt-input:focus-visible { outline: 1.5px solid var(--cream); outline-offset: 1px; }
.opt-label {
  display: block; margin: 16px 0 8px; font-size: 11.5px; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-soft);
}

/* Pick one of a few: cells in one glass control, the chosen one lit
   (poster options, donation) */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px;
  border: var(--hair) solid transparent; border-radius: var(--r);
  background: var(--glass) padding-box, var(--lit) border-box;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45);
}
.seg button {
  min-height: 36px; padding: 0 16px; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); background: transparent; border: none; border-radius: var(--r-in);
  transition: color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.seg button:hover { color: var(--cream); background: rgba(212,175,55,0.1); }
.seg button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(236,205,110,0.34), rgba(212,175,55,0.14) 55%, rgba(212,175,55,0.24));
  color: var(--ink-warm);
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.3), 0 0 0 var(--hair) rgba(240,215,130,0.85), 0 0 18px -4px rgba(212,175,55,0.5);
}
.seg button:focus-visible { position: relative; z-index: 1; }

/* ── Header: same left and right edge as the page below it ───── */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--edge);
  background: linear-gradient(180deg, rgba(14,14,28,0.92), rgba(10,10,20,0.78));
  backdrop-filter: blur(18px) saturate(1.4);
}
.site-header::after, .site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; height: var(--hair); background: var(--rule-mid); pointer-events: none;
}
.site-header::after { bottom: 0; }
.site-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--gold);
  font-family: var(--font-caps); font-size: 19px; font-weight: 400; letter-spacing: 0.06em;
}
.site-nav { display: flex; align-items: stretch; gap: 30px; height: 100%; margin-left: auto; }
.site-nav a {
  display: flex; align-items: center; white-space: nowrap; text-decoration: none;
  color: var(--gold-soft); font-size: 12.5px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid transparent; margin-bottom: -1px;   /* the current page's line sits on the header's edge */
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), text-shadow 0.6s var(--ease);
}
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--gold); }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-shadow: 0 0 18px rgba(236,205,110,0.55); }
.site-burger {
  display: none; width: 44px; height: 44px; margin-right: -11px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.site-burger span { width: 22px; height: 1px; background: var(--gold); transition: transform 0.25s, opacity 0.25s; }
.site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phones: the menu fills the screen under the header, the pages spread
   evenly from top to bottom; the page behind does not scroll (html.nav-open) */
@media (max-width: 860px) {
  .site-burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0; padding: 4vh var(--gutter) calc(6vh + env(safe-area-inset-bottom));
    background:
      radial-gradient(70% 45% at 15% 0%, rgba(86,98,178,0.22), transparent 70%),
      radial-gradient(60% 40% at 90% 100%, rgba(212,175,55,0.12), transparent 70%),
      rgba(10,10,20,0.985);
    backdrop-filter: blur(16px);
  }
  .site-nav.open { display: flex; animation: menu-in 0.5s var(--ease) both; }
  .site-nav a {
    flex: 1 1 0; max-height: 120px; justify-content: center; margin: 0;
    font-size: 17px; letter-spacing: 0.24em; border: none;
    background: var(--rule-mid) bottom / 100% var(--hair) no-repeat;
  }
  .site-nav a:last-child { background: none; }
  .site-nav.open a { animation: arrive 0.7s var(--ease) both; }
  .site-nav.open a:nth-child(2) { animation-delay: 0.05s; }
  .site-nav.open a:nth-child(3) { animation-delay: 0.10s; }
  .site-nav.open a:nth-child(4) { animation-delay: 0.15s; }
  .site-nav.open a:nth-child(5) { animation-delay: 0.20s; }
  .site-nav a[aria-current="page"] { color: var(--gold); border: none; }
  .site-nav a[aria-current="page"]::before,
  .site-nav a[aria-current="page"]::after { content: '✦'; font-size: 10px; margin: 0 14px; }
  /* Only <html>: hidden overflow on body too would make body a scroll box,
     and the sticky header (with the menu in it) would slide off a scrolled page */
  html.nav-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Two-column pages: content left, side column right ──────── */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
  width: 100%; max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto;
  padding: 14px var(--gutter) 0; align-items: start;
}
.layout-main { min-width: 0; }
.layout .section { max-width: none; padding: 0; }
.layout-side {
  /* static: side sections scroll with the page, they do not follow it */
  display: flex; flex-direction: column; gap: 26px; min-width: 0;
}
/* The title sits on the keeper's line on every page, at the same height */
.layout .page-head { text-align: left; padding: 0; min-height: var(--keeper-h); }
.layout .page-head p.lead { margin-left: 0; }
.layout .script-title { font-size: clamp(40px, 5vw, 64px); }
/* A side section is set off by one fading hairline above it — no box */
.side-card { padding-top: 20px; background: var(--rule-right) top / 100% var(--hair) no-repeat; }
.side-card > .kicker { margin-bottom: 12px; }
/* Pages whose right column is empty use the full width */
.layout:has(> .layout-side:empty) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  /* Phones: the picker comes first, the column's other sections after the content */
  .layout-side { display: contents; }
  .layout-side > * { order: 2; }
  .layout-side > .desktop-only { display: none; }
  .layout .page-head { text-align: center; min-height: 0; }
  .layout .page-head p.lead { margin: 10px auto 0; }
}

/* ── The keeper slot: right edge of the page, directly under the menu ── */
.keeper-slot {
  position: absolute; top: calc(var(--header-h) + 14px); left: 0; right: 0; z-index: 20;
  display: flex; justify-content: flex-end; padding: 0 var(--edge); pointer-events: none;
}
.keeper-slot > * { pointer-events: auto; }
.has-keeper .layout-side { margin-top: calc(var(--keeper-h) + 24px); }
@media (max-width: 980px) {
  .keeper-slot { position: static; justify-content: center; padding: 16px 12px 0; }
  .has-keeper .layout-side { margin-top: 0; }
}

/* ── Picker (.bp-*) — the starmap keeper's look: one line, small, no box ── */
.bp-wrap { font-family: var(--font-body); }
.bp-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: nowrap; height: var(--keeper-h); }
.bp-group { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.bp-label {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); user-select: none;
}
.bp-fields { display: flex; align-items: center; gap: 3px; height: 50px; }
.bp-sep { color: var(--gold-dim); font-size: 15px; padding: 0 1px; user-select: none; }
.bp-spinner { display: flex; flex-direction: column; align-items: center; }
.bp-step {
  width: 30px; height: 16px; cursor: pointer; font-size: 8px; font-family: var(--font-body);
  background: transparent; color: var(--gold-soft);
  border: var(--hair) solid var(--line-ctl);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.bp-step:hover { background: rgba(212,175,55,0.22); color: var(--cream); }
.bp-step-t { border-radius: 4px 4px 0 0; }
.bp-step-b { border-radius: 0 0 4px 4px; }
.bp-step-wide { width: 46px; }
.bp-input {
  width: 30px; height: 18px; padding: 0; text-align: center; background: transparent;
  color: var(--cream); border: var(--hair) solid var(--line-ctl);
  border-top: none; border-bottom: none; font-family: var(--font-body); font-weight: 400; font-size: 13.5px;
}
.bp-input:focus { outline: none; color: var(--gold); background: rgba(212,175,55,0.14); }
.bp-input-wide { width: 46px; }
.bp-div { width: var(--hair); height: 44px; align-self: center; background: var(--rule-down); flex-shrink: 0; }
.bp-actions {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  margin-top: 18px; height: 51px; flex-shrink: 0;
}
.bp-here, .bp-now {
  height: 24px; padding: 0 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  background: transparent; color: var(--gold-soft);
  border: var(--hair) solid var(--line-ctl);
  font-family: var(--font-body); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s var(--ease);
}
.bp-here:hover, .bp-now:hover { background: var(--gold-wash); color: var(--cream); border-color: var(--cream); box-shadow: 0 0 18px -4px rgba(212,175,55,0.5); }
.bp-loc-wrap { position: relative; height: 50px; display: flex; align-items: center; }
.bp-loc-input {
  width: 124px; height: 30px; padding: 0 10px; border-radius: 7px;
  background: transparent; color: var(--cream);
  border: var(--hair) solid var(--line-ctl); font-family: var(--font-body); font-weight: 400; font-size: 13.5px;
  transition: border-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.bp-loc-input::placeholder { color: rgba(222,190,90,0.7); }
.bp-loc-input:focus { outline: none; border-color: var(--cream); box-shadow: 0 0 18px -4px rgba(212,175,55,0.5); }
.bp-loc-results {
  position: absolute; top: calc(100% - 4px); right: 0; width: 220px; max-height: 160px; overflow-y: auto;
  border: var(--hair) solid transparent; border-radius: var(--r);
  background: linear-gradient(#0e0e1c, #0e0e1c) padding-box, var(--lit) border-box;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.8);
  display: none; z-index: 50; scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.45) transparent;
}
.bp-loc-item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  border-bottom: var(--hair) solid var(--line-soft); padding: 9px 12px;
  font-size: 14px; font-weight: 300; color: var(--cream); font-family: var(--font-body);
}
.bp-loc-item:last-child { border-bottom: none; }
.bp-loc-item:hover, .bp-loc-item:focus-visible { background: rgba(212,175,55,0.14); }
/* Phones: location drops to its own line */
@media (max-width: 560px) {
  .bp-row { flex-wrap: wrap; justify-content: center; gap: 8px 10px; height: auto; }
  .bp-group-place + .bp-div, .bp-actions + .bp-div { display: none; }
  .bp-group-place { flex-direction: row; gap: 8px; align-items: center; }
  .bp-group-place .bp-loc-wrap { height: 36px; }
  .bp-loc-input { width: 200px; font-size: 16px; }
}

/* ── Cards: ways on, side by side (start page, starmap, comparison) ──
   Every card shares the same six row lines (subgrid), so kickers, titles,
   texts and links sit on one line across the cards whatever the picture is:
   picture · sign name · kicker · title · text · link. Spacing comes from
   margins, so a card without a picture or sign leaves no gap. */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto);
  margin-top: 56px;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  text-decoration: none; padding: 0 32px;
  background: var(--rule-down) left / var(--hair) 100% no-repeat;
}
.card > * { min-width: 0; }
.card:first-child { padding-left: 0; background: none; }
.card:last-child { padding-right: 0; }
.card-media { grid-row: 1; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.card-sign  { grid-row: 2; }
.card > .kicker { grid-row: 3; margin-bottom: 8px; }
.card-title { grid-row: 4; margin-bottom: 8px; }
.card-text  { grid-row: 5; }
.card-cta   { grid-row: 6; align-self: end; margin-top: 14px; }
/* Round things stay round: the sky preview is a disc like the artwork */
.sky-disc {
  display: block; height: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--bg);
  box-shadow: 0 0 0 var(--hair) rgba(255,240,190,0.55), 0 24px 60px -10px rgba(0,0,0,0.7);
  transition: box-shadow 0.8s var(--ease), transform 1.2s var(--ease);
}
.card:hover .sky-disc { transform: translateY(-4px) scale(1.015); box-shadow: 0 0 0 var(--hair) rgba(255,240,190,0.8), 0 24px 60px -10px rgba(0,0,0,0.7), 0 0 50px -6px rgba(212,175,55,0.35); }
.card-media-disc .art-disc { display: block; height: 86%; }
.card-media-wheel svg { height: 96%; width: auto; transition: transform 1.2s var(--ease); }
.card:hover .card-media-wheel svg { transform: rotate(-6deg); }
.card-media-poster .mini-poster { height: 94%; }
.card:hover .mini-poster { transform: translateY(-4px) rotate(-2deg); }
.card-sign {
  font-family: var(--font-script); font-size: 40px; line-height: 1; text-align: center;
  color: var(--cream); text-shadow: 0 0 20px rgba(212,175,55,0.45); margin: -6px 0 12px;
}
.card-title { font-family: var(--font-caps); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--cream); transition: color 0.5s var(--ease); }
.card-text { font-size: 16px; line-height: 1.6; color: var(--text-dim); }
.card-quote { font-style: italic; color: var(--text); }
.card-cta {
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); transition: color 0.5s var(--ease);
}
.card:hover .card-title { color: var(--gold); }
.card:hover .card-cta { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: var(--hair); }
.card:hover .art-disc { transform: translateY(-4px) scale(1.015); }
@media (max-width: 860px) {
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .card, .card:first-child, .card:last-child { padding: 28px 0; background: var(--rule-mid) top / 100% var(--hair) no-repeat; }
  .card-media { max-width: 420px; justify-self: center; }
}

/* ── Mini poster: the real poster's layout, small (site.js draws it) ── */
.mini-poster {
  container-type: inline-size; display: block; position: relative; aspect-ratio: 1 / 1.414; height: 100%;
  background: radial-gradient(ellipse at 50% 30%, #17153a 0%, #0c0b1d 55%, #07070f 100%);
  box-shadow: 0 0 0 var(--hair) rgba(255,240,190,0.35), 0 18px 40px -12px rgba(0,0,0,0.85);
  transition: transform 1.2s var(--ease), box-shadow 1.2s var(--ease);
}
.mp-frame {
  position: absolute; inset: 4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5cqw; text-align: center;
  border: max(var(--hair), 0.3cqw) solid rgba(212,175,55,0.55);
  outline: max(var(--hair), 0.15cqw) solid rgba(212,175,55,0.4); outline-offset: -1.6cqw;
}
.mp-disc { width: 72cqw; height: 72cqw; margin-bottom: 7cqw; flex-shrink: 0; }
.mp-name { font-family: var(--font-script); font-size: 16cqw; line-height: 1; color: var(--cream); white-space: nowrap; }
.mp-rule { width: 40cqw; height: max(var(--hair), 0.25cqw); margin: 6cqw 0 4cqw; background: var(--rule-mid); }
.mp-meta { font-family: var(--font-caps); font-size: 4.2cqw; letter-spacing: 0.2em; color: var(--cream); white-space: nowrap; }

/* ── Poster band (every page but the poster and the starmap) ── */
.poster-band {
  width: 100%; max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 90px auto 0; padding: 0 var(--gutter);
}
.poster-band a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  padding: 26px 0; text-decoration: none;
  background: var(--rule-mid) top / 100% var(--hair) no-repeat;
}
.poster-band .mini-poster { height: 110px; }
.poster-band a:hover .mini-poster {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 0 0 var(--hair) rgba(255,240,190,0.6), 0 22px 40px -12px rgba(0,0,0,0.9), 0 0 40px -8px rgba(212,175,55,0.45);
}
.poster-band-title { display: block; font-family: var(--font-caps); font-size: 22px; font-weight: 400; color: var(--cream); transition: color 0.5s var(--ease); }
.poster-band-text { display: block; font-size: 16px; color: var(--text-dim); margin-top: 4px; }
.poster-band a:hover .poster-band-title { color: var(--gold); }
@media (max-width: 640px) {
  .poster-band a { grid-template-columns: auto 1fr; gap: 18px; }
  .poster-band .mini-poster { height: 92px; }
  .poster-band .btn { grid-column: 1 / -1; justify-self: start; }
}
.poster-band + .site-footer { margin-top: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  position: relative; margin-top: 80px; padding: 48px var(--edge) 28px;
  background: linear-gradient(180deg, rgba(212,175,55,0.035), transparent 40%);
}
.site-footer::before { top: 0; }
.site-footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1.3fr; gap: 56px; }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer h2 {
  font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px;
}
.foot-brand p { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); margin-top: 12px; max-width: 320px; }
.foot-share { margin-top: 22px; }
.foot-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.foot-links a {
  display: inline-block; text-decoration: none; color: var(--text); font-size: 15.5px; line-height: 2.1;
  transition: color 0.4s var(--ease);
}
.foot-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: var(--hair); }
.foot-bottom {
  margin-top: 40px; padding-top: 18px;
  background: var(--rule-right) top / 100% var(--hair) no-repeat;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text-dim);
}
.foot-bottom a { color: var(--text); text-underline-offset: 3px; }

/* Support: one line and the Patreon button (src/support.js) */
.sup-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sup-sub { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); max-width: 420px; }
.sup-note { font-size: 14.5px; line-height: 1.5; color: var(--cream); }
.sup-note:empty { display: none; }
.sup-out {
  font: inherit; font-size: 14.5px; color: var(--gold-soft); background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: var(--hair);
}
.sup-out:hover { color: var(--cream); }

/* Share row (src/share.js mountSocial): small glass discs with a lit edge */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-right: 4px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--cream); border: var(--hair) solid transparent;
  background: var(--glass) padding-box, var(--lit) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 0 rgba(212,175,55,0);
  transition: box-shadow 0.7s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.social-btn:hover, .social-btn:focus-visible {
  color: var(--gold); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 26px -4px rgba(212,175,55,0.5);
}
.social-status { font-size: 14px; color: var(--cream); margin-left: 4px; }
.social-status:empty { display: none; }

/* Screen-reader only */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Round artwork (stained-glass discs are circles — never box them) ──
   A hairline of light, a halo that breathes, a slow float. */
.art-disc {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: #11101f center / 104% no-repeat;
  box-shadow: 0 0 0 var(--hair) rgba(255,240,190,0.8), 0 24px 60px -10px rgba(0,0,0,0.7);
  transition: transform 1.2s var(--ease);
  animation: float 12s ease-in-out infinite;
}
.art-disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 70px 6px rgba(212,175,55,0.34), 0 0 22px rgba(255,240,190,0.25);
  opacity: 0.35; animation: breathe-halo 11s ease-in-out infinite;
}
.art-disc.dim {
  filter: saturate(0.25) brightness(0.6);
  box-shadow: 0 0 0 var(--hair) rgba(170,155,120,0.5);
  animation: none;
}
.art-disc.dim::after { display: none; }
.card:nth-child(2) .art-disc { animation-delay: -4s; }
.card:nth-child(3) .art-disc { animation-delay: -8s; }
.card:nth-child(2) .art-disc::after { animation-delay: -3.5s; }
.card:nth-child(3) .art-disc::after { animation-delay: -7s; }
@keyframes breathe-halo { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.9; } }
/* `translate`, not transform: the hover lift still works on top of it */
@keyframes float { 0%, 100% { translate: 0 3px; } 50% { translate: 0 -5px; } }

/* ── Label-over-name pairs ("astrology says" → "the sky says") ──
   Script names never share a line with body text. */
.pair { display: flex; align-items: flex-end; justify-content: center; gap: 22px; flex-wrap: wrap; }
.pair-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pair-name { font-family: var(--font-script); font-size: clamp(42px, 5.5vw, 58px); line-height: 1.1; }
.pair-name.old { color: var(--old); }
.pair-name.real { color: var(--cream); text-shadow: 0 0 22px rgba(212,175,55,0.45); }
.pair-item.old .kicker { color: var(--old); }
.pair-arrow { font-size: 24px; color: var(--gold-dim); padding-bottom: 16px; }
@media (max-width: 480px) {
  .pair { gap: 26px; flex-wrap: nowrap; }
  .pair-arrow { font-size: 18px; padding-bottom: 14px; }
  .pair-item .kicker { font-size: 11px; letter-spacing: 0.1em; }
  .pair-name { font-size: 38px; }
}

/* Small fact list for side sections */
.side-facts { list-style: none; }
.side-facts li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; background: var(--rule-soft) top / 100% var(--hair) no-repeat; font-size: 15.5px; color: var(--text-dim); }
.side-facts li:first-child { background: none; padding-top: 0; }
.side-facts b { font-weight: 400; color: var(--cream); text-align: right; }
.side-note { font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* ── Offer: the one marketing card, wherever a paid thing is sold
   (src/shop.js). A glass card with a lit edge and an image; side by side
   when it is wide enough, stacked in a side column. ── */
.offer { container-type: inline-size; }
.offer[hidden] { display: none; }
.offer-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 16px 16px 20px; border-radius: var(--r-card); border: var(--hair) solid transparent;
  background: linear-gradient(180deg, rgba(27,27,51,0.72), rgba(12,12,26,0.72)) padding-box, var(--lit) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 60px -30px rgba(0,0,0,0.9);
}
.offer-media {
  align-self: stretch; aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 6px;
  background: #11101f center / cover no-repeat;
  box-shadow: inset 0 0 0 var(--hair) rgba(255,240,190,0.25);
}
/* Until a product has its image: a quiet placeholder, clearly marked */
.offer-media[data-placeholder] {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(86,98,178,0.35), transparent 70%),
    radial-gradient(50% 60% at 75% 70%, rgba(212,175,55,0.22), transparent 70%),
    linear-gradient(160deg, #191934, #0b0b18);
}
.offer-media[data-placeholder]::after {
  content: attr(data-placeholder); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,228,183,0.55);
}
.offer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 6px; }
.offer-title { font-family: var(--font-caps); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--cream); }
.offer-list { list-style: none; display: grid; gap: 7px; margin: 2px 0 6px; }
.offer-list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.offer-list li::before { content: '✦'; position: absolute; left: 0; top: 2px; font-size: 11px; color: var(--gold); }
.offer-buy { font-size: 13.5px; padding: 0 32px; min-height: 48px; }
.offer-buy[disabled] { cursor: progress; }
.offer-terms { font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.offer-note { font-size: 15px; line-height: 1.55; color: var(--cream); }
.offer-note:empty { display: none; }
.offer-more { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }
.offer-more:empty { display: none; }
.offer-link {
  font: inherit; color: var(--gold); background: none; border: none; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: var(--hair); text-decoration-color: var(--gold-dim); text-underline-offset: 4px;
  transition: color 0.4s var(--ease);
}
.offer-link:hover { color: var(--cream); text-decoration-color: var(--cream); }
.offer-link[disabled] { opacity: 0.6; cursor: progress; }

/* While the shop is closed (SHOP_OPEN in src/shop.js) each offer is one quiet
   line under a fading hairline — no card, no price */
.soon { padding-top: 20px; background: var(--rule-right) top left / 100% var(--hair) no-repeat; }
.soon p { font-size: 16.5px; line-height: 1.6; color: var(--text-dim); }
.soon-center { text-align: center; background: var(--rule-mid) top center / min(420px, 80%) var(--hair) no-repeat; }
.soon[hidden] { display: none; }
/* Shop parts in the HTML, and their stand-ins (site.js switches them) */
[data-shop][hidden], [data-shop-closed][hidden] { display: none !important; }
@container (min-width: 600px) {
  .offer-card { flex-direction: row; align-items: stretch; gap: 30px; padding: 16px; }
  .offer-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 280px; margin: 0; }
  .offer-body { padding: 10px 10px 10px 0; }
  .offer-title { font-size: 27px; }
  .offer-list li { font-size: 16.5px; }
}

/* "Your purchase is ready" — shown on any page once a payment is confirmed */
.site-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1200;
  display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 24px);
  padding: 10px 10px 10px 20px; border-radius: 14px; font-size: 15.5px; color: var(--cream);
  border: var(--hair) solid transparent;
  background: var(--glass) padding-box, var(--lit) border-box;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}
@media (max-width: 480px) { .site-toast { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; } }

/* ── The page arrives: each piece rises a little, one after another ── */
.layout-main > *, .layout-side > * { animation: arrive 1.1s var(--ease) both; }
.layout-main > :nth-child(2) { animation-delay: 0.10s; }
.layout-main > :nth-child(3) { animation-delay: 0.18s; }
.layout-main > :nth-child(n+4) { animation-delay: 0.26s; }
.layout-side > :nth-child(1) { animation-delay: 0.15s; }
.layout-side > :nth-child(2) { animation-delay: 0.25s; }
.layout-side > :nth-child(n+3) { animation-delay: 0.35s; }
@keyframes arrive { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
