/* visualbible.online. Design system: the canon axis (39 OT books in brand blue, 27 NT books in
   brand red, both from icon A1) is the recurring motif; references are set like verse citations.
   Tokens first; components only read tokens. Plan: legacy-ingestion/docs/homepage (artifact v5). */
:root {
  --paper: #f6f7fb;
  --surface: #ffffff;
  --sunken: #eef0f7;
  --ink: #10132a;
  --muted: #565d78;
  --line: #dfe2ee;
  --ot: #2747d8;
  --ot-soft: #e7ecff;
  --nt: #d81b34;
  --nt-soft: #fde8eb;
  --pin: #f2b705;
  --pin-soft: #fff4cc;
  --on-accent: #ffffff;
  --night: #0b0d18;
  --night-2: #12162a;
  --night-ink: #e9ebf5;
  --night-muted: #a3aac4;
  --night-line: #262c46;
  --ot-glow: #6f8cff;
  --nt-glow: #ff5c6f;
  --shadow-1: 0 1px 2px rgb(16 19 42 / .06), 0 1px 1px rgb(16 19 42 / .04);
  --shadow-2: 0 30px 70px -30px rgb(16 19 42 / .45), 0 4px 14px rgb(16 19 42 / .08);

  --font-display: "Noto Serif KR", "Noto Serif", "Apple SD Gothic Neo", serif;
  --font-body: "IBM Plex Sans KR", "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-ref: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-greek: "Noto Serif", "Times New Roman", serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --r-ctl: 8px; --r-card: 14px; --r-frame: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
  color-scheme: light;
}
html[data-locale="ja"] {
  --font-display: "Noto Serif JP", "Noto Serif", serif;
  --font-body: "IBM Plex Sans JP", "IBM Plex Sans", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
html[data-locale="en"] {
  --font-display: "Noto Serif", "Noto Serif KR", serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans KR", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0d18; --surface: #141829; --sunken: #1b2034; --ink: #e9ebf5; --muted: #9ba2bd; --line: #272d45;
    --ot: #7f97ff; --ot-soft: #1b2450; --nt: #ff6f80; --nt-soft: #3a1520; --pin: #f5c842; --pin-soft: #3b3010;
    --on-accent: #0b0d18; --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 30px 80px -30px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0d18; --surface: #141829; --sunken: #1b2034; --ink: #e9ebf5; --muted: #9ba2bd; --line: #272d45;
  --ot: #7f97ff; --ot-soft: #1b2450; --nt: #ff6f80; --nt-soft: #3a1520; --pin: #f5c842; --pin-soft: #3b3010;
  --on-accent: #0b0d18; --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 30px 80px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* Theme-matched screenshots: both are in the page, one shows. */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
:root[data-theme="light"] .shot-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-locale="ja"] body { word-break: normal; line-break: strict; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ot); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ot); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, 4vw); }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 21px; line-height: 1.4; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.eyebrow { font-family: var(--font-ref); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ot); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow-light { color: #9fb2ff; }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { display: grid; gap: var(--s4); margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 14.5px; }
.btn-pri { background: var(--ot); color: var(--on-accent); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ot) 70%, transparent); }
.btn-pri:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ot) 88%, #000); }
.hero .btn-pri, .dark .btn-pri { background: #3a5cff; color: #fff; }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--ot); color: var(--ot); }
.btn-ghost-light { color: #dfe4ff; border-color: rgb(255 255 255 / .22); background: rgb(255 255 255 / .04); }
.is-soon { cursor: default; flex-direction: column; gap: 0; line-height: 1.25; padding-block: 10px; }
.is-soon em { font-style: normal; font-size: 12px; font-weight: 500; opacity: .7; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--ot); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme-toggle] svg:last-child { display: none; }
:root[data-theme="dark"] [data-theme-toggle] svg:first-child { display: none; }
:root[data-theme="dark"] [data-theme-toggle] svg:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) [data-theme-toggle] svg:first-child { display: none; }
  :root:not([data-theme]) [data-theme-toggle] svg:last-child { display: block; }
}

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; color: #eef0ff; }
.top.is-solid { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); color: var(--ink); }
.page-sources .top { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); border-color: var(--line); }
.top-row { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-word small { font-family: var(--font-ref); font-size: 9.5px; letter-spacing: .22em; font-weight: 500; opacity: .7; margin-bottom: 3px; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 15px; }
.nav a, .nav-inert { color: inherit; text-decoration: none; opacity: .82; transition: opacity .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.nav-inert { cursor: default; }
.top-tools { display: flex; align-items: center; gap: 10px; }
.top .icon-btn { background: transparent; border-color: rgb(255 255 255 / .2); color: inherit; }
.top.is-solid .icon-btn, .page-sources .top .icon-btn { border-color: var(--line); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; opacity: .85; padding: 6px 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; display: grid; min-width: 140px; animation: pop .25s var(--ease); }
.lang-menu a { color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--sunken); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px max(16px, 4vw) 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); margin: 0; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a, .nav-inert { padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .menu-btn { display: inline-grid; }
  .top-tools { margin-left: auto; }
}
@media (max-width: 560px) { .top-cta, .lang summary span { display: none; } }

/* Hero */
.hero { position: relative; z-index: 2; background: var(--night); color: var(--night-ink); padding-top: calc(120px + env(safe-area-inset-top, 0px)); isolation: isolate; --overlap: clamp(110px, 17vw, 260px); margin-bottom: calc(-1 * var(--overlap)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--overlap); background: var(--paper); z-index: -1; }
.hero-sky { position: absolute; inset: 0 0 auto 0; height: calc(100% - var(--overlap)); z-index: -1; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; opacity: .5; transform: scale(1.06); animation: sky 28s ease-in-out infinite alternate; }
@keyframes sky { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, transparent 40%, var(--night) 100%), linear-gradient(to bottom, rgb(11 13 24 / .2), var(--night) 92%); }
.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-arc-label { position: absolute; z-index: 2; font-family: var(--font-ref); font-size: 12.5px; color: #fff; background: rgb(20 24 41 / .78); border: 1px solid rgb(255 255 255 / .16); padding: 4px 10px; border-radius: 999px; transform: translate(-50%, -140%); pointer-events: none; white-space: nowrap; transition: left .5s var(--ease), top .5s var(--ease), opacity .3s; backdrop-filter: blur(6px); }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 24px; justify-items: start; padding-bottom: 40px; }
.hero-title { font-size: clamp(42px, 7.4vw, 96px); line-height: 1.08; letter-spacing: -.03em; display: grid; }
.hero-title .line:last-child { background: linear-gradient(100deg, #fff 0%, #c8d3ff 40%, #ffb3bd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(17px, 1.7vw, 21px); color: var(--night-muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-caption { font-size: 13.5px; color: var(--night-muted); font-family: var(--font-ref); display: flex; align-items: center; gap: 10px; }
.hero-caption::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ot-glow) 0 70%, var(--nt-glow) 70%); }
.js .hero-in { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 200ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); box-shadow: var(--shadow-2); overflow: hidden; margin: 0; position: relative; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-family: var(--font-ref); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { width: 100%; height: auto; background: var(--surface); }


/* Devices: desktop, tablet and phone together (hero) */
.devices { position: relative; z-index: 3; margin-top: clamp(56px, 6vw, 84px); }
.platforms { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--night-muted); border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .04); padding: 6px 14px; border-radius: 999px; }
.platforms svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dev-stage { position: relative; width: min(100%, 1120px); margin: 0 auto; padding: 0 8% 0 11%; }
.dev { margin: 0; }
.dev-desktop { position: relative; z-index: 1; box-shadow: 0 60px 120px -40px rgb(58 92 255 / .45), 0 40px 80px -40px rgb(0 0 0 / .7); border-color: rgb(255 255 255 / .12); }
.bezel { background: #0e1120; border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .65), inset 0 0 0 1px rgb(255 255 255 / .04); overflow: hidden; }
.bezel-tablet { border-radius: 22px; padding: 10px; }
.bezel-tablet .shot { border-radius: 12px; }
.bezel-phone { border-radius: 34px; padding: 7px; position: relative; }
.bezel-phone .shot { border-radius: 27px; }
.bezel-phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 18px; translate: -50% 0; background: #0e1120; border-radius: 12px; z-index: 1; }
.dev-tablet { position: absolute; z-index: 2; left: 0; bottom: -12%; width: 33%; }
.dev-phone { position: absolute; z-index: 3; right: 2%; bottom: -16%; width: 15%; }
.dev-glow { position: absolute; inset: auto 10% -14% 10%; height: 40%; background: radial-gradient(closest-side, rgb(58 92 255 / .35), transparent); filter: blur(30px); z-index: 0; pointer-events: none; }
.dev-stage .dev { will-change: transform; }
.js .dev-desktop { opacity: 0; animation: devUp 1.3s var(--ease) .7s forwards; }
.js .dev-tablet { opacity: 0; animation: devLeft 1.3s var(--ease) 1.05s forwards; }
.js .dev-phone { opacity: 0; animation: devRight 1.3s var(--ease) 1.3s forwards; }
@keyframes devUp { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
@keyframes devLeft { from { opacity: 0; translate: -80px 40px; rotate: -4deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes devRight { from { opacity: 0; translate: 80px 60px; rotate: 6deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.dev-float { transform: translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform .5s var(--ease); }
@media (max-width: 700px) {
  .dev-stage { padding: 0 6% 0 10%; }
  .dev-tablet { width: 46%; bottom: -10%; }
  .dev-phone { width: 26%; bottom: -16%; }
}

/* Anywhere: sync across devices, then every feature on the phone */
.anywhere { background: radial-gradient(90% 60% at 50% 0%, var(--ot-soft), transparent 70%), var(--paper); overflow: hidden; }
.section-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head-center .lede { margin-inline: auto; }
.sync { position: relative; display: grid; grid-template-columns: 6fr 3.6fr 1.6fr; gap: clamp(20px, 4vw, 56px); align-items: end; max-width: 1060px; margin: 0 auto; }
.sync-dev { position: relative; display: grid; gap: 12px; justify-items: center; }
.sync-dev .window, .sync-dev .bezel { width: 100%; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.sync-dev .window { border-radius: 12px; }
.sync-dev .window-bar { padding: 7px 10px; } .sync-dev .window-bar i { width: 8px; height: 8px; }
.sync-tablet .bezel { padding: 7px; border-radius: 16px; } .sync-phone .bezel { padding: 5px; border-radius: 22px; }
.sync-phone .bezel::before { top: 9px; height: 10px; }
.sync-name { font-family: var(--font-ref); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.sync-badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; white-space: nowrap; z-index: 2; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--ot); padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .35s, transform .45s var(--ease-spring); box-shadow: 0 8px 20px -8px var(--ot); }
.sync-badge::before { content: "✓ "; }
.sync-dev.is-pulse .window, .sync-dev.is-pulse .bezel { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ot) 35%, transparent), var(--shadow-2); transform: translateY(-4px); }
.sync-dev.is-synced .sync-badge { opacity: 1; transform: none; }
.sync-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.sync-wire path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 7; }
.sync-wire circle { fill: var(--ot); filter: drop-shadow(0 0 8px var(--ot)); opacity: 0; }
.sync-dev > * { position: relative; z-index: 1; }
.sync-items { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sync-items li { font-size: 14.5px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all .4s var(--ease); }
.sync-items li.is-on { color: var(--on-accent); background: var(--ot); border-color: var(--ot); transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--ot); }
.wall-head { text-align: center; margin: clamp(80px, 10vw, 130px) auto 36px; max-width: 720px; display: grid; gap: 12px; }
.wall-head h3 { font-size: clamp(24px, 3vw, 36px); }
.wall-head p { color: var(--muted); }
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); align-items: start; max-width: 1120px; margin: 0 auto; }
.wall-phone { margin: 0; display: grid; gap: 12px; justify-items: center; transform: translateY(calc(sin(var(--i) * 1.1rad) * 34px)); }
.wall-phone .bezel { width: 100%; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); transition: transform .4s var(--ease); }
.wall-phone:hover .bezel { transform: translateY(-14px) scale(1.04); animation-play-state: paused; }
.wall-phone figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
.any-points { list-style: none; margin: clamp(64px, 8vw, 100px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.any-points li { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; }
.any-points li:nth-child(2) { border-color: var(--ot); } .any-points li:nth-child(3) { border-color: var(--nt); }
.any-points h3 { font-size: 19px; }
.any-points p { color: var(--muted); font-size: 15.5px; }
.any-note { margin-top: 24px; font-size: 13px; color: var(--muted); font-family: var(--font-ref); }
@media (max-width: 600px) { .sync-badge { font-size: 11px; padding: 3px 8px; top: -10px; } }
@media (max-width: 900px) {
  .wall { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 50px; margin-inline: calc(-1 * max(16px, 4vw)); padding-inline: max(16px, 4vw); }
  .wall-phone { scroll-snap-align: center; }
  .any-points { grid-template-columns: 1fr; }
  .sync { grid-template-columns: 5fr 3fr 1.5fr; gap: 14px; }
}

/* Stats */
.stats { position: relative; padding-block: calc(clamp(110px, 17vw, 260px) + clamp(48px, 6vw, 80px)) clamp(24px, 3vw, 40px); background: var(--paper); overflow: hidden; }
.stats-arc { position: absolute; left: 0; right: 0; top: calc(clamp(110px, 17vw, 260px) + 10px); width: 100%; height: 120px; }
.stats-arc path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 8; }
.stat-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.stat { display: grid; gap: 6px; padding-top: var(--s4); border-top: 2px solid var(--ink); }
.stat:nth-child(2) { border-color: var(--ot); } .stat:nth-child(3) { border-color: var(--nt); }
.stat-num { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.03em; display: inline-flex; font-variant-numeric: tabular-nums; }
.stat-unit { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-left: 4px; color: var(--muted); }
.stat-num + .stat-unit { display: inline; }
.stat > span:first-child { display: inline-flex; align-items: baseline; }
.stat-label { font-size: 14.5px; color: var(--muted); }
.odo-col { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s var(--ease); }
.odo-strip span { height: 1em; line-height: 1; }
.odo-sep { display: inline-block; }
@media (max-width: 900px) { .stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } }

/* Scroll reveal: visible without JS; JS hides until in view. */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Visual showcase */
.visual { background: var(--paper); }
.vs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.vs-steps { position: relative; display: grid; gap: 0; padding-left: 28px; }
.vs-rail { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.vs-rail span { position: absolute; left: 0; top: 0; width: 100%; height: var(--rail, 0%); background: linear-gradient(var(--ot), var(--nt)); border-radius: 2px; transition: height .6s var(--ease); }
.vs-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .38; transition: opacity .5s var(--ease); }
.vs-step.is-active { opacity: 1; }
.vs-step-head { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.vs-index { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-ref); font-size: 13px; border: 1.5px solid var(--line); background: var(--paper); transition: all .4s var(--ease); margin-left: -44px; }
.vs-step.is-active .vs-index { background: var(--ot); border-color: var(--ot); color: var(--on-accent); box-shadow: 0 0 0 6px var(--ot-soft); }
.vs-name { font-family: var(--font-ref); font-size: 14px; letter-spacing: .06em; color: var(--ot); font-weight: 500; }
.vs-step h3 { font-size: clamp(24px, 2.6vw, 34px); }
.vs-step p { color: var(--muted); max-width: 46ch; }
.vs-stage { position: sticky; top: 110px; }
.vs-window { display: flex; flex-direction: column; }
.vs-panes { aspect-ratio: 2160 / 1174; }
.vs-panes { position: relative; flex: 1; background: var(--surface); }
.vs-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
.vs-pane.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.kenburns { position: absolute; inset: 0; overflow: hidden; }
.kenburns .shot { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top left; transform-origin: 0 0; }
.vs-pane.is-active .kenburns .shot { animation: ken 14s ease-in-out infinite alternate; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.22); } }
.mindmap, .canonlink { position: absolute; inset: 0; width: 100%; height: 100%; }
.pane-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); background: var(--surface); pointer-events: none; }
.pane-shot .shot { height: 100%; object-fit: contain; }
.vs-pane.show-shot .pane-shot { opacity: 1; pointer-events: auto; }
.pane-toggle { margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.pane-toggle:hover { border-color: var(--ot); color: var(--ot); }
@media (max-width: 900px) {
  .vs { grid-template-columns: 1fr; }
  .vs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; gap: 8px; }
  .vs-rail { display: none; }
  .vs-step { min-height: 0; opacity: 1; gap: 6px; }
  .vs-step h3, .vs-step p { display: none; }
  .vs-step.is-active h3, .vs-step.is-active p { display: block; }
  .vs-step-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; width: 100%; }
  .vs-step.is-active .vs-step-head { border-color: var(--ot); background: var(--ot-soft); }
  .vs-index { margin-left: 0; }
  .vs-step.is-active { grid-column: 1 / -1; order: 2; }
  .vs-step.is-active .vs-step-head { display: none; }
  .vs-stage { position: relative; top: 0; }
}

/* Mind map SVG */
.mm-link { fill: none; stroke: color-mix(in srgb, var(--muted) 55%, transparent); stroke-width: 1.6; }
.mm-link.l1 { stroke: var(--ot); stroke-width: 2.4; opacity: .55; }
.mm-node { fill: var(--surface); stroke: var(--ot); stroke-width: 2; stroke-dasharray: 3 3; }
.mm-node.l1 { stroke-dasharray: none; fill: var(--ot-soft); r: 9; }
.mm-label { font-family: var(--font-body); font-size: 24px; fill: var(--ink); }
.mm-label.l1 { font-weight: 700; font-size: 27px; fill: var(--ot); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; }
.mm-range { font-family: var(--font-ref); font-size: 16px; fill: var(--muted); }
.mm-root rect { fill: var(--ot); }
.mm-root text { fill: var(--on-accent); font-weight: 700; font-size: 24px; font-family: var(--font-display); }
.mm-root .halo { fill: none; stroke: var(--ot); stroke-opacity: .25; stroke-width: 10; }
.mm-group { cursor: default; transition: opacity .3s; }
.mm-group:hover .mm-label { fill: var(--ot); }

/* Canon link SVG */
.cl-axis-ot { fill: var(--ot); } .cl-axis-nt { fill: var(--nt); }
.cl-tick { font-family: var(--font-body); font-size: 22px; fill: var(--muted); }
.cl-arc { fill: none; stroke-width: 1.3; opacity: .55; transition: opacity .3s, stroke-width .3s; }
.cl-arc.ot { stroke: var(--ot); } .cl-arc.nt { stroke: var(--nt); }
.canonlink.has-focus .cl-arc { opacity: .14; }
.canonlink .cl-arc.is-focus { opacity: 1; stroke-width: 3.2; }
.cl-src { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; }
.cl-src-label { font-family: var(--font-ref); font-size: 24px; font-weight: 600; fill: var(--ink); }
.cl-dot { fill: var(--pin); filter: drop-shadow(0 0 6px var(--pin)); }
.reason-card { position: absolute; left: 18px; top: 18px; max-width: min(360px, 70%); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1.5px solid var(--ot); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-2); backdrop-filter: blur(8px); display: grid; gap: 4px; animation: pop .45s var(--ease-spring); }
.reason-type { font-size: 12px; font-weight: 600; color: var(--ot); background: var(--ot-soft); padding: 2px 9px; border-radius: 999px; width: fit-content; }
.reason-refs { font-family: var(--font-ref); font-size: 13px; color: var(--muted); }
.reason-text { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* Pin-to-pin */
.dark { background: var(--night); color: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); }
.dark .lede { color: var(--night-muted); }
.pin { overflow: hidden; }
.pin-photo { position: absolute; inset: 0 0 auto 0; height: 70%; opacity: .32; mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pin .wrap { position: relative; }
.badge { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-soon { background: rgb(245 200 66 / .14); color: var(--pin); border: 1px solid rgb(245 200 66 / .35); }
.pin-board { position: relative; display: grid; gap: clamp(90px, 13vw, 150px); padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .02)); border: 1px solid rgb(255 255 255 / .09); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 40px 100px -40px rgb(58 92 255 / .35); min-height: 380px; }
.verse-card { position: relative; z-index: 1; max-width: 640px; background: rgb(20 24 41 / .78); border: 1px solid rgb(255 255 255 / .1); border-radius: 16px; padding: 22px 26px; backdrop-filter: blur(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.verse-card-b { justify-self: end; }
.verse-card.is-out { opacity: 0; transform: translateY(14px); }
.verse-card .ref { font-family: var(--font-ref); font-size: 13px; color: var(--nt-glow); display: block; margin-bottom: 8px; letter-spacing: .04em; }
.verse-card .ref-ot { color: #9fb2ff; }
.verse-card p { font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); line-height: 1.8; }
.verse-card mark { color: inherit; background: linear-gradient(var(--pin-soft), var(--pin-soft)) no-repeat 0 100% / 0% 100%; border-radius: 4px; padding: 1px 3px; box-shadow: inset 0 -2px 0 transparent; transition: background-size .7s var(--ease), box-shadow .5s; }
.dark .verse-card mark { background-image: linear-gradient(rgb(245 200 66 / .28), rgb(245 200 66 / .28)); }
.verse-card mark.is-on { background-size: 100% 100%; box-shadow: inset 0 -2px 0 var(--pin); }
.pin-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.pin-thread path { fill: none; stroke: #e0283f; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(255 60 80 / .6)); }
.pin-thread circle { fill: #fff; filter: drop-shadow(0 0 8px #ff5c6f); opacity: 0; }
.pin-icon { position: absolute; z-index: 3; width: 26px; height: 36px; left: 0; top: 0; opacity: 0; pointer-events: none; transform: translate(-50%, -100%); }
.pin-icon svg { width: 100%; height: 100%; overflow: visible; }
.pin-head { fill: #d8a531; stroke: #8a6418; stroke-width: 1.2; }
.pin-shine { fill: #fff3c4; opacity: .8; }
.pin-needle { stroke: #c9ccd6; stroke-width: 2.2; stroke-linecap: round; }
.pin-icon.is-dropped { animation: drop .7s var(--ease-spring) forwards; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -260%) rotate(-18deg); } 60% { opacity: 1; } to { opacity: 1; transform: translate(-50%, -100%) rotate(0); } }
.pin-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; }
.pin-note { color: var(--night-muted); font-size: 15px; max-width: 60ch; }
.pin-dots { display: flex; gap: 8px; }
.pin-dots button { width: 34px; height: 6px; border-radius: 3px; border: 0; background: rgb(255 255 255 / .18); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.pin-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--pin); transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } }

/* Commentary */
.cm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cm-copy { display: grid; gap: 20px; }
.cm-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.cm-points li { padding-left: 18px; border-left: 2px solid var(--line); }
.cm-points li:hover { border-color: var(--ot); }
.cm-points h3 { font-size: 18px; }
.cm-points p { color: var(--muted); font-size: 15.5px; }
.cm-photo { margin: 12px 0 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.cm-photo img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--px, 0)); will-change: transform; }
.cm-demo { position: sticky; top: 110px; }
.cm-toolbar { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sunken); position: relative; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14.5px; color: var(--muted); position: relative; z-index: 1; transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.inter { list-style: none; margin: 0; padding: 22px clamp(18px, 3vw, 30px) 28px; display: grid; gap: 20px; max-height: 620px; overflow: auto; }
.pair { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid transparent; transition: border-color .4s; }
.pair:hover { border-left-color: var(--ot); }
.pair .en { font-family: var(--font-greek); font-size: 15.5px; color: var(--muted); font-style: italic; }
.pair .ko { font-size: 17px; line-height: 1.75; }
.js .pair { opacity: 0; transform: translateX(-12px); }
.js .pair.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 140ms); }
.pair .ko.swap { animation: swap .55s var(--ease); }
@keyframes swap { 0% { opacity: 1; filter: none; } 45% { opacity: 0; filter: blur(5px); transform: translateY(4px); } 55% { opacity: 0; filter: blur(5px); transform: translateY(-4px); } 100% { opacity: 1; filter: none; transform: none; } }
@media (max-width: 900px) { .cm-grid { grid-template-columns: 1fr; } .cm-demo { position: relative; top: 0; } .cm-photo { display: none; } }

/* Morphology */
.morph { background: linear-gradient(180deg, var(--paper), var(--sunken)); }
.morph-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.switch { display: inline-flex; align-items: center; gap: 10px; }
.switch button { border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); padding: 4px 2px; transition: color .3s; }
.switch button[aria-pressed="true"] { color: var(--ot); }
.switch-track { width: 52px; height: 28px; border-radius: 999px; background: var(--ot-soft); position: relative; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ot); transition: transform .45s var(--ease-spring); }
.morph[data-order="version"] .switch-track span { transform: translateX(24px); }
.morph-note { color: var(--muted); font-size: 14.5px; flex: 1; min-width: 220px; }
.morph-scroll { overflow-x: auto; padding: 20px; }
.morph-grid { display: grid; grid-template-columns: 92px repeat(var(--cols, 8), minmax(112px, 1fr)); min-width: calc(92px + var(--cols, 8) * 112px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mg-cell { display: grid; place-items: center; align-content: center; padding: 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; font-size: 14.5px; gap: 4px; min-height: 54px; }
.mg-cell.r0 { border-top: 0; }
.mg-cell.mg-label { border-left: 0; background: var(--sunken); color: var(--muted); font-size: 13px; font-weight: 600; justify-items: start; text-align: left; }
.mg-gk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gk { font-family: var(--font-greek); font-size: 21px; color: var(--nt); display: inline-block; will-change: transform; white-space: nowrap; }
.mg-word { color: var(--ot); font-weight: 700; font-size: 16px; }
.mg-mono { font-family: var(--font-ref); font-size: 13px; color: var(--muted); }
.morph-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; margin-top: 40px; }
.morph { padding-bottom: clamp(64px, 8vw, 110px); }
.morph-foot > p { color: var(--muted); }
.morph-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.thumb { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); padding: 0; cursor: zoom-in; text-align: left; transition: transform .35s var(--ease), box-shadow .35s; }
.thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.thumb .shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.thumb span { display: block; padding: 8px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .morph-foot { grid-template-columns: 1fr; } }

/* More */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--ot) 40%, var(--line)); }
.card h3 { font-size: 19px; margin-top: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.b-visual { border-radius: 12px; background: var(--sunken); overflow: hidden; height: 210px; position: relative; display: grid; place-items: center; }
.b-sermon, .b-qt { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); align-items: center; padding: 20px clamp(20px, 3vw, 36px) 20px 20px; }
.b-sermon > .b-visual, .b-qt > .b-visual { grid-row: 1 / span 2; }
.b-sermon h3, .b-qt h3 { font-size: clamp(22px, 2.4vw, 30px); align-self: end; margin: 0; }
.b-sermon p, .b-qt p { font-size: 16.5px; align-self: start; }
.b-qt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); padding: 20px 20px 20px clamp(20px, 3vw, 36px); }
.b-qt > .b-visual { grid-column: 2; }
.b-qt h3, .b-qt p { grid-column: 1; }
@media (max-width: 900px) { .b-sermon, .b-qt { grid-template-columns: 1fr; padding: 18px 18px 24px; } .b-sermon > .b-visual, .b-qt > .b-visual { grid-row: auto; grid-column: auto; } .b-qt h3, .b-qt p { grid-column: auto; } } .b-themes, .b-export, .b-hymnal, .b-dict { grid-column: span 3; }
.b-scroll { place-items: start; }
.b-scroll-inner { width: 100%; animation: pan 18s ease-in-out infinite alternate; }
@keyframes pan { to { transform: translateY(-34%); } }
.device { width: 62%; max-width: 230px; border-radius: 30px; padding: 8px; background: #0e1120; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); animation: float 6s ease-in-out infinite; }
.device .shot { border-radius: 23px; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.swatches { display: grid; grid-template-columns: repeat(6, 34px); gap: 10px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px var(--r); animation: bob 3.6s var(--ease) infinite; animation-delay: calc(var(--i) * 120ms); }
.swatches span:nth-child(1) { --c: #2563eb; --r: #ffffff; } .swatches span:nth-child(2) { --c: #9a4f21; --r: #fff8ee; } .swatches span:nth-child(3) { --c: #0f766e; --r: #ffffff; }
.swatches span:nth-child(4) { --c: #4a4a46; --r: #f4f2ee; } .swatches span:nth-child(5) { --c: #7c3aed; --r: #ffffff; } .swatches span:nth-child(6) { --c: #be123c; --r: #fff1f2; }
.swatches span:nth-child(7) { --c: #6d9eff; --r: #101626; } .swatches span:nth-child(8) { --c: #e8a33d; --r: #21170a; } .swatches span:nth-child(9) { --c: #5fb0e8; --r: #06111f; }
.swatches span:nth-child(10) { --c: #8bd5b4; --r: #0d1714; } .swatches span:nth-child(11) { --c: #c4b5fd; --r: #15121f; } .swatches span:nth-child(12) { --c: #f9a8b4; --r: #1c1013; }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.08); } }
.mini-export { width: 82%; }
.mx-map path { fill: none; stroke: var(--ot); stroke-width: 2; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 4.5s var(--ease) infinite; }
.mx-map rect { fill: var(--ot); }
.mx-file rect { fill: var(--surface); stroke: var(--nt); stroke-width: 2; }
.mx-file text { font-family: var(--font-ref); font-size: 13px; font-weight: 600; fill: var(--nt); }
.mx-file { animation: slideOut 4.5s var(--ease) infinite; }
@keyframes draw { 40%, 100% { stroke-dashoffset: 0; } }
@keyframes slideOut { 0%, 45% { opacity: 0; transform: translate(-30px, 0); } 65%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.staff { width: 88%; }
.staff path { stroke: var(--line); stroke-width: 1.4; fill: none; }
.staff .note ellipse { fill: var(--ot); }
.staff .note path { stroke: var(--ot); stroke-width: 2; }
.staff .note { animation: note 3s var(--ease) infinite; animation-delay: calc(var(--i) * 180ms); transform-box: fill-box; transform-origin: center; }
@keyframes note { 0%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-6px); opacity: 1; } }
.flash { position: relative; width: 210px; height: 120px; }
.fc { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); display: grid; place-items: center; align-content: center; gap: 6px; animation: deck 9s var(--ease) infinite; }
.fc b { font-family: var(--font-greek); font-size: 30px; color: var(--nt); font-weight: 400; }
.fc i { font-family: var(--font-ref); font-style: normal; font-size: 13px; color: var(--muted); }
.fc:nth-child(2) { animation-delay: -3s; } .fc:nth-child(3) { animation-delay: -6s; }
@keyframes deck { 0% { transform: translateY(0) rotate(0); z-index: 3; opacity: 1; } 28% { transform: translateY(0) rotate(0); opacity: 1; } 33% { transform: translateY(-30px) rotate(-6deg); opacity: 0; } 34% { transform: translate(14px, 14px) rotate(4deg); opacity: .5; z-index: 1; } 66% { transform: translate(7px, 7px) rotate(2deg); opacity: .8; z-index: 2; } 100% { transform: translateY(0) rotate(0); opacity: 1; z-index: 3; } }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .card { grid-column: span 2; grid-row: auto; } .b-themes, .b-export, .b-hymnal, .b-dict { grid-column: span 1 !important; } }
@media (max-width: 560px) { .b-themes, .b-export, .b-hymnal, .b-dict { grid-column: span 2 !important; } }
.versions { margin-top: 56px; display: grid; gap: 14px; }
.versions-title { font-family: var(--font-ref); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-ref); font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Download */
.download { background: var(--surface); border-block: 1px solid var(--line); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); }
.dl-grid > div:first-child { display: grid; gap: 18px; align-content: start; }
.dl-groups { display: grid; gap: 36px; }
.dl-group h3 { font-family: var(--font-ref); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.dl-group ul { list-style: none; margin: 0; padding: 0; }
.dl-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.dl-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); }
.dl-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dl-name { display: grid; font-weight: 600; }
.dl-name small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.chip-soon { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.faq-grid > div:first-child { display: grid; gap: 14px; align-content: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ot); stroke-width: 2; stroke-linecap: round; transition: transform .4s var(--ease); }
.faq-item[open] summary svg { transform: rotate(135deg); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--muted); padding-bottom: 22px; max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* Closing */
.closing { position: relative; padding-block: clamp(120px, 16vw, 220px); overflow: hidden; text-align: center; }
.closing-photo { position: absolute; inset: 0; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(var(--zoom, 1.1)); transition: transform .1s linear; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgb(11 13 24 / .45), var(--night) 100%); }
.closing-copy { position: relative; display: grid; gap: 22px; justify-items: center; }
.closing h2 { font-size: clamp(34px, 5.6vw, 72px); color: #fff; }
.closing .hero-ctas { justify-content: center; }
.axis { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: grid; grid-template-columns: 929fr 260fr; gap: 3px; }
.axis::before { content: ""; background: var(--ot-glow); box-shadow: 0 0 18px var(--ot-glow); }
.axis::after { content: ""; background: var(--nt-glow); box-shadow: 0 0 18px var(--nt-glow); }
.js .axis-draw { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease); }
.js .axis-draw.in { clip-path: inset(0 0 0 0); }

/* Footer */
.foot { background: var(--night); color: var(--night-muted); padding-block: 40px 48px; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--night-line); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); font-weight: 600; }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; font-size: 13px; }

/* Sources page */
.page-sources main { padding-top: 140px; }
.page-title { font-size: clamp(34px, 5vw, 56px); margin: 14px 0 16px; }
.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.src-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
.src-table th, .src-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.src-table thead th { border-top: 0; background: var(--sunken); color: var(--muted); font-weight: 600; font-size: 13px; }
.src-table td:nth-child(2), .src-table td:nth-child(3) { white-space: nowrap; }
.src-table td small { display: block; font-family: var(--font-ref); color: var(--muted); font-size: 12px; }
.rights { font-size: 12.5px; background: var(--ot-soft); color: var(--ot); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.src-note { margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.src-h2 { font-size: 26px; margin: 48px 0 12px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgb(6 8 16 / .82); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .35s var(--ease); }
.lb-body .shot { border-radius: 12px; box-shadow: var(--shadow-2); }
.lb-close { position: absolute; right: 10px; top: 10px; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .hero-in, .js .pair { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .dev { opacity: 1 !important; }
  .wall-phone { transform: none; }
  .js .axis-draw { clip-path: none; }
}

/* Sermon and QT cards: a readable crop of the real UI with overlays on its key controls */
.b-ui { height: auto; display: block; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.ui-frame { position: relative; }
.ui-frame .shot { border-radius: 0; }
.ui-ring { position: absolute; border: 2.5px solid var(--ot); border-radius: 10px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ot) 22%, transparent); pointer-events: none; margin: -4px; padding: 4px; box-sizing: content-box; }
.ui-ring.is-pulse { animation: ringPulse 4.8s var(--ease) infinite; }
@keyframes ringPulse { 0%, 8% { opacity: 0; transform: scale(1.25); } 18%, 70% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(1); } }
.ui-pills { position: absolute; display: flex; gap: 6px; flex-wrap: wrap; max-width: 60%; pointer-events: none; }
.ui-pills span { font-size: 12.5px; font-weight: 600; background: var(--ot); color: var(--on-accent); padding: 4px 10px; border-radius: 999px; box-shadow: 0 8px 18px -8px var(--ot); animation: pillPop 4.8s var(--ease-spring) infinite; animation-delay: calc(var(--i) * 120ms); white-space: nowrap; }
@keyframes pillPop { 0%, 20% { opacity: 0; transform: translateY(-10px) scale(.8); } 30%, 72% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(4px); } }
.ui-walker { transition: left .7s var(--ease), top .7s var(--ease), width .7s var(--ease), height .7s var(--ease); }
.ui-walker em { position: absolute; left: -2px; top: -30px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--ot); color: var(--on-accent); padding: 3px 10px; border-radius: 999px; }

/* Pin-to-pin on narrow boards: a margin lane on the right for the thread and the pins */
@media (max-width: 700px) {
  .pin-board { padding: 22px 32px 22px 14px; gap: 64px; }
  .verse-card { padding: 18px 18px; }
  .verse-card-b { justify-self: stretch; }
}
.pin-board.is-narrow .pin-thread path { stroke-width: 2; }
.pin-board.is-narrow .pin-icon { width: 20px; height: 28px; }
