@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/PlexSans-ExtraLight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/PlexSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/PlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/PlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/PlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/Amiri-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Values come from the app's theme/primitives.ts and theme/grounds.ts. */
:root {
  --ink: #0C1A24;
  --ink-deep: #081217;
  --ink-raised: #12242F;
  --brass: #C9A227;
  --brass-soft: #D9B84A;
  --parchment: #F2EDE1;
  --muted: rgba(242, 237, 225, 0.62);
  --faint: rgba(242, 237, 225, 0.38);
  --line: rgba(201, 162, 39, 0.28);
  --jade: #2E9E7B;
  --clay: #D9635A;
  --ground: linear-gradient(180deg, #050D14 0%, #0C1A24 55%, #16303F 100%);

  --display: "Cormorant", Georgia, serif;
  --body: "Plex Sans", system-ui, -apple-system, sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --radius: 16px;
}

body[data-window="fajr"]    { --ground: linear-gradient(180deg, #141C3A 0%, #3D2444 55%, #7A4453 100%); }
body[data-window="dhuhr"]   { --ground: linear-gradient(180deg, #2A3644 0%, #6A6250 55%, #A08A55 100%); }
body[data-window="asr"]     { --ground: linear-gradient(180deg, #33291E 0%, #7A5324 55%, #B07A26 100%); }
body[data-window="maghrib"] { --ground: linear-gradient(180deg, #2C1830 0%, #6B2340 55%, #8A3A4A 100%); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--parchment);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The time-of-day ground sits only behind the hero; the rest of the page rests on ink so
   long sections stay readable in every window. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(110vh, 1100px);
  background: var(--ground);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  z-index: -2;
}
.girih { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0.05; z-index: -1; pointer-events: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h1 em { color: var(--brass-soft); }
h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 20ch; }
h3 { font-family: var(--body); font-weight: 500; font-size: 18px; line-height: 1.3; }

.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, rgba(8, 18, 23, 0.85), rgba(8, 18, 23, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--parchment); }
.nav .pill { color: var(--parchment); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; background: rgba(18, 36, 47, 0.6); }
@media (max-width: 720px) { .nav nav a:not(.pill) { display: none; } }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup span { font-family: var(--display); font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; }
.lockup-arch { width: 24px; height: 28px; color: var(--brass); stroke-width: 2; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: min(calc(100vh - 70px), 860px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
  padding: 48px var(--gutter) 96px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-top: 24px; }
.clock { margin-top: 40px; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-hm { font-weight: 200; font-size: clamp(64px, 9vw, 112px); letter-spacing: -0.03em; }
.clock-s { font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); color: var(--faint); margin-left: 10px; }
.clock-ap { font-weight: 400; font-size: clamp(18px, 2vw, 26px); color: var(--brass); margin-left: 8px; letter-spacing: 0.05em; }
.date { margin-top: 10px; color: var(--muted); }
.date .day { font-family: var(--display); font-size: 26px; color: var(--parchment); margin-right: 6px; }
.soon { margin-top: 16px; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: scale(0.98); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-soft); }
.btn-ghost { border: 1px solid var(--line); color: var(--brass-soft); background: rgba(201, 162, 39, 0.06); }
.btn-ghost:hover { border-color: var(--brass); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.hero-device { position: relative; display: flex; justify-content: center; padding-top: 40px; }
.hero-arch { position: absolute; inset: 0 -8% -6% -8%; width: 116%; height: 106%; color: var(--brass); opacity: 0.55; stroke-width: 1; }
.hero-arch path { fill: rgba(201, 162, 39, 0.05); stroke: currentColor; }

.phone {
  position: relative;
  width: min(300px, 70vw);
  border-radius: 40px;
  padding: 8px;
  background: #05090C;
  border: 1px solid rgba(242, 237, 225, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 162, 39, 0.08);
}
.phone img { border-radius: 32px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-device { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Meaning */
.meaning { text-align: center; padding: 96px var(--gutter); border-block: 1px solid rgba(201, 162, 39, 0.12); background: rgba(8, 18, 23, 0.55); }
.arabic-word { font-family: var(--arabic); font-size: clamp(72px, 12vw, 128px); line-height: 1.2; color: var(--brass); }
.meaning-line { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); margin-top: 4px; }
.meaning-line strong { font-weight: 600; color: var(--brass-soft); }
blockquote { margin: 40px auto 0; max-width: 640px; }
.ayah { font-family: var(--arabic); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.8; color: var(--parchment); }
.translation { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted); margin-top: 8px; }
cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--faint); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 0; }
.section-lede { color: var(--muted); max-width: 36em; margin-top: 16px; font-size: 18px; }



.stages { list-style: none; position: relative; margin-top: 64px; padding-left: 40px; }
.stages::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brass), rgba(201, 162, 39, 0.15));
}
.stage {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-bottom: 88px;
}
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: ""; position: absolute; left: -40px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--brass);
}
.stage-now::before { background: var(--brass); box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.18); }
.stage-text { align-self: start; }
.stage-tag { font-weight: 600; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--faint); }
.stage-now .stage-tag { color: var(--brass); }
.stage h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); margin-top: 6px; }
.stage-text p:not(.stage-tag) { color: var(--muted); margin-top: 12px; max-width: 30em; }
.text-link { color: var(--brass-soft); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.text-link::after { content: " \2192"; }
.text-link:hover { border-color: var(--brass); }
.roadmap-note {
  margin-top: 88px; max-width: 46em;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: rgba(18, 36, 47, 0.7);
  border: 1px solid rgba(242, 237, 225, 0.08);
  border-left: 2px solid var(--brass);
}
.roadmap-note h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brass); }
.roadmap-note p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.phone-stage { width: 220px; justify-self: center; border-radius: 32px; padding: 6px; }
.phone-stage img { border-radius: 26px; }
.speaker { justify-self: center; width: min(240px, 70%); }
.speaker svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.frame img {
  border-radius: 14px;
  border: 8px solid #05090C;
  outline: 1px solid rgba(242, 237, 225, 0.12);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.frame-wall img { border-radius: 6px; border-width: 10px; }
@media (max-width: 880px) {
  .stages { padding-left: 32px; }
  .stage { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; }
  .stage::before { left: -32px; }
  .phone-stage, .speaker { justify-self: start; }
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px 24px; border-top: 1px solid var(--line); }
.step-n {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--display); font-size: 20px; margin-bottom: 16px;
}
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.note { margin-top: 32px; color: var(--faint); font-size: 15px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.mission h2 { max-width: 18ch; }
.mission-lede { font-family: var(--display); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; max-width: 34em; margin-top: 24px; }
.people { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.people li {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(18, 36, 47, 0.7);
  border: 1px solid rgba(242, 237, 225, 0.08);
  border-top: 2px solid var(--brass);
}
.people h3 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--brass-soft); }
.people p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.vision { margin-top: 72px; padding-left: 28px; border-left: 2px solid var(--brass); max-width: 46em; }
.vision h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brass); }
.vision p { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; margin-top: 10px; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }

.contact { position: relative; text-align: center; padding-bottom: 40px; }
.contact-arch { display: block; width: min(560px, 100%); height: auto; aspect-ratio: 300 / 340; margin: 0 auto; color: var(--brass); stroke-width: 1.5; opacity: 0.7; }
.contact-arch path { fill: rgba(201, 162, 39, 0.05); }
.contact-inner {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 2 * var(--gutter) - 48px));
}
.contact-inner h2 { margin: 0 auto; font-size: clamp(30px, 4vw, 44px); }
.contact-inner p:not(.eyebrow) { color: var(--muted); margin: 16px 0 28px; font-size: 16px; }
@media (max-width: 520px) {
  .contact-arch { display: none; }
  .contact-inner { position: static; transform: none; width: auto; }
}

.footer {
  max-width: var(--max); margin: 80px auto 0;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid rgba(242, 237, 225, 0.08);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  color: var(--faint); font-size: 14px;
}
.footer .lockup span { font-size: 18px; color: var(--parchment); }
.footer .fine { margin-left: auto; }


/* Scroll story. The phone screens are drawn in HTML so each scene can animate; all sizes
   are in em so one font-size scales the whole phone. */
.story { padding-top: 120px; }
.story-head { padding-top: 0; }
.story-body {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.story-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  grid-column: 2; grid-row: 1;
}
.chapters { list-style: none; grid-column: 1; grid-row: 1; padding: 20vh 0 30vh; }
.chapter {
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 30em; opacity: 0.28; transition: opacity .5s;
}
.chapter.is-active { opacity: 1; }
.ch-time { font-weight: 500; font-size: 14px; letter-spacing: 0.08em; color: var(--brass); font-variant-numeric: tabular-nums; }
.chapter h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; margin-top: 10px; }
.chapter p:not(.ch-time) { color: var(--muted); margin-top: 14px; font-size: 18px; }

.live-phone {
  --w: 300px;
  font-size: calc(var(--w) / 28);
  position: relative; width: var(--w); height: calc(var(--w) * 2.08);
  padding: 0.6em; border-radius: 3.4em;
  background: #05090C;
  border: 1px solid rgba(242, 237, 225, 0.14);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 162, 39, 0.08), 0 0 120px -20px rgba(201, 162, 39, 0.18);
}
.live-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.8em;
  background: linear-gradient(180deg, #0A141B, #0C1A24 55%, #12242F);
  font-family: var(--body); color: var(--parchment); line-height: 1.35;
}
.scene { position: absolute; inset: 0; padding: 0 1.4em 1.4em; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; display: flex; flex-direction: column; }
.live-phone[data-scene="clock"] .scene-clock,
.live-phone[data-scene="adhan"] .scene-adhan,
.live-phone[data-scene="iqamah"] .scene-iqamah,
.live-phone[data-scene="live"] .scene-live,
.live-phone[data-scene="travel"] .scene-travel,
.live-phone[data-scene="night"] .scene-night { opacity: 1; visibility: visible; transition: opacity .6s; }

.sb { display: flex; justify-content: space-between; align-items: center; padding: 1.1em 0.8em 0.6em; font-weight: 600; font-size: 1.05em; }
.sb i { width: 2.6em; height: 0.9em; border-radius: 0.3em; border: 1px solid rgba(242, 237, 225, 0.6); position: relative; }
.sb i::after { content: ""; position: absolute; inset: 0.15em 0.6em 0.15em 0.15em; background: #4cd964; border-radius: 0.15em; }
.sc-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8em; }
.sc-lockup { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--display); letter-spacing: 0.18em; font-size: 0.95em; }
.sc-lockup svg { width: 1em; height: 1.2em; color: var(--brass); stroke-width: 1.5; }
.chip { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8em; padding: 0.35em 0.8em; border-radius: 99em; border: 1px solid rgba(242, 237, 225, 0.15); background: rgba(18, 36, 47, 0.8); }
.chip b { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--jade); }
.sc-time { display: flex; align-items: baseline; justify-content: center; margin-top: 1.2em; font-variant-numeric: tabular-nums; }
.sc-time span { font-weight: 200; font-size: 4.6em; letter-spacing: -0.03em; line-height: 1; }
.sc-time small { font-size: 1.3em; color: var(--faint); margin-left: 0.3em; font-weight: 300; }
.sc-time em { font-style: normal; color: var(--brass); font-size: 1em; margin-left: 0.3em; }
.sc-date { text-align: center; color: var(--muted); font-size: 0.9em; margin-top: 0.4em; }
.sc-date b { font-family: var(--display); font-weight: 400; font-size: 1.35em; color: var(--parchment); margin-right: 0.2em; }
.sc-hijri { text-align: center; color: var(--brass); font-size: 0.85em; margin-top: 0.3em; }
.sc-hijri i { display: inline-block; width: 2.4em; height: 1px; background: var(--brass); opacity: .6; vertical-align: middle; margin-right: 0.6em; }

.sc-arch { position: relative; margin: 1.6em 0.4em 0; padding: 3em 1em 1.6em; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }
.sc-arch-center { flex: none; height: 31em; justify-content: center; margin-top: 3.5em; padding-top: 4em; }
.sc-arch-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-arch-line path { fill: rgba(201, 162, 39, 0.07); stroke: rgba(201, 162, 39, 0.75); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sc-eyebrow { position: relative; font-weight: 600; font-size: 0.72em; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); }
.sc-prayer { position: relative; font-family: var(--display); font-size: 2.3em; line-height: 1.1; margin-top: 0.25em; }
.sc-prayer span { font-family: var(--arabic); font-size: 0.8em; color: var(--muted); }
.sc-sub { position: relative; color: var(--muted); font-size: 0.85em; margin-top: 0.4em; }
.sc-left { text-align: left; align-self: flex-start; }
.sc-pill { position: relative; margin-top: auto; padding: 0.45em 1.1em; border-radius: 99em; border: 1px solid rgba(201, 162, 39, 0.4); background: rgba(201, 162, 39, 0.1); color: var(--brass-soft); font-size: 0.75em; font-weight: 500; }

.ring { position: relative; width: 9.5em; height: 9.5em; margin-top: 1.2em; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(201, 162, 39, 0.2); stroke-width: 2.5; }
.ring .ring-fill { stroke: var(--brass); stroke-dasharray: 1; stroke-dashoffset: 0.3; stroke-linecap: round; }
.ring p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 300; font-size: 1.5em; font-variant-numeric: tabular-nums; }
.ring small { font-size: 0.38em; letter-spacing: 0.25em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-top: 0.3em; }

.wave { position: relative; display: flex; align-items: center; gap: 0.3em; height: 3.2em; margin: 1.4em 0 0.8em; }
.wave i { width: 0.32em; height: 100%; border-radius: 0.2em; background: var(--clay); transform: scaleY(0.25); }
.wave-clay i { background: var(--clay); }
.scene-adhan .wave i { background: var(--clay); }
.sc-call { position: relative; font-family: var(--arabic); font-size: 1.9em; color: var(--brass-soft); line-height: 1.6; }
.sc-trans { position: relative; font-family: var(--display); font-style: italic; color: var(--muted); font-size: 1.05em; }
.sc-foot { color: var(--muted); font-size: 0.85em; margin-top: 1em; display: flex; align-items: center; gap: 0.6em; justify-content: center; }
.sc-foot.sc-left { justify-content: flex-start; margin-top: auto; }

.sc-meta { color: var(--faint); font-size: 0.8em; margin-top: 1em; }
.scene-iqamah .sc-prayer { margin-top: 0.6em; }
.sc-big { font-weight: 200; font-size: 5.2em; line-height: 1; margin-top: 0.15em; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bar { height: 0.35em; border-radius: 1em; background: rgba(242, 237, 225, 0.1); margin-top: 1em; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0.15); }
.sc-ayah { font-family: var(--arabic); font-size: 1.7em; color: var(--brass-soft); text-align: right; margin-top: 1.4em; line-height: 1.6; }

.lock, .player { position: absolute; inset: 0; padding: 0 1.4em 1.4em; display: flex; flex-direction: column; }
.lock { background: radial-gradient(120% 70% at 50% 0%, #1E4B7A 0%, #0C1A24 60%); align-items: center; }
.sb-lock { align-self: stretch; }
.lock-date { margin-top: 2.4em; font-weight: 500; color: rgba(242, 237, 225, 0.85); }
.lock-time { font-weight: 300; font-size: 6em; line-height: 1; letter-spacing: -0.02em; }
.notif {
  display: flex; gap: 0.8em; align-items: flex-start; width: 100%; margin-top: 2em;
  padding: 0.9em 1em; border-radius: 1.4em;
  background: rgba(242, 237, 225, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(-14em); opacity: 0;
}
.notif-icon { flex: none; width: 2.6em; height: 2.6em; border-radius: 0.7em; background: var(--ink); display: grid; place-items: center; }
.notif-icon svg { width: 1.2em; height: 1.4em; color: var(--brass); stroke-width: 3; }
.notif-app { font-size: 0.7em; letter-spacing: 0.08em; color: rgba(242, 237, 225, 0.7); display: flex; justify-content: space-between; }
.notif-app span { letter-spacing: 0; }
.notif-title { font-weight: 600; font-size: 0.95em; margin-top: 0.1em; }
.notif-body { font-size: 0.85em; color: rgba(242, 237, 225, 0.85); }
.tap { position: absolute; left: 50%; top: 21em; width: 3em; height: 3em; margin-left: -1.5em; border-radius: 50%; background: rgba(242, 237, 225, 0.5); opacity: 0; }
.player { opacity: 0; }
.onair { display: inline-flex; align-self: center; align-items: center; gap: 0.6em; margin-top: 0.8em; padding: 0.4em 1em; border-radius: 99em; border: 1px solid rgba(217, 99, 90, 0.5); background: rgba(217, 99, 90, 0.12); color: var(--clay); font-weight: 600; font-size: 0.8em; letter-spacing: 0.2em; text-transform: uppercase; }
.onair b { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--clay); }
.onair span { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.dot-live { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--jade); }

.map {
  position: relative; height: 15em; margin: 0 -1.4em;
  background:
    linear-gradient(115deg, transparent 47%, rgba(201, 162, 39, 0.18) 47.5%, rgba(201, 162, 39, 0.18) 49%, transparent 49.5%),
    linear-gradient(20deg, transparent 60%, rgba(30, 75, 122, 0.55) 60%, rgba(30, 75, 122, 0.55) 72%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(242, 237, 225, 0.05) 0 1px, transparent 1px 2.2em),
    repeating-linear-gradient(90deg, rgba(242, 237, 225, 0.05) 0 1px, transparent 1px 2.2em),
    #0E1E28;
}
.pin { position: absolute; left: 52%; top: 42%; width: 1.1em; height: 1.1em; margin: -0.55em; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0.35em rgba(201, 162, 39, 0.25); }
.sheet { position: relative; margin: -1.6em -1.4em 0; padding: 1.4em; flex: 1; border-radius: 1.6em 1.6em 0 0; background: var(--ink-raised); border-top: 1px solid rgba(242, 237, 225, 0.1); display: flex; flex-direction: column; }
.sheet-title { font-family: var(--display); font-size: 1.9em; margin-top: 0.2em; }
.sheet-body { color: var(--muted); font-size: 0.9em; margin-top: 0.3em; }
.sheet-btns { display: flex; gap: 0.6em; margin-top: 1em; }
.sheet-btns span { flex: 1; text-align: center; padding: 0.7em; border-radius: 99em; font-weight: 500; font-size: 0.9em; border: 1px solid rgba(242, 237, 225, 0.15); }
.sheet-btns .btn-go { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.near-h { margin-top: 1.6em; }
.near { list-style: none; margin-top: 0.5em; }
.near li { display: flex; justify-content: space-between; padding: 0.7em 0; border-bottom: 1px solid rgba(242, 237, 225, 0.07); font-size: 0.9em; }
.near b { font-weight: 500; }
.near span { color: var(--faint); font-variant-numeric: tabular-nums; }

.scene-night { padding: 0; }
.night-glass { position: absolute; inset: 0; background: #03070A; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.moon { width: 2.4em; height: 2.4em; fill: rgba(201, 162, 39, 0.5); }
.night-time { margin-top: 1em; font-weight: 200; font-size: 3.2em; color: rgba(242, 237, 225, 0.35); font-variant-numeric: tabular-nums; }
.night-time em { font-style: normal; font-size: 0.35em; color: rgba(201, 162, 39, 0.4); }
.night-next { margin-top: 0.4em; font-size: 0.85em; color: rgba(242, 237, 225, 0.32); letter-spacing: 0.06em; }

/* Scene motion. Each animation runs when its scene becomes active, and restarts on
   return because the selector stops matching in between. */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes ring-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0.3; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drop { 0% { transform: translateY(-14em); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0.35em rgba(201, 162, 39, 0.25); } 50% { box-shadow: 0 0 0 1.1em rgba(201, 162, 39, 0); } }
@keyframes pin-drop { from { transform: translateY(-4em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0.3; } }

.live-phone[data-scene="clock"] .scene-clock .sc-arch-line path,
.live-phone[data-scene="adhan"] .scene-adhan .sc-arch-line path { animation: draw 1.6s cubic-bezier(.6, 0, .2, 1) both; }
.live-phone[data-scene="live"] .player .sc-arch-line path { animation: draw 1.6s 3s cubic-bezier(.6, 0, .2, 1) both; }
.live-phone[data-scene="clock"] .scene-clock .sc-time,
.live-phone[data-scene="clock"] .scene-clock .sc-date,
.live-phone[data-scene="clock"] .scene-clock .sc-hijri { animation: rise .7s both; }
.live-phone[data-scene="clock"] .scene-clock .sc-date { animation-delay: .1s; }
.live-phone[data-scene="clock"] .scene-clock .sc-hijri { animation-delay: .2s; }
.live-phone[data-scene="clock"] .scene-clock .sc-arch > p,
.live-phone[data-scene="clock"] .scene-clock .ring { animation: rise .7s .7s both; }
.live-phone[data-scene="clock"] .scene-clock .sc-pill { animation-delay: 1.2s; }
.live-phone[data-scene="clock"] .ring-fill { animation: ring-in 1.8s .9s cubic-bezier(.3, 0, .2, 1) both; }

.live-phone[data-scene="adhan"] .scene-adhan .sc-arch > p { animation: rise .7s .5s both; }
.live-phone[data-scene="adhan"] .scene-adhan .sc-call { animation-delay: 1.1s; }
.live-phone[data-scene="adhan"] .scene-adhan .sc-trans { animation-delay: 1.3s; }
.live-phone[data-scene="adhan"] .wave i,
.live-phone[data-scene="live"] .wave i { animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s !important; }
.wave i:nth-child(3n) { animation-delay: -.6s !important; }
.wave i:nth-child(5n) { animation-delay: -.8s !important; }
.wave i:nth-child(7n) { animation-duration: .8s !important; }

.live-phone[data-scene="iqamah"] .scene-iqamah > * { animation: rise .6s both; }
.live-phone[data-scene="iqamah"] .scene-iqamah > :nth-child(4) { animation-delay: .1s; }
.live-phone[data-scene="iqamah"] .scene-iqamah > :nth-child(5) { animation-delay: .2s; }
.live-phone[data-scene="iqamah"] .scene-iqamah > :nth-child(n+6) { animation-delay: .4s; }
.live-phone[data-scene="iqamah"] .bar i { animation: bar-fill 10s linear both; }

.live-phone[data-scene="live"] .notif { animation: drop .7s .6s cubic-bezier(.2, 1.2, .4, 1) both; }
.live-phone[data-scene="live"] .tap { animation: tap .6s 2.4s both; }
.live-phone[data-scene="live"] .player { animation: fade-in .6s 2.9s both; }
.live-phone[data-scene="live"] .lock { animation: fade-out .5s 2.9s both; }
.live-phone[data-scene="live"] .player .sc-arch > p { animation: rise .6s 3.4s both; }
.live-phone[data-scene="live"] .onair b { animation: blink 1.4s infinite; }

.live-phone[data-scene="travel"] .pin { animation: pin-drop .6s .2s cubic-bezier(.2, 1.4, .4, 1) both, pulse 2s 1s infinite; }
.live-phone[data-scene="travel"] .sheet { animation: sheet-up .7s .6s cubic-bezier(.2, 1, .3, 1) both; }
.live-phone[data-scene="travel"] .near li { animation: rise .5s both; }
.live-phone[data-scene="travel"] .near li:nth-child(1) { animation-delay: 1.4s; }
.live-phone[data-scene="travel"] .near li:nth-child(2) { animation-delay: 1.6s; }
.live-phone[data-scene="travel"] .near li:nth-child(3) { animation-delay: 1.8s; }

.live-phone[data-scene="night"] .night-glass { animation: dim 2.4s ease-in both; }
.live-phone[data-scene="night"] .night-glass > * { animation: rise 1s 1.6s both; }

@media (max-width: 880px) {
  .story-body { grid-template-columns: 1fr; gap: 0; }
  .story-stage {
    grid-column: 1; top: 56px; height: auto; z-index: 2; padding: 12px 0 20px;
    background: linear-gradient(180deg, var(--ink) 82%, rgba(12, 26, 36, 0));
  }
  .live-phone { --w: min(190px, 46vw); }
  .chapters { grid-row: 2; padding: 0 0 40vh; }
  .chapter { min-height: 60vh; justify-content: flex-start; padding-top: 8vh; }
}

/* Entrance and reveal. Only with JS, so the page is complete without it. */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-copy > * { animation: hero-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .2s; }
.js .hero-copy > :nth-child(n+4) { animation-delay: .35s; }
.js .hero-device .phone { animation: hero-in 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero-arch path { stroke-dasharray: 1; animation: draw 2.4s .2s cubic-bezier(.6, 0, .2, 1) both; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn { transition: none; }
}
