/* SacredPath — a celestial atlas that ends on paper. */
:root {
  --sky: #0F1430; --zenith: #070A1A; --pre: #1D2547;
  --star: #F6F1E7; --text: #E6DFCF; --dim: #A9A79F; --brass: #CDB37A; --hair: #343B5E;
  --paper: #F6F1E7; --ink: #1B1814; --ink-2: #4A4339; --ink-3: #6F665A; --rule: rgb(27 24 20 / .14);
  --hindu: #EA985C; --muslim: #76C4A2; --sikh: #96AEF0; --christian: #E6909C;
  --d-hindu: #A8470F; --d-muslim: #1A684C; --d-sikh: #2A4898; --d-christian: #822434;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Azeret Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { background: var(--sky); color-scheme: dark; -webkit-text-size-adjust: 100% }
body { color: var(--text); font: 17px/1.45 var(--sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent }
img { display: block; max-width: 100% }
ul { list-style: none }
[hidden] { display: none !important }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; border-radius: 4px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
#mark-src { position: absolute; pointer-events: none }

/* ---------- the sky ---------- */
#sky { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; will-change: transform }
.ready #sky { opacity: 1 }
.grain { display: none }
@media (hover: hover) and (pointer: fine) {
  .grain { display: block; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .05; transition: opacity .8s var(--ease);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E") }
  .grain::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .14 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") }
  .is-day .grain { opacity: 1; background-image: none }
  .is-day .grain::after { opacity: 1 }
}

/* ---------- header ---------- */
.bar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + var(--top)) var(--gutter) 14px; color: var(--text); transition: color .8s var(--ease), background-color .5s }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 400 23px/1 var(--display); letter-spacing: -.005em }
.mark { width: 30px; height: 30px; flex: none }
.k0 { stroke: var(--hindu) } .k1 { stroke: var(--muslim) } .k2 { stroke: var(--sikh) } .k3 { stroke: var(--christian) }
.k0, .k1, .k2, .k3 { transition: stroke .8s var(--ease) }
.bar-actions { display: flex; align-items: center; gap: 8px }
.pill { display: inline-flex; align-items: center; height: 40px; padding: 0 17px; border: 1px solid rgb(205 179 122 / .6); border-radius: 999px; color: var(--brass); font: 600 13.5px/1 var(--sans); letter-spacing: .02em; transition: background-color .25s, color .25s, border-color .8s var(--ease) }
.pill:hover { background: var(--brass); color: var(--zenith) }
.sound { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dim) }
.sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
.sound .w1, .sound .w2 { display: none } .sound[aria-pressed="true"] { color: var(--brass) }
.sound[aria-pressed="true"] .w1, .sound[aria-pressed="true"] .w2 { display: inline } .sound[aria-pressed="true"] .x { display: none }
@media (max-width: 560px) { .sound span { display: none } }
.is-day .bar { color: var(--ink); background: linear-gradient(var(--paper) 58%, rgb(246 241 231 / 0)) }
.is-day .k0 { stroke: var(--d-hindu) } .is-day .k1 { stroke: var(--d-muslim) } .is-day .k2 { stroke: var(--d-sikh) } .is-day .k3 { stroke: var(--d-christian) }
.is-day .pill { border-color: var(--ink); color: var(--ink) } .is-day .pill:hover { background: var(--ink); color: var(--paper) }
.is-day .sound { color: var(--ink-3) }
.on-paper .bar { background: var(--paper); box-shadow: 0 1px 0 var(--rule) }

/* ---------- type ---------- */
.caps { font: 600 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass) }
.display { font: 300 clamp(50px, 13.2vw, 150px)/.94 var(--display); letter-spacing: -.022em; color: var(--star) }
.display.sm { font-size: clamp(42px, 9.6vw, 104px) }
.display em { font-style: italic }
.display .ln { display: block }
.lede { font: 400 clamp(17px, 1.45vw, 21px)/1.56 var(--serif); color: var(--text); max-width: 31em }
.sa { font-family: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif }
.gu { font-family: 'Tiro Gurmukhi', 'Noto Serif Gurmukhi', serif }
.ar { font-family: 'Amiri Quran', 'Amiri', 'Noto Naskh Arabic', serif; letter-spacing: 0 }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; transition: transform .2s var(--ease), background-color .25s, color .25s }
.btn:active { transform: scale(.97) }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease) }
.btn:hover svg { transform: translateX(4px) }
.btn-brass { background: var(--brass); color: var(--zenith) } .btn-brass:hover { background: var(--star) }
.btn-ink { background: var(--ink); color: var(--paper) } .btn-ink:hover { background: #000 }
.skip { font: 500 14px/1 var(--sans); color: var(--dim); border-bottom: 1px solid var(--hair); padding-bottom: 3px }
.skip:hover { color: var(--text) }

/* ---------- the journey ---------- */
.journey { position: relative; z-index: 2; height: 1470vh; height: 1470svh }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(104px + var(--top)) var(--gutter) calc(28px + var(--bottom)); pointer-events: none }
.beat .step { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease), transform 1.15s var(--ease) }
.beat.on .step.in { opacity: 1; transform: none }
.beat:not(.on) .step { transform: translate3d(0, -14px, 0); transition-duration: .45s }
.beat.on .step.in a, .beat.on .step.in button { pointer-events: auto }
@media (hover: hover) and (pointer: fine) {
  .beat .step { filter: blur(10px); transition: opacity .9s var(--ease), transform 1.15s var(--ease), filter .9s var(--ease) }
  .beat.on .step.in { filter: blur(0) }
}
.block { position: relative; margin-top: auto; max-width: 620px }
.block > * + * { margin-top: 14px }
/* a soft floor of night under the words, so stars never fight the text */
.beat-every::before, .beat-plate::before, .beat-faith::before { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(to bottom, rgb(4 6 15 / 0), rgb(4 6 15 / .9) 32%); opacity: 0; transition: opacity .8s var(--ease) }
.beat-every.on::before, .beat-plate.on::before, .beat-faith.on::before { opacity: 1 }

/* atlas furniture */
.furniture { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .8s var(--ease) }
.plate-no, .readout { position: absolute; top: calc(72px + var(--top)); font: 600 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase }
.plate-no { left: var(--gutter); color: var(--brass) }
.readout { right: var(--gutter); color: var(--dim); font-variant-numeric: tabular-nums }
@media (max-width: 600px) { .readout { display: none } }
.is-day .furniture { opacity: 0 }
/* the journey's five chapters: a line along the foot of the screen that fills as you go, and can be clicked */
.acts { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: calc(6px + var(--bottom)); display: flex; gap: 6px; transition: opacity .8s var(--ease) }
.acts button { position: relative; flex: var(--w, 1) 1 0; height: 16px; pointer-events: auto }
.acts button::before, .acts button i { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--hair) }
.acts button i { background: var(--brass); transform: scaleX(var(--p, 0)); transform-origin: left }
.acts button span { position: absolute; left: 0; bottom: 11px; white-space: nowrap; font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); opacity: 0; transition: opacity .4s var(--ease) }
.acts button:hover span, .acts button:focus-visible span { opacity: 1 }
.is-day .acts { opacity: 0; pointer-events: none }
.is-day .acts button { pointer-events: none }
/* at dawn the sky becomes a printed plate: a hairline frame set in from the edge of the sheet */
.pin::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgb(27 24 20 / .16); opacity: 0; pointer-events: none; transition: opacity 1s var(--ease) }
.is-day .pin::after { opacity: 1 }
.labels, .vstars { position: absolute; inset: 0; z-index: 2; pointer-events: none }
.block, .hero-foot { position: relative; z-index: 3 }
.label { position: absolute; left: 0; top: 0; white-space: nowrap; font: italic 400 14px/1.25 var(--serif); color: var(--star); padding: 5px 10px 6px; background: rgb(7 10 26 / .82); border: 1px solid var(--hair); border-radius: 3px; opacity: 0; transition: opacity .6s var(--ease); will-change: transform }
.label small { display: block; font: 600 9px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--text) }
.label.deg { font: 600 9px/1 var(--sans); letter-spacing: .12em; font-style: normal; color: var(--brass); padding: 0; background: none; border: 0; transition: none }
.vstar { position: absolute; left: 0; top: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; opacity: 0; pointer-events: none; will-change: transform }
.vstar.on { opacity: 1; pointer-events: auto }
.vstar span { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; padding: 6px 9px; background: rgb(7 10 26 / .86); border: 1px solid var(--hair); border-radius: 3px; font: 600 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--star); opacity: 0; transition: opacity .3s }
.vstar:hover span, .vstar:focus-visible span, .vstar.open span { opacity: 1 }
.vstar:focus-visible { outline-offset: -8px; border-radius: 50% }
.lens { display: none }
@media (hover: hover) and (pointer: fine) {
  .lens { display: block; position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 1px solid rgb(205 179 122 / .9); border-radius: 50%; background: radial-gradient(closest-side, rgb(7 10 26 / .5), rgb(7 10 26 / .3) 82%, rgb(7 10 26 / .08)); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); will-change: transform }
  .lens.on { opacity: 1 }
  .lens i { position: absolute; inset: -7px; background: linear-gradient(var(--brass), var(--brass)) 50% 0/1px 7px no-repeat, linear-gradient(var(--brass), var(--brass)) 50% 100%/1px 7px no-repeat, linear-gradient(var(--brass), var(--brass)) 0 50%/7px 1px no-repeat, linear-gradient(var(--brass), var(--brass)) 100% 50%/7px 1px no-repeat; opacity: .8 }
  .lens p { position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; text-align: center; font: italic 400 16px/1.3 var(--serif); color: var(--star); padding: 6px 12px 7px; background: rgb(7 10 26 / .86); border: 1px solid var(--hair); border-radius: 3px }
  .lens p:empty { display: none }
  .lens p small { display: block; font: 600 10px/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--brass) }
}

/* I. arrival */
/* the galaxy is the one subject; the headline is set round it and the foot of the screen carries the facts */
.beat-hero { padding-bottom: calc(22px + var(--bottom)) }
.hero-title { position: absolute; inset: 0; margin: 0; pointer-events: none }
.hero-title .ln { position: absolute; left: var(--gutter); white-space: nowrap; font-size: clamp(44px, 13.2vw, 76px); line-height: 1 }
.hero-title .l1 { top: calc(110px + var(--top)) }
.hero-title .l2 { top: 60svh }
/* when the sky draws the headline itself, the page's copy keeps its place but gives up its ink */
.hero-title .ln { transition: color .7s ease }
.title-in-sky .hero-title .ln { color: transparent }
.hero-foot { margin-top: auto; display: grid; gap: 14px }
.tally b { display: block; font: 400 clamp(26px, 7.4vw, 34px)/1.1 var(--display); letter-spacing: -.01em; color: var(--star) }
.tally span { display: block; margin-top: 7px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass) }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px }
.hero-cta span { font: 500 13.5px/1.3 var(--sans); color: var(--dim) }
.lights { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px clamp(16px, 4.4vw, 34px); font-size: clamp(21px, 5.6vw, 28px); line-height: 1.5 }
.lights .la { font: 300 italic 1.12em/1 var(--display) }
.lights .ar { line-height: 1.9 }
.w-hindu { color: var(--hindu) } .w-muslim { color: var(--muslim) } .w-sikh { color: var(--sikh) } .w-christian { color: var(--christian) }
.scroll-cue { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; font: 600 10px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--text) }
.scroll-cue .skip { font: inherit; letter-spacing: inherit; color: var(--dim); padding-bottom: 1px }
.scroll-cue i { width: 46px; height: 1px; background: var(--brass); transform-origin: left; animation: cue 2.6s var(--ease) infinite }

/* II. words that light as you scroll */
.scrub { font: 300 clamp(30px, 8vw, 46px)/1.1 var(--display); letter-spacing: -.012em; color: var(--star) }
.scrub span { opacity: .2; transition: opacity .5s var(--ease) }
.scrub span.lit { opacity: 1 }
@keyframes cue { 0% { transform: scaleX(0); opacity: 1 } 60% { transform: scaleX(1); opacity: 1 } 100% { transform: scaleX(1); opacity: 0 } }

/* II. the library */
.numeral { font: 300 clamp(78px, 22.5vw, 210px)/.88 var(--display); letter-spacing: -.035em; color: var(--star); font-feature-settings: 'lnum', 'tnum' }
.key { margin-top: 20px !important; border-top: 1px solid var(--hair); max-width: 520px }
.key li { display: grid; grid-template-columns: 9px 1fr auto; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font: 500 15.5px/1.3 var(--serif) }
.key i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px) }
.key small { display: block; font: 400 13px/1.35 var(--serif); color: var(--dim) }
.key b { font: 600 13px/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--c) }
.k-hindu { --c: var(--hindu) } .k-muslim { --c: var(--muslim) } .k-sikh { --c: var(--sikh) } .k-christian { --c: var(--christian) }

/* III–VI. four paths */
.f-hindu { --c: var(--hindu) } .f-muslim { --c: var(--muslim) } .f-sikh { --c: var(--sikh) } .f-christian { --c: var(--christian) }
.beat-faith .caps { color: var(--c) }
.word { font-weight: 400; font-size: clamp(76px, 23vw, 176px); line-height: 1.12; color: var(--c); text-align: left; margin-top: 2px !important }
.word.ar { line-height: 1.5; font-size: clamp(84px, 25vw, 190px); margin-top: -18px !important; padding-bottom: .12em }
.word.la { font: 300 italic clamp(88px, 26vw, 200px)/1 var(--display); letter-spacing: -.02em; padding-bottom: .16em }
.word.gu { margin-top: 12px !important }
.gloss { font: 400 15.5px/1.3 var(--serif); color: var(--dim); margin-top: 2px !important }
.orig { font-size: clamp(20px, 5.3vw, 28px); line-height: 1.62; color: var(--star); margin-top: 18px !important }
.orig.ar { font-size: clamp(25px, 6.6vw, 36px); line-height: 2.1; text-align: left }
.orig.la { font: 300 italic clamp(27px, 7vw, 42px)/1.22 var(--display); max-width: 17em }
.trans { font: italic 400 clamp(16.5px, 4.3vw, 20px)/1.52 var(--serif); color: var(--text); max-width: 31em }
.cite { display: flex; align-items: center; gap: 14px; margin-top: 18px !important; font: 600 11.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c) }
.cite small { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--dim) }
.listen { flex: none; width: 46px; height: 46px; border: 1px solid var(--c); border-radius: 50%; color: var(--c); display: grid; place-items: center; transition: background-color .25s, color .25s, transform .2s var(--ease) }
.listen:hover { background: var(--c); color: var(--zenith) } .listen:active { transform: scale(.94) }
.listen svg { width: 20px; height: 20px }
.listen .play { fill: currentColor } .listen .pause { display: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round }
.listen.playing .play { display: none } .listen.playing .pause { display: inline }
.catalogue { margin-top: 18px !important; padding-top: 13px; border-top: 1px solid var(--hair); font: 500 12.5px/1.6 var(--sans); letter-spacing: .04em; color: var(--dim) }
.catalogue b { color: var(--text); font-weight: 600 }
.catalogue i { display: inline-block; width: 12px; height: 1px; margin: 0 7px; background: var(--hair); vertical-align: middle }

/* VII. touch a star */
.beat-touch .block { margin-top: 0 }

/* VIII. dawn */
.creed { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(11svh + var(--bottom)); text-align: center }
.lockup { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--lockup-top, 64%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--ink) }
.wordmark { font: 400 clamp(38px, 9vw, 64px)/1 var(--display); letter-spacing: -.012em }
.lockup .lede { color: var(--ink-2) } .lockup .row { margin-top: 10px; justify-content: center }

/* ---------- a verse, opened ---------- */
.card { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 84svh; overflow: auto; padding: 30px var(--gutter) calc(26px + var(--bottom)); background: #0A0E24; border-top: 1px solid var(--hair); border-radius: 22px 22px 0 0; transform: translate3d(0, 104%, 0); transition: transform .8s var(--ease), visibility 0s .8s; visibility: hidden; --c: var(--brass) }
.card.open { transform: none; visibility: visible; transition: transform .8s var(--ease) }
.card[data-faith="hindu"] { --c: var(--hindu) } .card[data-faith="muslim"] { --c: var(--muslim) } .card[data-faith="sikh"] { --c: var(--sikh) } .card[data-faith="christian"] { --c: var(--christian) }
.card .caps { color: var(--c) }
.card .orig { margin-top: 14px !important } .card .trans { margin-top: 12px }
.card .orig:empty { display: none }
.card-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim) }
.card-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding-bottom: 4px; border-bottom: 1px solid var(--hair); font: 600 13.5px/1 var(--sans); color: var(--text) }
.card-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
@media (min-width: 760px) {
  .card { left: auto; right: 28px; bottom: 28px; width: 440px; border: 1px solid var(--hair); border-radius: 18px; padding: 30px 30px 26px; transform: translate3d(0, 24px, 0); opacity: 0; transition: transform .7s var(--ease), opacity .5s, visibility 0s .7s }
  .card.open { opacity: 1; transition: transform .7s var(--ease), opacity .5s }
}

/* ---------- wide screens: words to the left, sky to the right ---------- */
@media (min-width: 900px) {
  .beat { padding-top: calc(118px + var(--top)); padding-bottom: 40px }
  .beat-plate .block, .beat-faith .block { margin: auto 0; max-width: min(43vw, 560px) }
  .beat-every .block { margin: auto 0; max-width: min(50vw, 740px) }
  .scrub { font-size: clamp(44px, 4.3vw, 72px) }
  .beat-every::before, .beat-plate::before, .beat-faith::before { inset: 0 44% 0 0; background: linear-gradient(to left, rgb(4 6 15 / 0), rgb(4 6 15 / .74) 46%) }
  .word { font-size: clamp(96px, 11.5vw, 190px) } .word.ar { font-size: clamp(104px, 12.5vw, 210px) } .word.la { font-size: clamp(110px, 13vw, 220px) }
  .orig { font-size: clamp(22px, 1.9vw, 30px) } .orig.ar { font-size: clamp(27px, 2.4vw, 38px) } .orig.la { font-size: clamp(30px, 2.9vw, 46px) }
  .trans { font-size: clamp(17px, 1.4vw, 21px) }
  .numeral { font-size: clamp(110px, 12.2vw, 200px) }
  .display { font-size: clamp(78px, 9.3vw, 148px) } .display.sm { font-size: clamp(60px, 6.6vw, 112px) }
  /* the two halves of the headline sit on a diagonal, with the galaxy between them */
  .hero-title .ln { font-size: clamp(84px, 9.8vw, 176px) }
  .hero-title .l1 { top: 15vh }
  .hero-title .l2 { left: auto; right: var(--gutter); top: auto; bottom: 24vh }
  .hero-foot { grid-template-columns: 1fr auto 1fr; align-items: end; gap: 28px }
  .tally b { font-size: clamp(30px, 2.5vw, 42px) }
  .hero-mid { display: flex; flex-direction: column; align-items: center }
  .lights { justify-content: center; font-size: clamp(22px, 1.8vw, 28px) }
  .scroll-cue { justify-content: center }
  .hero-cta { justify-content: flex-end }
  .beat-touch .block { max-width: 520px }
  .creed { bottom: 9vh }
}
@media (max-height: 700px) and (max-width: 899px) {
  .hero-title .ln { font-size: 40px } .hero-title .l1 { top: calc(88px + var(--top)) } .hero-title .l2 { top: 55svh }
  .tally span, .hero-cta span { display: none } .hero-foot { gap: 9px }
  .beat { padding-top: calc(92px + var(--top)) }
  .word { font-size: 68px } .word.ar { font-size: 74px } .word.la { font-size: 78px }
  .block > * + * { margin-top: 9px } .orig { margin-top: 10px !important } .cite, .catalogue { margin-top: 12px !important }
  .numeral { font-size: 74px } .key li { padding: 6px 0 } .key small { display: none }
}

/* ---------- paper ---------- */
.paper { position: relative; z-index: 3; background: var(--paper); color: var(--ink); color-scheme: light }
.paper :focus-visible { outline-color: var(--ink) }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) }
.sheet { padding: clamp(76px, 11vw, 156px) 0 }
.sheet + .sheet { border-top: 1px solid var(--rule) }
.paper .caps { color: var(--ink-3) }
.display.ink { color: var(--ink); font-size: clamp(44px, 7.6vw, 108px); margin: .16em 0 .3em }
.display.ink.sm { font-size: clamp(38px, 5.4vw, 76px); max-width: 13em }
.paper .lede { color: var(--ink-2) }
.rise { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease) }
.rise.in { opacity: 1; transform: none }

.hand-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 96px); align-items: center }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 34px; border-bottom: 1px solid var(--rule) }
.tabs button { position: relative; padding: 12px 0; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: color .3s }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) }
.tabs button[aria-selected="true"] { color: var(--ink) } .tabs button[aria-selected="true"]::after { transform: scaleX(1) }
.tabs button:hover { color: var(--ink) }
.tab-panel { min-height: 8.6em; padding-top: 24px }
.tab-panel h3 { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.01em }
.tab-panel p { margin-top: 10px; max-width: 30em; color: var(--ink-2) }
.tab-panel.swap h3, .tab-panel.swap p { animation: swap .7s var(--ease) both } .tab-panel.swap p { animation-delay: .06s }
@keyframes swap { from { opacity: 0; transform: translateY(10px) } }
.hand-visual { display: flex; justify-content: center; perspective: 1400px }
.phone { width: min(310px, 76vw); aspect-ratio: 390 / 844; padding: 9px; border-radius: 44px; background: #FCF9F3; border: 1px solid rgb(27 24 20 / .22); box-shadow: 0 1px 2px rgb(60 44 20 / .08), 0 30px 70px rgb(60 44 20 / .2); transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); transition: transform .9s var(--ease) }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; transition: opacity .35s ease }
.phone img.out { opacity: 0 }
@media (max-width: 899px) { .hand-grid { grid-template-columns: 1fr } .phone { --ry: 0deg; --rx: 0deg } .tab-panel { min-height: 9.6em } }

.shelves { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(30px, 4vw, 54px); border-top: 1px solid var(--rule) }
.col { padding: 26px 24px 8px 0 } .col + .col { padding-left: 24px; border-left: 1px solid var(--rule) }
.paper .k-hindu { --c: var(--d-hindu) } .paper .k-muslim { --c: var(--d-muslim) } .paper .k-sikh { --c: var(--d-sikh) } .paper .k-christian { --c: var(--d-christian) }
.col h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 400 30px/1.1 var(--display) }
.col h3 b { font: 600 12.5px/1 var(--sans); letter-spacing: .06em; color: var(--c) }
.col ul { margin-top: 14px } .col li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.35 }
.col small { display: block; font-size: 13.5px; color: var(--ink-3) }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 80px) }
.facts li { color: var(--ink-2); font-size: 16.5px; max-width: 22em }
.facts b { display: block; margin-bottom: 6px; font: 400 26px/1.1 var(--display); color: var(--ink) }
@media (max-width: 899px) { .shelves { grid-template-columns: 1fr 1fr } .col:nth-child(3) { padding-left: 0; border-left: 0 } .col:nth-child(n+3) { border-top: 1px solid var(--rule) } .facts { grid-template-columns: 1fr } }
@media (max-width: 520px) { .shelves { grid-template-columns: 1fr } .col + .col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule) } }

.close { text-align: center } .close .row { justify-content: center; margin-top: 8px }
.soon { font: 500 14px/1.3 var(--sans); color: var(--ink-3) }
footer { border-top: 1px solid var(--rule); padding: 30px 0 calc(34px + var(--bottom)); font: 500 13.5px/1.6 var(--sans); color: var(--ink-3) }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px }
.foot nav { display: flex; gap: 22px } .foot a:hover { color: var(--ink) }
.credits { flex-basis: 100%; font-weight: 400; font-size: 12.5px; max-width: 70em }

/* ---------- type system ----------
   Four voices, each with one job.
   Display: a heavy condensed face in capitals, for what is said loudest.
   Mono: capitals, for labels, figures and the sentence that lights as you scroll.
   Sans: the interface and running text.
   Serif italic: scripture in translation, and nothing else. */
.display, .numeral, .wordmark, .brand, .word.la, .tally b, .lights .la { font-family: var(--display); font-weight: 400; font-style: normal; text-transform: uppercase }
.display { letter-spacing: .004em; line-height: .93 }
.display em { font-style: normal }
.numeral { letter-spacing: .012em; line-height: .92 }
.brand { font-size: 21px; letter-spacing: .035em }
.wordmark { letter-spacing: .02em }
.word.la { letter-spacing: .012em; line-height: .95; padding-bottom: .12em }
.tally b { letter-spacing: .02em }
.lights .la { font-size: 1.02em; letter-spacing: .03em; line-height: 1.5 }
/* the three words for light in their own scripts, in faces heavy enough to stand beside the display type */
.word.sa, .lights .sa { font-family: 'Anek Devanagari', 'Tiro Devanagari Sanskrit', sans-serif; font-weight: 800; font-stretch: 75% }
.word.gu, .lights .gu { font-family: 'Anek Gurmukhi', 'Tiro Gurmukhi', sans-serif; font-weight: 800; font-stretch: 75% }
.word.ar, .lights .ar { font-family: 'Noto Kufi Arabic', 'Amiri Quran', sans-serif; font-weight: 800 }
.word.ar { line-height: 1.35; margin-top: 0 !important; padding-bottom: .04em }

.caps, .plate-no, .readout, .acts button span, .label small, .label.deg, .vstar span, .lens p small, .cite, .cite small, .catalogue, .tally span, .scroll-cue, .sound, .tabs button, .key b, .col h3 b, .gloss, .soon, .hero-cta span { font-family: var(--mono); font-weight: 500 }
.caps { font-size: 11px; letter-spacing: .1em }
.plate-no, .readout { letter-spacing: .1em }
.tally span, .scroll-cue, .acts button span, .vstar span, .label small, .lens p small { letter-spacing: .08em }
.cite { letter-spacing: .08em } .cite small { font-size: 11px; letter-spacing: 0 }
.catalogue { font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase }
.gloss { font-size: 12px; letter-spacing: .05em; text-transform: uppercase } .gloss em { font-style: normal; color: var(--text) }
.tabs button { letter-spacing: .08em }
.hero-cta span, .soon { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase }
.scrub { font: 500 clamp(23px, 6.6vw, 40px)/1.04 var(--mono); letter-spacing: -.05em; text-transform: uppercase }

.lede, .key li, .key small, .label, .lens p, .tab-panel p, .col li, .col small, .facts li { font-family: var(--sans); font-style: normal }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.42; letter-spacing: -.012em }
.label { font-weight: 600; font-size: 13px; letter-spacing: -.01em } .lens p { font-weight: 600; font-size: 14.5px }
.key li { font-weight: 600 } .key small { font-weight: 400 }
.tab-panel h3, .col h3, .facts b { font-family: var(--sans); font-weight: 700; letter-spacing: -.035em; text-transform: none }
.orig.la { font: italic 400 clamp(24px, 6.2vw, 36px)/1.25 var(--serif); letter-spacing: -.01em }

/* home: two blocks of capitals, one each side of the light */
.hero-title .half { position: absolute; left: var(--gutter); white-space: nowrap }
.hero-title .ln { position: static; display: inline; font-size: clamp(38px, 12.2vw, 72px); line-height: .95 }
.hero-title .a { top: calc(108px + var(--top)) }
.hero-title .b { top: 60svh }
@media (min-width: 900px) {
  .hero-title .ln { display: block; font-size: clamp(76px, 8.7vw, 164px) }
  .hero-title .half { top: 47%; transform: translateY(-50%) }
  .hero-title .b { left: auto; right: var(--gutter); text-align: right }
  .scrub { font-size: clamp(30px, 3.5vw, 58px) }
  .beat-every .block { max-width: min(56vw, 860px) }
  .orig.la { font-size: clamp(26px, 2.4vw, 40px) }
}
@media (max-height: 700px) and (max-width: 899px) {
  .hero-title .ln { font-size: 36px } .hero-title .a { top: calc(88px + var(--top)) } .hero-title .b { top: 55svh }
}

/* ---------- still mode: no WebGL, reduced motion, data saver, or no JavaScript ---------- */
:is(.static, html:not(.js)) .hero-title .half { position: static; display: block; transform: none; text-align: left; white-space: normal }
:is(.static, html:not(.js)) :is(#sky, .grain, .furniture, .labels, .vstars, .lens, .scroll-cue, .acts) { display: none }
:is(.static, html:not(.js)) .pin::after { display: none }
:is(.static, html:not(.js)) .journey { height: auto }
:is(.static, html:not(.js)) .pin { position: static; height: auto; overflow: visible }
:is(.static, html:not(.js)) .beat { position: relative; inset: auto; padding-top: 64px; padding-bottom: 64px; pointer-events: auto }
:is(.static, html:not(.js)) .beat::before { display: none }
:is(.static, html:not(.js)) .beat .step { opacity: 1; transform: none; filter: none }
:is(.static, html:not(.js)) .beat a, :is(.static, html:not(.js)) .beat button { pointer-events: auto }
:is(.static, html:not(.js)) .beat-hero { min-height: 100svh; padding-top: calc(104px + var(--top)); background: #05070F url(/assets/sky-still.webp) 50% 0 / cover no-repeat }
:is(.static, html:not(.js)) .block { margin: 0; max-width: 620px }
:is(.static, html:not(.js)) .beat-light { background: var(--paper); align-items: center; text-align: center }
:is(.static, html:not(.js)) .creed { position: static; color: var(--ink) } :is(.static, html:not(.js)) .lockup { position: static; margin-top: 28px }
:is(.static, html:not(.js)) .rise { opacity: 1; transform: none }
:is(.static, html:not(.js)) .beat-touch { display: none }
:is(.static, html:not(.js)) .hero-title { position: static; margin-bottom: 26px }
:is(.static, html:not(.js)) .hero-title .ln { position: static; display: block; white-space: normal; font-size: clamp(44px, 9vw, 120px) }
:is(.static, html:not(.js)) .hero-foot { margin-top: 0; grid-template-columns: 1fr; justify-items: start; max-width: 620px }
:is(.static, html:not(.js)) .hero-mid { align-items: flex-start }
:is(.static, html:not(.js)) .scrub span { opacity: 1 }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: .01ms !important } }
