/* =============================================================================
 * Killin: Heart of the Highlands
 * Cinematic · dark · Figtree
 * ========================================================================== */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  /* Neutrals - cool near-black canvas, warm off-white ink */
  --bg:        #0a0b0d;
  --bg-raise:  #101216;
  --bg-card:   #15181d;
  --line:      rgba(244, 241, 234, 0.10);
  --line-soft: rgba(244, 241, 234, 0.06);
  --ink:       #f4f1ea;
  --ink-soft:  rgba(244, 241, 234, 0.72);
  --ink-faint: rgba(244, 241, 234, 0.48);

  /* Accents - burnished Highland gold + muted heather */
  --gold:        #c9a35b;
  --gold-bright: #e3c178;
  --gold-deep:   #8c6f37;
  --heather:     #9a86b4;
  --ember:       #d2683f; /* used sparingly for urgency */

  /* Type */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gut:  clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* ── Film grain + vignette overlay (whole page) ───────────────────────────── */
/* Both overlays are promoted to their own GPU layer (translateZ) and explicitly
   NOT repainted on scroll. We avoid mix-blend-mode here: a blend mode on a fixed,
   full-viewport layer forces the browser to recomposite the entire page on every
   scroll frame, which is what made scrolling drag. Plain low-opacity grain over a
   near-black canvas looks the same without the cost. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  transform: translateZ(0);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
  transform: translateZ(0);
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; z-index: 2; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.h-display {
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
h2.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  --pad-y: 0.95rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 14px 34px -14px rgba(201,163,91,0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 20px 44px -16px rgba(201,163,91,0.85); }
.btn-ghost {
  background: rgba(244,241,234,0.03);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { border-color: rgba(244,241,234,0.3); background: rgba(244,241,234,0.07); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .play-tri {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid currentColor; display: inline-grid; place-items: center;
}
.btn .play-tri::before {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gut);
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav .brand { font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; display: flex; align-items: baseline; gap: 0.5em; }
.nav .brand .sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { --pad-y: 0.6rem; --pad-x: 1.1rem; min-height: 40px; font-size: 0.9rem; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Atmospheric placeholder gradient mesh used until a real still/video is added */
.hero-bg.placeholder {
  background:
    radial-gradient(80% 60% at 20% 15%, rgba(154,134,180,0.22), transparent 60%),
    radial-gradient(70% 70% at 85% 25%, rgba(201,163,91,0.18), transparent 55%),
    linear-gradient(180deg, #14161b 0%, #0b0d10 55%, #07080a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.15) 35%, rgba(7,8,10,0.85) 100%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.hero h1 {
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  margin-top: 0.6rem;
}
.hero h1 .line2 {
  display: block;
  font-size: clamp(1.3rem, 4.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 0.35em;
}
.hero .tagline { margin-top: 1.6rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; margin-top: 2.8rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-size: 0.9rem; color: var(--ink-faint);
}
.hero-meta b { color: var(--ink); font-weight: 600; display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.hero-meta .label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; }

.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Generic section frame ────────────────────────────────────────────────── */
.band { padding-block: clamp(4.5rem, 11vh, 9rem); }
.band--raise { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raise) 50%, var(--bg) 100%); }
.band-head { max-width: 62ch; margin-bottom: 3rem; }
.band-head .lede { margin-top: 1.2rem; }

/* ── The Film (synopsis) ──────────────────────────────────────────────────── */
.film-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.film-copy p + p { margin-top: 1.1rem; }
.film-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.pull {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--ink); margin: 2rem 0;
  padding-left: 1.4rem; border-left: 2px solid var(--gold);
}
.film-still {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(201,163,91,0.16), transparent 60%),
    linear-gradient(200deg, #1b1e24, #0c0e12);
  border: 1px solid var(--line); position: relative;
  display: grid; place-items: center;
}
.film-still .ph-label { color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 820px) { .film-grid { grid-template-columns: 1fr; } .film-still { aspect-ratio: 16/10; } }

.pull .pull-by { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); margin-top: 0.8rem; }
.pull .pull-by::before { content: "- "; }
.chapters-row { margin-top: 2rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; }

/* ── Voices band ──────────────────────────────────────────────────────────── */
.voices { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raise) 100%); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card {
  background: linear-gradient(180deg, var(--bg-card), #0e1014);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem; position: relative; overflow: hidden;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -0.3rem; right: 1rem;
  font-size: 5rem; line-height: 1; color: var(--gold); opacity: 0.16; font-weight: 800;
}
.quote-card blockquote { font-size: 1.12rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.quote-card figcaption { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); }
.quote-card figcaption::before { content: "- "; }

.stats { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-soft); }
.stats .stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--gold-bright); }
.stats .stat span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.6rem; display: block; }

/* ── Stills strip ─────────────────────────────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.strip .frame {
  aspect-ratio: 4/3; border-radius: 10px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, #181b21, #0d0f13); position: relative;
  display: grid; place-items: center; transition: transform 0.4s var(--ease), border-color 0.3s;
}
.strip .frame:nth-child(2) { background: linear-gradient(160deg, #1d1820, #0d0f13); }
.strip .frame:nth-child(3) { background: linear-gradient(160deg, #15191c, #0d0f13); }
.strip .frame:hover { transform: translateY(-4px); border-color: rgba(201,163,91,0.4); }
.strip .ph-label { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr; } }

/* ── Trailer ──────────────────────────────────────────────────────────────── */
.trailer-frame {
  margin-top: 2.5rem; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000; position: relative;
}
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.trailer-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 40%, rgba(201,163,91,0.14), transparent 60%), linear-gradient(180deg,#141318,#08090b);
  cursor: pointer;
}
.trailer-poster .play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244,241,234,0.06); border: 1px solid var(--line); backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.trailer-poster:hover .play { transform: scale(1.08); background: rgba(201,163,91,0.18); border-color: var(--gold); }
.trailer-poster .play::before { content:""; width:0;height:0;margin-left:6px; border-left:20px solid var(--ink); border-top:12px solid transparent; border-bottom:12px solid transparent; }

/* ── YouTube subscribe band ───────────────────────────────────────────────── */
.yt-band {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(210,104,63,0.12), transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(154,134,180,0.12), transparent 55%),
    var(--bg-raise);
  border-block: 1px solid var(--line-soft);
}
.yt-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: center; }
.yt-grid .lede { margin-top: 1.1rem; }
.yt-cta { display: flex; justify-content: flex-end; }
.btn-yt { background: #ff0033; color: #fff; box-shadow: 0 14px 34px -16px rgba(255,0,51,0.8); }
.btn-yt:hover { background: #e6002e; transform: translateY(-2px); }
.btn-yt svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .yt-grid { grid-template-columns: 1fr; } .yt-cta { justify-content: flex-start; } }

/* ── Tickets / premiere ───────────────────────────────────────────────────── */
.tickets { background: linear-gradient(180deg, var(--bg) 0%, #0c0e12 100%); }
.ticket-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 900px) { .ticket-grid { grid-template-columns: 1fr; } }

/* Event detail list */
.event-list { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); }
.event-row .k { color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.event-row .v { font-weight: 600; text-align: right; }

/* Countdown */
.countdown { display: flex; gap: 1.4rem; margin-top: 2.4rem; }
.countdown .unit { text-align: center; }
.countdown .num { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .lab { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.5rem; }

/* Booking card */
.book-card {
  background: linear-gradient(180deg, var(--bg-card), #0e1014);
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); position: relative; overflow: hidden;
}
.book-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.book-card .price-row { display: flex; align-items: baseline; gap: 0.6rem; }
.book-card .price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.book-card .price-sub { color: var(--ink-faint); font-size: 0.95rem; }

/* Availability meter */
.avail { margin: 1.6rem 0 0.4rem; }
.avail-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.avail-top .left { font-weight: 600; }
.avail-top .left .n { color: var(--gold-bright); }
.avail-top .right { font-size: 0.82rem; color: var(--ink-faint); }
.meter { height: 8px; border-radius: 999px; background: rgba(244,241,234,0.08); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); width: 0; transition: width 0.8s var(--ease); }
.meter.low > span { background: linear-gradient(90deg, #9a3d22, var(--ember)); }
.urgency { margin-top: 0.8rem; font-size: 0.85rem; color: var(--ember); font-weight: 600; display: none; align-items: center; gap: 0.5em; }
.urgency.show { display: flex; }
.urgency .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(210,104,63,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210,104,63,0.55);} 70%{ box-shadow: 0 0 0 10px rgba(210,104,63,0);} 100%{ box-shadow:0 0 0 0 rgba(210,104,63,0);} }

/* Pay-what-you-can note */
.pwyc-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.pwyc-note b { color: var(--gold-bright); }

/* Price chooser */
.chooser { margin-top: 1.6rem; }
.price-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.chip {
  flex: 1 1 auto; min-width: 64px; padding: 0.7rem 0.4rem; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(244,241,234,0.03); color: var(--ink);
  font-weight: 700; font-size: 1rem; position: relative; transition: border-color 0.18s var(--ease), background 0.18s, transform 0.15s, color 0.18s;
}
.chip:hover { border-color: rgba(244,241,234,0.28); transform: translateY(-1px); }
.chip.active { border-color: var(--gold); background: rgba(201,163,91,0.12); color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold) inset; }
.chip .tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  background: var(--gold); color: #1a1407; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.chip.custom { font-weight: 600; }

.custom-amount { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem;
  border: 1px solid var(--gold); border-radius: 11px; padding: 0.2rem 0.9rem; background: rgba(201,163,91,0.06); }
.custom-amount[hidden] { display: none; }  /* explicit display rule would otherwise override [hidden] */
.custom-amount .cur { font-weight: 800; font-size: 1.1rem; }
.custom-amount .per { color: var(--ink-faint); font-size: 0.85rem; margin-left: auto; }
.custom-amount input { flex: 0 1 110px; background: transparent; border: 0; color: var(--ink);
  font-weight: 800; font-size: 1.2rem; padding: 0.6rem 0; -moz-appearance: textfield; }
.custom-amount input:focus { outline: none; }
.custom-amount input::-webkit-outer-spin-button, .custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; }

.t-breakdown { color: var(--ink-faint); font-size: 0.82rem; font-weight: 400; }

/* Quantity stepper */
.qty-row { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qty-row .qlabel { font-size: 0.9rem; color: var(--ink-soft); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; background: transparent; color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; transition: background 0.2s; }
.stepper button:hover { background: rgba(244,241,234,0.06); }
.stepper input { width: 48px; text-align: center; background: transparent; border: 0; color: var(--ink); font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 1.5rem 0; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); }
.total-row .t-lab { color: var(--ink-soft); }
.total-row .t-val { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.book-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 1rem; text-align: center; line-height: 1.5; }
.soldout-note { display:none; margin-top:1rem; padding:1rem; border:1px solid rgba(210,104,63,0.4); border-radius:12px; background:rgba(210,104,63,0.08); color:var(--ink-soft); font-size:0.9rem; text-align:center; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { padding-block: 4rem 3rem; border-top: 1px solid var(--line-soft); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: flex-end; }
.footer .brand-lg { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.footer .brand-lg span { color: var(--ink-faint); font-weight: 500; display: block; font-size: 1rem; letter-spacing: 0.04em; margin-top: 0.6rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer-links a, .footer-links span { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer .legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size: 0.78rem; color: var(--ink-faint); }
@media (max-width: 640px){ .footer-links { text-align: left; } }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(4,5,7,0.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.modal-root.open .modal-scrim { opacity: 1; }
.modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(480px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-card), #0c0e12); border: 1px solid var(--line);
  border-radius: 20px; padding: 2rem; opacity: 0; transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9);
}
.modal-root.open .modal-card { opacity: 1; transform: translate(-50%, -50%); }
.modal-card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-card .close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(244,241,234,0.05); border:1px solid var(--line); display:grid; place-items:center; font-size:1.1rem; }
.modal-card .close:hover { background: rgba(244,241,234,0.12); }
.field { margin-top: 1.2rem; }
.field label { display:block; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input {
  width: 100%; background: rgba(244,241,234,0.04); border: 1px solid var(--line); border-radius: 11px;
  padding: 0.85rem 1rem; color: var(--ink); font-size: 1rem; transition: border-color 0.2s, background 0.2s;
}
.field input:focus { outline: none; border-color: var(--gold); background: rgba(244,241,234,0.06); }
.field input::placeholder { color: var(--ink-faint); }
.modal-summary { display:flex; justify-content:space-between; align-items:baseline; margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(244,241,234,0.04); border:1px solid var(--line-soft); }
.modal-summary .s-val { font-weight: 800; font-size: 1.3rem; }
.form-error { color: var(--ember); font-size: 0.85rem; margin-top: 0.8rem; min-height: 1.1em; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26,20,7,0.35); border-top-color: #1a1407; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reveal-on-scroll ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
