/* The homepage, and the nav and footer it shares with /support and /privacy.
   First the shared parts (as they have always been), then the homepage itself. */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
/* A stage is one screen tall (the screen as it is with the browser's bars showing, so nothing is ever cut
   off), and never shorter than its contents need; where the screen is shorter than that, it pins by its
   foot instead of its head. */
:root { --screen: 100vh; --stage: max(var(--screen), 540px); --stage-top: min(0px, calc(var(--screen) - 540px)); --nav: calc(70px + env(safe-area-inset-top)); }
@supports (height: 100svh) { :root { --screen: 100svh; } }
/* How much scrolling the two held stages take: the opening (the title going, the monogram coming
   forward, the Greek turning into English, the light), and each of the five things in "Made for
   reading". Generous, so a quick flick doesn't race through them; more on a phone, where one flick
   covers more of the page. (The motion itself is spread over whatever length this gives: home.js.) */
:root { --hero-hold: 230vh; --feature-hold: 56vh; }
@media (max-width: 760px) { :root { --hero-hold: 300vh; --feature-hold: 66vh; } }
/* On a phone the browser's bars shrink away as the page scrolls, and the screen is then taller than
   --screen by this much. A held stage is made that much taller at its foot (only its ground reaches
   there, never its words), so it always fills the screen and no band of another colour shows below it. */
:root { --apron: 0px; }
@supports (height: 100lvh) { :root { --apron: calc(100lvh - 100svh); } }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.center { text-align: center; }
[data-icon] { display: inline-grid; place-items: center; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .35s ease, box-shadow .35s ease; }
.nav.scrolled, .menu-open .nav {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 .75px 0 var(--stroke);
}
.nav-row { height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-name { font: 700 21px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.nav-links { position: relative; display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font: 500 15px/1 var(--sans); color: var(--ink-2); transition: color .2s ease; padding: 10px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-mark {
  position: absolute; left: 0; bottom: 0; height: 1.5px; width: 1px; background: var(--ink); opacity: 0; transform-origin: left;
  transition: transform .55s var(--ease-out), opacity .3s ease;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav-cta .label-short { display: none; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .3s ease; }
.nav.scrolled .nav-progress { opacity: 1; }
.menu-open .nav-progress { opacity: 0; }

.menu-btn { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke); flex: none; }
.menu-btn i { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.75px; margin-top: -1px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease-out); }
.menu-btn i:first-child { transform: translateY(-4px); }
.menu-btn i:last-child { transform: translateY(4px); }
.menu-open .menu-btn i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(92px + env(safe-area-inset-top)) clamp(20px, 6vw, 48px) calc(28px + env(safe-area-inset-bottom));
  clip-path: circle(0 at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.menu.open { clip-path: circle(150vmax at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font: 400 clamp(32px, 9vw, 44px)/1.1 var(--serif); letter-spacing: -.015em; padding: 13px 0; box-shadow: inset 0 -.75px 0 var(--stroke);
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .7s var(--ease-out);
}
.menu.open .menu-links a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * .045s + .08s); }
.menu-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.menu-foot .capsule { flex: 1 1 auto; }
.menu-open, .menu-open body { overflow: hidden; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 560px) {
  .nav-row { gap: 10px; }
  .nav-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .nav-actions .theme-toggle { display: none; }
  .nav-cta { padding: 0 14px; }
  .nav-cta .label-long { display: none; }
  .nav-cta .label-short { display: inline; }
}
@media (max-width: 350px) {
  .brand-name { display: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: clamp(44px, 6vw, 72px) 0 calc(36px + env(safe-area-inset-bottom)); box-shadow: inset 0 .75px 0 var(--stroke); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px clamp(20px, 4vw, 48px); }
.footer .brand-name { font-size: 19px; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-col h3 { margin: 0 0 3px; font: 700 11px/1.2 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.footer-col a, .footer-col button { color: var(--ink-2); font: 400 15px/1.3 var(--sans); text-align: left; transition: color .2s ease; }
.footer-col a:hover, .footer-col button:hover { color: var(--ink); }
.footer-small { margin-top: clamp(30px, 4vw, 48px); color: var(--ink-3); font-size: 13px; }
.footer-small p { margin: 4px 0; }
.footer-small a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-small a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==================================================================================================
   The homepage (round 3): a different room for each part of the page. Every section is a sheet on its
   own ground (data-tone), laid over the one before with large rounded top corners: the hero's deep blue,
   warm paper, the darkest ink, a pale mist, a bluer blue. A tone sets its own colours (ground, ink,
   hairline, accent, buttons), so everything inside a section is right for its ground, and the nav takes
   the tone of the section passing under it (home.js). Things appear once, with one easing; nothing pulses.
   (Everything from here on is the homepage's alone: /support and /privacy use only the nav and footer
   rules above, which are as they were.)
   ================================================================================================== */

/* What every tone can set. These are the values where no tone applies: the site's own colours (base.css,
   theme-boot.js), which are also what Pure Black and the colour themes use all the way down. */
.home {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sheet: clamp(24px, 4vw, 56px);               /* a sheet's rounded top corners */
  --ground: var(--bg);                           /* what a section stands on */
  --flat: var(--bg);                             /* its one flat colour (the nav's glass) */
  --bar: var(--flat);                            /* the colour at its top (the browser's own bar, on a phone) */
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .24);
  --panel: rgba(255, 255, 255, .045);            /* one small step lighter than the ground */
  --grey: rgba(232, 240, 250, .74);
  --grey-2: rgba(232, 240, 250, .6);
  --link: var(--accent);
  --btn: #fff; --btn-ink: #0a1420;               /* the one filled button */
  --bezel: #04070b;
  --lift: rgba(0, 0, 0, .62);                    /* the shadow under a picture */
  --mac-base: linear-gradient(#3b3e45, #17181b);
  --silver: linear-gradient(104deg, #8e98a8 4%, #eef2f7 28%, #aab3c1 46%, #ffffff 60%, #9ea8b7 80%, #dfe5ee 96%);
  --halo: radial-gradient(closest-side, rgba(64, 158, 214, .34), rgba(0, 118, 186, .2) 36%, rgba(0, 118, 186, .07) 60%, rgba(0, 118, 186, 0) 78%);
  --on-dark: 1;                                  /* 1 on a dark ground, 0 on a light one (which logo shows) */
  --nav: calc(56px + env(safe-area-inset-top));
}
/* (Worked out on each sheet, from that sheet's own flat colour.) */
.home [data-tone] { --bar: var(--flat); }
/* The light theme's own values. */
:root[data-theme="light"]:not([data-themed]) .home {
  --bg: #fff; --page: #fff; --surface: #fff; --raised: #eceef2;
  --ink: #14181d; --ink-2: #5b6470; --ink-3: #7c848e; --stroke: rgba(0, 0, 0, .1); --on-ink: #fff;
  --art-ink: #14181d; --art-top: #fff; --art-bottom: #fff;
}
:root[data-theme="light"] .home {
  --line: rgba(0, 0, 0, .1); --line-2: rgba(0, 0, 0, .22); --panel: rgba(255, 255, 255, .7); --grey: #5b6470; --grey-2: #5f6874;
  --link: #006aa8; --btn: #14181d; --btn-ink: #fff; --bezel: #14181d; --lift: rgba(30, 44, 66, .3);
  --mac-base: linear-gradient(#e3e5ea, #b9bcc4);
  --silver: linear-gradient(104deg, #2f3a4a 4%, #7f8c9e 28%, #414d5e 46%, #98a4b3 60%, #394556 80%, #6d7a8b 96%);
  --halo: radial-gradient(closest-side, rgba(0, 118, 186, .16), rgba(0, 118, 186, .06) 46%, rgba(0, 118, 186, 0) 76%);
  --on-dark: 0;
}
/* A colour theme, or Pure Black: the theme's own colours, with its own small steps from section to section. */
:root[data-themed] .home {
  --line: var(--stroke); --line-2: var(--ink-3); --panel: var(--surface); --grey: var(--ink-2); --grey-2: var(--ink-2);
  --link: var(--accent); --btn: var(--ink); --btn-ink: var(--on-ink); --halo: none;
}
:root[data-black] .home { --halo: radial-gradient(closest-side, rgba(0, 118, 186, .2), rgba(0, 118, 186, .07) 44%, rgba(0, 118, 186, 0) 74%); }
:root[data-themed] .home :is([data-tone="paper"], [data-tone="mist"]), :root[data-black] .home :is([data-tone="paper"], [data-tone="mist"]) { --ground: var(--surface); --flat: var(--surface); }
:root[data-themed] .home [data-tone="blue"], :root[data-black] .home [data-tone="blue"] { --ground: var(--page); --flat: var(--page); }

/* ---------- The tones, in the default dark look ---------- */
/* Navy: the hero and the closing verse. A still light, bluer and brighter at the top centre, falling to
   a dark foot. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home [data-tone="navy"] {
  --flat: #0d2440; --bg: #0d2440; --bar: #133659; --foot: #08131f; --link: rgb(112, 188, 236);
  --ground: radial-gradient(120% 80% at 50% 0%, #17406b 0%, rgba(23, 64, 107, 0) 64%), linear-gradient(180deg, #113152 0%, #0d2440 48%, #08131f 100%);
}
/* Ink: the darkest. The books, the film, the footer. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home [data-tone="ink"] { --flat: #070b11; --bg: #070b11; --ground: #070b11; --panel: rgba(255, 255, 255, .055); }
/* Blue: the story. Clearly bluer and lighter than ink. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home [data-tone="blue"] {
  --flat: #0d2843; --bg: #0d2843; --ground: linear-gradient(180deg, #0f2e4e 0%, #0b2239 100%);
  --grey: rgba(232, 240, 250, .8); --grey-2: rgba(232, 240, 250, .66); --line: rgba(255, 255, 255, .13);
}
/* The light grounds: ink on paper. The accent is the print blue; the filled button is ink. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home :is([data-tone="paper"], [data-tone="mist"]) {
  color-scheme: light;
  --ink: #14181d; --ink-2: #5b6470; --ink-3: #7c848e; --stroke: rgba(0, 0, 0, .1); --on-ink: #fff; --art-ink: #14181d;
  --shadow: rgba(20, 30, 45, .12); --surface: #fff; --raised: rgba(20, 30, 45, .06);
  --accent: rgb(0, 118, 186); --link: #006aa8;
  --line: rgba(0, 0, 0, .1); --line-2: rgba(0, 0, 0, .22); --panel: rgba(255, 255, 255, .7); --grey: #5b6470; --grey-2: #5f6874;
  --btn: #14181d; --btn-ink: #fff; --bezel: #14181d; --lift: rgba(30, 44, 66, .3);
  --mac-base: linear-gradient(#e3e5ea, #b9bcc4);
  --silver: linear-gradient(104deg, #2f3a4a 4%, #7f8c9e 28%, #414d5e 46%, #98a4b3 60%, #394556 80%, #6d7a8b 96%);
  --halo: radial-gradient(closest-side, rgba(0, 118, 186, .14), rgba(0, 118, 186, .05) 46%, rgba(0, 118, 186, 0) 76%);
  --on-dark: 0;
}
/* Paper: warm page white, the colour of a Bible page. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home [data-tone="paper"] { --flat: #f4f1ea; --bg: #f4f1ea; --ground: #f4f1ea; }
/* Mist: pale, cool grey-blue. */
:root:not([data-themed], [data-black], [data-theme="light"]) .home [data-tone="mist"] { --flat: #e9eef4; --bg: #e9eef4; --ground: #e9eef4; }
:root:not([data-themed], [data-black], [data-theme="light"]) .home { --top-ground: #133659; --foot-ground: #070b11; }

/* ---------- The tones, in the light theme: the same rhythm in a lighter key ---------- */
:root[data-theme="light"]:not([data-themed]) .home [data-tone="navy"] {
  --flat: #eef4fb; --bg: #eef4fb; --bar: #e6eff9; --foot: #fff;
  --ground: radial-gradient(120% 80% at 50% 0%, #d2e3f6 0%, rgba(210, 227, 246, 0) 64%), linear-gradient(180deg, #e8f0fa 0%, #f5f9fd 52%, #fff 100%);
}
:root[data-theme="light"]:not([data-themed]) .home [data-tone="paper"] { --flat: #f4f1ea; --bg: #f4f1ea; --ground: #f4f1ea; }
:root[data-theme="light"]:not([data-themed]) .home [data-tone="ink"] { --flat: #eef0f3; --bg: #eef0f3; --ground: #eef0f3; }
:root[data-theme="light"]:not([data-themed]) .home [data-tone="mist"] { --flat: #fff; --bg: #fff; --ground: #fff; --panel: #f4f6f9; }
:root[data-theme="light"]:not([data-themed]) .home [data-tone="blue"] { --flat: #e4edf8; --bg: #e4edf8; --ground: linear-gradient(180deg, #e0ebf8 0%, #edf3fa 100%); }
:root[data-theme="light"]:not([data-themed]) .home { --top-ground: #e8f0fa; --foot-ground: #eef0f3; }

.home { background: var(--foot-ground, var(--bg)); color: var(--ink); }
.home .app-bg i { display: none; }                         /* nothing drifts behind the page */
/* Behind the sheets (it only shows where a browser lets the page be pulled past its ends): the hero's
   colour above, the footer's below. */
.home .app-bg { background: linear-gradient(var(--edge-top, var(--top-ground, var(--bg))) 0 50%, var(--edge-foot, var(--foot-ground, var(--bg))) 50% 100%); }
/* On an iPhone, Safari (26 and later) colours the strip behind the clock and the strip behind its own bar
   from whatever is fixed, and can be seen, at the very top and the very foot of the screen; it does not
   follow the page behind. So home.js keeps one thin strip at each of those two edges, in the colour of
   the sheet that is there (a new strip each time the colour changes: Safari looks again only then).
   Each is the colour of what it lies on, so it is not seen as a thing of its own. */
.edge-strip { position: fixed; left: 0; right: 0; height: 12px; z-index: 51; pointer-events: none; }      /* (thinner than this and Safari passes it by) */
/* (The nav's own things sit a little lower then, clear of the strip.) */
.edge-strips .home .nav { padding-top: 4px; }
.edge-strip.at-top { top: 0; }
.edge-strip.at-foot { bottom: 0; }
/* (While Safari's bar is at its full size it floats over the foot of the page: the colour is carried on
   down behind it, so the bar stands on one even ground.) */
.edge-strip.at-foot::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(100lvh - 100dvh); background: inherit; }
.home .wrap { max-width: 1200px; padding-inline: clamp(22px, 5vw, 60px); }
.home ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Appearing: once, one easing, a 24px rise ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
/* Words that light one after another, once (motion.js: lightWords). */
.lw { transition: opacity .8s ease; }
.lighting .lw { opacity: .2; }
.lighting.lit .lw { opacity: 1; }

/* ---------- Buttons and links (their colours are the tone's, so they are right on every ground) ---------- */
.home .capsule {
  min-height: 48px; padding: 0 26px; font: 500 16px/1 var(--sans); letter-spacing: -.005em; box-shadow: none;
  transition: transform .32s var(--spring), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.home .capsule::after { display: none; }
.home .capsule:hover { filter: none; }
.home .capsule.on-dark, .home .capsule.ink { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.home .capsule.on-dark:hover, .home .capsule.ink:hover { background: color-mix(in srgb, var(--btn) 84%, var(--btn-ink)); }
.home .capsule.plain, .home .capsule.glass { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.home .capsule.plain:hover, .home .capsule.glass:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--grey-2); }
.home .pressable:active { transform: scale(.97); opacity: 1; }
.home .capsule:active { opacity: .86; }
/* A link: blue, plain, with its small sign beside it. */
.quiet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 400 17px/1.2 var(--sans); color: var(--link); letter-spacing: -.005em; transition: opacity .2s ease; }
.quiet-link .mark { flex: none; transition: transform .5s var(--ease); }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.quiet-link:hover [data-mark="arrowRight"] .mark, .quiet-link:hover > .mark:last-child { transform: translateX(3px); }
.quiet-link:active, .text-link:active { opacity: .6; }
[data-mark] { display: inline-grid; place-items: center; }
.text-link { font: 400 15px/1.3 var(--sans); color: var(--link); opacity: 1; text-decoration: none; transition: opacity .2s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home .eyebrow { font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); margin: 0; }

/* ---------- Navigation: slim glass that takes the tone of the section under it ---------- */
.home .nav-row { height: 56px; gap: 28px; }
.home .nav { color: var(--ink); transition: background .35s ease, box-shadow .35s ease, color .35s ease; }
.home .nav.scrolled, .menu-open .home .nav {
  background: color-mix(in srgb, var(--flat) 76%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.home .brand { gap: 10px; }
.home .nav .logo-mark { --s: 31px !important; }
/* (Both logos are there, one over the other; which shows is the tone's.) */
.home .nav .logo-mark img { position: absolute; inset: 0; display: block; transition: opacity .35s ease; }
.home .nav .logo-mark .dark { opacity: var(--on-dark); }
.home .nav .logo-mark .light { opacity: calc(1 - var(--on-dark)); }
.home .brand-name { font: 400 18px/1 var(--serif); letter-spacing: -.01em; }
.home .nav-links { gap: 30px; }
.home .nav-links a { font: 400 13px/1 var(--sans); letter-spacing: .005em; color: var(--grey); padding: 12px 0; transition: color .3s ease; }
.home .nav-links a:hover, .home .nav-links a.on { color: var(--ink); }
.home .nav-mark { height: 1px; bottom: 6px; }
.home .nav-actions { gap: 6px; }
.home .nav-cta { min-height: 34px; padding: 0 16px; font: 500 13px/1 var(--sans); margin-left: 6px; }
.home .nav .theme-toggle, .home .menu-btn { background: none; box-shadow: none; color: var(--grey); transition: color .3s ease; }
.home .nav .theme-toggle { --s: 38px !important; }
.home .nav .theme-toggle:hover { color: var(--ink); }
.home .menu-btn { width: 40px; height: 40px; }
.home .menu-btn i { left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .45s var(--ease-out), background .3s ease; }
.home .nav-progress { height: 1px; background: var(--ink); transition: opacity .3s ease, background .3s ease; }
.home .nav.scrolled .nav-progress { opacity: .5; }
.menu-open .home .nav .nav-progress { opacity: 0; }
.home .menu { padding-top: calc(84px + env(safe-area-inset-top)); }
.home .menu-links a:active { opacity: .6; }
/* (The bar that floats up on a phone is a card of its own, so it reads on every ground; a firmer edge.) */
.home .offer-bar { box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 34px rgba(0, 0, 0, .34); }
.home .menu-links a { font: 400 clamp(30px, 8.4vw, 42px)/1.1 var(--serif); letter-spacing: -.02em; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--line); }
.home .menu-foot .theme-toggle { background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 560px) {
  .home .nav-row { gap: 8px; }
  .home .brand-name { font-size: 17px; }
}

/* ---------- Hero: deep blue, the monogram, the title ---------- */
/* (The ground is the stage's; under the stage, where the next sheet's corners show it, the hero is its foot colour.) */
.home .hero { position: relative; background: var(--foot, var(--flat)); padding-bottom: var(--sheet); }
.hero-stage {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  padding-top: var(--nav); color: var(--ink); background: var(--ground);
  touch-action: pan-y pinch-zoom;
}
/* The stage stays while the page scrolls on, for a screen and a half: the handoff. (--hero-need: how tall the
   hero's own words and buttons are, measured by home.js; on a short screen the stage is that tall, and
   holds once its foot has come up into view.) */
.motion .home .hero {
  --content: max(var(--stage), var(--hero-need, 0px));                              /* the room its words are set in */
  --full: max(calc(var(--stage) + var(--apron)), var(--hero-need, 0px));             /* the stage itself: the whole screen, bars away */
  height: calc(var(--full) + var(--hero-hold)); padding-bottom: 0;
}
/* (Held with its foot at the foot of the screen as it is with the bars away. So on a phone whose screen
   the words fit, with the bars away, the stage never slides up before it is held, and the monogram is
   whole and in view when it starts to come forward.) */
.motion .hero-stage { position: sticky; top: min(0px, calc(var(--screen) + var(--apron) - var(--full))); height: var(--full); min-height: 0; padding-bottom: calc(var(--full) - var(--content)); }
/* The one soft, still glow, behind the monogram. */
.hero-glow {
  position: absolute; z-index: 0; left: 50%; top: var(--mark-y, 27%); width: min(150vw, 1180px); aspect-ratio: 1;
  transform: translate(-50%, -50%); background: var(--halo); pointer-events: none;
}
.scene-gl { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 14px; }
.home .hero-inner { max-width: 1400px; }
.hero-mark { width: clamp(190px, min(33vw, 31vh), 480px); aspect-ratio: 900 / 622; margin-bottom: clamp(18px, 3.4vh, 46px); }
/* The still picture waits a moment before showing: where WebGL draws the monogram it never needs to, and
   gives way; where there's no WebGL (.still, set as the page starts) it shows at once. */
.mark-metal { position: relative; width: 100%; height: 100%; animation: mark-in 1.6s var(--ease) .8s both; transition: opacity .5s ease; }
.still .mark-metal { animation-delay: 0s; }
.gl-on .mark-metal { opacity: 0 !important; animation: none; }
@keyframes mark-in { from { opacity: 0; } }
.mark-metal img { width: 100%; height: 100%; }
.mark-metal .light { display: none; }
:root[data-theme="light"] .mark-metal .dark { display: none; }
:root[data-theme="light"] .mark-metal .light { display: block; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.motion .hero-copy, .motion .hero-foot { will-change: transform, opacity; }
.hero-copy.gone, .hero-foot.gone { visibility: hidden; }
.home .hero-eyebrow { margin: 0 0 clamp(12px, 2vh, 22px); color: var(--grey); }
.hero-title { font: 400 clamp(3.2rem, min(9.6vw, 14.2vh), 10.2rem)/.95 var(--serif); letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.hero-sub { font-size: clamp(1.06rem, 1.45vw, 1.3rem); line-height: 1.45; color: var(--grey); max-width: 33em; margin: clamp(16px, 2.6vh, 30px) 0 0; text-wrap: pretty; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 30px; margin-top: clamp(20px, 3.2vh, 36px); }
.hero-offer { margin-top: clamp(12px, 2vh, 22px); min-height: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.hero-offer:empty { display: none; }
.hero-offer:has(.store-stack) { align-items: flex-start; }
.hero-offer .text-link { align-self: center; }

/* The handoff: one verse on the dark, the Greek turning into Thomson's English as the page scrolls. */
.hero-verse { position: absolute; z-index: 2; inset: var(--nav) 0 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3.4vh, 34px); padding: 0 clamp(22px, 5vw, 60px) 5vh; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.motion .hero-verse { display: flex; }
.hv-text { position: relative; width: min(1040px, 100%); height: 4.7em; font-size: clamp(1.8rem, min(5.4vw, 8.6vh), 4.6rem); }
.hv-text .hw-layer { position: absolute; inset: auto 0; top: 50%; transform: translateY(-50%); text-align: center; font: 400 1em/1.12 var(--serif); letter-spacing: -.018em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
.hv-text .hw-layer.greek { font-family: var(--greek); font-size: 1.02em; letter-spacing: 0; }
.hw-layer .b { color: var(--accent); }
.hv-text .hw-layer.melt { filter: blur(.09em); }
.hw-word { display: inline-block; white-space: nowrap; }
.hv-ref { margin: 0; font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }

/* "And there was light." As the verse finishes, the ground turns from the dark to the paper of the next
   sheet, outward from the middle of the verse: this is that paper, with the same words on it in ink (the
   blue stays blue), shown through a soft round opening that home.js widens with the scroll. */
.hero-dawn {
  position: absolute; z-index: 3; inset: 0; display: none; visibility: hidden; pointer-events: none; background: var(--ground); color: var(--ink);
  -webkit-clip-path: circle(0px at 50% 50%); clip-path: circle(0px at 50% 50%);
}
.motion .hero-dawn { display: block; }
.hero-dawn.on { visibility: visible; will-change: transform; }
.hero-dawn.full { -webkit-clip-path: none; clip-path: none; will-change: auto; }
/* (The opening is a plain circle, which costs a phone nothing to redraw as it widens; its soft edge is
   this ring of the same paper around it, one picture that home.js only scales.) */
.hero-dawn-ring {
  position: absolute; z-index: 3; left: 50%; top: var(--dawn-y, 50%); width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%;
  display: none; visibility: hidden; pointer-events: none; transform: scale(0); will-change: transform;
  background: radial-gradient(closest-side, var(--flat) 77%, color-mix(in srgb, var(--flat) 55%, transparent) 87%, color-mix(in srgb, var(--flat) 0%, transparent) 100%);
}
.motion .hero-dawn-ring { display: block; }
.hero-dawn-ring.on { visibility: visible; }
.hero-dawn .hero-verse { opacity: 1; will-change: auto; }

/* The strip at the foot: a verse that turns slowly from English into Greek and on into the next, and
   three quiet counts. */
.hero-foot { position: relative; z-index: 2; box-shadow: inset 0 1px 0 var(--line); }
.hero-foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(16px, 2.6vh, 26px) calc(clamp(16px, 2.6vh, 26px) + env(safe-area-inset-bottom)); }
.hero-writing { min-width: 0; max-width: 44em; }
.hw-ref { display: block; min-height: 1.2em; margin-bottom: 7px; font: 500 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }
/* (Three lines' room; the two verses lie one over the other while one turns into the next.) */
.hw-lines { position: relative; height: 4.5em; overflow: hidden; font: 400 clamp(15px, 1.25vw, 17.5px)/1.5 var(--serif); color: var(--grey); }
.hw-lines .hw-layer { position: absolute; inset: 0; text-wrap: pretty; }
.hw-lines .hw-layer.greek { font-family: var(--greek); }
.hw-lines .hw-layer.melt { filter: blur(2.5px); }
.facts { display: flex; margin: 0; }
.facts > div { padding: 2px clamp(18px, 2.4vw, 34px); box-shadow: inset 1px 0 0 var(--line); }
.facts > div:last-child { padding-right: 0; }
.facts dd { margin: 0; font: 400 clamp(22px, 2.2vw, 30px)/1 var(--scripture); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.facts dt { margin-top: 8px; font: 400 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); }
@media (max-width: 760px) {
  .hero-foot-row { grid-template-columns: 1fr; gap: 14px; }
  .hw-lines { font-size: 14.5px; }
  .facts { justify-content: space-between; }
  .facts > div { padding: 0; box-shadow: none; }
}
@media (max-width: 600px) {
  .hero-buttons { gap: 4px 26px; }
  .hero-sub { font-size: 1.02rem; }
}
/* On a narrow screen the monogram and the title take the width: two large lines. Everything is drawn in
   a little so the whole hero fits a phone's screen (then nothing has to slide up under the nav before the
   stage is held): a slightly smaller monogram, closer spacing, and the three counts on one line. */
@media (max-width: 700px) {
  .hero-inner { padding-block: 6px; }
  .hero-mark { width: clamp(150px, min(54vw, 24vh), 400px); margin-bottom: clamp(12px, 2.2vh, 26px); }
  .hero-title { font-size: clamp(3.2rem, min(14.6vw, 10.5vh), 6rem); line-height: .98; }
  .home .hero-eyebrow { margin-bottom: clamp(10px, 1.6vh, 18px); }
  .hero-sub { margin-top: clamp(12px, 2vh, 24px); }
  .hero-buttons { margin-top: clamp(14px, 2.4vh, 30px); }
  .hero-offer { margin-top: clamp(10px, 1.6vh, 18px); }
  .hero-foot-row { gap: 10px; padding-block: 12px calc(12px + env(safe-area-inset-bottom)); }
  .hw-ref { margin-bottom: 4px; }
  .facts > div { display: flex; align-items: baseline; gap: 6px; }
  .facts dd { font-size: 17px; }
  .facts dt { margin-top: 0; font-size: 10px; }
}
/* (On a short screen the verse at the foot keeps to two lines, so everything is in view at once. On a
   phone it is always two: there the window's height changes as the browser's bars come and go, and the
   hero must not change height with it.) */
@media (min-width: 761px) and (max-height: 800px) { .hw-lines { height: 3em; } }
@media (max-width: 760px) { .hw-lines { height: 3em; } }

/* ---------- Sections: sheets, each on its own ground ---------- */
.home main > section, .home .footer { position: relative; background: var(--ground); color: var(--ink); }
/* Each is laid over the foot of the one before, with large rounded top corners. */
.home main > section + section, .home .footer { margin-top: calc(var(--sheet) * -1); border-radius: var(--sheet) var(--sheet) 0 0; }
.home section[id] { scroll-margin-top: 0; }
.section { padding: clamp(96px, 15vh, 190px) 0 calc(clamp(96px, 15vh, 190px) + var(--sheet)); }
/* A section's heading: centred, very large. */
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head .eyebrow { margin-bottom: clamp(18px, 2.4vw, 28px); }
.section-title { font: 400 clamp(2.9rem, 2rem + 4.6vw, 6.2rem)/1 var(--serif); letter-spacing: -.022em; margin: 0; max-width: 13em; text-wrap: balance; }
.section-lead { font-size: clamp(1.125rem, 1.55vw, 1.4rem); line-height: 1.45; color: var(--grey); max-width: 32em; margin: clamp(18px, 2.4vw, 30px) 0 0; text-wrap: pretty; }

/* ---------- Reading: a working page, in a phone ---------- */
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); grid-template-areas: "now stage" "tabs stage" "open stage";
  grid-template-rows: auto auto 1fr; gap: 0 clamp(40px, 7vw, 120px); margin-top: clamp(56px, 8vw, 110px); align-items: start;
}
/* The feature chosen, set large, with its one line. */
.demo-now { grid-area: now; min-height: clamp(12.5rem, 20vw, 17.8rem); }
.demo-title { margin: 0; font: 400 clamp(2.2rem, 4.3vw, 4.2rem)/1.03 var(--serif); letter-spacing: -.022em; max-width: 11em; text-wrap: balance; }
.demo-caption { margin: clamp(14px, 1.6vw, 20px) 0 0; font-size: clamp(1.06rem, 1.3vw, 1.25rem); line-height: 1.45; color: var(--grey); max-width: 30em; text-wrap: pretty; }
/* The five, as a slim list: where you are in it is the hairline that fills across the top of its row. */
.demo-tabs { grid-area: tabs; list-style: none; margin: clamp(26px, 3.6vw, 44px) 0 0; padding: 0; max-width: 30em; }
.demo-tab { position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left; padding: 14px 0; font: 400 16px/1.3 var(--sans); color: var(--grey-2); box-shadow: inset 0 1px 0 var(--line); transition: color .3s ease; }
.demo-tabs li:last-child .demo-tab { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-pressed="true"] { color: var(--ink); }
.tab-n { flex: none; width: 1.3em; font: 400 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--grey-2); }
.tab-t strong { font-weight: 400; }
.tab-t small { display: none; }
.tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html:not(.motion) .demo-tab[aria-pressed="true"] .tab-bar { transform: none; }
.demo-open { grid-area: open; justify-self: start; margin-top: clamp(20px, 2.6vw, 32px); }
.demo-stage { grid-area: stage; width: 100%; padding: 12px; }
.phone-tilt { position: relative; }

/* Held: the demo keeps the screen while the page scrolls through its five features, a little under two
   screens of scrolling. */
.motion .demo-track { height: calc(var(--stage) + 5 * var(--feature-hold)); }
.motion .demo-pin { position: sticky; top: var(--stage-top); height: var(--stage); padding-top: var(--nav); display: flex; align-items: center; }
.motion .demo-pin > .wrap { height: 100%; display: flex; align-items: center; }
.motion .demo {
  margin-top: 0; width: 100%; align-items: center; --demo-h: calc(var(--stage) - var(--nav) - 84px);
  grid-template-areas: ". stage" "now stage" "tabs stage" "open stage" ". stage"; grid-template-rows: 1fr auto auto auto 1fr;
}
.motion .demo-stage { height: var(--demo-h); padding: 0; display: grid; place-items: center; }
.motion .phone-tilt { width: 372px; height: 666px; }      /* (demo.js fits it to the room there is) */
.motion .ph { position: absolute; left: 0; top: 0; width: 372px; height: 666px; aspect-ratio: auto; transform-origin: 0 0; transform: scale(var(--k, 1)); }

/* The phone: the reader as it is in the app, in a thin dark frame. */
.ph {
  --fs: 16px; --ls: 1;
  --bg: rgb(9, 14, 20); --surface: rgb(20, 31, 43); --raised: rgb(29, 43, 58); --ink: #fff; --ink-2: rgba(255, 255, 255, .62); --ink-3: rgba(255, 255, 255, .36);
  --accent: rgb(64, 158, 214); --stroke: rgba(255, 255, 255, .08); --shadow: rgba(0, 0, 0, .35); --selection: rgba(0, 118, 186, .32);
  --shade-a: rgba(0, 0, 0, .25); --shade-b: rgba(0, 0, 0, .55); --shade-c: rgba(0, 0, 0, .85); --art: .85;
  position: relative; width: 100%; aspect-ratio: 402 / 790; border-radius: 46px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--ink); user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 9px var(--bezel), 0 0 0 10px var(--line-2), 0 34px 44px -22px var(--lift), 0 70px 90px -46px var(--lift);
  transition: background .4s ease, color .4s ease;
}
/* The phone's own Dark and Light (it follows the page's, until the visitor chooses in "Your size, your light"). */
:root[data-theme="light"] .ph:not([data-look="dark"]), :root .ph[data-look="light"] {
  --bg: rgb(236, 243, 250); --surface: #fff; --raised: rgb(236, 241, 247); --ink: #000; --ink-2: rgba(0, 0, 0, .55); --ink-3: rgba(0, 0, 0, .3);
  --accent: rgb(0, 118, 186); --stroke: rgba(0, 0, 0, .06); --shadow: rgba(0, 40, 70, .1); --selection: rgba(0, 118, 186, .16);
  --shade-a: rgba(255, 255, 255, .35); --shade-b: rgba(255, 255, 255, .6); --shade-c: rgba(255, 255, 255, .85); --art: .35;
}
.ph-bg { position: absolute; inset: -20%; z-index: -2; background-size: cover; background-position: center; filter: blur(40px); opacity: var(--art); transition: opacity .4s ease; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--shade-a), var(--shade-b), var(--shade-c)); }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 44px 14px 0; }
.sb-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke), 0 3px 8px var(--shadow); color: var(--ink); transition: background .4s ease; }
.sb-title { font: 700 20px/1 var(--serif); display: flex; align-items: center; gap: 6px; }
.ph-stage { position: absolute; left: 0; right: 0; top: 98px; bottom: 44px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.demo[data-mode="pages"] .ph-stage { cursor: grab; }
.ph-pages { display: flex; height: 100%; transition: transform .6s var(--ease-out); }
.ph-page { flex: 0 0 100%; height: 100%; padding: 0 24px; overflow: hidden; }
.ph .page-text { transition: color .4s ease; }
.ph-count { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font: italic 12px/1 var(--serif); color: var(--ink-2); transition: opacity .3s ease; }

/* blue: the words of God and of Christ stand out from the page */
.ph .vt, .ph .vt span { transition: color .5s ease, background-color .4s ease; }
.ph.m-blue .page-text .vt { color: var(--ink-3); }
.ph.m-blue .page-text .w-blue { color: var(--accent); }
/* links: the semibold words, and where they lead */
.ph.m-links .page-text .w-bold { color: var(--accent); }
.ph.m-links .page-text .v.sel .vt { background: var(--selection); }
/* scroll */
.ph.m-scroll .ph-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: auto; }
.ph.m-scroll .ph-stage::-webkit-scrollbar { display: none; }
.ph.m-scroll .ph-pages { flex-direction: column; height: auto; transform: none !important; transition: none; }
.ph.m-scroll .ph-page { flex: none; height: auto; overflow: visible; padding-bottom: 0; }
.ph.m-scroll .ph-page:last-child { padding-bottom: 70px; }
.ph.m-scroll .ph-count { opacity: 0; }

.ph-sheet {
  position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 2; border-radius: 28px; padding: 14px; display: grid; gap: 10px;
  background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke), 0 14px 34px rgba(0, 0, 0, .4);
  transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease-out), background .4s ease; touch-action: manipulation;
}
.ph-sheet.open { transform: none; }
.ph-sheet.slim { left: 50%; right: auto; width: 190px; margin-left: -95px; padding: 5px; border-radius: 999px; bottom: 36px; }
.ph-sheet-title { margin: 2px 4px 0; font: 700 11px/1.2 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.ph-links, .ph-results { display: grid; gap: 8px; }
.ph-link { display: block; padding: 11px 12px; border-radius: 16px; background: var(--raised); color: var(--ink); }
.ph-link-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-link-head b { font: 600 14px/1.25 var(--sans); }
.ph-link-head span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.ph-link-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 4px; font: 400 14px/1.38 var(--scripture); color: var(--ink-2); }
.ph-link-text.full { display: block; color: var(--ink); font-size: 16.5px; line-height: 1.45; margin-top: 8px; }
.ph-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 999px; background: var(--raised); }
.ph-sheet.slim .ph-seg { background: transparent; padding: 0; }
.ph-seg button { min-height: 34px; border-radius: 999px; font: 600 13.5px/1 var(--sans); color: var(--ink-2); transition: background .3s ease, color .3s ease; }
.ph-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ph-size { display: flex; align-items: center; gap: 10px; padding: 4px 4px 2px; }
.ph-size .a { font-family: var(--scripture); line-height: 1; }
.ph-size .small { font-size: 14px; }
.ph-size .big { font-size: 22px; }
.ph-size input {
  --k: .33; flex: 1; min-width: 0; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: none; cursor: pointer;
}
.ph-size input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) calc(var(--k) * 100%), var(--raised) 0); }
.ph-size input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) calc(var(--k) * 100%), var(--raised) 0); }
.ph-size input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 0; }
.ph-size input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 0; }
.ph-search {
  position: absolute; inset: 0; z-index: 3; padding: 56px 14px 14px; display: grid; align-content: start; gap: 12px; background: var(--bg);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s ease, transform .55s var(--ease-out);
}
.ph-search.open { opacity: 1; transform: none; pointer-events: auto; }
.ph-field { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke); color: var(--ink-2); cursor: text; }
.ph-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 16px/1.2 var(--sans); user-select: text; -webkit-user-select: text; -webkit-appearance: none; appearance: none; }
.ph-field input::-webkit-search-cancel-button { display: none; }
.ph-field input::placeholder { color: var(--ink-3); }
.ph-link.show { animation: pop-in .6s var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "tabs" "stage" "open"; grid-template-rows: none; gap: 0; }
  .demo-now { min-height: 0; text-align: center; }
  .demo-title { font-size: clamp(1.6rem, 6.4vw, 2.7rem); line-height: 1.06; margin-inline: auto; max-width: 13em; }
  .demo-caption { margin: 8px auto 0; font-size: clamp(15px, 2.9vw, 17px); line-height: 1.4; min-height: 2.8em; }
  /* The five in one row; the chosen one comes into view (demo.js). */
  .demo-tabs {
    display: flex; gap: 24px; max-width: none; overflow-x: auto; scrollbar-width: none; margin-top: 14px;
    margin-inline: calc(clamp(22px, 5vw, 60px) * -1); padding-inline: clamp(22px, 5vw, 60px); box-shadow: inset 0 -1px 0 var(--line);
  }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tabs li { flex: none; }
  .demo-tab, .demo-tabs li:last-child .demo-tab { width: auto; gap: 8px; padding: 12px 0; white-space: nowrap; box-shadow: none; font-size: clamp(14px, 2.7vw, 16px); }
  .tab-bar { top: auto; bottom: 0; }
  .demo-stage { max-width: 340px; margin: 28px auto 0; }
  .ph { aspect-ratio: 402 / 720; border-radius: 42px; }
  .demo-open { justify-self: center; margin-top: 26px; }

  /* Held, on a phone: the feature, the row of five, and the phone as large as the screen leaves room
     for. "Open the reader" waits just under the stage, where the page goes next. */
  .motion .demo-track { height: calc(var(--stage) + 5 * var(--feature-hold)); margin-bottom: 76px; }
  .motion .demo-pin, .motion .demo-pin > .wrap { align-items: stretch; }
  .motion .demo { grid-template-areas: "now" "tabs" "stage"; grid-template-rows: auto auto minmax(0, 1fr); padding: 10px 0 14px; align-content: stretch; }
  .motion .demo-now { min-height: clamp(6.9rem, 26vw, 9.6rem); }
  .motion .demo-stage { height: auto; min-height: 0; max-width: none; margin: 10px 0 0; align-self: stretch; }
  .motion .ph { width: 340px; height: 541px; }
  .motion .demo-open { position: absolute; left: 0; right: 0; top: calc(100% + 12px); width: max-content; margin: 0 auto; grid-area: auto; }
}

/* ---------- The library: the sixty-six covers, a full-width row on the darkest ground ---------- */
.bookshelf { position: relative; margin-top: clamp(30px, 4.4vw, 64px); }
/* A soft, still pool of light under the row. */
.bookshelf::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: calc(var(--cover, 300px) * .34); width: min(150vw, 1800px); height: calc(var(--cover, 300px) * 1.7);
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 118, 186, .34), rgba(0, 118, 186, .12) 46%, rgba(0, 118, 186, 0) 72%);
}
:root[data-theme="light"] .bookshelf::before { opacity: .4; }
:root[data-themed] .bookshelf::before { display: none; }
/* The row only ever scrolls sideways (so a wheel or a finger moving up or down moves the page). */
.bs-rail {
  position: relative; z-index: 1;
  display: flex; column-gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding: clamp(20px, 3vw, 40px) var(--pad, 40vw) clamp(56px, 6.4vw, 88px); -webkit-overflow-scrolling: touch;
  cursor: grab; outline-offset: -4px; touch-action: pan-x pan-y pinch-zoom;
}
.bs-rail::-webkit-scrollbar { display: none; }
.bs-rail.dragging { scroll-snap-type: none; cursor: grabbing; }
.bs-rail.dragging .bs-item { pointer-events: none; }
.bs-item {
  position: relative; flex: none; display: block; width: var(--cover, 260px); height: var(--cover, 260px); scroll-snap-align: center;
  border-radius: calc(var(--cover, 260px) * .035); background: var(--raised); -webkit-user-drag: none;
  box-shadow: 0 34px 54px -26px var(--lift), 0 12px 22px -12px var(--lift);
}
.bs-item .tb-cover { border-radius: inherit !important; }
.bs-item.mid { cursor: pointer; }
.bs-item { transition: filter .3s ease; }
.bs-item:hover { filter: brightness(1.08); }
.bs-foot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 0; }
.bs-name { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); width: 100%; }
.bs-caption { min-width: min(13em, 60vw); }
.bs-caption strong { display: block; font: 400 clamp(2.2rem, 1.4rem + 3vw, 4rem)/1.05 var(--serif); letter-spacing: -.022em; }
.bs-caption span { display: block; margin-top: 10px; color: var(--grey); font-size: clamp(15px, 1.2vw, 17px); }
.bs-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity .3s ease, box-shadow .3s ease, background .3s ease, transform .2s ease; }
.bs-arrow:hover { box-shadow: inset 0 0 0 1px var(--grey-2); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.bs-arrow:active { transform: scale(.94); }
.bs-arrow:disabled { opacity: .3; cursor: default; }
.bs-read { margin-top: 12px; }
.bs-switch { display: inline-flex; gap: 2px; padding: 3px; margin-top: clamp(26px, 3.4vw, 44px); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.bs-switch button { min-height: 36px; padding: 0 18px; border-radius: 999px; font: 400 14px/1 var(--sans); color: var(--grey); white-space: nowrap; transition: background .3s ease, color .3s ease; }
.bs-switch button:hover { color: var(--ink); }
.bs-switch button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.bs-counts { display: flex; justify-content: center; margin: clamp(26px, 3.4vw, 44px) 0 0; }
.bs-counts > div { padding: 2px clamp(20px, 3vw, 40px); }
.bs-counts > div + div { box-shadow: inset 1px 0 0 var(--line); }
.bs-counts dd { margin: 0; font: 400 clamp(22px, 2.2vw, 30px)/1 var(--scripture); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.bs-counts dt { margin-top: 8px; font: 400 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); }
@media (max-width: 700px) {
  .bs-arrow { display: none; }
}

/* ---------- The app: the real app, on a Mac, an iPad and an iPhone ---------- */
.app-grid { display: block; }
.app-copy { max-width: 54rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The three points: one line, a hairline between. */
.app-points { list-style: none; padding: 0; margin: clamp(26px, 3.2vw, 40px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.4; }
.app-points li { padding: 4px clamp(16px, 2.2vw, 30px); }
.app-points li + li { box-shadow: inset 1px 0 0 var(--line-2); }
.app-store { margin-top: clamp(26px, 3vw, 38px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.app-store:has(.store-stack) { align-items: flex-start; }
.app-store .text-link { align-self: center; }
.devices { margin-top: clamp(48px, 7vw, 104px); }
/* The three stand on one line, wider than the text above them. Their frames are drawn here: a thin dark
   bezel, a hairline, and a soft shadow on the pale ground. They arrive with a small drift (home.js sets
   --drift from 1 to 0 as they come up the screen). */
.family {
  --w: min(100vw - 2 * clamp(14px, 3vw, 48px), 1300px);
  position: relative; width: var(--w); margin-inline: calc((100% - var(--w)) / 2); aspect-ratio: 1080 / 462; container-type: inline-size;
}
.dev { position: absolute; margin: 0; bottom: 0; transform: translate3d(0, calc(var(--drift, 0) * var(--far, 30px)), 0); }
.motion .dev { will-change: transform; }
.dev .screen { display: block; overflow: hidden; background: #000; border: 8px solid var(--bezel); border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 3.4cqw 5cqw -2.6cqw var(--lift), 0 1.2cqw 2cqw -1.2cqw var(--lift); }
.dev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dev.mac { left: 15%; width: 64%; --far: 22px; }
.dev.mac .screen { aspect-ratio: 16 / 10; border-width: .85cqw; border-radius: 1.5cqw 1.5cqw .4cqw .4cqw; }
.dev.mac .base { display: block; height: 1.15cqw; margin: 1px -9% 0; border-radius: .2cqw .2cqw 1.3cqw 1.3cqw; background: var(--mac-base); box-shadow: 0 0 0 1px var(--line-2); }
.dev.ipad { left: 67%; width: 25%; --far: 52px; }
.dev.ipad .screen { aspect-ratio: 3 / 4; border-width: .95cqw; border-radius: 2.1cqw; }
.dev.iphone { left: 7.5%; width: 13.2%; --far: 72px; }
.dev.iphone .screen { aspect-ratio: 600 / 1303; border-width: .55cqw; border-radius: 2.5cqw; }
/* On Android there is no app to get: three pictures of this website on a phone instead. */
.phones { display: none; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 36px); }
.app.android .family { display: none; }
.app.android .phones { display: flex; }
.phone { position: relative; margin: 0; width: clamp(96px, 22vw, 250px); aspect-ratio: 1206 / 2622; }
.phone.p2 { width: clamp(110px, 25vw, 290px); order: 2; }
.phone.p1 { order: 1; }
.phone.p3 { order: 3; }
.phone .glass { position: absolute; inset: 0; border-radius: clamp(16px, 3.4vw, 40px); overflow: hidden; background: #000; border: clamp(3px, .6vw, 7px) solid var(--bezel); box-shadow: 0 0 0 1px var(--line-2); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  /* (Larger on a phone: the Mac runs a little past the edges; the points one under another.) */
  .family { --w: 124%; margin-inline: -12%; }
  .app-points { flex-direction: column; align-items: center; }
  .app-points li { padding: 10px 6px; min-width: min(20em, 100%); }
  .app-points li + li { box-shadow: inset 0 1px 0 var(--line); }
}

/* ---------- App Store badge (Apple's own artwork, used unchanged) ---------- */
.store-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.store-note { font: 400 12.5px/1.2 var(--sans); letter-spacing: .01em; color: var(--grey); opacity: 1; }
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.store-badge:hover { opacity: .85; }
.store-badge:active { opacity: .7; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge .light { display: none; }
:root[data-theme="light"] .store-badge .dark { display: none; }
:root[data-theme="light"] .store-badge .light { display: block; }
/* (On a light ground in the dark look, Apple's black badge.) */
:root:not([data-themed], [data-black], [data-theme="light"]) .home :is([data-tone="paper"], [data-tone="mist"]) .store-badge .dark { display: none; }
:root:not([data-themed], [data-black], [data-theme="light"]) .home :is([data-tone="paper"], [data-tone="mist"]) .store-badge .light { display: block; }

/* ---------- Story: seven firsts, as seven calm rows ---------- */
.firsts { list-style: none; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0; }
.firsts li {
  display: grid; grid-template-columns: minmax(120px, 1fr) 2.7fr; gap: 0 clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(30px, 4vw, 56px) 0; box-shadow: inset 0 1px 0 var(--line);
}
.firsts li:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
/* (The numerals are in the Bible's own face, Source Serif, whose figures all stand the same height; in the
   monogram's silver.) */
.firsts .num {
  display: block; width: fit-content; font: 400 clamp(96px, 13.5vw, 204px)/.8 var(--scripture); font-variant-numeric: lining-nums; letter-spacing: -.03em;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--silver);
}
.firsts p { margin: 0; max-width: 19em; font: 400 clamp(1.6rem, 3.2vw, 2.9rem)/1.16 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.firsts em { font-style: italic; }
@media (max-width: 760px) {
  .firsts li { grid-template-columns: 1fr; gap: 20px 0; }
  .firsts .num { font-size: clamp(96px, 26vw, 150px); }
}

/* The man behind it, and his dates. */
.life { display: grid; grid-template-columns: 1fr 1.7fr; gap: 36px clamp(40px, 8vw, 130px); margin-top: clamp(110px, 17vh, 220px); align-items: start; }
.life-intro { position: sticky; top: calc(var(--nav) + 40px); }
.life-intro h3 { font: 400 clamp(2rem, 3.7vw, 3.5rem)/1.04 var(--serif); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.life-intro p { margin: clamp(16px, 2vw, 24px) 0 0; color: var(--grey); font-size: clamp(1.06rem, 1.3vw, 1.25rem); line-height: 1.45; max-width: 26em; text-wrap: pretty; }
/* A line runs down the years, drawn once as they come into view (home.js adds .drawn); each year has
   its mark on it. */
.timeline { --in: clamp(26px, 3vw, 40px); position: relative; list-style: none; margin: 0; padding: 0 0 0 var(--in); }
.timeline::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line-2); transform-origin: top; }
.motion .timeline::before { transform: scaleY(0); transition: transform 2.8s cubic-bezier(.3, 0, .2, 1); }
.motion .timeline.drawn::before { transform: none; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(104px, 8.6em) minmax(0, 1fr); gap: 6px clamp(18px, 3vw, 40px); padding: clamp(20px, 2.4vw, 30px) 0; box-shadow: inset 0 1px 0 var(--line); }
.timeline li::before { content: ""; position: absolute; left: calc(var(--in) * -1); top: calc(clamp(20px, 2.4vw, 30px) + .5em); width: 7px; height: 7px; border-radius: 50%; background: var(--flat); box-shadow: 0 0 0 1.5px var(--grey-2); }
.timeline li:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.timeline .year { font: 400 clamp(20px, 1.9vw, 26px)/1.25 var(--scripture); font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.timeline p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; color: var(--grey); }
.timeline em { color: var(--ink); }
.purpose { margin: clamp(110px, 17vh, 220px) auto 0; max-width: 62rem; text-align: center; }
.purpose p { margin: 0; font: italic 400 clamp(1.6rem, 3.3vw, 3rem)/1.3 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
@media (max-width: 860px) {
  .life { grid-template-columns: 1fr; }
  .life-intro { position: static; }
  .timeline li { grid-template-columns: 1fr; }
}

/* ---------- Video: one large clean frame ---------- */
.home .watch > .wrap { max-width: 1440px; }
.video-track { margin-top: clamp(44px, 6vw, 84px); }
.video-card { position: relative; display: block; border-radius: clamp(16px, 2.2vw, 32px); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-2), 0 70px 130px -70px rgba(0, 118, 186, .55); background: var(--panel); }
:root[data-theme="light"] .video-card { box-shadow: 0 0 0 1px var(--line), 0 60px 90px -60px var(--lift); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-card:hover img { transform: scale(1.015); }
.video-card .play {
  position: absolute; left: 50%; top: 50%; width: clamp(64px, 7.4vw, 104px); height: clamp(64px, 7.4vw, 104px); transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .4s ease, transform .5s var(--ease);
}
.video-card:hover .play { background: rgba(0, 0, 0, .5); transform: translate(-50%, -50%) scale(1.06); }
.video-card:active .play { transform: translate(-50%, -50%) scale(.96); }
.video-card .play [data-mark] { margin-left: 3px; }
.video-card .duration { position: absolute; right: 16px; bottom: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.watch-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; margin-top: clamp(20px, 2.6vw, 34px); }


/* ---------- Support: two plain panels, text first ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 96px); align-items: stretch; }
.home .coffee-card { background: var(--panel); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line), 0 40px 60px -48px var(--lift); padding: clamp(26px, 3.2vw, 44px); gap: clamp(22px, 3vw, 36px); justify-content: space-between; }
.home .coffee-card .glyph-badge, .home .coffee-btn .glyph { display: none; }
.home .coffee-row { display: block; }
.home .coffee-row .eyebrow { margin: 0; white-space: normal; }
.home .coffee-row h3 { margin: clamp(14px, 1.6vw, 20px) 0 0; font: 400 clamp(1.5rem, 2.3vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.home .coffee-text { margin: clamp(12px, 1.4vw, 16px) 0 0; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.5; color: var(--grey); max-width: 30em; }
.home .coffee-btn { width: auto; align-self: flex-start; display: inline-flex; padding: 0 24px; min-height: 46px; white-space: nowrap; }
.support-note { margin: 26px 0 0; font-size: 13px; color: var(--grey-2); text-align: center; }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .home .coffee-btn { white-space: normal; text-align: center; padding: 12px 20px; line-height: 1.25; } }

/* ---------- Closing: the first verse, behind its decorated initial ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; padding: clamp(150px, 26vh, 320px) 0 calc(clamp(150px, 26vh, 320px) + var(--sheet)); }
.closing-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(160vw, 1300px); aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--halo); opacity: .8; pointer-events: none; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-verse { font: 400 clamp(2.1rem, min(5.6vw, 9vh), 4.9rem)/1.1 var(--serif); letter-spacing: -.02em; margin: clamp(22px, 3vw, 36px) 0 clamp(36px, 5vw, 60px); text-wrap: balance; }
/* Set as the page of a book is: the initial two lines tall, the words around it. */
.closing-verse.initialled { text-align: left; width: fit-content; max-width: min(13.6em, 100%); display: flow-root; text-wrap: wrap; }
.closing-verse .initial { float: left; width: 2.1em; height: 2.1em; margin: .08em .19em 0 0; border-radius: .04em; }
.closing-verse .sc { font-size: .8em; letter-spacing: .06em; }

/* ---------- Footer (the homepage's own touches; the shared rules are at the top) ---------- */
.home .footer { background: var(--ground); box-shadow: none; padding: clamp(56px, 8vw, 96px) 0 calc(40px + env(safe-area-inset-bottom)); }
.home .footer .brand-name { font: 400 18px/1 var(--serif); }
.home .footer-brand p { color: var(--grey); font-size: 14px; }
.home .footer-col h3 { font: 500 11px/1.2 var(--sans); letter-spacing: .14em; color: var(--grey-2); margin-bottom: 6px; }
.home .footer-col a, .home .footer-col button { color: var(--grey); font-size: 14px; }
.home .footer-col a:hover, .home .footer-col button:hover { color: var(--ink); }
.home .footer-small { color: var(--grey-2); font-size: 12.5px; box-shadow: inset 0 1px 0 var(--line); padding-top: 22px; margin-top: clamp(40px, 5vw, 64px); }
.home .footer-small a { color: var(--grey); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .lw { transition: none; opacity: 1 !important; }
  .mark-metal { animation: none; }
  .menu, .menu.open, .menu-links a { transition: none; }
}

/* ==================================================================================================
   Round 4: the set pieces. Designed, choreographed motion of objects and graphics; each plays once or
   follows the scroll, none takes the scroll, and with motion turned off each simply stands finished.
   ================================================================================================== */

/* ---------- Lines that rise from behind a mask (motion.js: riseLines) ---------- */
.rise.reveal { opacity: 1; transform: none; }
.rise .w { display: inline-block; clip-path: inset(-.14em -.1em -.26em -.1em); }
.rise .wi { display: inline-block; transform: translateY(128%); transition: transform 1s var(--ease) calc(var(--rd, 0ms) + var(--l, 0) * 90ms); }
.rise.up .wi { transform: none; }
.rise.risen .w { clip-path: none; }

/* ---------- The opening ---------- */
/* The words under the monogram rise from behind a mask, one after another (the title line by line). */
.motion .hero-copy > .reveal:not(.hero-title) {
  opacity: 1; transform: translateY(102%); clip-path: inset(0 -8% 100% -8%);
  transition: transform .9s var(--ease) var(--rd, 0s), clip-path .9s var(--ease) var(--rd, 0s);
}
.motion .hero-copy > .reveal.in:not(.hero-title) { transform: none; clip-path: inset(-40% -8% -40% -8%); }
.hero-eyebrow { --rd: .5s; }
.hero-sub { --rd: 1s; }
.hero-buttons { --rd: 1.12s; }
.hero-offer { --rd: 1.24s; }
.motion .hero .facts.reveal { transition-delay: 1.25s; }
/* (Scrolled meanwhile: everything at once, finished.) */
.hero.skip .reveal, .hero.skip .wi { transition-duration: .01s !important; transition-delay: 0s !important; }
/* Without WebGL the still silver is wiped in from the left instead. */
.still.motion .mark-metal { animation: mark-wipe 1.5s var(--ease) .2s both; }
@keyframes mark-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -4% 0 0); } }

/* ---------- The wall of books ---------- */
/* All sixty-six, small and flat, in Bible order, behind the row of large covers (bookshelf.js flies them
   in as the section comes up the screen, and gives the sizes). Standing still (no motion): the wall as it
   ends, settled back and dim. */
.bookshelf::before { display: none; }
.bs-wallbox { position: relative; z-index: 0; width: var(--wall-w, 100%); height: var(--wall-h, 0px); margin: 0 auto; opacity: .32; transform: scale(.93); transform-origin: 50% 46%; }
.flying .bs-wallbox { opacity: 1; transform: none; will-change: transform, opacity; }
.bs-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 11), var(--tile, 80px)); gap: var(--gap, 10px); justify-content: center; align-content: start; perspective: 1500px; perspective-origin: 50% 42%; }
.bs-tile { position: relative; width: var(--tile, 80px); height: var(--tile, 80px); padding: 0; overflow: hidden; border-radius: calc(var(--tile, 80px) * .07); background: var(--raised); box-shadow: 0 12px 18px -12px var(--lift); cursor: pointer; transition: filter .3s ease; }
/* (Only while the covers are in flight: at rest they are part of the wall's one picture.) */
.flying .bs-wall.live .bs-tile { will-change: transform, opacity; backface-visibility: hidden; }
.bs-tile:hover { filter: brightness(1.18); }
.bs-tile .tb-cover { position: absolute; left: 0; top: 0; transform: scale(var(--k, 1)); transform-origin: 0 0; border-radius: 0 !important; }
/* (How many have landed.) */
.bs-run { position: absolute; right: 0; bottom: calc(100% + 12px); margin: 0; font: 400 12px/1 var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--grey-2); }
.bs-run b { font-weight: 500; color: var(--ink); }
/* The row stands in front of the wall's lower part, over a soft, still pool of light. */
.bs-row { position: relative; z-index: 1; margin-top: calc(var(--wall-h, 0px) * -.62); }
.flying .bs-row { will-change: transform, opacity; }
.bs-row::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: calc(var(--cover, 300px) * .34); width: min(150vw, 1800px); height: calc(var(--cover, 300px) * 1.7);
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 118, 186, .34), rgba(0, 118, 186, .12) 46%, rgba(0, 118, 186, 0) 72%);
}
:root[data-theme="light"] .bs-row::before { opacity: .4; }
:root[data-themed] .bs-row::before { display: none; }

/* ---------- The app: the devices assemble ---------- */
/* The Mac's lid is hinged at its base (home.js turns it with the scroll, and brings the screen on from
   black); the iPad and the iPhone slide in from the sides. */
.home .app { overflow-x: clip; }
.dev { transform: none; }
.motion .devices.reveal { opacity: 1; transform: none; }
.dev.mac { perspective: 150cqw; perspective-origin: 50% 100%; }
.dev.mac .screen { transform-origin: 50% 100%; }
.motion .dev.mac .screen, .motion .dev.ipad, .motion .dev.iphone { will-change: transform, opacity; }
.dev.mac .screen { backface-visibility: hidden; }

/* ---------- The three points, each with a small live graphic made of type ---------- */
.app-points { list-style: none; padding: 0; margin: clamp(44px, 6vw, 84px) auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: clamp(.95rem, 1.15vw, 1.06rem); line-height: 1.4; text-align: center; color: var(--grey); }
.app-points li { padding: 6px clamp(14px, 2.4vw, 34px); display: flex; flex-direction: column; align-items: center; gap: 18px; cursor: default; }
.app-points li + li { box-shadow: inset 1px 0 0 var(--line-2); }
@media (max-width: 760px) {
  .app-points { grid-template-columns: minmax(0, 1fr); max-width: 26em; }
  .app-points li { padding: 26px 6px; min-width: 0; }
  .app-points li + li { box-shadow: inset 0 1px 0 var(--line); }
}
.lp { width: 100%; height: 76px; display: grid; place-items: center; color: var(--ink); font: 400 clamp(1.08rem, 1.5vw, 1.32rem)/1.25 var(--serif); }
/* 1. A verse read aloud: the line fills with ink as the progress line runs under it. */
.lp-read { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; gap: 14px; text-align: left; max-width: 20em; margin-inline: auto; }
.lp-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.25px var(--line-2); color: var(--ink); }
.lp-play .mark { margin-left: 2px; }
.lp-text { display: block; min-width: 0; }
.lp-read .lp-line {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; color: transparent;
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--grey-2) 50% 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.lp-bar { display: block; height: 2px; margin-top: 10px; border-radius: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.lp-bar::after { content: ""; position: absolute; inset: 0; background: var(--link); transform-origin: left; }
.lp-read.play .lp-line { animation: lp-ink 3.4s linear both; }
.lp-read.play .lp-bar::after { animation: lp-run 3.4s linear both; }
@keyframes lp-ink { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lp-run { from { transform: scaleX(0); } to { transform: none; } }
/* 2. Words light in turn. */
.lp-words .lp-line { max-width: 15em; text-wrap: balance; }
.lp-words.play .lp-line span { animation: lp-word 1.1s ease both; animation-delay: calc(var(--i) * .26s + .2s); }
@keyframes lp-word { 0% { color: var(--grey-2); } 16%, 56% { color: var(--link); } 100% { color: var(--ink); } }
/* 3. "Word" lifts and turns over to the Greek behind it. */
.lp-flip { perspective: 600px; font-size: clamp(1.9rem, 2.9vw, 2.6rem); }
.lp-card { position: relative; display: inline-grid; transform-style: preserve-3d; }
.lp-card b { grid-area: 1 / 1; font-weight: 400; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 0 .1em; }
.lp-card b + b { transform: rotateX(180deg); font-family: var(--greek); color: var(--link); }
.lp-flip.play .lp-card { animation: lp-turn 2.2s var(--ease) .3s both; }
@keyframes lp-turn { 0% { transform: none; } 28% { transform: translateY(-12px); } 72% { transform: translateY(-12px) rotateX(-180deg); } 100% { transform: rotateX(-180deg); } }

/* ---------- Made for reading: five designed moments ---------- */
/* Beside the phone, the chosen feature at large scale. (Its numbers default to the finished state, so with
   motion turned off, or by tap, each simply stands complete; under the scroll demo.js runs them.) */
.demo-aside { grid-area: aside; --inkk: 1; --c: 1; --s: 0; --g: 1; --w: 1; min-height: 150px; display: grid; align-items: center; margin-top: clamp(14px, 1.6vw, 22px); }
.demo { grid-template-areas: "now stage" "aside stage" "tabs stage" "open stage"; grid-template-rows: auto auto auto 1fr; }
.motion .demo { grid-template-areas: ". stage" "now stage" "aside stage" "tabs stage" "open stage" ". stage"; grid-template-rows: 1fr auto auto auto auto 1fr; }
.demo-now { min-height: clamp(9.4rem, 14.4vw, 13rem); }
.demo-title { font-size: clamp(2.1rem, 3.5vw, 3.4rem); max-width: 13em; }
.demo-tabs { margin-top: clamp(14px, 1.8vw, 24px); }
.demo-tab { padding: 10px 0; font-size: 15px; }
/* 1. The words of God take their blue as if inked: a wipe of colour running through each phrase. */
.ph.m-ink .page-text .w-blue, .pull-line .w-blue {
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--ink) 50% 100%) calc((1 - var(--inkk, 1)) * 100%) 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pull-line { margin: 0; max-width: 15em; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.2 var(--serif); letter-spacing: -.014em; text-wrap: balance; }
.pull-line .vn, .pull-line .mark, .pull-line .nl { display: none; }
/* 2. A thread draws from the verse to the passage it is linked to, on a page of its own. */
.demo { position: relative; }
.demo-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; --t: 1; opacity: 0; transition: opacity .3s ease; }
.demo-thread.on { opacity: 1; }
.demo-thread path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t)); }
.pull-card {
  display: block; width: min(22em, 100%); padding: 16px 20px 18px; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 26px 40px -28px var(--lift); opacity: var(--c); transform: translate3d(calc((1 - var(--c)) * -28px), 0, 0);
}
.pull-card b { display: block; font: 500 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.pull-card span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font: 400 clamp(1.02rem, 1.35vw, 1.2rem)/1.36 var(--serif); }
/* 3. Pages, then one long scroll. */
.pull-words { margin: 0; display: flex; gap: .7em; font: 400 clamp(1.9rem, 3.2vw, 3rem)/1.1 var(--serif); letter-spacing: -.02em; }
.pull-words span { color: var(--grey-2); transition: color .5s ease; }
.pull-words span:first-child { color: var(--ink); }
.demo-aside.joined .pull-words span:first-child { color: var(--grey-2); }
.demo-aside.joined .pull-words span + span { color: var(--ink); }
/* 4. The text grows with the knob; the page goes from dark to light in a circle from the switch. */
.pull-aa { margin: 0; width: fit-content; padding: .12em .5em .16em; border-radius: 16px; font: 400 calc(1.9rem + var(--g) * 1.9rem)/1.1 var(--serif); letter-spacing: -.02em; color: #fff; background: #0b0f15; position: relative; isolation: isolate; overflow: hidden; }
.pull-aa::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; clip-path: circle(calc(var(--w) * 150%) at 85% 80%); }
.pull-aa span { color: color-mix(in srgb, #14181d calc(var(--w) * 100%), #fff); }
:root[data-theme="light"] .pull-aa { background: #fff; }
:root[data-theme="light"] .pull-aa::before { background: #0b0f15; }
:root[data-theme="light"] .pull-aa span { color: color-mix(in srgb, #fff calc(var(--w) * 100%), #14181d); }
/* (The circle shows the page behind it turned over to the other light, live, so the words stay readable
   as it opens; where a browser cannot do that it is the plain colour of the page it is going to.) */
.ph-wipe {
  position: absolute; z-index: 1; inset: 0; pointer-events: none; clip-path: circle(calc(var(--w, 0) * 150%) at var(--wx, 70%) var(--wy, 90%)); transition: opacity .3s ease;
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg); backdrop-filter: invert(1) hue-rotate(180deg);
}
@supports not ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) {
  .ph-wipe { background: rgb(236, 243, 250); }
  .ph-wipe[data-to="dark"] { background: rgb(9, 14, 20); }
}
.ph-wipe.done { opacity: 0; }
/* 5. A reference, typed. */
.pull-type { margin: 0; display: flex; align-items: baseline; min-height: 1.2em; font: 400 clamp(2rem, 3.6vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.02em; }
.pull-type i { width: 2px; height: .95em; margin-left: 3px; align-self: center; background: var(--link); }
/* (A short, wide screen: everything beside the phone a little smaller, so it all stays in view.) */
@media (min-width: 861px) and (max-height: 800px) {
  .demo-aside { min-height: 96px; margin-top: 8px; }
  .pull-line { font-size: 1.4rem; }
  .demo-tab { padding: 7px 0; }
  .demo-now { min-height: 9.4rem; }
}
@media (max-width: 860px) {
  .demo, .motion .demo { grid-template-areas: "now" "tabs" "aside" "stage"; grid-template-rows: auto auto auto minmax(0, 1fr); }
  .demo { grid-template-areas: "now" "tabs" "aside" "stage" "open"; grid-template-rows: none; }
  .demo-aside { min-height: 92px; margin-top: 10px; justify-items: center; text-align: center; }
  .pull-line { font-size: clamp(1.15rem, 3.9vw, 1.5rem); max-width: 18em; }
  .pull-card { padding: 11px 16px 13px; width: min(24em, 100%); text-align: left; }
  .pull-card span { -webkit-line-clamp: 2; font-size: 1rem; }
  .pull-words, .pull-type { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .pull-aa { font-size: calc(1.4rem + var(--g) * 1.1rem); }
  .demo-now { min-height: 0; }
  .motion .demo-now { min-height: clamp(6.4rem, 22vw, 8.4rem); }
  .demo-title { max-width: 13em; font-size: clamp(1.6rem, 6.4vw, 2.5rem); }
}

/* ---------- The story ---------- */
/* The seven firsts, one row at a time: a sweep of light uncovers the silver numeral, the hairline draws
   from the left, and the statement rises line by line from behind a mask (the row's .in starts all three). */
.motion .firsts li.reveal { opacity: 1; transform: none; box-shadow: none; }
.motion .firsts li::before, .motion .firsts li:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); }
.motion .firsts li:last-child::after { top: auto; bottom: 0; transition-delay: .5s; }
.motion .firsts li.in::before, .motion .firsts li.in:last-child::after { transform: none; }
.firsts li { position: relative; }
.motion .firsts .num {
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 58%), var(--silver);
  background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat;
  clip-path: inset(-6% 104% -6% -4%); transition: clip-path 1.15s cubic-bezier(.5, 0, .2, 1), background-position 1.6s cubic-bezier(.4, 0, .2, 1);
}
.motion .firsts li.in .num { clip-path: inset(-6% -6% -6% -4%); background-position: -50% 0, 0 0; }
.motion .firsts li.in .rise .wi { transform: none; }
/* Thomson's years, turning like an odometer beside the line (home.js). */
.year-odo { display: flex; margin-top: clamp(22px, 3vw, 44px); font: 400 clamp(3.6rem, 7.4vw, 6.8rem)/1 var(--scripture); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em; color: var(--ink); height: 1em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.odo-col { display: block; height: 1em; }
.odo-col > span { display: block; transition: transform 1.1s cubic-bezier(.3, 0, .15, 1); will-change: transform; }
.odo-col i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; }

/* ---------- The film: the frame grows; the play mark's ring draws itself ---------- */
.motion .video-card { will-change: transform; }
.motion .video-card img { transition: none; }
.video-card .play .ring { position: absolute; inset: 0; display: none; }
.video-card .play .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.video-card .play .ring circle { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.5, 0, .2, 1) .35s; }
.motion .video-card .play { box-shadow: none; }
.motion .video-card .play .ring { display: block; }
.motion .video-card .play [data-mark] { opacity: 0; transition: opacity .6s ease 1.2s; }
.motion .video-track.in .play .ring circle { stroke-dashoffset: 0; }
.motion .video-track.in .play [data-mark] { opacity: 1; }
.motion .video-track.reveal { transform: none; }

/* ---------- Ways to help: the cards lean toward the pointer ---------- */
.support-grid { perspective: 1500px; }
.motion .coffee-card { transition: transform .6s var(--ease); transform-style: flat; }

/* ---------- The closing: the initial draws itself, then the verse lights ---------- */
.motion .initial.scribe .i-bg { opacity: 0; transition: opacity 1s ease 1.25s; }
.motion .initial.scribe .i-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.15s cubic-bezier(.55, 0, .2, 1) calc(var(--i) * .11s); }
.motion .initial.scribe .i-leaf, .motion .initial.scribe .i-dot { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .5s ease calc(.75s + var(--i) * .035s), transform .8s var(--ease) calc(.75s + var(--i) * .035s); }
.motion .initial.scribe .i-letter { opacity: 0; transition: opacity .9s ease 1.75s; }
.motion .lit .initial.scribe .i-bg, .motion .lit .initial.scribe .i-letter { opacity: 1; }
.motion .lit .initial.scribe .i-line { stroke-dashoffset: 0; }
.motion .lit .initial.scribe .i-leaf, .motion .lit .initial.scribe .i-dot { opacity: 1; transform: none; }
.motion .closing-verse.reveal { opacity: 1; transform: none; }
.motion .closing-glow { opacity: 0; transform: translate(-50%, -44%) scale(.86); transition: opacity 2.6s ease 1.4s, transform 3s var(--ease) 1.4s; }
.motion .closing.risen .closing-glow { opacity: .8; transform: translate(-50%, -50%); }

/* ---------- With motion turned off: every piece stands finished ---------- */
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::after { animation-duration: .01s !important; animation-delay: 0s !important; }
  .odo-col > span, .coffee-card, .bs-tile { transition: none; }
}
