/* One fixed nocturnal environment: every opening movement shares this space. */
:root {
  --cinema-night: #050a12;
  --cinema-blue: #101a25;
  --cinema-ivory: #eeeee7;
  --cinema-gold: #d8c59d;
  --cinema-line: rgba(230, 235, 237, 0.18);
}
.cinematic-page {
  background: #050a12;
}
.night-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, #09131e, #050a12 70%);
}
.load-veil {
  background: radial-gradient(ellipse at 70% 40%, #09131e, #050a12 70%);
}
.cinematic-page main,
.cinematic-footer {
  position: relative;
  z-index: 3;
}
.cinematic-nav {
  background: #050a12;
  border-color: rgba(230, 235, 237, 0.12);
}
.cinematic-brand {
  font-size: 24px;
  letter-spacing: -0.055em;
}
.cinematic-links a,
.nav-reach {
  font-size: 9px;
  letter-spacing: 0.2em;
}
.cinematic-nav,
.hero-content-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.intro-complete .cinematic-nav,
.intro-complete .hero-content-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.skip-link:focus {
  z-index: 150;
}
.dawn-hero,
.vision-section {
  background: transparent;
  overflow: visible;
}
.dawn-hero {
  min-height: calc(100svh - 78px);
}
.moon-anchor {
  z-index: 2 !important;
  width: 90vw !important;
  position: fixed !important;
  top: 50% !important;
  left: 50%;
}
.moon-object {
  opacity: 0;
}

.moon-still,
.moon-frames {
  filter: none;
}
.moon-frames {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.moon-still {
  transition: opacity 0.65s ease;
}
.has-live-moon .moon-frames {
  opacity: 1;
}
.has-live-moon .moon-still {
  opacity: 0;
}
.cinematic-page:not(.is-ready) .star-field {
  z-index: 101;
}
.hero-content-wrap {
  padding-inline: clamp(28px, 5.6vw, 110px);
}
.hero-topline {
  font-size: 9px;
  letter-spacing: 0.22em;
}
.hero-content {
  max-width: 51%;
  margin-block: clamp(45px, 7vh, 95px);
}
.hero-overline {
  margin-bottom: 28px;
  font-size: 10px;
  letter-spacing: 0.2em;
}
.dawn-hero h1 {
  font-size: clamp(94px, 10vw, 170px);
  line-height: 0.9;
  letter-spacing: -0.078em;
}
.hero-description {
  max-width: 460px;
  margin-top: 30px;
  color: #bbc4cb;
  font-size: 17px;
  line-height: 1.65;
}
.hero-link {
  margin-top: 27px;
  border: 0;
  background: linear-gradient(var(--cinema-gold), var(--cinema-gold)) left bottom/170px 1px
    no-repeat;
}
.hero-bottomline {
  padding-top: 18px;
  border-top: 1px solid var(--cinema-line);
}
.hero-bottomline p {
  color: #b9c2ca;
}
.vision-section {
  padding: 65px clamp(28px, 5.6vw, 110px) 50px;
}
.vision-section::after {
  display: none;
}
.vision-core {
  grid-template-columns: 52% minmax(0, 1fr);
  min-height: calc(100svh - 180px);
  max-width: 1600px;
  margin: 0 auto 35px;
}
.vision-kicker {
  grid-column: 2;
  margin-bottom: 30px;
  color: var(--cinema-gold);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.vision-section h2 {
  font-size: clamp(60px, 5.8vw, 100px);
  line-height: 1;
  letter-spacing: -0.07em;
}
.vision-core > p {
  max-width: 470px;
  margin-top: 30px;
  color: #b8c3cc;
  font-size: 17px;
  line-height: 1.75;
}
.vision-foot {
  justify-content: flex-start;
  gap: clamp(45px, 10vw, 190px);
  color: #b9c4cc;
}
.vision-foot span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 12px;
  border: 1px solid var(--cinema-gold);
  border-radius: 50%;
  vertical-align: middle;
}
.ritual-section {
  position: relative;
  padding: 100px clamp(28px, 5.6vw, 110px) 150px;
  background: linear-gradient(180deg, transparent, #070c14 220px);
}
.ritual-heading {
  margin: 96px auto;
}
.ritual-heading h2 {
  font-size: clamp(76px, 8vw, 138px);
  line-height: 0.94;
}
.ritual-heading p {
  color: #aab7c2;
}
.ritual-grid {
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  gap: clamp(52px, 7.5vw, 140px);
}
.ritual-step {
  min-height: 225px;
  padding-top: 44px;
}
.ritual-step.is-active {
  background: linear-gradient(90deg, rgba(216, 197, 157, 0.045), transparent);
}
.ritual-step h3 {
  font-size: clamp(39px, 3.4vw, 57px);
}
.ritual-step p {
  color: #aab7c2;
  font-size: 16px;
  line-height: 1.6;
}
.ritual-display {
  min-height: 720px;
  background: linear-gradient(155deg, #17232f, #0b141e 68%);
  border: 1px solid rgba(211, 224, 231, 0.2);
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}
.ritual-display::before {
  inset: 18px;
  border-color: rgba(219, 228, 232, 0.13);
  border-radius: 8px;
}
.ritual-display::after {
  border-color: rgba(219, 228, 232, 0.045);
}
.display-top,
.display-foot {
  color: #a6b6c4;
}
.display-top {
  padding: 27px 33px;
}
.display-panel {
  padding-inline: clamp(45px, 4vw, 75px);
}
.display-panel p {
  color: #bdc8d1;
}
.display-orbit {
  border-color: rgba(213, 225, 232, 0.11);
}
.orbit-two {
  border-color: rgba(213, 225, 232, 0.045);
}
.signal-icon img {
  display: block;
  width: 15px;
  height: 24px;
}
.wake-rings img {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 86px;
  object-fit: contain;
}
.return-glyph {
  width: 46px;
  height: 74px;
  margin-block: 48px -12px;
  object-fit: contain;
}
.promise-section {
  padding: 91px clamp(28px, 5.6vw, 110px) 143px;
  background: #070c14;
}
.promise-section::before {
  display: none;
}
.promise-section h2 {
  margin: 118px 0 130px;
  font-size: clamp(84px, 8.6vw, 148px);
}
.promise-row h3 {
  font-size: clamp(38px, 3.15vw, 54px);
}
.promise-row p {
  color: #aab7c2;
}
.finale-section {
  min-height: 880px;
  background: linear-gradient(#070c14, rgba(7, 12, 20, 0.78));
}
.finale-glow {
  display: none;
}
.finale-note {
  color: #aab7c2;
}
.cinematic-footer {
  background: #050a12;
}
.lunar-credit {
  width: fit-content;
  padding-block: 8px;
  color: #98a5b7;
  font-size: 10px;
}
@media (max-width: 1100px) {
  .ritual-heading h2 {
    font-size: clamp(69px, 8vw, 105px);
  }
  .ritual-grid {
    gap: 64px;
    grid-template-columns: 1fr;
  }
  .ritual-step {
    min-height: 205px;
  }
  .ritual-step h3 {
    font-size: 38px;
  }
  .ritual-display {
    position: relative;
    top: auto;
    width: min(100%, 680px);
    min-height: 660px;
    margin-inline: auto;
  }
  .vision-section h2 {
    font-size: clamp(50px, 5.8vw, 66px);
  }
}
@media (max-width: 760px) {
  .cinematic-brand {
    font-size: 20px;
  }
  .dawn-hero {
    min-height: max(810px, calc(100svh - 66px));
  }
  .hero-content-wrap {
    padding-inline: 24px;
  }
  .hero-content {
    max-width: 100%;
    margin: 85px 0 auto;
  }
  .dawn-hero h1 {
    font-size: clamp(72px, 13vw, 105px);
  }
  .hero-description {
    max-width: 340px;
    font-size: 16px;
  }
  .hero-bottomline {
    margin-top: 200px;
  }
  .vision-section {
    padding: 55px 24px 35px;
  }
  .vision-core {
    display: block;
    min-height: 0;
    margin: 56svh 0 90px;
  }
  .vision-kicker {
    display: block;
    margin-bottom: 25px;
  }
  .vision-section h2 {
    font-size: clamp(55px, 10vw, 82px);
  }
  .vision-core > p {
    font-size: 16px;
  }
  .vision-foot {
    justify-content: space-between;
    gap: 10px;
    font-size: 8px;
  }
  .ritual-section {
    padding: 64px 24px 105px;
  }
  .ritual-heading {
    margin: 67px 0 72px;
  }
  .ritual-heading h2 {
    font-size: clamp(67px, 11.7vw, 102px);
  }
  .ritual-grid {
    gap: 66px;
  }
  .ritual-step {
    min-height: 0;
    padding: 30px 2px 34px 0;
  }
  .ritual-step h3 {
    font-size: clamp(37px, 6vw, 45px);
  }
  .ritual-step p {
    font-size: 15px;
  }
  .ritual-display {
    min-height: 650px;
  }
  .promise-section {
    padding: 74px 24px 112px;
  }
  .promise-section h2 {
    margin: 82px 0 90px;
    font-size: clamp(67px, 10.8vw, 95px);
  }
  .finale-section {
    min-height: 760px;
  }
}
@media (max-width: 480px) {
  .hero-content {
    margin-top: 65px;
  }
  .dawn-hero h1 {
    font-size: clamp(65px, 17.8vw, 84px);
  }
  .hero-description {
    max-width: 310px;
  }
  .hero-link {
    background-size: 136px 1px;
  }
  .vision-section h2 {
    font-size: clamp(52px, 13vw, 69px);
  }
  .ritual-heading h2 {
    font-size: clamp(62px, 12vw, 78px);
  }
  .display-top {
    padding: 24px 27px;
  }
  .display-panel h3 {
    font-size: clamp(37px, 11.4vw, 50px);
  }
}
@media (max-width: 360px) {
  .editorial-rail {
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .hero-link span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-nav,
  .hero-content-wrap {
    transition: none;
  }
  .moon-anchor {
    position: absolute !important;
    top: 50svh !important;
  }
  @media (max-width: 760px) {
    .vision-core {
      margin-top: 65px;
    }
  }
}

/* One live particle field spans the whole story, behind readable content. */
.star-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.star-motion-toggle { position: fixed; z-index: 60; right: 15px; bottom: 15px; width: 34px; height: 34px; padding: 0; border: 1px solid #667481; border-radius: 50%; background: #050a12cc; color: #d5dce3; font-size: 12px; cursor: pointer; }
.star-motion-toggle[hidden] { display: none; }
.star-motion-toggle:hover { color: #fff; border-color: #d8c59d; }
.star-motion-toggle:focus-visible { outline: 2px solid #d8c59d; outline-offset: 4px; }
.ritual-section, .promise-section, .finale-section { background: transparent; }
@font-face {
  font-family: "Al Majeed Quranic";
  src: url("/assets/al-majeed-quranic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.prayer-section { padding: 85px clamp(28px, 5.6vw, 110px) 110px; min-height: 100svh; }
.prayer-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5vw; min-height: 75svh; }
.constellation-stage { height: min(640px, 48vw); }
.prayer-verse { text-align: center; padding-block: 35px; }
.prayer-verse h2 { font-family: "Al Majeed Quranic", serif; font-size: clamp(46px, 4.9vw, 80px); font-weight: 400; line-height: 1.7; letter-spacing: 0; color: #eeeee7; margin: 0; }
.verse-line { display: block; padding: .12em .08em; margin-block: -.12em; --ink: 115%; -webkit-mask-image: linear-gradient(to left, #000 calc(var(--ink) - 15%), transparent var(--ink)); mask-image: linear-gradient(to left, #000 calc(var(--ink) - 15%), transparent var(--ink)); }
.verse-rule { display: block; width: 74px; height: 1px; margin: 32px auto 0; background: linear-gradient(90deg, transparent, #d8c59d, transparent); transform-origin: center; }
.verse-source { color: #d8c59d; font-size: 10px; letter-spacing: .22em; margin-top: 32px; }
.finale-layout { margin: 80px 0; }
@media (max-width:760px) {
  .prayer-section { padding: 64px 24px 80px; }
  .prayer-layout { display: flex; flex-direction: column; gap: 0; }
  .constellation-stage { width: 100%; height: 93vw; max-height: 530px; }
  .prayer-verse { padding-block: 12px 35px; }
  .prayer-verse h2 { font-size: clamp(36px, 10.5vw, 55px); line-height: 1.7; }
  .verse-source { margin-top: 22px; }
}
.without-stars .constellation-stage { display: none; }
.without-stars .prayer-layout { display: grid; grid-template-columns: minmax(0, 700px); justify-content: center; }
