:root {
  --bg: #0d1117;
  --paper: #f4f1ea;
  --paper-2: #ece7de;
  --ink: #101010;
  --ink-soft: #48433d;
  --line: rgba(16,16,16,0.14);
  --white: #ffffff;
  --overlay: rgba(8, 10, 16, 0.62);
  --overlay-2: rgba(8, 10, 16, 0.84);
  --accent: #c1a162;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0,0,0,0.18);
  --nav-height: 5.2rem;
  --nav-height-mobile: 5rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-height);
}
main { min-height: 100svh; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section.alt { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.section-header { margin-bottom: 2rem; }
.kicker {
  margin: 0 0 0.75rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6c665e;
}
.display, h1, h2, h3, .nav-brand, .btn, .stat-value {
  font-family: Inter, Arial, sans-serif;
}
h1, h2, h3, p { margin: 0; }
p { line-height: 1.48; font-size: clamp(1.25rem, 1.6vw, 1.55rem); color: var(--ink-soft); }
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  width: 100%;
  background: rgba(13, 17, 23, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--nav-height);
  padding: 0.9rem 0;
}
.nav-brand { color: var(--white); font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; }
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,0.82); font-family: Inter, Arial, sans-serif; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-cta {
  padding: 0.85rem 1.15rem; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-family: Inter, Arial, sans-serif; font-size: 0.9rem; font-weight: 700;
  white-space: nowrap;
}
.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #0d1117;
}
.hero-media, .hero-overlay, .hero::after {
  position: absolute; inset: 0;
}
.hero-slides, .hero-slide {
  position: absolute; inset: 0;
}
.hero-slide {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  opacity: 0; transition: opacity 1.2s ease-in-out, transform 7s ease;
  transform: scale(1.02);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.06);
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(5,8,12,0.3) 0%, rgba(5,8,12,0.48) 35%, rgba(5,8,12,0.8) 100%);
}
.hero::after {
  content: '';
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(13,17,23,0) 0%, var(--paper) 96%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  padding: 7rem 0 8rem;
  max-width: 780px;
  text-align: center;
  margin-inline: auto;
}
.hero-content .eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.hero h1 {
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.hero h2 {
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-weight: 300;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}
.hero .lede {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}
.cta-row {
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 1.7rem;
  justify-content: center;
}
.btn {
  appearance: none; border: 0; cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease;
  padding: 1rem 1.35rem; border-radius: 999px; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary, .btn-light { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.interaction-note {
  margin: 0.9rem auto 0; font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 48rem;
}
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  margin-bottom: 1rem;
  color: var(--ink);
}
.section-copy { display: grid; gap: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--ink); }
.stat-label { margin-top: 0.35rem; font-size: 1.05rem; color: var(--ink-soft); }
.frame {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.author-card .frame { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; padding: 0.9rem; }
.author-card img { width: 100%; height: auto; max-height: min(78vh, 920px); object-fit: contain; object-position: center top; display: block; }
.book-card { padding: 2rem; background: #111; border-radius: 32px; color: #fff; box-shadow: 0 24px 72px rgba(0,0,0,.24); }
.book-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: center;
}
.book-visual {
  background: radial-gradient(circle at 50% 25%, rgba(193,161,98,.28), rgba(0,0,0,0) 58%);
}
.book-visual img { width: 100%; max-width: 380px; margin: 0 auto; }
.book-card h2, .book-card p, .book-card .kicker { color: #fff; }
.book-card p { color: rgba(255,255,255,.82); }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.theme-card {
  padding: 1.3rem; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,0.66);
}
.theme-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.theme-card p { font-size: 1.12rem; }
.video-shell {
  position: relative; border-radius: 30px; overflow: hidden; background: #0f141c; box-shadow: var(--shadow);
}
.video-shell video, .video-shell iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
#trailerInline { object-fit: cover; }

.video-shell-inline { position: relative; }
.tap-sound-btn {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  border: 0; border-radius: 999px; padding: 0.85rem 1.1rem;
  background: rgba(0,0,0,.78); color: #fff; font: inherit; font-weight: 700;
  box-shadow: 0 14px 26px rgba(0,0,0,.28); cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.tap-sound-btn:hover, .tap-sound-btn:focus-visible { background: rgba(0,0,0,.92); transform: translateY(-1px); }
.tap-sound-btn.is-hidden { opacity: 0; pointer-events: none; }

.video-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem;
}
.video-status { font-size: 1rem; color: #675f56; }
.photo-strips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.photo-strip {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.photo-strip figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.photo-strip img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-card {
  padding: 1.6rem; border-radius: 24px; background: rgba(255,255,255,0.78); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.social-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.social-link {
  padding: 0.9rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--white); font-family: Inter, Arial, sans-serif; font-size: 0.9rem; font-weight: 700;
}
.reader-card {
  padding: 1.8rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.buy-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.buy-panel .btn {
  width: 100%;
  justify-content: center;
}
.buy-panel .small-note {
  margin: 0;
}
.reader-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.reader-form input {
  flex: 1 1 260px; min-width: 0; padding: 0.82rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 1.02rem;
}
.notice {
  margin-top: 0.85rem; padding: 0.9rem 1rem; border-radius: 18px; background: rgba(193,161,98,.18); color: #5b4a21; font-size: 1rem;
}
.site-footer {
  padding: 2rem 0 3rem; border-top: 1px solid var(--line); text-align: center; color: #6c665e;
}
.site-footer p { font-size: 1.1rem; }
.footer-admin-link { color: inherit; text-decoration: none; }
.footer-admin-link:hover, .footer-admin-link:focus-visible { text-decoration: underline; }
.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(3,5,8,.82);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(1120px, 100%); background: #0f141c; border-radius: 28px; padding: 1rem; box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.modal-top {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; margin-bottom: 0.85rem;
}
.modal-top h3 { font-family: Inter, Arial, sans-serif; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; }
.close-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; cursor: pointer; font-size: 1.4rem;
}
.small-note { font-size: 0.95rem; color: #8f887f; }
@media (max-width: 980px) {
  .split, .book-grid, .contact-grid { grid-template-columns: 1fr; }
  .theme-grid, .stat-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { min-height: 88svh; }
  .hero-content { padding: 7rem 0 6rem; max-width: 100%; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero h2 { font-size: clamp(1.8rem, 8vw, 3rem); max-width: 9ch; }
  .book-grid { gap: 1rem; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 1.25rem)); }
  .section { padding: 4rem 0; }
  .hero-content .lede { max-width: 18ch; }
  .reader-form { flex-direction: column; }
  .nav-inner { gap: 0.75rem; }
  .nav-brand { font-size: 0.85rem; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.68rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .photo-strips { gap: 0.85rem; }
  .photo-strip { gap: 0.85rem; }
  .photo-strip figure { border-radius: 18px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.reader-form-stack {
  flex-direction: column;
  align-items: stretch;
}
.reader-form-stack input,
.waitlist-form input {
  border-radius: 18px;
  background: #fff;
}
.waitlist-shell {
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
}
.waitlist-form {
  display: grid;
  gap: 0.85rem;
}
.waitlist-form input {
  min-height: 3.35rem;
  padding: 0.98rem 1.15rem;
  font-size: 1.08rem;
  line-height: 1.2;
  box-sizing: border-box;
}
.waitlist-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c665e;
}
.modal-card-light {
  background: var(--paper);
}
.modal-top-dark {
  color: var(--ink);
}
.close-btn-dark {
  color: var(--ink);
  border-color: rgba(16,16,16,.16);
}
.close-btn-dark:hover,
.close-btn-dark:focus-visible {
  background: rgba(16,16,16,.06);
}


/* Mobile polish pass for iPhone-sized screens */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  p { font-size: 1.08rem; line-height: 1.56; }
  body { padding-top: calc(var(--nav-height-mobile) + env(safe-area-inset-top)); }
  .site-nav { background: rgba(13, 17, 23, 0.9); padding-top: env(safe-area-inset-top); }
  .nav-inner { min-height: var(--nav-height-mobile); padding: 0.75rem 0; }
  .nav-brand { font-size: 0.9rem; letter-spacing: 0.07em; }
  .hero {
    min-height: calc(100svh - 3.75rem);
    align-items: center;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(5,8,12,0.52) 0%, rgba(5,8,12,0.62) 34%, rgba(5,8,12,0.82) 100%);
  }
  .hero::after { height: 18%; }
  .hero-content {
    max-width: 100%;
    padding: max(4.6rem, calc(env(safe-area-inset-top) + 3.4rem)) 0 5rem;
  }
  .hero-content .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
  .hero h1 {
    font-size: clamp(2.95rem, 13vw, 4.5rem);
    margin-bottom: 0.45rem;
  }
  .hero h2 {
    max-width: 12ch;
    font-size: clamp(1.35rem, 7vw, 2.25rem);
    line-height: 1.04;
    margin-bottom: 0.95rem;
    letter-spacing: 0.02em;
  }
  .hero .lede {
    max-width: 21ch;
    font-size: 1rem;
    line-height: 1.5;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 21rem;
    gap: 0.7rem;
    margin-top: 1.85rem;
    margin-left: auto;
    margin-right: auto;
  }
  .btn {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.1rem;
    font-size: 0.9rem;
  }
  .interaction-note,
  .notice {
    display: none;
  }
  .section {
    padding: 3.6rem 0;
  }
  .section-header { margin-bottom: 1.35rem; }
  .section h2 { font-size: 2.1rem; line-height: 1; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.18em; }
  .book-card {
    padding: 1.2rem;
    border-radius: 24px;
  }
  .book-visual img { max-width: 280px; }
  
.video-shell-inline { position: relative; }
.tap-sound-btn {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  border: 0; border-radius: 999px; padding: 0.85rem 1.1rem;
  background: rgba(0,0,0,.78); color: #fff; font: inherit; font-weight: 700;
  box-shadow: 0 14px 26px rgba(0,0,0,.28); cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.tap-sound-btn:hover, .tap-sound-btn:focus-visible { background: rgba(0,0,0,.92); transform: translateY(-1px); }
.tap-sound-btn.is-hidden { opacity: 0; pointer-events: none; }

.video-controls { gap: 0.85rem; }
  .video-controls .cta-row { margin-top: 0; }
  .reader-card,
  .contact-card,
  .stat-card,
  .theme-card {
    border-radius: 20px;
  }
  .stat-value { font-size: 1.45rem; }
  .stat-label { font-size: 0.98rem; }
  .reader-form input,
  .waitlist-form input {
    font-size: 1rem;
    padding: 0.78rem 0.92rem;
  }
  .social-row { gap: 0.55rem; }
  .social-link {
    padding: 0.8rem 0.95rem;
    font-size: 0.84rem;
  }
}


@media (max-width: 420px) {
  .site-nav .container { width: calc(100% - 1rem); }
  .nav-inner { gap: 0.55rem; }
  .nav-brand { font-size: 0.8rem; letter-spacing: 0.06em; }
  .nav-cta { padding: 0.6rem 0.82rem; font-size: 0.74rem; }
}

@media (max-width: 420px) {
  .container { width: min(var(--max), calc(100% - 1rem)); }
  .hero-content {
    padding-top: max(4.35rem, calc(env(safe-area-inset-top) + 3.1rem));
    padding-bottom: 4.5rem;
  }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero h2 { font-size: clamp(1.22rem, 6.6vw, 1.95rem); max-width: 12.5ch; line-height: 1.06; }
  .hero .lede { max-width: 22ch; font-size: 0.96rem; line-height: 1.48; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .masonry figure { border-radius: 16px; }
}

.waitlist-copy { max-width: 34rem; }
.reader-form-stack { gap: 0.9rem; }
.reader-form-stack input {
  min-height: 2.95rem;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.reader-form-stack input::placeholder { color: #9a938a; }
.reader-form-stack .btn { width: 100%; justify-content: center; }
@media (min-width: 761px) {
  .modal-card-light { width: min(1280px, 96vw); }
  .waitlist-shell { gap: 1.2rem; }
  .waitlist-form { gap: 1rem; }
  .waitlist-form input {
    min-height: 4rem;
    padding: 1.12rem 1.25rem;
    font-size: 1.18rem;
    border-radius: 20px;
  }
  .waitlist-form .btn { margin-top: 0.15rem; }
  #waitlist .reader-form-stack input {
    min-height: 2.5rem;
    padding: 0.68rem 0.92rem;
    font-size: 0.98rem;
    border-radius: 18px;
  }
}

@media (max-width: 760px) {
  #contact .contact-card p:not(.kicker),
  #waitlist .waitlist-copy,
  #waitlist .small-note {
    font-size: 0.96rem;
    line-height: 1.45;
  }
  #waitlist .social-row {
    gap: 0.5rem;
    margin-top: 0.85rem;
    margin-bottom: 0.25rem;
  }
  #waitlist .social-link {
    flex: 1 1 calc(33.333% - 0.35rem);
    text-align: center;
    justify-content: center;
    min-width: 0;
    padding-inline: 0.5rem;
  }
  .reader-card { padding: 1.2rem; }
  .reader-form-stack input {
    min-height: 3.2rem;
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
  }
  .reader-form-stack .btn { margin-top: 0.1rem; }
}
@media (max-width: 420px) {
  #waitlist h2 { font-size: 1.9rem; }
  #waitlist .social-link { font-size: 0.78rem; }
}
