/* ============================================================
   The Unsent Sky — theunsentsky.app
   Landing, privacy, community. Night #060818, gold serif, violet.
   ============================================================ */

:root {
  --night:        #060818;
  --night-raise:  #0d0f1e;
  --gold-1:       #f5e6ca;
  --gold-2:       #d4a853;
  --gold-3:       #e8c87a;
  --violet:       #8b5cf6;
  --violet-deep:  #6d28d9;
  --rose:         #f472b6;
  --sky-blue:     #60a5fa;
  --mint:         #34d399;
  --amber:        #fbbf24;
  --ink:          rgba(255, 255, 255, 0.92);
  --ink-soft:     rgba(255, 255, 255, 0.60);
  --ink-faint:    rgba(255, 255, 255, 0.38);
  --hairline:     rgba(255, 255, 255, 0.09);
  --glass:        rgba(255, 255, 255, 0.05);
  --serif:  "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

/* ── Film grain — the cinematic finish ───────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(3) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  33%     { transform: translate(-22px, 14px); }
  66%     { transform: translate(16px, -20px); }
}

/* ── Scroll progress hairline ────────────────────────────── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.7);
  transition: width 0.08s linear;
}

/* ── Cursor glow (desktop pointer only) ──────────────────── */
#cursor-glow {
  position: fixed;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139, 92, 246, 0.075) 0%,
    rgba(212, 168, 83, 0.045) 34%,
    transparent 68%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
@media (hover: none), (pointer: coarse) { #cursor-glow { display: none; } }

/* ── Starfield canvas ────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 2; }

/* ── Scroll reveals ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition:
    opacity  1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter   1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ── Type ────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shimmer {
  background: linear-gradient(110deg,
    var(--gold-1) 20%, #fffbe8 38%, var(--gold-2) 52%, var(--gold-3) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-sweep 7s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0%, 100% { background-position: 110% 0; }
  50%      { background-position: -10% 0; }
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  height: 1px;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(212, 168, 83, 0.5), transparent); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}

.nav .brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-star { width: 22px; height: 22px; flex: none; animation: brand-pulse 4s ease-in-out infinite; }
@keyframes brand-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 3px rgba(212,168,83,0.6)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 9px rgba(212,168,83,0.9)); }
}

.nav-links { display: flex; gap: 28px; align-items: center; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-1); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }

/* One shared centering axis for headline, lede, and CTA */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}
.hero-copy .lede { margin-inline: auto; }

.hero-media video,
.hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0.6;
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 42%, rgba(6,8,24,0) 0%, rgba(6,8,24,0.5) 68%, var(--night) 100%),
    linear-gradient(rgba(6,8,24,0.4), rgba(6,8,24,0.12) 40%, var(--night) 97%);
}

.hero h1 {
  font-size: clamp(44px, 7.6vw, 92px);
  max-width: 15ch;
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Word-by-word arrival.
   IMPORTANT: the gold gradient lives on each word span, not the h1 —
   background-clip:text on a parent breaks (renders invisible) when child
   spans carry their own transforms/filters. */
.hero h1 .w {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(10px);
  animation: word-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wd);
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero .lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 46px;
  text-wrap: balance;
  opacity: 0;
  animation: word-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
  transform: translateY(0.5em);
  filter: blur(8px);
}

.hero .hero-cta {
  opacity: 0;
  animation: word-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.9s forwards;
  transform: translateY(0.5em);
  filter: blur(8px);
}

.hero .scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: cue-fade 1.4s ease 2.6s both;
}
.hero .scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(rgba(212,168,83,0.7), transparent);
  animation: cue-drop 2.4s ease-in-out infinite;
}
@keyframes cue-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue-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; }
}

/* ── App Store button ────────────────────────────────────── */
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, var(--violet), var(--violet-deep));
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.40), inset 0 1px 0 rgba(255,255,255,0.22);
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.store-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btn-sheen 4.5s ease-in-out infinite;
}
@keyframes btn-sheen {
  0%, 60%, 100% { left: -80%; }
  30%           { left: 130%; }
}
.store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
}
.store-btn svg { width: 22px; height: 22px; }
.store-btn .two-line { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn .two-line small { font-size: 11px; font-weight: 500; opacity: 0.75; }

.store-btn.gold {
  background: linear-gradient(120deg, var(--gold-3), var(--gold-2) 60%, #b8863b);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  color: #14100a;
}
.store-btn.gold:hover { box-shadow: 0 18px 50px rgba(212, 168, 83, 0.55), inset 0 1px 0 rgba(255,255,255,0.35); }

/* ── Sections ────────────────────────────────────────────── */
section { padding: clamp(90px, 13vw, 170px) clamp(20px, 6vw, 64px); position: relative; }

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-head { text-align: center; max-width: 740px; margin: 0 auto clamp(52px, 7vw, 88px); }

.section-head h2 { font-size: clamp(32px, 4.8vw, 56px); margin-bottom: 20px; text-wrap: balance; }

.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.9vw, 19px); text-wrap: balance; }

/* Ambient section glows — deliberately overflow their section so color
   fields dissolve across boundaries instead of stopping at the seam. */
.glow-violet::before, .glow-gold::before, .glow-rose::before {
  content: "";
  position: absolute;
  inset: -28% 0;
  pointer-events: none;
  z-index: -1;
}
.glow-violet::before { background: radial-gradient(ellipse 75% 46% at 50% 30%,  rgba(139, 92, 246, 0.09), transparent 70%); }
.glow-gold::before   { background: radial-gradient(ellipse 75% 46% at 50% 34%, rgba(212, 168, 83, 0.07), transparent 70%); }
.glow-rose::before   { background: radial-gradient(ellipse 65% 42% at 78% 36%, rgba(244, 114, 182, 0.06), transparent 70%); }

/* ── The golden thread — one line of light through the whole story ── */
.thread {
  position: absolute;
  top: 100svh;               /* begins where the hero ends */
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    rgba(212, 168, 83, 0),
    rgba(212, 168, 83, 0.35) 6%,
    rgba(232, 200, 122, 0.28) 26%,
    rgba(139, 92, 246, 0.30) 52%,
    rgba(244, 114, 182, 0.22) 74%,
    rgba(212, 168, 83, 0.35) 94%,
    rgba(212, 168, 83, 0)
  );
  box-shadow: 0 0 14px rgba(212, 168, 83, 0.25);
  transform-origin: top center;
}
@media (max-width: 640px) { .thread { display: none; } }

/* ── Glass cards ─────────────────────────────────────────── */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.068), rgba(255,255,255,0.026));
  border: 1px solid var(--hairline);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(212,168,83,0.14)), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 168, 83, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.feature-card:hover::before { opacity: 1; }

.feature-card .icon-orb {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p  { color: var(--ink-soft); font-size: 15px; }

/* ── The river of stars (marquee) ────────────────────────── */
.river { overflow: hidden; padding-inline: 0 !important; }

.river-row {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-block: 11px;
  animation: river-drift var(--river-t, 70s) linear infinite;
}
.river-row.reverse { animation-direction: reverse; }
.river-row:hover { animation-play-state: paused; }

@keyframes river-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.river-edge { position: relative; }
.river-edge::before, .river-edge::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 12vw, 180px);
  z-index: 3;
  pointer-events: none;
}
.river-edge::before { left: 0;  background: linear-gradient(90deg, var(--night), transparent); }
.river-edge::after  { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }

.star-msg {
  padding: 26px 26px 22px;
  width: min(360px, 82vw);
  flex: none;
}

.star-msg .msg-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.star-msg .msg-text::before { content: "\201C"; color: var(--gold-2); margin-right: 2px; }
.star-msg .msg-text::after  { content: "\201D"; color: var(--gold-2); margin-left: 2px; }

.star-msg .msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.msg-meta .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  animation: twinkle 3.4s ease-in-out infinite;
}

/* ── Moods showcase ──────────────────────────────────────── */
.moods-band { text-align: center; }

.mood-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 3.6vw, 44px);
  max-width: 880px;
  margin: 0 auto 42px;
}

.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 84px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mood:hover { transform: translateY(-6px) scale(1.1); }

.mood .star-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 14px 4px var(--glow), 0 0 36px 12px color-mix(in srgb, var(--glow) 45%, transparent);
  background: radial-gradient(circle, #fff 15%, var(--glow) 65%, transparent 75%);
  animation: twinkle var(--speed, 3.4s) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.88); }
}

.mood span { font-size: 12.5px; color: var(--ink-faint); }
.mood.plus span::after { content: " ✦"; color: var(--gold-2); }

/* ── Sky+ card ───────────────────────────────────────────── */
.skyplus-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(139, 92, 246, 0.24), transparent 55%),
    radial-gradient(110% 130% at 8% 100%, rgba(212, 168, 83, 0.17), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(212, 168, 83, 0.36);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.skyplus-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(130deg, rgba(212,168,83,0.55), transparent 30%, transparent 70%, rgba(139,92,246,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.skyplus-card .eyebrow { justify-content: flex-start; }
.skyplus-card .eyebrow::before { display: none; }

.skyplus-card h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 14px; }
.skyplus-card > p { color: var(--ink-soft); max-width: 56ch; margin-bottom: 36px; }

.plus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 26px;
  margin-bottom: 40px;
}

.plus-item { display: flex; gap: 12px; align-items: flex-start; }
.plus-item .pi-dot {
  width: 10px; height: 10px; margin-top: 7px;
  border-radius: 50%; flex: none;
  animation: twinkle 3s ease-in-out infinite;
}
.plus-item h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.plus-item p  { font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }

.plus-price { color: var(--ink-faint); font-size: 13.5px; margin-top: 16px; }

/* ── Cinematic interludes ────────────────────────────────── */
.interlude {
  padding: 0;
  position: relative;
  height: clamp(380px, 62vw, 640px);
  overflow: hidden;
}
.interlude img, .interlude video {
  position: absolute;
  inset: 0;
  width: 100%; height: 118%;
  top: -9%;
  object-fit: cover;
  opacity: 0.85;
  will-change: transform;
}
.interlude::before, .interlude::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 44%;
  z-index: 1;
  pointer-events: none;
}
.interlude::before { top: 0;    background: linear-gradient(var(--night), transparent); }
.interlude::after  { bottom: 0; background: linear-gradient(transparent, var(--night)); }

.interlude .interlude-quote {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.interlude .interlude-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 3.4vw, 36px);
  color: var(--gold-1);
  max-width: 26ch;
  text-shadow: 0 2px 34px rgba(6, 8, 24, 0.95);
  text-wrap: balance;
}

/* ── The letter scene (pinned, scroll-scrubbed) ──────────── */
.letter-scene {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.letter-stage {
  position: relative;
  text-align: center;
  max-width: 760px;
  width: 100%;
}

.letter-line {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.55em;
  text-wrap: balance;
  will-change: transform, opacity, filter;
}
.letter-line em { color: var(--gold-3); font-style: italic; }

.letter-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 20%, var(--gold-3) 55%, transparent 75%);
  box-shadow:
    0 0 18px 6px  rgba(232, 200, 122, 0.9),
    0 0 60px 22px rgba(212, 168, 83, 0.5),
    0 0 140px 60px rgba(212, 168, 83, 0.18);
  will-change: transform, opacity;
}
.letter-star::before, .letter-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: translate(-50%, -50%);
  width: 140px;
  height: 1.5px;
  border-radius: 2px;
}
.letter-star::after { transform: translate(-50%, -50%) rotate(90deg); }

.letter-coda {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--ink-soft);
}

/* ── Sky+ 3D tilt stage ──────────────────────────────────── */
.tilt-stage { perspective: 1400px; }
.tilt-stage .skyplus-card {
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease;
}

/* ── Final CTA ───────────────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(36px, 5.6vw, 66px); margin-bottom: 22px; text-wrap: balance; }
.cta-final p  { color: var(--ink-soft); margin-bottom: 42px; max-width: 46ch; margin-inline: auto; text-wrap: balance; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 46px clamp(20px, 6vw, 64px) 58px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 13.5px;
}

footer .foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.25s; }
footer a:hover { color: var(--gold-1); }
footer .foot-note { width: 100%; font-size: 12px; color: rgba(255,255,255,0.25); font-style: italic; font-family: var(--serif); }

/* ── Legal / document pages ──────────────────────────────── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 100px;
}
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.doc .doc-date { color: var(--ink-faint); font-size: 14px; margin-bottom: 48px; }
.doc h2 {
  font-size: 24px;
  margin: 52px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--sky-blue); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.doc .callout {
  padding: 22px 24px;
  border-radius: 16px;
  margin: 26px 0;
  font-size: 15.5px;
}
.doc .callout.gold   { border-color: rgba(212, 168, 83, 0.4); }
.doc .callout.violet { border-color: rgba(139, 92, 246, 0.4); }
.doc .callout.blue   { border-color: rgba(96, 165, 250, 0.4); }

/* ── Motion preferences ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero h1 .w, .hero .lede, .hero .hero-cta { opacity: 1; transform: none; filter: none; }
  body::after { display: none; }
  .river-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ── Small screens ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.store-link) { display: none; }
  .hero { padding-top: 96px; }
  footer { justify-content: center; text-align: center; }
  footer .foot-links { justify-content: center; }
}
