/* Story in Glory — The Temple of Solomon */
:root {
  --ink: #0b0a12; --ink2: #121020; --panel: #191626; --panel2: #221d31; --line: rgba(230, 191, 106, .22);
  --gold: #e6bf6a; --gold2: #f3d590; --flame: #f26b1d; --cream: #f6ecd8; --text: #ece3d2; --muted: #b5a993;
  --lapis: #2b3f8c; --crimson: #9e1b32; --purple: #5a2a6e; --cedar: #6b4428;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --caps: "Cinzel", "Cormorant Garamond", serif; --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --gut: clamp(16px, 4vw, 48px); --navh: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh) + 8px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: var(--gold2); }
button { font: inherit; color: inherit; cursor: pointer; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; text-align: center; }
.small { font-size: .86rem; color: var(--muted); }
.center { text-align: center; justify-content: center; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--navh); display: flex; align-items: center; gap: 22px; padding: 0 var(--gut); z-index: 50;
  background: linear-gradient(180deg, rgba(11, 10, 18, .92), rgba(11, 10, 18, .7)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230, 191, 106, .12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 700 1.02rem var(--caps); letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 11px; border-radius: 999px; opacity: .85; transition: .2s; }
.links a:hover, .links a.on { background: rgba(230, 191, 106, .12); color: var(--gold2); opacity: 1; }
.units { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .03); }
.units button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.units button.on { background: var(--gold); color: var(--ink); }
.menu { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.menu span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); border-radius: 2px; transition: .25s; }
.menu span:first-child { top: 16px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 800; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.primary { background: linear-gradient(135deg, #f6d27e, #e3a548 55%, #f26b1d); color: #1a1108; box-shadow: 0 10px 30px -8px rgba(242, 107, 29, .55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(242, 107, 29, .7); }
.btn.ghost { color: var(--cream); border-color: rgba(246, 236, 216, .35); background: rgba(11, 10, 18, .35); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--gold2); color: var(--gold2); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--navh) + 40px) var(--gut) 120px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 10, 18, .92) 0%, rgba(11, 10, 18, .65) 40%, rgba(11, 10, 18, .05) 75%), linear-gradient(0deg, var(--ink) 0%, rgba(11, 10, 18, 0) 30%); }
.hero-inner { position: relative; max-width: 720px; animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.eyebrow { font: 600 .85rem var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
h1 { font: 600 clamp(3.2rem, 9vw, 7rem)/.92 var(--serif); margin: 0; color: #fffaf0; letter-spacing: -.01em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
h1 em { font-style: italic; font-weight: 500; color: var(--gold2); font-size: .6em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e8dfcd; max-width: 34em; margin: 24px 0 0; }
.hero-stats { display: flex; gap: clamp(14px, 2.6vw, 30px); margin: 40px 0 0; flex-wrap: wrap; }
.hero-stats div { border-left: 1px solid var(--line); padding-left: 14px; }
.hero-stats dt { font: 600 2rem/1 var(--serif); color: var(--gold2); }
.hero-stats dd { margin: 4px 0 0; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-verse { position: absolute; right: var(--gut); bottom: 40px; max-width: 420px; margin: 0; text-align: right; }
.hero-verse p { font: italic 500 1.15rem/1.45 var(--serif); color: rgba(246, 236, 216, .9); margin: 0; }
.hero-verse cite { font: 600 .75rem var(--caps); letter-spacing: .2em; color: var(--gold); font-style: normal; text-transform: uppercase; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { font: 600 .82rem var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--flame); margin: 0 0 12px; }
h2 { font: 600 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif); margin: 0; color: #fffaf0; }
h3 { font: 600 1.6rem/1.2 var(--serif); color: #fffaf0; margin: 0 0 8px; }
.sub { color: #d9cfbd; font-size: 1.08rem; margin: 18px 0 0; }
.ref { font: 600 .78rem var(--caps); letter-spacing: .15em; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.closing .ref { display: block; margin-top: 14px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- film ---------- */
.film-sec { background: radial-gradient(1200px 600px at 50% 0%, rgba(242, 107, 29, .1), transparent 70%), var(--ink); }
.player { border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(230, 191, 106, .25); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 16px; padding: 14px 28px 14px 14px; border-radius: 999px; border: 1px solid rgba(243, 213, 144, .5);
  background: rgba(11, 10, 18, .7); backdrop-filter: blur(8px); color: #fffaf0; font: 700 1.05rem var(--sans); transition: .25s; }
.bigplay svg { width: 58px; height: 58px; padding: 14px; border-radius: 50%; fill: #1a1108; background: linear-gradient(135deg, #f6d27e, #f26b1d); }
.bigplay small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.bigplay span { text-align: left; }
.bigplay:hover { transform: translate(-50%, -50%) scale(1.04); }
.player.started .bigplay { opacity: 0; pointer-events: none; }
.controls { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: linear-gradient(180deg, #15121f, #0e0c16); }
.c-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: var(--cream); flex: none; }
.c-btn:hover { background: rgba(255, 255, 255, .07); }
.c-btn svg { width: 22px; height: 22px; fill: currentColor; }
.c-btn.txt { font-weight: 800; font-size: .78rem; border: 1.5px solid rgba(246, 236, 216, .4); width: 40px; height: 28px; border-radius: 6px; }
.c-btn.txt.on { background: var(--cream); color: var(--ink); }
.c-btn .i-pause, .playing .c-btn .i-play { display: none; } .playing .c-btn .i-pause { display: block; }
.c-btn .i-mute, .muted .c-btn .i-vol { display: none; } .muted .c-btn .i-mute { display: block; }
.bar { position: relative; flex: 1; height: 28px; cursor: pointer; margin: 0 8px; touch-action: none; }
.bar .segs { position: absolute; left: 0; right: 0; top: 12px; height: 4px; display: flex; gap: 2px; }
.bar .segs i { display: block; height: 100%; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.bar .fill { position: absolute; left: 0; top: 12px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--flame)); border-radius: 2px; width: 0; pointer-events: none; }
.bar .knob { position: absolute; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold2); margin-left: -7px; left: 0; box-shadow: 0 0 0 4px rgba(243, 213, 144, .2); pointer-events: none; }
.time { font: 700 .8rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 92px; text-align: center; }
.screen:fullscreen, .player:fullscreen { background: #000; }
.player:fullscreen .screen { aspect-ratio: auto; height: calc(100% - 60px); }
.chapters { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; counter-reset: ch; }
.chapters button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); transition: .2s; }
.chapters button:hover { border-color: var(--line); background: rgba(230, 191, 106, .06); }
.chapters .n { font: 700 .8rem var(--caps); color: var(--gold); }
.chapters .t { font-weight: 700; flex: 1; line-height: 1.3; }
.chapters .d { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapters li.on button { border-color: var(--gold); background: rgba(230, 191, 106, .12); }

/* ---------- walk-through (scrollytelling) ---------- */
.walk-sec { background: linear-gradient(180deg, var(--ink), #0f0d19 30%, #0f0d19 70%, var(--ink)); padding-bottom: 60px; }
.walk { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.viewer-col { position: relative; }
.viewer { position: sticky; top: calc(var(--navh) + 16px); height: calc(100vh - var(--navh) - 32px); min-height: 420px; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px rgba(230, 191, 106, .2); touch-action: none; }
.viewer canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.v-title { position: absolute; left: 18px; top: 16px; display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; border-radius: 12px; background: rgba(11, 10, 18, .7); backdrop-filter: blur(8px); border: 1px solid var(--line); pointer-events: none; }
.v-title .n { font: 700 .85rem var(--caps); color: var(--flame); }
.v-title .t { font: 600 1.25rem var(--serif); color: #fffaf0; }
.v-tools { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.v-tools button { border: 1px solid rgba(246, 236, 216, .25); background: rgba(11, 10, 18, .72); backdrop-filter: blur(8px); color: var(--cream); padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.v-tools button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.v-hint { position: absolute; right: 16px; top: 18px; font-size: .75rem; color: rgba(246, 236, 216, .7); background: rgba(11, 10, 18, .55); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.v-dots { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 7px; }
.v-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(246, 236, 216, .35); transition: .2s; }
.v-dots button.on { background: var(--gold2); transform: scale(1.4); }
.cards { padding: 10vh 0 30vh; display: flex; flex-direction: column; gap: 22vh; }
.card { background: linear-gradient(180deg, rgba(34, 29, 49, .92), rgba(22, 19, 34, .95)); border: 1px solid rgba(230, 191, 106, .16); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: border-color .4s, box-shadow .4s; scroll-margin-top: 30vh; }
.card.active { border-color: rgba(230, 191, 106, .55); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(230, 191, 106, .25), 0 0 60px -20px rgba(242, 107, 29, .35); }
.card .num { font: 700 .82rem var(--caps); letter-spacing: .2em; color: var(--flame); }
.card h3 { font-size: 2rem; margin: 6px 0 2px; }
.card .csub { color: var(--muted); font: italic 500 1.12rem var(--serif); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 18px; }
.fact { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; }
.fact b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.fact span { font-weight: 700; color: var(--cream); font-size: .95rem; line-height: 1.35; display: block; margin-top: 2px; }
.kjv { margin: 0 0 14px; padding: 14px 18px 12px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(230, 191, 106, .08), transparent); border-radius: 0 12px 12px 0; }
.kjv p { margin: 0; font: italic 500 1.2rem/1.5 var(--serif); color: #fbf3e2; }
.kjv cite { display: block; margin-top: 6px; font: 600 .72rem var(--caps); letter-spacing: .16em; color: var(--gold); font-style: normal; text-transform: uppercase; }
.plain { margin: 16px 0; color: #e2d9c8; }
.box { border-radius: 14px; padding: 14px 16px; margin: 12px 0 0; font-size: .95rem; display: flex; gap: 12px; align-items: flex-start; }
.box svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.box.recon { background: rgba(43, 63, 140, .18); border: 1px solid rgba(110, 140, 230, .3); color: #d6dcf2; }
.box.recon svg { fill: #9fb3f5; }
.box.kid { background: linear-gradient(135deg, rgba(246, 210, 126, .16), rgba(242, 107, 29, .12)); border: 1px solid rgba(246, 210, 126, .35); color: #fbecc8; }
.box.kid svg { fill: var(--gold2); }
.box strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(230, 191, 106, .06); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--gold2); }
.chip-btn svg { width: 16px; height: 16px; fill: currentColor; }
.chip-btn.on { background: var(--gold); color: var(--ink); }
details.diff { margin-top: 12px; border: 1px solid rgba(158, 27, 50, .45); background: rgba(158, 27, 50, .1); border-radius: 14px; overflow: hidden; }
details.diff summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 800; color: #f5c9cf; display: flex; align-items: center; gap: 10px; }
details.diff summary::-webkit-details-marker { display: none; }
details.diff summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; }
details.diff[open] summary::after { content: "–"; }
.diff-body { padding: 0 16px 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair div { background: rgba(0, 0, 0, .25); border-radius: 10px; padding: 10px 12px; }
.pair p { margin: 0; font: italic 500 1.05rem/1.4 var(--serif); }
.pair cite { display: block; font: 600 .68rem var(--caps); letter-spacing: .14em; color: var(--gold); font-style: normal; margin-bottom: 4px; text-transform: uppercase; }
.diff-body .why { margin: 10px 0 0; font-size: .92rem; color: #e6d6d8; }

/* ---------- blueprint ---------- */
.pattern-sec { background: radial-gradient(900px 500px at 70% 30%, rgba(43, 63, 140, .25), transparent 70%), #0b0f1f; }
.blueprint { position: relative; border-radius: var(--r); overflow: hidden; background: #0d1326; box-shadow: inset 0 0 0 1px rgba(230, 191, 106, .25), 0 30px 80px -30px #000; aspect-ratio: 16 / 10; }
.blueprint canvas { width: 100%; height: 100%; display: block; }
.tip { position: absolute; pointer-events: none; max-width: 300px; background: rgba(11, 10, 18, .94); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; font-size: .9rem; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font: 600 1.2rem var(--serif); color: #fffaf0; }
.tip i { display: block; font: italic 500 1rem/1.4 var(--serif); color: #f3e8d0; margin-top: 6px; }
.tip .ref { display: block; margin-top: 6px; }
.note { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* ---------- differences ---------- */
.differ-sec { background: var(--ink); }
.differ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.dcard { border-radius: var(--r); padding: 24px; background: linear-gradient(180deg, #1a1626, #141120); border: 1px solid rgba(255, 255, 255, .07); }
.dcard h3 { font-size: 1.5rem; }
.dcard .pair { margin-top: 14px; }
.dcard .pair div { background: rgba(255, 255, 255, .03); border: 1px solid rgba(230, 191, 106, .14); }
.dcard .why { color: #d9cfbd; margin: 14px 0 0; font-size: .95rem; }

/* ---------- measurements ---------- */
.measure-sec { background: linear-gradient(180deg, var(--ink), #120f1c); }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid rgba(230, 191, 106, .2); }
.mtable { width: 100%; border-collapse: collapse; min-width: 720px; }
.mtable th { text-align: left; font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 14px 16px; background: rgba(230, 191, 106, .07); }
.mtable td { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.mtable td:first-child { font: 600 1.15rem var(--serif); color: #fffaf0; white-space: nowrap; }
.mtable .dims { display: flex; flex-wrap: wrap; gap: 6px; }
.mtable .dims span { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.mtable .dims em { font-style: normal; color: var(--muted); font-weight: 600; }
.mtable td:nth-child(3) { white-space: nowrap; }
.mtable td:last-child { color: var(--muted); font-size: .9rem; }
.mtable tr:hover td { background: rgba(230, 191, 106, .04); }

/* ---------- kids ---------- */
.kids-sec { background: radial-gradient(800px 400px at 20% 20%, rgba(242, 107, 29, .16), transparent 70%), radial-gradient(800px 500px at 90% 80%, rgba(43, 63, 140, .2), transparent 70%), #100e1a; overflow: hidden; }
.kids-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.quiz, .cubit-calc { border-radius: 24px; padding: clamp(22px, 3vw, 34px); background: linear-gradient(160deg, #241d36, #191426); border: 1px solid rgba(246, 210, 126, .25); }
.q-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--gold2); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.q-prog { display: flex; gap: 5px; } .q-prog i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); } .q-prog i.ok { background: #6fcf8a; } .q-prog i.no { background: #e46a6a; } .q-prog i.cur { background: var(--gold2); }
.quiz h3 { font: 700 1.5rem/1.3 var(--sans); margin: 18px 0; color: #fff; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts button { text-align: left; padding: 14px 16px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font-weight: 700; font-size: 1rem; transition: .15s; }
.opts button:hover:not(:disabled) { border-color: var(--gold2); transform: translateY(-2px); }
.opts button.ok { border-color: #6fcf8a; background: rgba(111, 207, 138, .15); } .opts button.no { border-color: #e46a6a; background: rgba(228, 106, 106, .12); }
.q-why { margin: 14px 0 0; color: #f0e3c4; min-height: 1.6em; }
.q-next { margin-top: 14px; }
.q-done { text-align: center; } .q-done .score { font: 700 4rem/1 var(--serif); color: var(--gold2); }
.cubit-calc label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; margin: 10px 0; }
.cubit-calc input, .cubit-calc select { background: #0e0c16; border: 1.5px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 10px; font: 700 1rem var(--sans); width: 90px; }
.cubit-calc select { width: auto; }
.cubit-calc ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.cubit-calc li { display: flex; justify-content: space-between; gap: 10px; background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px 12px; }
.cubit-calc li b { color: var(--gold2); white-space: nowrap; }
.fun { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.fun div { border-radius: 20px; padding: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.fun .big { font: 700 2.3rem/1 var(--serif); color: var(--gold2); }
.fun p { margin: 8px 0 0; color: #ddd2bd; font-size: .95rem; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- timeline ---------- */
.timeline-sec { background: #0d0b15; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--flame), var(--gold)); opacity: .5; }
.tl li { position: relative; width: 50%; padding: 0 44px 40px 0; text-align: right; }
.tl li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 44px; text-align: left; }
.tl li::after { content: ""; position: absolute; top: 8px; right: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold2); box-shadow: 0 0 0 5px rgba(243, 213, 144, .1); }
.tl li:nth-child(even)::after { right: auto; left: -7px; }
.tl .when { font: 700 .78rem var(--caps); letter-spacing: .18em; color: var(--flame); text-transform: uppercase; }
.tl h3 { font-size: 1.5rem; margin: 4px 0; }
.tl p { margin: 0; color: #d6ccb9; }
.tl blockquote { margin: 10px 0 0; font: italic 500 1.05rem/1.45 var(--serif); color: #f3e8d0; }
.tl cite { font: 600 .7rem var(--caps); color: var(--gold); letter-spacing: .14em; font-style: normal; }

/* ---------- closing & footer ---------- */
.closing { background: radial-gradient(700px 400px at 50% 50%, rgba(243, 213, 144, .16), transparent 70%), var(--ink); }
.closing h2 { font-style: italic; font-weight: 500; }
.foot { border-top: 1px solid rgba(230, 191, 106, .15); padding: 50px 0 60px; background: #08070d; }
.foot-inner { display: flex; gap: 28px; align-items: center; }
.foot-inner img { width: 140px; height: auto; flex: none; }
.foot-title { font: 700 1.3rem var(--caps); color: var(--cream); margin: 0; letter-spacing: .05em; }
.foot p { margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .links { display: none; position: fixed; top: var(--navh); left: 0; right: 0; flex-direction: column; background: rgba(11, 10, 18, .97); padding: 12px var(--gut) 20px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; } .links a { padding: 12px 14px; font-size: 1rem; }
  .menu { display: block; }
  .units { margin-left: auto; }
}
@media (max-width: 860px) {
  .walk { grid-template-columns: 1fr; padding: 0; }
  .viewer-col { position: sticky; top: var(--navh); z-index: 5; }
  .viewer { position: relative; top: 0; height: 42vh; min-height: 260px; border-radius: 0; }
  .cards { padding: 24px 16px 20vh; gap: 40vh; }
  .card { scroll-margin-top: calc(var(--navh) + 46vh); }
  .v-hint { display: none; } .v-tools button { padding: 6px 10px; font-size: .74rem; }
  .v-title { left: 10px; top: 10px; padding: 6px 10px; } .v-title .t { font-size: 1.05rem; }
  .kids-grid { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .hero-verse { display: none; }
  .tl::before { left: 8px; } .tl li, .tl li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 34px 36px; text-align: left; }
  .tl li::after, .tl li:nth-child(even)::after { left: 2px; right: auto; }
  .pair { grid-template-columns: 1fr; }
  .controls { flex-wrap: wrap; } .bar { order: -1; flex-basis: 100%; margin: 0 4px 4px; } .time { margin-left: auto; }
  .foot-inner { flex-direction: column; text-align: center; }
  .blueprint { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .units button { padding: 5px 8px; font-size: .72rem; }
  .hero { align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 10%, rgba(11, 10, 18, .7) 55%, rgba(11, 10, 18, .2)); }
  .bigplay { padding: 10px 18px 10px 10px; font-size: .9rem; } .bigplay svg { width: 44px; height: 44px; padding: 11px; }
  .card h3 { font-size: 1.65rem; }
  .kjv p { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .hero-inner { animation: none; } }
