/* ============================================================
   THE LANDLUBBER'S SCROLLS — style.css
   Master stylesheet — all pages
   ============================================================ */


/* ------------------------------------------------------------
   FONT
   ------------------------------------------------------------ */

@font-face {
  font-family: "LuminariWeb";
  src: url("../fonts/luminari/font.woff2") format("woff2"),
       url("../fonts/luminari/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */

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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #e9e9e7;
  font-family: LuminariWeb, Georgia, "Times New Roman", serif;
  overflow: hidden;
}

body {
  position: relative;
}


/* ------------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------------ */

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------
   GATE (ENTRY SCREEN)
   ------------------------------------------------------------ */

#intro-gate {
  z-index: 30;
  opacity: 1;
  transition: opacity 1s ease;
  background: #000;
}

#intro-gate.fade-out {
  opacity: 0;
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background: #000;
}

.gate-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.gate-line {
  font-family: LuminariWeb, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.5;
}

.gate-line--top { margin-bottom: 0.2rem; }
.gate-line--bottom { margin-top: 0.2rem; }

.enter-button {
  background: transparent;
  color: #e9e9e7;
  border: 1px solid rgba(233, 233, 231, 0.32);
  padding: 1rem 2.8rem;
  font-family: LuminariWeb, Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  opacity: 0.92;
}

.enter-button:hover {
  background: rgba(233, 233, 231, 0.06);
  border-color: rgba(233, 233, 231, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(233, 233, 231, 0.08);
}

.enter-button:focus {
  outline: 2px solid rgba(233, 233, 231, 0.45);
  outline-offset: 4px;
}


/* ------------------------------------------------------------
   VIDEO STAGE
   ------------------------------------------------------------ */

#video-stage {
  z-index: 20;
  background: #000;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
}

@keyframes bookTextFadeScaleMobile {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 0.94; transform: translate(-50%, -50%) scale(1); }
}


/* ------------------------------------------------------------
   HOME OVERLAY
   ------------------------------------------------------------ */

#home-overlay {
  position: relative;
  z-index: 10;
  background: #000;
  opacity: 0;
  transition: opacity 1.7s ease;
  pointer-events: none;
  overflow: hidden;
}

#home-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../media/images/mood-shot.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.75s ease, filter 0.4s ease, opacity 0.4s ease;
}

#home-overlay.nav-hovering .home-bg { transform: scale(1.015); }

.home-mood {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

#home-overlay[data-mood="winterings"] .home-mood { background: rgba(0, 0, 0, 0.18); }
#home-overlay[data-mood="helmings"] .home-mood { background: rgba(96, 121, 86, 0.12); }
#home-overlay[data-mood="anchorings"] .home-mood { background: rgba(166, 148, 119, 0.12); }
#home-overlay[data-mood="tidings"] .home-mood { background: rgba(255, 255, 255, 0.11); }
#home-overlay[data-mood="thalassophilings"] .home-mood { background: rgba(239, 59, 57, 0.11); }

.home-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.45) 100%);
  transition: background 0.35s ease, opacity 0.35s ease;
}

#home-overlay[data-mood="winterings"] .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.42), rgba(0,0,0,0.22) 35%, rgba(0,0,0,0.55) 100%); }
#home-overlay[data-mood="helmings"] .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.31), rgba(0,0,0,0.16) 35%, rgba(0,0,0,0.42) 100%); }
#home-overlay[data-mood="anchorings"] .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.14) 35%, rgba(0,0,0,0.38) 100%); }
#home-overlay[data-mood="tidings"] .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.10) 35%, rgba(0,0,0,0.34) 100%); }
#home-overlay[data-mood="thalassophilings"] .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(20,0,0,0.14) 35%, rgba(0,0,0,0.42) 100%); }

.home-content {
  position: absolute;
  bottom: 13rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
}


/* ------------------------------------------------------------
   SITE BRANDING
   ------------------------------------------------------------ */

.site-title {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.17em;
  font-weight: normal;
  color: #E9E9E7;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 18px rgba(255,255,255,0.18);
}

.site-subtitle {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #E9E9E7;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.site-branding { transition: opacity 0.35s ease; }

.home-content:has(.main-nav li:hover) .site-branding { opacity: 0.15; }


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */

.main-nav a,
.main-nav .dropbtn,
.main-nav .nav-static,
.act-label,
.act-btn,
.site-title,
.site-subtitle,
.gate-line,
.enter-button {
  line-height: 1;
}

.main-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.main-nav > ul > li { position: relative; }

.main-nav a,
.main-nav .dropbtn {
  display: inline-block;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.82;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav .dropbtn:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

.main-nav a.active {
  opacity: 1;
  transform: none;
  pointer-events: none;
  cursor: default;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0.1rem 0 0 0;
  padding: 0.5rem 0;
  min-width: 180px;
  text-align: center;
  z-index: 5;
}

.dropdown-menu li { margin: 0.35rem 0; }
.dropdown:hover .dropdown-menu { display: block; }

.interior-page .main-nav {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: auto;
  margin-top: 0;
}


/* ------------------------------------------------------------
   THE FIVE ARCS — hover system
   ------------------------------------------------------------ */

.nav-arcs-system {
  position: relative;
  display: inline-block;
}

.arcs-hover-wrap {
  position: absolute;
  top: -1200px;
  left: 130px;
  width: 1200px;
  height: 1200px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.arcs-hover-wrap .arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.94);
  transform-origin: center center;
  transition: opacity 0.55s ease, transform 0.85s ease;
  will-change: opacity, transform;
}

.nav-arcs-system.is-arcs-open .arcs-hover-wrap .arc { opacity: 0.95; transform: scale(1); }
.nav-arcs-system.arc-focus-active .arcs-hover-wrap .arc { opacity: 0.13; transform: scale(0.975); }

.nav-arcs-system.arc-focus-winterings .arcs-hover-wrap .arc-winterings,
.nav-arcs-system.arc-focus-helmings .arcs-hover-wrap .arc-helmings,
.nav-arcs-system.arc-focus-anchorings .arcs-hover-wrap .arc-anchorings,
.nav-arcs-system.arc-focus-tidings .arcs-hover-wrap .arc-tidings,
.nav-arcs-system.arc-focus-thalassophilings .arcs-hover-wrap .arc-thalassophilings {
  opacity: 0.92;
  transform: scale(1.12);
}


/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */

#about-overlay {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-image: url("../media/images/about.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.13);
}

.about-overlay-text {
  position: absolute;
  left: 4.5%;
  top: 22%;
  width: min(42rem, 40vw);
  color: #E9E9E7;
  font-family: "LuminariWeb", serif;
  font-size: clamp(1.35rem, 1.45vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-align: center;
  z-index: 4;
  opacity: 0.9;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 0 18px rgba(0,0,0,0.22), 0 0 30px rgba(0,0,0,0.18);
}

.about-overlay-text p { margin: 0; }
.about-overlay-text em { font-style: italic; }

.about-overlay-text.reveal-text {
  opacity: 0;
  transform: scale(0.96);
  transform-origin: center center;
  animation: aboutTextFadeScale 2.4s ease-out forwards;
  animation-delay: 0.35s;
}

@keyframes aboutTextFadeScale {
  0%   { opacity: 0; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1); }
}


/* ------------------------------------------------------------
   BOOK PAGE
   ------------------------------------------------------------ */

.book-page { min-height: 100vh; padding: 10rem 4vw 4rem; background: #000000; }

.book-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1600px;
  margin: 0 auto;
}

.book-image-wrap { flex: 0 0 56%; }
.book-page-image { display: block; width: 100%; height: auto; }

.book-hero-page {
  min-height: 100vh;
  background-image: url("../media/images/thebook.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.book-hero-overlay {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8.5rem 8vw 4rem;
  position: relative;
  z-index: 1;
}

.book-hero-overlay p {
  margin: 0;
  max-width: 30ch;
  color: #ffffff;
  text-align: center;
  line-height: 1.7;
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

.book-text { flex: 0 0 32%; color: #ffffff; }

.book-text p {
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  max-width: 30ch;
}

.fade-in-text {
  opacity: 0;
  transform: scale(0.96);
  animation: fadeScaleIn 1.8s ease forwards;
  animation-delay: 0.35s;
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}


/* ------------------------------------------------------------
   COORDINATES PAGE
   ------------------------------------------------------------ */

#coordinates-overlay { position: relative; min-height: 100vh; overflow: hidden; }

.coordinates-bg {
  position: absolute;
  inset: 0;
  background-image: url("../media/images/map-sextant.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.coordinates-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.28); }


/* ------------------------------------------------------------
   SHARED INTERIOR MOBILE MENU — hidden by default
   ------------------------------------------------------------ */

.mobile-menu-toggle,
.mobile-menu-close {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}


/* ------------------------------------------------------------
   BOOK PAGE OVERLAY
   ------------------------------------------------------------ */

#book-overlay {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #E9E9E7;
}

#book-overlay .book-bg,
#book-overlay .book-shade {
  position: absolute;
  inset: 0;
}

#book-overlay .book-bg {
  z-index: 0;
  background-image: url("../media/images/thebook.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#book-overlay .book-shade {
  z-index: 1;
  background: rgba(0, 0, 0, 0.10);
}

.book-overlay-text {
  position: absolute;
  right: 6.5%;
  top: 23%;
  width: min(32rem, 31vw);
  color: #E9E9E7;
  font-family: "LuminariWeb", serif;
  font-size: clamp(1.25rem, 1.38vw, 1.58rem);
  line-height: 1.48;
  letter-spacing: 0.13em;
  text-align: center;
  z-index: 3;
  opacity: 0.94;
  text-shadow: 0 0 18px rgba(0,0,0,0.28), 0 0 30px rgba(0,0,0,0.20);
}

.book-overlay-text p { margin: 0; }

.book-overlay-text.reveal-text {
  opacity: 0;
  transform: scale(0.96);
  transform-origin: center center;
  animation: aboutTextFadeScale 2.4s ease-out forwards;
  animation-delay: 0.35s;
}


/* ------------------------------------------------------------
   DOCUSERIES PAGE
   ------------------------------------------------------------ */

#docuseries-overlay {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #E9E9E7;
}

#docuseries-overlay .docu-bg,
#docuseries-overlay .docu-shade {
  position: absolute;
  inset: 0;
}

#docuseries-overlay .docu-bg {
  z-index: 0;
  background-image: url("../media/images/thebook.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#docuseries-overlay .docu-shade {
  z-index: 1;
  background: rgba(0, 0, 0, 0.10);
}

#docuseries-overlay .home-content {
  position: absolute;
  bottom: 13rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
}

#docuseries-overlay .site-branding { display: none; }

.docu-ctas {
  position: absolute;
  top: 5.5%;
  right: 4%;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.docu-ctas.reveal-text {
  opacity: 0;
  animation: docuFadeIn 2.0s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes docuFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.docu-btn {
  font-family: LuminariWeb, Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: clamp(0.70rem, 0.95vw, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.82rem 1.8rem;
  border: 1px solid rgba(233,233,231,0.30);
  color: #e9e9e7;
  background: transparent;
  cursor: pointer;
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, transform 0.22s ease;
  display: inline-block;
}

.docu-btn:hover {
  background: rgba(233,233,231,0.07);
  border-color: rgba(233,233,231,0.58);
  box-shadow: 0 0 22px rgba(233,233,231,0.07);
  transform: translateY(-1px);
}

.docu-btn--primary { border-color: rgba(233,233,231,0.50); }

.docu-panels {
  position: absolute;
  top: 18%;
  bottom: 22%;
  left: 4%;
  right: 4%;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 3%;
}

.docu-panels.reveal-text {
  opacity: 0;
  animation: docuFadeIn 2.0s ease-out forwards;
  animation-delay: 0.35s;
}

.docu-text-block {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.docu-text-block p {
  font-family: LuminariWeb, Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: clamp(1.2rem, 1.4vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: 0.13em;
  color: #E9E9E7;
  opacity: 0.9;
  margin: 0 0 1.1em 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(0,0,0,0.22), 0 0 30px rgba(0,0,0,0.18);
}

.docu-text-block p:last-child { margin-bottom: 0; }

.docu-trailer-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.docu-trailer-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  -webkit-mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, black 55%, transparent 100%);
}

.docu-trailer-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================================
   RESPONSIVE — MOBILE
   All rules scoped tightly to their page IDs
   ============================================================ */

/* Gate */
@media (max-width: 700px) {
  .gate-content { gap: 1rem; padding: 1.5rem; }
  .gate-label { font-size: 0.72rem; letter-spacing: 0.18em; }
}

/* Video */

@media (max-width: 768px) {
  .intro-video {
    object-fit: contain;
    object-position: center center;
    background: #000;
  }
}


/* Shared mobile menu */
@media (max-width: 768px) {

  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    border: 1px solid rgba(233,233,231,0.28);
    background: rgba(20,20,20,0.34);
    color: #E9E9E7;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.72rem 1.15rem;
    border-radius: 999px;
    font: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0,0,0,0.22);
  }

  .mobile-menu-overlay.open { display: block; }

  .mobile-menu-panel {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(88vw, 420px);
    max-height: calc(100svh - 2.2rem);
    overflow-y: auto;
    padding: 1rem 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(20,20,20,0.50);
    border: 1px solid rgba(233,233,231,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-sizing: border-box;
  }

  .mobile-menu-close {
    display: block;
    margin: 0 auto 0.8rem;
    border: 1px solid rgba(233,233,231,0.24);
    background: rgba(255,255,255,0.05);
    color: #E9E9E7;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    font: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-nav,
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav > li { margin: 0.2rem 0; }

  .mobile-nav a,
  .mobile-nav .mobile-submenu-toggle {
    display: block;
    width: 100%;
    text-align: center;
    color: #E9E9E7;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0.72rem 0.4rem;
    font: inherit;
    letter-spacing: 0.06em;
    cursor: pointer;
  }

  .mobile-nav a.active { opacity: 0.6; pointer-events: none; }
  .mobile-submenu { display: none; margin-top: 0.15rem; padding-top: 0.2rem; }
  .mobile-submenu.open { display: block; }
  .mobile-submenu a { font-size: 0.95rem; padding: 0.5rem 0.4rem; opacity: 0.92; }
}

@media (max-width: 480px) {
  .mobile-menu-toggle { top: 0.9rem; }
  .mobile-menu-panel { top: 0.9rem; width: 90vw; }
}

/* Interior scrolling pages — allow body to scroll */
@media (max-width: 768px) {
  body.page-book,
  body.page-docuseries {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Book page mobile */
@media (max-width: 768px) {

  #book-overlay {
    position: relative;
    min-height: 100svh;
    height: auto;
    overflow: hidden;
  }

  #book-overlay .book-bg { background-position: 56% center; }
  #book-overlay .home-content { display: none; }

  .book-overlay-text {
    position: absolute;
    left: 50%;
    right: auto;
    top: 10%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(76vw, 380px);
    text-align: center;
    z-index: 4;
    font-size: clamp(1.02rem, 4.2vw, 1.32rem);
    line-height: 1.34;
  }

  .book-overlay-text p { text-align: center; }

  .book-overlay-text.reveal-text {
    transform: translate(-50%, -50%) scale(0.96);
    animation: bookTextFadeScaleMobile 2.4s ease-out forwards;
    animation-delay: 0.35s;
  }
}

@media (max-width: 480px) {
  #book-overlay .book-bg { background-position: 58% center; }

  .book-overlay-text {
    width: 74vw;
    top: 46%;
    font-size: clamp(0.98rem, 4.35vw, 1.16rem);
    line-height: 1.3;
  }

  .book-overlay-text.reveal-text {
    transform: translate(-50%, -50%) scale(0.96);
  }
}

/* Docuseries page mobile */
@media (max-width: 768px) {

  #docuseries-overlay {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #docuseries-overlay .docu-bg {
    position: absolute;
    inset: 0;
  }

  #docuseries-overlay .docu-shade {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
  }

  #docuseries-overlay .home-content { display: none; }

  .docu-ctas {
    position: relative;
    top: auto;
    right: auto;
    width: min(88vw, 420px);
    max-width: calc(100vw - 2rem);
    margin: 5.5rem auto 0;
    flex-direction: column;
    gap: 0.8rem;
  }

  .docu-btn {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
  }

  .docu-panels {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: min(88vw, 420px);
    max-width: calc(100vw - 2rem);
    margin: 2rem auto 6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .docu-text-block { flex: none; }
  .docu-text-block p { font-size: clamp(1rem, 4.5vw, 1.28rem); line-height: 1.5; }
  .docu-trailer-wrap { flex: none; }
  .docu-trailer-ratio { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 480px) {
  .docu-ctas,
  .docu-panels { width: min(92vw, 360px); }
  .docu-text-block p { font-size: clamp(0.98rem, 4.2vw, 1.18rem); }
}

/* Home page mobile */
@media (max-width: 768px) {

  #home-overlay {
    min-height: 100svh;
    height: 100svh;
  }

  #home-overlay .home-bg { background-position: 42% center; transform: none; }
  #home-overlay .home-mood { opacity: 0.72; }
  #home-overlay .home-shade { background: linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.06) 34%, rgba(0,0,0,0.28) 100%); }

  #home-overlay .home-content {
    bottom: 8.5svh;
    left: 50%;
    transform: translateX(-50%);
    width: min(88vw, 34rem);
    padding: 0 1rem;
    z-index: 6;
  }

  #home-overlay .nav-arcs-system,
  #home-overlay .main-nav,
  #home-overlay .arcs-hover-wrap { display: none; }

  #home-overlay .site-branding { opacity: 1 !important; }

  #home-overlay .site-title {
    font-size: clamp(1.55rem, 7vw, 2.55rem);
    letter-spacing: 0.09em;
    margin-bottom: 0.3rem;
    text-wrap: balance;
    text-shadow: 0 0 18px rgba(0,0,0,0.28), 0 0 28px rgba(0,0,0,0.22);
  }

  #home-overlay .site-subtitle {
    font-size: clamp(0.96rem, 3.9vw, 1.22rem);
    letter-spacing: 0.22em;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 0 0 16px rgba(0,0,0,0.24), 0 0 24px rgba(0,0,0,0.18);
  }
}

@media (max-width: 480px) {

  #home-overlay .home-bg { background-position: 43% center; }
  #home-overlay .home-content { bottom: 7svh; width: min(92vw, 30rem); }

  #home-overlay .site-title {
    font-size: clamp(1.59rem, 4.9vw, 1.1rem);
    letter-spacing: 0.049em;
  }

  #home-overlay .site-subtitle {
    font-size: clamp(0.88rem, 4vw, 1.08rem);
    letter-spacing: 0.18em;
  }
}
