/* Our story page. Adds a dark theme for this page only, plus the
   illustrated scroll panels. Shared styles come from landing.css. */
:root {
  --story-card: #FFFFFF;
  --quote-bg: #0B1F3A;
  --quote-ink: #FFFFFF;
  --input-line: #C9D9EC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A1628;
    --surface: #12223A;
    --ink: #EAF2FF;
    --muted: #B3C5DD;
    --faint: #9AB0CC;
    --blue: #5EA2FF;
    --blue-dark: #8DBEFF;
    --blue-soft: #1B3358;
    --line: #22395C;
    color-scheme: dark;
    --story-card: #12223A;
    --quote-bg: #1B3358;
    --input-line: #33507A;
  }
}
:root[data-theme="dark"] {
  --ground: #0A1628;
  --surface: #12223A;
  --ink: #EAF2FF;
  --muted: #B3C5DD;
  --faint: #9AB0CC;
  --blue: #5EA2FF;
  --blue-dark: #8DBEFF;
  --blue-soft: #1B3358;
  --line: #22395C;
  color-scheme: dark;
  --story-card: #12223A;
  --quote-bg: #1B3358;
  --input-line: #33507A;
}
body { background: var(--ground); color: var(--ink); }
.brand, .brand:hover { color: var(--ink); }
.waitlist input { border-color: var(--input-line); color: var(--ink); background: var(--surface); }
.city-links a { background: var(--surface); border-color: var(--input-line); color: var(--ink); }
.btn-primary { color: #FFFFFF; }

/* Hero */
.story-hero { padding-block: 40px 24px; display: flex; flex-direction: column; gap: 18px; max-width: 780px; }
.story-hero h1 { font-size: clamp(36px, 5.6vw, 58px); }
.story-hero .lead { max-width: 620px; }

/* Scroll panels */
.panels { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-direction: column; gap: 28px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 20px; border-radius: 28px; background: var(--story-card); border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(11,31,58,.5); }
.panel:nth-child(even) .panel-art { order: 2; }
.panel-art { margin: 0; border-radius: 20px; overflow: hidden; background: #0B1626; aspect-ratio: 16 / 9; }
.panel-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel-copy { display: flex; flex-direction: column; gap: 12px; padding: 8px 12px; }
.beat { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.beat span { color: var(--faint); font-weight: 600; margin-left: 6px; letter-spacing: .04em; }
.panel-copy h2 { font-size: clamp(24px, 3vw, 32px); }
.panel-copy p { color: var(--muted); font-size: 18px; }
.panel-copy p em { font-style: normal; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; gap: 16px; padding: 14px; border-radius: 24px; }
  .panel:nth-child(even) .panel-art { order: 0; }
  .panel-copy { padding: 4px 6px 10px; }
  .panel-copy p { font-size: 17px; }
}

/* Reveal on scroll (site works fine without JS: panels are visible by default). */
.js .panel { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .panel.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .panel { opacity: 1; transform: none; transition: none; } }

/* Pull quote */
.quote-band { margin: 72px 0 0; padding: 56px clamp(24px, 6vw, 72px); border-radius: 32px; background: var(--quote-bg); color: var(--quote-ink); position: relative; overflow: hidden; }
.quote-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: url("../img/star.png") center / contain no-repeat; opacity: .12; }
.quote-band blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; max-width: 820px; position: relative; z-index: 1; }
.quote-band p { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.quote-band cite { font-style: normal; font-size: 16px; color: #B8CDEA; font-weight: 600; }

/* Short version + three ideas */
.short { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.short .prose p { font-size: 18px; color: var(--muted); }
.short .prose p + p { margin-top: 4px; }
.short .prose strong { color: var(--ink); }
.pillars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pillars .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.pillars h3 { font-size: 18px; font-weight: 700; }
.pillars p { color: var(--muted); font-size: 16px; margin-top: 2px; }
@media (max-width: 860px) { .short { grid-template-columns: 1fr; gap: 28px; } }

.story-cta { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.story-cta .waitlist { max-width: 620px; border: 1px solid var(--line); }
.privacy-note { font-size: 14px; color: var(--faint); max-width: 620px; }
.story-cta .waitlist { flex: none; }

/* Story video */
.story-video { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.story-video video { display: block; width: 100%; height: auto; border-radius: 24px; background: #0B1626; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(11,31,58,.6); }
.sv-wide { aspect-ratio: 16 / 9; }
.sv-tall { display: none !important; aspect-ratio: 9 / 16; }
.story-video figcaption { font-size: 14px; color: var(--faint); }
@media (max-width: 640px) and (orientation: portrait) {
  .sv-wide { display: none !important; }
  .sv-tall { display: block !important; max-width: 420px; margin-inline: auto; }
}
@media (min-width: 761px) { .panel:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); } }
