/* ============================================================
   WhitSentry design system.
   Concept: the page is one night passing safely. Deep night
   blues at the top, dawn warmth by the close.
   Signature motif: a slow amber "breathing" pulse.
   Type: Fraunces (display), Newsreader (editorial), Archivo (UI)
   Palette tokens shared with the demo (demo-spec Section 2).
   ============================================================ */

:root {
  --night-900: #0B1626;
  --night-800: #0E1C31;
  --night-700: #16263F;
  --night-500: #24395C;
  --text: #E9EFF8;
  --text-dim: #9FB0C8;
  --amber-400: #F2B24E;
  --amber-300: #F8CD93;
  --amber-glow: rgba(242, 178, 78, 0.35);
  --dawn-bg: #F7EFE3;
  --dawn-card: #FFFDF9;
  --dawn-ink: #23303E;
  --dawn-dim: #5C6B7A;
  --alert: #E0876A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --breath: 4.2s;
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-sine: cubic-bezier(0.37, 0, 0.63, 1);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--night-900);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber-400); color: var(--night-900); }

img { max-width: 100%; display: block; }
figure { margin: 0; }

/* Film grain, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10001;
  background: var(--amber-400); color: var(--night-900);
  font-family: var(--font-ui); font-weight: 600; padding: 0.7rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* ---------- Breathing pulse ---------- */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  45%      { transform: scale(1.06); opacity: 1; }
}
@keyframes breathe-soft {
  0%, 100% { opacity: 0.45; }
  45%      { opacity: 1; }
}
.breathing { animation: breathe var(--breath) var(--ease-sine) infinite; }
.breathing-soft { animation: breathe-soft var(--breath) var(--ease-sine) infinite; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; }
.kicker {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber-400);
  margin-bottom: 0.9rem;
}
.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--text-dim); max-width: 46ch; }
.quiet-link { color: var(--amber-300); text-underline-offset: 3px; }
.quiet-link:hover { color: var(--amber-400); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  border: 0; cursor: pointer; border-radius: 999px; padding: 0.95rem 1.8rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 3px; }
.btn-primary { background: var(--amber-400); color: var(--night-900); }
.btn-primary:hover { transform: translateY(-2px); background: var(--amber-300); box-shadow: 0 12px 36px var(--amber-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(233, 240, 246, 0.3); }
.btn-ghost:hover { border-color: var(--amber-400); color: var(--amber-300); }
.btn-lg { padding: 1.15rem 2.3rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-card { background: var(--night-500); color: var(--text); width: 100%; }
.btn-card:hover { background: var(--amber-400); color: var(--night-900); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 0.9rem 0;
}
.nav.scrolled { background: rgba(11, 22, 38, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(233,240,246,0.08); }
.nav-inner { display: flex; align-items: center; gap: 2rem; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark span { color: var(--amber-400); }
.wordmark-img { display: block; height: 32px; width: auto; }
.wordmark-footer .wordmark-img { height: 28px; }
.nav-links { display: flex; gap: 1.6rem; margin: 0 auto; }
.nav-links a {
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500;
  color: var(--text-dim); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber-300); }
.nav-right { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.btn-nav { padding: 0.65rem 1.3rem; font-size: 0.85rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 22, 38, 0.97); backdrop-filter: blur(14px);
    flex-direction: column; padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem; gap: 1.1rem;
    box-shadow: 0 24px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .btn-nav { padding: 0.55rem 0.9rem; font-size: 0.78rem; }
}
@media (max-width: 430px) {
  .btn-nav { display: none; } /* every section carries its own CTA; the toggle must never clip */
  .nav-inner { gap: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 0 4rem; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
}
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night-900) 0%, rgba(11,22,38,0.25) 40%, rgba(11,22,38,0.35) 100%),
    linear-gradient(100deg, rgba(11,22,38,0.82) 0%, rgba(11,22,38,0.25) 60%, rgba(11,22,38,0.05) 100%);
}
.hero-content { position: relative; max-width: var(--maxw); }
.hero-headline { max-width: 15ch; text-wrap: balance; }
.hero-sub { margin-top: 1.5rem; max-width: 52ch; color: var(--text-dim); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-price { margin-top: 1.4rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.02em; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
}

/* ---------- Origin story ---------- */
.story { background: var(--night-900); text-align: center; overflow: hidden; }
.story-inner { position: relative; max-width: 620px; margin: 0 auto; padding: 3rem 0; }
.story-glow {
  position: absolute; top: 50%; left: 50%; width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242,178,78,0.14) 0%, rgba(242,178,78,0.04) 45%, transparent 70%);
  border-radius: 50%; z-index: -1;
}
.story h2 { margin-bottom: 2rem; }
.story-body { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.7; margin-bottom: 1.4rem; font-weight: 400; }
.story-link { color: var(--text-dim); font-size: 1rem; margin-top: 1.6rem; }
.story-link a { color: var(--amber-300); text-underline-offset: 3px; }

/* ---------- The gap ---------- */
.gap { background: linear-gradient(to bottom, var(--night-900), var(--night-800)); }
.gap-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 3.5rem; }
.gap-figure img { border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,0.45); aspect-ratio: 16/9; object-fit: cover; }
.gap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gap-card {
  background: var(--night-700); border: 1px solid var(--night-500);
  border-radius: var(--radius-lg); padding: 2rem 1.7rem;
  transition: transform 0.3s var(--ease-soft), border-color 0.3s;
}
.gap-card:hover { transform: translateY(-4px); border-color: rgba(242,178,78,0.4); }
.gap-icon { color: var(--amber-400); margin-bottom: 1.2rem; }
.gap-card h3 { margin-bottom: 0.7rem; }
.gap-card p { color: var(--text-dim); font-size: 1.02rem; }
.gap-close { margin-top: 3rem; text-align: center; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.gap-close strong { color: var(--amber-300); font-weight: 500; }

@media (max-width: 900px) {
  .gap-head { grid-template-columns: 1fr; }
  .gap-cards { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.how { background: var(--night-800); }
.how-head { margin-bottom: 2.5rem; }
.how-opener { margin-bottom: 3rem; }
.how-opener img { border-radius: var(--radius-lg); width: 100%; max-height: 460px; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.how-steps { list-style: none; display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.how-step { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.how-step:nth-child(even) figure { order: 2; }
.how-step figure img { border-radius: var(--radius-lg); box-shadow: 0 24px 48px rgba(0,0,0,0.4); aspect-ratio: 4/3; object-fit: cover; }
.how-step figure img[src*="sensor-outlet-macro"] { aspect-ratio: 1/1; }
.how-num {
  font-family: var(--font-display); font-size: 3rem; color: var(--amber-400);
  opacity: 0.55; line-height: 1; display: block; margin-bottom: 0.6rem;
}
.how-step h3 { margin-bottom: 0.8rem; }
.how-step p { color: var(--text-dim); }
.ladder { margin: 1.2rem 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; color: var(--text); }
.ladder li { padding-left: 0.4rem; }
.ladder li::marker { color: var(--amber-400); font-family: var(--font-ui); font-weight: 600; }
.how-close { margin-top: 3.2rem; text-align: center; color: var(--text-dim); }
.how-step-cal {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, rgba(242,178,78,0.12) 0%, rgba(242,178,78,0.03) 38%, transparent 62%), var(--night-700);
  border: 1px solid var(--night-500); border-radius: var(--radius-lg); aspect-ratio: 4/3;
}
.cal-motif { text-align: center; font-family: var(--font-ui); color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cal-ring {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem;
  border: 2px solid rgba(242,178,78,0.35); border-top-color: var(--amber-400);
  box-shadow: 0 0 40px rgba(242,178,78,0.15) inset;
}
@media (max-width: 820px) {
  .how-step { grid-template-columns: 1fr; }
  .how-step:nth-child(even) figure { order: 0; }
}

/* ---------- Demo section shell (frame internals in demo.css) ---------- */
.demo { background: linear-gradient(to bottom, var(--night-800), var(--night-900)); }
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.demo-left { position: sticky; top: 96px; }
.demo-captions { margin-top: 1.6rem; min-height: 7.5em; }
.demo-caption { color: var(--text-dim); font-size: 1rem; }
.demo-caption strong { color: var(--text); font-weight: 500; }
.demo-navbtns { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-left { position: static; }
}

/* ---------- Privacy ---------- */
.privacy { background: var(--night-900); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.privacy-text p { color: var(--text-dim); margin-top: 1.1rem; }
.privacy-text p:first-of-type { color: var(--text); font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
.privacy-figure img { border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,0.45); aspect-ratio: 16/9; object-fit: cover; }
.pull-quote {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 720px; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35;
  color: var(--text); border: 0;
}
.pull-quote em { color: var(--amber-300); font-style: italic; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Honest limits ---------- */
.limits { background: var(--night-800); }
.limits-head { margin-bottom: 3rem; }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.limit-card {
  background: var(--night-700); border: 1px solid var(--night-500);
  border-radius: var(--radius-lg); padding: 2rem 1.7rem;
}
.limit-card h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.limit-card h3 span { display: block; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--amber-400); margin-bottom: 0.9rem; }
.limit-card p { color: var(--text-dim); font-size: 1rem; }
.limit-card-img figure { margin: -2rem -1.7rem 1.4rem; }
.limit-card-img figure img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.limits-close { margin-top: 2.6rem; text-align: center; color: var(--amber-300); font-family: var(--font-display); font-size: 1.25rem; }
@media (max-width: 900px) { .limits-grid { grid-template-columns: 1fr; } }

/* ---------- Divider ---------- */
.divider { height: clamp(300px, 48vw, 520px); overflow: hidden; position: relative; }
.divider img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.divider::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--night-800) 0%, transparent 25%, transparent 70%, var(--dawn-bg) 100%);
}

/* ---------- Pricing (dawn) ---------- */
.pricing { background: var(--dawn-bg); color: var(--dawn-ink); }
.pricing .kicker { color: #7A5216; }
.pricing .btn:focus-visible, .pricing summary:focus-visible { outline-color: var(--dawn-ink); }
.pricing .lede { color: var(--dawn-dim); }
.pricing-head { margin-bottom: 2.8rem; max-width: 720px; }
.pricing-sub { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dawn-dim); margin: 2.6rem 0 1.2rem; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.price-card {
  background: var(--dawn-card); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem;
  box-shadow: 0 10px 34px rgba(35, 48, 62, 0.09);
  border: 1px solid rgba(35, 48, 62, 0.07);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(35, 48, 62, 0.14); }
.price-card figure { margin: -1.6rem -1.6rem 0.4rem; }
.price-card figure img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.price-card h4 { font-size: 1.25rem; }
.price { font-family: var(--font-display); font-size: 2.1rem; color: var(--dawn-ink); line-height: 1; }
.price span { font-family: var(--font-ui); font-size: 0.85rem; color: var(--dawn-dim); }
.price-card p:not(.price) { color: var(--dawn-dim); font-size: 0.98rem; flex-grow: 1; }
.pricing .btn-card { background: var(--dawn-ink); color: var(--dawn-bg); }
.pricing .btn-card:hover { background: var(--amber-400); color: var(--night-900); }
.tier-grid { display: grid; grid-template-columns: 2fr 0.9fr; gap: 1.4rem; align-items: stretch; }
.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.tier-card { justify-content: flex-start; }
.tier-featured { border: 2px solid var(--amber-400); position: relative; }
.tier-featured::before {
  content: "Most complete";
  position: absolute; top: -0.85rem; left: 1.4rem;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--amber-400); color: var(--night-900);
  padding: 0.22rem 0.7rem; border-radius: 999px;
}
.tier-figure img { border-radius: var(--radius-lg); height: 100%; object-fit: cover; box-shadow: 0 10px 34px rgba(35,48,62,0.12); }
.pricing-note { margin-top: 1.8rem; text-align: center; color: var(--dawn-dim); font-family: var(--font-ui); font-size: 0.9rem; }
.pricing-cta { margin-top: 2.2rem; text-align: center; }
.pricing-cta .btn-primary { background: var(--night-900); color: var(--dawn-bg); }
.pricing-cta .btn-primary:hover { background: var(--night-700); box-shadow: 0 12px 36px rgba(35,48,62,0.25); }
@media (max-width: 980px) {
  .price-cards, .tier-cards { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-figure { display: none; }
}

/* ---------- FAQ (dawn) ---------- */
.faq { background: linear-gradient(to bottom, var(--dawn-bg), #F2E7D5); color: var(--dawn-ink); }
.faq .kicker { color: #7A5216; }
.faq .btn:focus-visible { outline-color: var(--dawn-ink); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-side { position: sticky; top: 96px; }
.faq-figure { margin-top: 2rem; }
.faq-figure img { border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(35,48,62,0.14); aspect-ratio: 4/3; object-fit: cover; }
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-list details {
  background: var(--dawn-card); border-radius: var(--radius);
  border: 1px solid rgba(35, 48, 62, 0.08);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-family: var(--font-ui);
  font-weight: 600; font-size: 1rem; list-style: none; position: relative;
  padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.4rem; color: #B97F2E; transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.3rem; color: var(--dawn-dim); font-size: 1rem; }
.faq-list summary:focus-visible { outline: 2px solid var(--dawn-ink); outline-offset: -2px; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-figure { max-width: 420px; }
}

/* ---------- Final CTA ---------- */
.final-cta { background: #F2E7D5; padding-bottom: 0; padding-top: 0; }
.final-figure { max-height: 520px; overflow: hidden; }
.final-figure img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 35%; }
.final-band {
  text-align: center; padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  color: var(--dawn-ink); max-width: 720px;
}
.final-band .lede { margin: 1.2rem auto 2rem; color: var(--dawn-dim); }
.final-band .btn-primary { background: var(--night-900); color: var(--dawn-bg); }
.final-band .btn-primary:hover { background: var(--night-700); box-shadow: 0 12px 36px rgba(35,48,62,0.25); }

/* ---------- Footer ---------- */
.footer { background: var(--night-900); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-col .footer-h { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.8rem; font-weight: 600; }
.footer-col p { color: var(--text-dim); font-size: 0.98rem; }
.footer-col a { color: var(--text); text-decoration-color: rgba(233,240,246,0.3); text-underline-offset: 3px; }
.footer-col a:hover { color: var(--amber-300); }
.wordmark-footer { font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-disclaimer {
  border-top: 1px solid var(--night-500); padding-top: 1.6rem;
  color: var(--text-dim); font-size: 0.88rem; max-width: 74ch;
}
.footer-legal { color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-ui); margin-top: 1.2rem; opacity: 0.7; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 11, 20, 0.75); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.25s ease; padding: 1.2rem;
}
.modal.open { opacity: 1; }
.modal-card {
  background: var(--night-700); border: 1px solid var(--night-500);
  border-radius: var(--radius-lg); padding: 2.2rem; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: translateY(12px); transition: transform 0.25s var(--ease-soft);
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 0.9rem; right: 1rem; background: none; border: 0;
  color: var(--text-dim); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0.3rem;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.6rem; margin-bottom: 0.8rem; padding-right: 1.5rem; }
.modal-body { color: var(--text-dim); font-size: 1rem; margin-bottom: 1.5rem; }
.modal label {
  display: block; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 1rem;
}
.modal .opt { opacity: 0.65; font-weight: 400; }
.modal input:not([type="checkbox"]), .modal textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  background: var(--night-900); border: 1px solid var(--night-500); border-radius: 10px;
  color: var(--text); font-family: var(--font-ui); font-size: 1rem; padding: 0.75rem 0.9rem;
}
.modal input:focus, .modal textarea:focus { outline: 2px solid var(--amber-400); outline-offset: 0; border-color: transparent; }
.form-micro { font-size: 0.78rem; color: var(--text-dim); opacity: 0.85; margin: -0.3rem 0 1rem; font-family: var(--font-ui); }
.form-micro a { color: var(--amber-300); }
.hp-field { position: absolute; left: -9999px; }
.modal-success { text-align: center; padding: 1.5rem 0 0.5rem; position: relative; }
.modal-success p { font-size: 1.1rem; margin-bottom: 1.6rem; }
.success-glow {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.4rem;
  background: radial-gradient(circle, rgba(242,178,78,0.75) 0%, rgba(242,178,78,0.18) 60%, transparent 75%);
}
.modal-error { color: var(--alert); font-size: 0.92rem; margin-top: 1rem; }
.modal-error a { color: var(--amber-300); }

.modal-card-film { max-width: 960px; padding: 0.6rem; background: #000; }
.modal-card-film video { width: 100%; display: block; border-radius: calc(var(--radius-lg) - 4px); }
.modal-card-film .modal-close {
  top: -2.6rem; right: 0; color: var(--text);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
}

/* hidden attribute always wins over display classes */
[hidden] { display: none !important; }
