/* WHISPER: a recording, not a dashboard. Content is visible without JS. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.store-text-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
:root {
  --bg: #0a0808;
  --surface: #171010;
  --text: #dfcec3;
  --muted: #bda99d;
  --cream: #f0d4cc;
  --accent: #dd8d80;
  --line: #59413b;
  --nav-height: 72px;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.7; }
h1, h2, h3, p { margin: 0; }
a { color: var(--cream); }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, main:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; }
svg { flex-shrink: 0; }
section[id] { scroll-margin-top: 90px; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1rem; background: var(--cream); color: var(--bg); }
.skip-link:focus { top: .5rem; }
nav { position: fixed; inset: 0 0 auto; height: var(--nav-height); z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1rem, 4vw, 4rem); background: linear-gradient(180deg, #1d1412, #0a0808); border-bottom: 1px solid #725046; box-shadow: 0 1px #e9bc9220, 0 10px 36px #0005; }
.nav-logo, .footer-brand { font: 700 1.5rem 'Cinzel Decorative', Georgia, serif; color: var(--cream); text-decoration: none; }
.nav-links { display: flex; gap: .3rem; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .7rem; font-size: .9rem; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--cream); font-size: 1.4rem; cursor: pointer; }
.nav-backdrop { position: fixed; inset: var(--nav-height) 0 0; z-index: 99; background: #0a0808cc; opacity: 0; pointer-events: none; }
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.btn-primary, .nav-play, .btn-secondary, .trailer-link, .install-action-secondary, .news-spotlight-link, .final-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--cream); font-size: 1rem; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.btn-primary, .nav-play { background: linear-gradient(180deg, #923f35, #66231f); border-color: #ca8270; color: #fff0e8; box-shadow: inset 0 1px #f5bca633, inset 0 -2px #290c0b66, 0 6px 20px #0004; }
.btn-primary:hover, .nav-play:hover { background: #8d3731; border-color: var(--accent); }
.btn-secondary:hover, .trailer-link:hover, .install-action-secondary:hover, .news-spotlight-link:hover, .final-cta-secondary:hover { background: #30211e; border-color: var(--accent); }
.btn-primary svg, .nav-play svg { width: 20px; height: 20px; fill: currentColor; }
.nav-play { font-size: .9rem; margin-left: .5rem; }
.hero { position: relative; isolation: isolate; min-height: 760px; min-height: min(900px, 100svh); display: grid; place-items: center; padding: calc(var(--nav-height) + 5rem) 1.25rem 6rem; background: var(--bg) url("/assets/story-portals/chapter-01-bedroom-hero.webp") center / cover no-repeat; }
.hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .16; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0a080833 10%, #0a080820 32%, #0a0808e8 82%, var(--bg)), linear-gradient(90deg, #0a08081a, #0a0808b8 42%, #0a0808a8 68%, #0a080822); }
/* Archive labels stay at the edge without decorative registration brackets.
   The existing bedroom plate supplies lamplight; footage is a quiet double exposure.
   No animated noise, blend filters, parallax, or new image assets. */
.recording-frame { position: absolute; pointer-events: none; inset: calc(var(--nav-height) + 24px) clamp(1rem, 3vw, 3rem) 5rem; }
.recording-frame span { position: absolute; top: 0; padding: 0 14px; font: .7rem/1.5 'JetBrains Mono', monospace; letter-spacing: .12em; color: #dab99f; }
.recording-frame span:first-child { left: 0; }
.recording-frame span:last-child { right: 0; }
.hero-inner { max-width: 850px; text-align: center; }
/* Light falls off into quiet, unboxed reading columns below the recording. */
main { background: radial-gradient(ellipse 65% 800px at 0 1450px, #512c191f, transparent), radial-gradient(ellipse 45% 650px at 100% 2700px, #5728201c, transparent); }
.features-grid .feature-index { letter-spacing: .09em; }
.news-tag.feature { padding: 0; border: 0; }
.faq-item summary::marker { color: var(--accent); }
.hero-title { font: 700 clamp(2.9rem, 9vw, 7rem)/1.15 'Cinzel Decorative', Georgia, serif; color: var(--cream); letter-spacing: .055em; text-shadow: 0 2px 0 #6f3e32, 0 5px 28px #000, 0 0 60px #b963442b; }
.hero-tagline { margin: 1.4rem auto 1rem; max-width: 34ch; font: 600 clamp(1.2rem, 2.3vw, 1.7rem)/1.5 'Cinzel', Georgia, serif; color: var(--cream); }
.hero-premise { max-width: 55ch; margin: 0 auto 1.8rem; font-size: 1.05rem; color: #eadbd1; text-shadow: 0 2px 8px #000; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .8rem; }
.btn-hero { min-height: 56px; padding: .9rem 1.8rem; }
.hero-meta { max-width: 65ch; margin: 1.5rem auto 0; font: .875rem/1.8 'JetBrains Mono', monospace; color: var(--muted); }
.hero-scroll-cue { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); padding: .6rem; font-size: .9rem; text-decoration: none; }
.hero-motion { position: absolute; right: 1.25rem; bottom: 1.4rem; color: var(--cream); background: var(--bg); border: 1px solid var(--line); padding: .5rem .75rem; min-height: 44px; cursor: pointer; font-size: .875rem; }
/* Unmodified official artwork, Apple first. Padding preserves clear space.
   Google's 646×250 canvas contains a 564×168 badge: 62.5px => 42px visible. */
.install-mobile { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.install-mobile h4 { margin: 0 0 .35rem; color: var(--cream); font-size: 1.05rem; font-weight: 600; }
.install-mobile p { font-size: .9rem; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; width: fit-content; max-width: 100%; margin: .75rem auto 0; background: var(--bg); }
.store-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 3px; }
.store-badge img { display: block; width: auto; }
.app-store-badge { padding: 12px; }
.app-store-badge img { height: 40px; }
.google-play-badge { padding: 1px; }
.google-play-badge img { height: 62.5px; }
.footer-trademarks { max-width: 1144px; margin: 1.25rem auto 0; color: var(--muted); font-size: .75rem; }
.trailer, .features, .install, .news, .faq { max-width: 1240px; margin: 0 auto; padding: 5.5rem clamp(1.25rem, 4vw, 3rem); }
.section-header { position: relative; margin-bottom: 2.25rem; padding-top: 1.6rem; }
.section-header::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 3px; background: linear-gradient(90deg, #c58368 0 12px, transparent 12px 17px, #70483c 17px); }
.section-header h2 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3.5vw, 2.8rem); line-height: 1.25; color: var(--cream); text-wrap: balance; }
.section-header p { max-width: 60ch; margin-top: .9rem; color: var(--muted); }
.section-eyebrow, .feature-index, .install-kicker, .video-frame-badge { display: block; margin-bottom: .8rem; font: .875rem/1.6 'JetBrains Mono', monospace; color: var(--accent); }
/* Footage has room to be evidence, rather than a backdrop for another card. */
.showcase-shell { display: block; }
.video-frame { position: relative; margin: 0; padding: 10px; border: 1px solid #725047; background: linear-gradient(135deg, #382720, #130d0c 35%, #211511); box-shadow: inset 0 0 0 3px #0b0808, 0 18px 60px #0005; }
.showcase-video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #050303; }
.video-frame-content { display: grid; grid-template-columns: 1fr auto; gap: .6rem 2rem; padding: 1.5rem clamp(.5rem, 2vw, 1.5rem); border-top: 1px solid var(--line); }
.video-frame-badge { grid-column: 1 / -1; margin-bottom: 0; }
.video-frame-copy h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: var(--cream); }
.video-frame-copy p { max-width: 65ch; margin-top: .6rem; color: var(--muted); }
.trailer-actions { display: flex; align-items: start; gap: .6rem; flex-wrap: wrap; max-width: 280px; }
.trailer-link { font-size: .9rem; padding: .65rem .9rem; }
.trailer-control[aria-pressed="true"] { border-color: var(--accent); }
/* A large memory still and a numbered reading column replace four equal tiles. */
.features { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.features .section-header { grid-column: 1 / -1; margin-bottom: 0; }
.memory-still { position: relative; margin: 0; padding: 10px; border: 1px solid #74584a; background: linear-gradient(130deg, #392a20, #19120f 55%, #2d201a); box-shadow: inset 0 0 0 3px #100c0a, 0 16px 45px #0006; }
.memory-still img { width: 100%; height: auto; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: 30% center; }
.memory-still figcaption { font: .875rem/1.7 'JetBrains Mono', monospace; color: var(--muted); padding: .9rem .35rem .25rem; }
.features-grid { display: block; }
.feature { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature:first-child { padding-top: 0; border-top: 0; }
.feature-index { margin-bottom: .4rem; }
.feature h3 { font: 600 1.25rem/1.4 'Cinzel', Georgia, serif; color: var(--cream); margin-bottom: .65rem; }
.feature p { color: var(--muted); }
.install { border-top: 1px solid var(--line); }
.install-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
.install-card { min-width: 0; }
.install-card h3 { font: 600 1.5rem/1.4 'Cinzel', Georgia, serif; color: var(--cream); margin-bottom: 1rem; }
.install-card p { color: var(--muted); }
.install-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.2rem 0; font-size: .9rem; color: var(--text); }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.install-compact .install-actions { display: grid; grid-template-columns: 1fr; }
.install-compact .install-actions a { justify-content: flex-start; }
.install-note { margin-top: 1.3rem; font-size: .9rem; }
.news { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
.news-inner { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 2rem 4rem; }
.news-spotlight-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; font-size: .875rem; color: var(--muted); }
.news-tag { color: var(--accent); font: .875rem/1.7 'JetBrains Mono', monospace; }
.news-spotlight-card h3 { font-size: 1.45rem; line-height: 1.45; color: var(--cream); margin-bottom: 1rem; }
.news-spotlight-card p { color: var(--muted); }
.news-spotlight-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.news-archive { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-archive summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 1.3rem 0; list-style: none; color: var(--cream); }
.news-archive summary::-webkit-details-marker { display: none; }
.news-archive-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.news-archive-meta small, .news-archive-badge { color: var(--muted); font-size: .875rem; }
.news-archive-chevron { color: var(--accent); }
.news-archive[open] .news-archive-chevron { transform: rotate(180deg); }
.news-item { display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding: 1.5rem 0; }
.news-date { display: flex; flex-wrap: wrap; align-content: start; gap: .2rem .4rem; font: .875rem/1.7 'JetBrains Mono', monospace; color: var(--muted); }
.news-content h3 { color: var(--cream); font-size: 1.05rem; line-height: 1.5; margin: .35rem 0 .5rem; }
.news-content p { color: var(--muted); font-size: .95rem; }
.faq-inner { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 4rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 1.2rem .25rem; color: var(--cream); cursor: pointer; font-weight: 600; }
.faq-item p { padding: 0 0 1.5rem; color: var(--muted); }
.final-cta { padding: 6rem 1.25rem 7rem; border-top: 1px solid var(--line); background: linear-gradient(90deg, #0a0808b8, #0a0808ed 45%, #0a0808e8), url("/assets/story-portals/chapter-01-bedroom-hero.webp") left 60% / cover; }
.final-cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.final-cta h2 { font: 600 clamp(1.8rem, 4vw, 3rem)/1.3 'Cinzel', Georgia, serif; color: var(--cream); }
.tagline { font: 600 1.2rem/1.6 'Cinzel', Georgia, serif; color: var(--accent); margin-top: .6rem; }
.final-cta-subcopy { max-width: 52ch; margin: 1.3rem auto 1.8rem; color: var(--muted); }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.final-note { display: block; color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }
footer { border-top: 1px solid var(--line); padding: 2rem clamp(1.25rem, 4vw, 3rem); }
.footer-inner { max-width: 1144px; margin: 0 auto; display: flex; align-items: baseline; gap: 2rem; justify-content: space-between; }
.footer-copy { max-width: 80ch; font-size: .875rem; color: var(--muted); }
.footer-copy a { display: inline-block; padding: .4rem 0; text-underline-offset: .2em; }
.loading-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: #0a0808ed; place-content: center; text-align: center; color: var(--cream); }
.loading-overlay.show { display: grid; }
.loading-text { font: 1.5rem 'Cinzel', Georgia, serif; }
@media (max-width: 980px) {
  .nav-link { padding-inline: .4rem; }
  .features, .install-grid, .news-inner, .faq-inner { gap: 2rem; }
  .video-frame-content { grid-template-columns: 1fr; }
  .trailer-actions { max-width: none; }
}
@media (max-width: 820px) {
  .hero { background-position: 34% center; }
  .recording-frame { inset-inline: 12px; }
  .recording-frame span { font-size: .625rem; letter-spacing: .06em; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: fixed; top: var(--nav-height); left: 0; right: 0; max-height: calc(100svh - var(--nav-height)); overflow-y: auto; padding: 1rem; flex-direction: column; align-items: stretch; gap: .25rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open a { min-height: 48px; justify-content: center; margin: 0; }
  body.nav-open { overflow: hidden; }
  .hero { min-height: 740px; min-height: max(740px, 100svh); padding-top: 8rem; padding-bottom: 7rem; }
  .hero-title { font-size: clamp(2.7rem, 11vw, 5rem); letter-spacing: .025em; }
  .hero-actions { flex-direction: column; }
  .hero-actions > a { width: min(100%, 340px); }
  .hero-scroll-cue { left: 1.25rem; transform: none; }
  .hero-motion { right: 1.25rem; }
  .trailer, .features, .install, .news, .faq { padding-block: 3.5rem; }
  .features, .install-grid, .news-inner, .faq-inner { grid-template-columns: 1fr; }
  .memory-still img { aspect-ratio: 16/10; }
  .install-card + .install-card { border-top: 1px solid var(--line); padding-top: 2rem; }
  .news-inner .section-header, .faq .section-header { margin-bottom: 0; }
  .news-item { grid-template-columns: 75px 1fr; gap: 1rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 420px) {
  .hero { padding-bottom: 9rem; }
  .recording-frame { bottom: 7rem; }
  .recording-frame span:last-child { display: none; }
  .hero-scroll-cue { bottom: 4rem; }
  .hero-motion { bottom: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
