/* GOD AND AI — REVIEW 2026-12-01: refinements layered over the three original designs (identity unchanged).
   Loaded after base.css and the theme file(s). */

/* ---------- 3D books: the ORIGINAL technique (base.css: perspective, rotateY rest angle 36deg, +12deg on hover,
   front at translateZ, spine face at rotateY(-90deg), 0.7s eased transition, floor shadow), now with the approved
   7:10 fronts. The spine face is the ORIGINAL prototype spine image, reused unchanged from ../shared/img/spine-N.webp
   (lettered: Cosmic Triangle mark, I/II/III, GOD AND AI, the approved title, Stanley Rufus Medikonda, A OneHumanX Project).
   It is a web mock-up spine, not the print spine (print spine width and mark treatment are still open). */
.b3d { --bw: calc(var(--bh) * .7); margin-left: 0; }
.b3d__front { border-radius: 1px 3px 3px 1px; box-shadow: inset 3px 0 6px -3px rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.06); }
.shelf__item:focus-visible { outline: none; } .shelf__item:focus-visible .cap { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- typography and hierarchy ---------- */
.kicker { font-size: 13px; letter-spacing: .18em; }
.fourd { font-size: 13px; letter-spacing: .12em; gap: 6px 8px; }
.fourd li + li::before { margin-right: 8px; }
.fourd li { color: var(--fourd-off, var(--dim)); }
.reigns { font: italic 600 clamp(19px, 2.6vh, 24px)/1.25 var(--serif); max-width: 24em; }
.lede { font-size: clamp(17px, 2.3vh, 19.5px); }
.tri h1 { font-size: clamp(32px, 5.2vh, 50px); }
.btn-join { font-size: 13.5px; padding: 13px 22px; }
.btn-ghost { font-size: 14px; padding: 12px 18px; }
.quals { letter-spacing: .05em; }

/* ---------- book captions: readable on every background (a quiet plate behind the text) ---------- */
.cap { width: max(calc(var(--tc) * .7 + 12px), 9.5em); padding: 9px 10px 11px; border-radius: 12px; background: var(--cap-bg, rgba(16,14,12,.55)); gap: 3px; }
.cap__n { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; color: var(--cap-n, var(--muted)); }
.cap strong { font: 700 15px/1.22 var(--display); letter-spacing: .02em; }
.cap em { font-size: 17px; }
[data-theme="warm"], body[data-chrome="warm"] { --cap-bg: rgba(28,23,19,.66); --cap-n: #e6dccb; --fourd-off: rgba(246,239,226,.55); }
[data-theme="ivory"], body[data-chrome="ivory"] { --cap-bg: rgba(255,252,246,.82); --cap-n: #4c5563; --fourd-off: rgba(27,35,48,.5); }
[data-theme="navy"], body[data-chrome="navy"] { --cap-bg: rgba(12,20,33,.62); --cap-n: #c9d3de; --fourd-off: rgba(238,241,245,.52); }

/* ---------- Warm Horizon: balanced split, covers kept clear of the right edge ---------- */
[data-theme="warm"] .tri--split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
[data-theme="warm"] .tri__books { --tc: clamp(180px, min(44vh, 19vw), 360px); }
@media (min-width: 1600px) { :root { --maxw: 1440px; } }
@media (max-width: 760px) { body[data-chrome="warm"] { --scrim: linear-gradient(180deg, rgba(28,23,19,.82), rgba(28,23,19,.55) 50%, rgba(28,23,19,.78)); } }

/* ---------- Ivory Cinema: centred; the longer tagline gets its own centred column ---------- */
[data-theme="ivory"] .tri__foot { grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); }
[data-theme="ivory"] .tri__foot .reigns { text-align: center; max-width: 13em; }
[data-theme="ivory"] .tri__foot .acts-row { flex-wrap: nowrap; }
@media (min-width: 1101px) { [data-theme="ivory"] .cap { width: max(calc(var(--tc) * .7 + 44px), 12.5em); } [data-theme="ivory"] .shelf { --shelf-gap: 18px; } }
[data-theme="ivory"] .tri__books { --tc: clamp(160px, min(29vh, 20vw), 320px); }
[data-theme="ivory"] .tri--center { gap: clamp(10px, 2vh, 22px); }
[data-theme="ivory"] .mini-author p { max-width: 360px; }

/* ---------- Quiet Navy: wider text column, roomier author card ---------- */
[data-theme="navy"] .tri--three { grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 250px); }
[data-theme="navy"] .tri__books { --tc: clamp(160px, min(42vh, 16vw), 290px); }
[data-theme="navy"] .tri__author { gap: 8px; padding: 20px; }
[data-theme="navy"] .tri__line { font-size: 15.5px; }
[data-theme="navy"] .tri__author .quals { white-space: normal; font-size: 13px; letter-spacing: .03em; } /* stays inside the card */

/* ---------- book pages: kicker, other books ---------- */
.bk .kicker { gap: 6px 14px; }
.kicker__m { color: var(--muted); white-space: nowrap; }
.bk__others { display: flex; gap: 14px; margin-top: 4px; }
.bk__others a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--chip); }
.bk__others img { width: 34px; height: auto; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(0,0,0,.6); }
.bk__others span { display: grid; gap: 2px; font: 600 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk__others b { font: 700 14px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--fg); }
.bk__others a:hover b { color: var(--accent); }
@media (min-width: 761px) and (max-height: 820px) { .bk__others { display: none; } } /* one-screen desktop: the menu already links every book */

/* book pages: the ORIGINAL arrangement (cover anchored left, text left-aligned beside it; not centred).
   The right-hand space the original left empty now holds a light, uncrowded link column to the other two books. */
/* "Also in the trilogy": the other two books as small 3D books with lettered spines.
   Desktop (from 1000px wide, ANY height: real browser windows and Windows display scaling give much smaller viewports
   than the screen size) → right-hand column sized to the window height. Narrower screens → a row below the main content. */
.bk__others { display: none !important; } /* superseded by the panel below */
.bk__rail { display: grid; gap: 12px; justify-items: center; }
.bk__rail-t { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--cap-n, var(--muted)); }
.bk__rail-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 28px; --tc: 150px; }
.bk__rail .shelf__item { gap: 8px; }
.bk__rail .cap { width: 150px; padding: 0; background: none; gap: 3px; animation: none; }
.bk__rail .cap__n { font-size: 11px; letter-spacing: .12em; }
.bk__rail .cap strong { font: 600 16px/1.2 var(--serif); letter-spacing: 0; color: var(--fg); text-wrap: balance; }
.bk__rail .cap em { font-size: 15px; }
.bk__rail .shelf__item:hover .cap strong, .bk__rail .shelf__item:focus-visible .cap strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 1000px) {
  .bk { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(28px, 3.8vw, 80px); }
  .bk__cover { --tc: min(64vh, 540px, 34vw); }
  .bk__text { max-width: 640px; }
  .bk__rail { width: 176px; align-self: center; padding: 2px 0 2px clamp(18px, 2vw, 32px); border-left: 1px solid var(--line); }
  .bk__rail-list { display: grid; justify-items: center; gap: clamp(10px, 2.6vh, 22px); --tc: clamp(96px, 17vh, 160px); }
  .bk__rail .cap { width: 140px; }
}
/* short desktop windows (laptops, browser toolbars, display scaling): keep one screen */
@media (min-width: 1000px) and (max-height: 620px) {
  .bk__rail { gap: 8px; } .bk__rail-list { gap: 8px; --tc: clamp(80px, 15vh, 120px); }
  .bk__rail .cap em { display: none; } .bk__rail .cap strong { font-size: 15px; }
  .bk__text { gap: 8px; } .bk__copy { font-size: 17px; line-height: 1.5; }
}
@media (min-width: 761px) and (max-height: 720px) {
  [data-theme="ivory"] .tri__books { --tc: clamp(120px, min(21vh, 19vw), 300px) !important; }
  [data-theme="ivory"] .tri--center { gap: 8px; }
  .shelf .cap { padding-top: 6px; padding-bottom: 7px; gap: 2px; }
  .shelf .cap .soon { font-size: 11px; padding: 3px 8px; margin-top: 2px; }
  .shelf__item { gap: 8px; }
}
@media (max-width: 999px) {
  .bk__rail { grid-column: 1 / -1; justify-self: stretch; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .bk__rail-list { gap: 18px; --tc: 128px; } .bk__rail .cap { width: 140px; } }
/* book pages: body copy reads clearly on every background */
.bk__copy { color: color-mix(in srgb, var(--fg) 88%, var(--muted)); font-size: clamp(18px, 2.5vh, 20.5px); line-height: 1.6; }
.bk__sub { color: color-mix(in srgb, var(--fg) 72%, var(--muted)); }
.bk .fourd li:not(.on) { color: color-mix(in srgb, var(--fg) 62%, transparent); }

/* homepage caption panels: identical size, title block and spacing on all three books */
.shelf { align-items: stretch; }
.shelf > li { display: flex; }
.shelf__item { grid-template-rows: auto 1fr; }
.shelf .cap { align-content: start; }
.shelf .cap strong { min-height: 2.5em; display: grid; align-content: center; text-wrap: balance; overflow-wrap: anywhere; }
@media (min-width: 1101px) { [data-theme="ivory"] .tri__books { --tc: clamp(150px, min(26vh, 19vw), 300px); } [data-theme="ivory"] .cap { padding-top: 7px; padding-bottom: 8px; } }
@media (min-width: 761px) and (max-width: 1180px) { .motion { font-size: 12px; letter-spacing: .05em; padding: 7px 10px; } }
.shelf .cap { grid-template-columns: minmax(0, 1fr); } /* the text column never grows wider than its panel */
@media (min-width: 761px) and (max-width: 1100px) { .shelf .cap .soon { font-size: 11px; padding: 4px 8px; letter-spacing: .02em; } }
/* scenes page footer: Privacy (and the imprint) stay in the right-hand column, clear of the centred scene controls */
@media (min-width: 761px) { body[data-mode="rotate"] .ftr .contact { grid-column: 3; } }
.shelf .cap em { text-wrap: balance; }
/* author page: photo and text kept together as one centred pair */
.au { grid-template-columns: auto minmax(0, 600px); justify-content: center; column-gap: clamp(40px, 5vw, 80px); }
.au__photo { justify-self: center; }

/* ---------- author page: the three approved fronts ---------- */
.au__books { list-style: none; margin: 0; padding: 0; }
.au__books img { aspect-ratio: 7 / 10; height: clamp(84px, 13vh, 120px); }

/* ---------- footer: Privacy in place of the unverified contact email ---------- */
.ftr__privacy { padding: 4px 0; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ftr__privacy:hover { color: var(--accent); }

/* ---------- tablet landscape / small laptop: header never crowds ---------- */
@media (min-width: 761px) and (max-width: 1180px) {
  .brand__wm { display: none; }
  .act { padding: 9px; } .act span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav a { padding: 10px 9px; letter-spacing: .1em; }
  .btn-join--hdr { padding: 10px 14px; }
}
/* tablet: compositions that need width stack more simply */
@media (min-width: 761px) and (max-width: 1100px) {
  [data-theme="navy"] .tri--three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-theme="navy"] .tri__author { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
  [data-theme="navy"] .tri__author img { grid-row: span 5; }
  [data-theme="warm"] .tri--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tri__books { --tc: clamp(140px, min(36vh, 15vw), 240px) !important; }
  .shelf { --shelf-gap: 14px; } .cap { width: calc(var(--tc) * .7 + 24px); padding: 8px 6px 10px; } .cap strong { font-size: 13.5px; } .cap em { font-size: 15.5px; } .cap__n { font-size: 11px; letter-spacing: .1em; }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .view { align-items: start; padding-top: 32px; }
  .tri { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
  .tri__text { justify-items: center; } .tri .acts-row, .tri .fourd { justify-content: center; }
  [data-theme="ivory"] .tri__foot { grid-template-columns: 1fr; justify-items: center; }
  [data-theme="navy"] .tri__author { justify-self: stretch; text-align: left; }
  .bk, .au { grid-template-columns: 1fr; justify-items: center; }
  .bk__cover, .au__photo { justify-self: center; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .act--scan, .er-modal__scan { display: none; } /* the QR is for desktop visitors; a phone visitor is already on a phone */
  /* heading first, then the books, then the rest */
  .tri--split .tri__text, .tri--three .tri__text { display: contents !important; }
  .tri .lockup { order: 1; } .tri .tri__books { order: 2 !important; } .tri .lede { order: 3; } .tri .fourd { order: 4; }
  .tri .reigns { order: 5; } .tri .acts-row { order: 6; } .tri .mini-author { order: 7; } .tri .tri__author { order: 8; }
  [data-theme="ivory"] .tri__head { order: 1; } [data-theme="ivory"] .tri__foot { order: 3; grid-template-columns: minmax(0, 1fr); justify-items: center; }
  [data-theme="ivory"] .tri__foot .acts-row { flex-wrap: wrap; }
  .mini-author { max-width: 100%; } .mini-author .quals { white-space: normal; }
  .tri__books { --tc: min(156px, calc((100vw - 32px - 20px) / 2.15)) !important; }
  .shelf { --shelf-gap: 10px; }
  .cap { width: calc(var(--tc) * .7 + 6px); padding: 7px 4px 9px; border-radius: 10px; }
  .cap__n { font-size: 10px; letter-spacing: .08em; }
  .cap strong { font: 700 14.5px/1.15 var(--serif); }
  .cap em { font-size: 14px; }
  .cap .soon { font-size: 11px; padding: 4px 7px; }
  .reigns { max-width: none; }
  .acts-row { width: 100%; } .acts-row > * { flex: 1 1 auto; justify-content: center; }
  [data-theme="navy"] .tri__author { width: 100%; }
  .bk, .au { grid-template-columns: minmax(0, 1fr); }
  .bk__cover { padding: 0; }
  .bk .kicker { font-size: 12px; }
  .bk__others { flex-wrap: wrap; } .bk__others a { flex: 1 1 140px; }
  /* motion control sits in the footer instead of floating over the text */
  .motion { position: static; width: auto; height: auto; padding: 8px 14px; border-radius: 999px; display: inline-block; background: transparent; }
  .motion span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .motion::before { content: none; }
  .is-paused .motion::before { content: none; }
}

/* ---------- rotating homepage (body[data-mode="rotate"]) ---------- */
.scenes { display: grid; }
.scene { grid-area: 1 / 1; position: relative; z-index: 0; isolation: isolate; display: grid; align-items: center; color: var(--fg);
  opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }
.stage--scene { z-index: -1; }
body[data-mode="rotate"][data-route="trilogy"] > .stage { visibility: hidden; }
.view.play .scene .b3d, .view.play .scene .cap { animation: none; }
.view.play .scene.run .b3d { animation: var(--enter, enter-rise) 1.3s var(--ease) both; animation-delay: calc(.15s + var(--i) * .3s); }
.view.play .scene.run .cap { animation: fade-up .8s var(--ease) both; animation-delay: calc(.7s + var(--i) * .3s); }
body[data-mode="rotate"] .ftr .contact { display: flex; align-items: center; gap: 18px; }
.scene-ctl { position: fixed; left: 50%; bottom: 3px; translate: -50% 0; z-index: 31; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px);
  margin: 0; padding: 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--fg); font: 600 13px/1 var(--sans); backdrop-filter: blur(8px); }
.scene-ctl__btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font: 400 22px/1 var(--serif); cursor: pointer; }
.scene-ctl__btn:hover, .scene-ctl__play:hover { border-color: var(--accent); color: var(--accent); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene-ctl__picks { display: flex; gap: 4px; }
.scene-ctl__pick { padding: 8px 13px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; letter-spacing: .05em; cursor: pointer; white-space: nowrap; }
.scene-ctl__pick:hover { color: var(--accent); }
.scene-ctl__pick[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.scene-ctl__short { display: none; }
.scene-ctl__play { min-width: 8.6em; white-space: nowrap; }
@media (max-width: 1280px) { .scene-ctl__long { display: none; } .scene-ctl__short { display: inline; } }
@media (max-width: 1180px) { body[data-mode="rotate"] .ftr .imprint { display: none; } }
.scene-ctl__play { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; letter-spacing: .06em; cursor: pointer; }
.scene-ctl__r, .scene-ctl.is-paused .scene-ctl__p { display: none; } .scene-ctl.is-paused .scene-ctl__r { display: inline; }
.scene-ctl__bar { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; overflow: hidden; border-radius: 2px; }
.scene-ctl__bar i { display: block; width: 0; height: 100%; background: var(--accent); opacity: .75; }
.scene-ctl.ticking .scene-ctl__bar i { animation: scene-tick 9s linear forwards; }
@keyframes scene-tick { to { width: 100%; } }
@media (max-width: 760px) {
  body[data-mode="rotate"] .view--trilogy { display: flex; flex-direction: column; gap: 14px; }
  body[data-mode="rotate"] .view--trilogy > .scenes { order: 2; }
  .scene { align-items: start; }
  .scene-ctl { order: 1; position: relative; left: auto; bottom: auto; translate: none; align-self: center; z-index: 5; }
  .scene-ctl { gap: 4px; padding: 4px; font-size: 12.5px; } .scene-ctl__picks { gap: 2px; } .scene-ctl__pick { padding: 7px 8px; letter-spacing: .02em; }
  .scene-ctl__btn { width: 28px; height: 28px; } .scene-ctl__play { padding: 8px 10px; min-width: 0; letter-spacing: .02em; }
  .scene[data-theme="navy"] .tri__author { display: none; } /* keeps the three scenes a similar height on phones */
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene.on { transition: none !important; }
  .view.play .scene.run .b3d, .view.play .scene.run .cap, .scene-ctl.ticking .scene-ctl__bar i { animation: none !important; }
}
/* the scene container must not animate: an active transform would box in the scenes' full-screen backgrounds */
body[data-mode="rotate"] .view--trilogy > .scenes { animation: none; }

/* ---------- homepage books, 2 Dec (final visual adjustment): books enlarged; caption panels match the books' visible width ----------
   Desktop only (>= 1101px). The visible width of a book at the original 36deg turn is about 0.64 x its height (--tc), so each
   panel is 0.66 x --tc wide (never narrower than 150px, for readable titles), the same for all three, centred under its book. */
@media (min-width: 1101px) {
  /* --tc-want = the enlarged size; the shelf then caps it so three books (0.7 x --tc wide each) always fit their own column */
  .tri__books { container-type: inline-size; width: 100%; justify-self: stretch; }
  [data-theme="warm"] .tri__books { --tc-want: clamp(190px, min(48vh, 21vw), 390px); }
  [data-theme="ivory"] .tri__books { --tc-want: clamp(160px, min(29vh, 21.5vw), 340px); }
  [data-theme="navy"] .tri--three { grid-template-columns: minmax(0, 380px) minmax(0, 1fr) minmax(0, 224px); }
  [data-theme="navy"] .tri__books { --tc-want: clamp(170px, min(46vh, 18.5vw), 330px); }
  [data-theme] .tri .shelf { --shelf-gap: clamp(20px, 2.4vw, 44px); --tc: min(var(--tc-want, 300px), calc((100cqw - 2 * var(--shelf-gap)) / 2.1)); }
  [data-theme="navy"] .tri .shelf { --shelf-gap: clamp(16px, 1.6vw, 28px); }
  [data-theme] .tri .shelf .cap { width: max(calc(var(--tc) * .66), 150px); }
  [data-theme="ivory"] .tri--center { gap: clamp(6px, 1.2vh, 16px); }
}
@media (min-width: 1101px) and (max-height: 720px) { [data-theme="ivory"] .tri__books { --tc-want: clamp(120px, min(21vh, 19vw), 300px); } }
@media (min-width: 1600px) { [data-theme="navy"] .tri--three { grid-template-columns: minmax(0, 460px) minmax(0, 1fr) minmax(0, 250px); } }
@media (min-width: 1720px) { [data-theme="navy"], body[data-chrome="navy"], [data-theme="warm"], body[data-chrome="warm"] { --maxw: 1600px; } } /* wide screens: Navy's three columns get room for larger books */

/* ---------- homepage wording, 2 Dec (approved): six distinct levels ----------
   A series identity (small serif italic) · B trilogy label (gold capitals, existing) · C headline (largest, existing)
   D introduction (readable body text) · E journey (spaced capitals with arrows, one line on desktop) · F tagline (gold italic, existing) */
.series-id { margin: 0 0 2px; font: italic 500 clamp(15px, 2vh, 17.5px)/1.3 var(--serif); letter-spacing: .04em; color: var(--muted); }
.tri .lockup__t { gap: 6px; }
.tri .lede { max-width: 31em; line-height: 1.5; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
[data-theme="ivory"] .tri .lede { margin: 2px auto 0; max-width: 50em; text-align: center; font-size: clamp(16px, 2.2vh, 19px); line-height: 1.45; }
@media (min-width: 1101px) { .tri .fourd { flex-wrap: nowrap; white-space: nowrap; } [data-theme="navy"] .tri .fourd { letter-spacing: .07em; gap: 6px 6px; } [data-theme="navy"] .tri .fourd li + li::before { margin-right: 6px; } }

/* caption journeys: "Dust → Discovery", "Discovery → Dependence", "Dependence → Destination" — one line each on desktop */
.tri .shelf .cap__arc { white-space: nowrap; font-size: 16px; }
@media (min-width: 1101px) { [data-theme] .tri .shelf .cap { width: max(calc(var(--tc) * .66), var(--cap-min, 172px)); padding-left: 8px; padding-right: 8px; } }
/* phones and tablets: each journey on two lines, the same way for all three books (no tiny type) */
@media (max-width: 1100px) { .tri .shelf .cap__arc { white-space: normal; } .tri .shelf .cap__arc span { display: block; } }
/* Ivory Cinema carries all six wording elements in one centred column: tighter spacing (not smaller books) keeps one screen */
@media (min-width: 1101px) and (max-height: 900px) {
  body[data-theme="ivory"] .view--trilogy, body[data-mode="rotate"] .view--trilogy { padding-top: 8px; padding-bottom: 8px; }
  [data-theme="ivory"] .tri--center { gap: 6px; }
  [data-theme="ivory"] .tri--center h1 { font-size: clamp(30px, 4.8vh, 46px); }
  [data-theme="ivory"] .tri .lockup__t { gap: 3px; }
  [data-theme="ivory"] .tri .lede { font-size: 16.5px; line-height: 1.4; max-width: 56em; }
  [data-theme="ivory"] .shelf__item { gap: 10px; }
  [data-theme="ivory"] .tri .shelf .cap { padding-top: 6px; padding-bottom: 7px; }
  [data-theme="ivory"] .mini-author p { max-width: 470px; }
  [data-theme="ivory"] .tri__foot { padding-top: 8px; }
}
@media (max-width: 760px) { [data-theme="ivory"] .tri .lede { text-align: left; margin-left: 0; } }

/* ---------- 2 Dec (content & navigation): biblical descriptor · Trilogy menu · Four Questions view · Book Two hook ---------- */
/* biblical descriptor: a quiet secondary line beside the trilogy label (wraps beneath it on narrow screens), never a heading */
.lockup__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0; }
.descriptor { position: relative; padding-left: 15px; font: 500 12.5px/1.3 var(--sans); letter-spacing: .07em; color: var(--muted); white-space: nowrap; }
.descriptor::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 1px; background: var(--accent); opacity: .8; }
.tri--center .lockup__label { justify-content: center; }
@media (max-width: 760px) { .tri--center .lockup__label { justify-content: flex-start; } }

/* primary menu (2 Dec): Trilogy | BigQ | Author, then the gold "Notify Me at Launch" button; slightly lighter, smaller type */
.nav { align-items: center; gap: clamp(4px, 1vw, 16px); }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .12em; padding: 10px 11px; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a[aria-current="page"]::after { left: 11px; right: 11px; }
.nav a[data-route="questions"] { text-transform: none; letter-spacing: .07em; } /* BigQ keeps its own spelling */
/* brand lockup: the approved monogram and GOD AND AI wordmark as one mark — matched optical height, shared centre line, hairline divider */
.brand { gap: 0; align-items: center; }
.brand__mono { height: 42px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.28)); }
.brand__wm { height: 25px; margin-top: 1px; }
@media (max-width: 760px) {
  .nav a { font-size: 12.5px; letter-spacing: .08em; padding: 0 2px; }
  .nav a[aria-current="page"]::after { left: 26%; right: 26%; }
  .brand__mono { height: 34px; } .brand__wm { height: 19px; }
  .btn-join--hdr { padding: 10px 12px; font-size: 12px; letter-spacing: .06em; }
}

/* Book Two: the thematic hook (not the subtitle) and the restored original description */
.bk__hook { position: relative; padding-left: 16px; font: italic 500 clamp(17px, 2.4vh, 20px)/1.35 var(--serif); color: var(--accent); }
.bk__hook::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; border-radius: 2px; background: var(--accent); opacity: .7; }
.bk__desc { display: grid; gap: .55em; }
.bk__desc .bk__copy { font-size: clamp(16.5px, 2.25vh, 19px); line-height: 1.5; }
.bk__desc .bk__copy--lead { color: var(--fg); font-weight: 600; }

/* Four Questions: four questions along the journey, spanned by three books */
.view--questions { align-items: start; }
.fq { display: grid; gap: clamp(18px, 3vh, 30px); padding: clamp(6px, 2vh, 22px) 0 12px; }
.fq__head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.fq__head h1 { font: 600 clamp(32px, 5.4vh, 50px)/1.08 var(--serif); }
.fq__grid { --g: clamp(14px, 1.6vw, 24px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.fq__card { position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(18px, 2.6vh, 26px) clamp(16px, 1.6vw, 24px) clamp(20px, 3vh, 28px);
  border-radius: 16px; border: 1px solid var(--line); background: var(--cap-bg, rgba(16,14,12,.55)); backdrop-filter: blur(6px); }
.fq__card + .fq__card::before { content: "→"; position: absolute; left: calc(var(--g) / -2); top: 30px; transform: translateX(-50%); font: 400 18px/1 var(--sans); color: var(--accent); opacity: .85; }
.fq__stage { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.fq__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); font: 600 14px/1 var(--display); letter-spacing: 0; }
.fq__label { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fq__label svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.fq__q { margin: 4px 0 0; font: 600 clamp(22px, 3.3vh, 28px)/1.18 var(--serif); color: var(--fg); text-wrap: balance; }
.fq__s { font-size: clamp(16.5px, 2.2vh, 18.5px); line-height: 1.45; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
/* the three books, each spanning two neighbouring questions (centre of one card to the centre of the next) */
.fq__books { --g: clamp(14px, 1.6vw, 24px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); margin: -4px 0 0; padding: 0; list-style: none; }
.fq__book { grid-row: 1; margin: 0 calc((100% - var(--g)) / 4); padding: 0 6px; }
.fq__book--1 { grid-column: 1 / 3; } .fq__book--2 { grid-column: 2 / 4; } .fq__book--3 { grid-column: 3 / 5; }
.fq__book a { position: relative; display: grid; justify-items: center; gap: 3px; padding-top: 16px; text-align: center; text-decoration: none; color: var(--fg); }
.fq__book a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 8px 8px; opacity: .75; }
.fq__book-n { font: 600 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fq__book b { font: 700 15px/1.2 var(--display); letter-spacing: .03em; }
.fq__book em { font: italic 500 16px/1.2 var(--serif); color: var(--accent); white-space: nowrap; }
.fq__book a:hover b, .fq__book a:focus-visible b { color: var(--accent); }
.fq__order { display: grid; justify-items: center; gap: 12px; max-width: 46em; margin: 0 auto; padding: 18px 12px 0; text-align: center; border-top: 1px solid var(--line); }
.fq__order-t { font-size: clamp(17px, 2.3vh, 19.5px); line-height: 1.5; color: color-mix(in srgb, var(--fg) 86%, var(--muted)); }
.fq__order .acts-row { justify-content: center; }
.view.play .fq__card { animation: fade-up .8s var(--ease) both; animation-delay: calc(.15s + var(--i) * .15s); }
@media (max-width: 1100px) {
  .fq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq__card:nth-child(3)::before { content: none; }
  .fq__books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fq__book { grid-row: auto; grid-column: auto !important; margin: 0; }
}
@media (max-width: 760px) {
  .fq__head { justify-items: start; text-align: left; }
  .fq__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fq__card + .fq__card::before, .fq__card:nth-child(3)::before { content: "↓"; left: 28px; top: -11px; transform: translate(-50%, -50%); }
  .fq__books { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .fq__book a { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cap-bg, rgba(16,14,12,.55)); }
  .fq__book a::before { content: none; }
  .fq__book-n { grid-row: span 2; align-self: center; }
  .fq__order { text-align: left; justify-items: start; padding-left: 0; padding-right: 0; }
  .fq__order .acts-row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .view.play .fq__card { animation: none; } }
@media (max-width: 760px) { .descriptor { padding-left: 0; white-space: normal; } .descriptor::before { content: none; } .fq__book a { grid-template-columns: 104px minmax(0, 1fr); } }

/* ---------- 3 Dec: six-link menu (Trilogy | Book I | Book II | Book III | BigQ | Author) and the Integrated Signature lockup ---------- */
@media (min-width: 761px) {
  .hdr { grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(12px, 1.6vw, 28px); }
  .nav { justify-content: center; gap: clamp(0px, .4vw, 6px); }
  .nav a { --np: clamp(6px, .7vw, 11px); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; padding: 10px var(--np); }
  .nav a[aria-current="page"]::after { left: var(--np); right: var(--np); }
}
.nav__book .n-k, .nav__book .n-v { font: inherit; letter-spacing: inherit; }
/* Integrated Signature: monogram slightly smaller, wordmark larger, no divider, one shared centre line, a quiet gold "The Trilogy" beneath */
.brand { gap: 9px; align-items: center; }
.brand__mono { height: 38px; }
.brand__sig { display: grid; justify-items: center; align-content: center; gap: 3px; }
.brand__wm { display: block; height: 29px; width: auto; margin: 0; }
.brand__tag { font: 600 8.5px/1 var(--sans); letter-spacing: .44em; padding-left: .44em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .brand__wm { display: block; height: 25px; } .brand__mono { height: 34px; } .brand__tag { font-size: 7.5px; }
  .nav a { --np: 6px; font-size: 11.5px; letter-spacing: .07em; }
  .btn-join--hdr .j-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .btn-join--hdr .j-short { display: inline; }
}
@media (max-width: 760px) {
  .brand { gap: 7px; } .brand__mono { height: 31px; } .brand__wm { height: 22px; } .brand__tag { font-size: 6.5px; letter-spacing: .4em; padding-left: .4em; }
  .nav { padding: 0 2px env(safe-area-inset-bottom); }
  .nav a { font-size: 10.5px; letter-spacing: .04em; padding: 0 1px; }
  .nav a[aria-current="page"]::after { left: 20%; right: 20%; }
  .nav a.nav__book { display: grid; place-items: center; align-content: center; gap: 2px; }
  .nav__book .n-k { font: 600 8.5px/1 var(--sans); letter-spacing: .14em; }
  .nav__book .n-v { font: 600 14px/1 var(--display); letter-spacing: .04em; }
}
@media (max-width: 760px) { .nav { align-items: stretch; } .nav a { height: 100%; } }

/* ---------- 3 Dec (final desktop fit & homepage cleanup) ----------
   Homepage: hero buttons removed (the header keeps Notify Me at Launch); the headline spans the composition on ONE line on
   desktop; the author is presented larger. Every desktop page fits one window: sizes that depend on height are capped by the
   window height (100svh) so short windows (browser toolbars, Windows display scaling) tighten spacing first, then scale. */
.mini-author { gap: clamp(14px, 1.4vw, 20px); }
.mini-author__ph { flex: none; display: block; border-radius: 50%; }
.mini-author img { width: clamp(84px, 15vh, 132px); height: auto; aspect-ratio: 1; box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px var(--chip), 0 18px 36px -18px rgba(0,0,0,.6); }
.mini-author p { gap: 4px; max-width: 440px; }
.mini-author__k { font-size: 11.5px; letter-spacing: .2em; }
.mini-author strong { font: 700 clamp(16px, 2.4vh, 19px)/1.2 var(--display); letter-spacing: .04em; }
.mini-author .quals { font-size: 13px; letter-spacing: .05em; margin: 0; }
.mini-author__line { font-size: clamp(16px, 2.2vh, 17.5px); line-height: 1.4; color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
.tri--split .mini-author { margin-top: clamp(2px, 1vh, 10px); padding-top: clamp(12px, 2.2vh, 22px); border-top: 1px solid var(--line); }
[data-theme="navy"] .tri__author img { width: clamp(96px, 17vh, 150px); box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px var(--chip); }
[data-theme="navy"] .tri__author { justify-items: center; text-align: center; }
[data-theme="navy"] .tri__name { font-size: clamp(16px, 2.4vh, 19px); }
[data-theme="navy"] .tri__author .kicker { margin-top: 4px; }

/* (3 Dec layout correction: the full-width headline and the Ivory/Navy flanking arrangements were withdrawn — see the block at the end) */
/* approved book sizes at full-height windows are unchanged; on shorter windows the books give way to the header, headline and footer */
@media (min-width: 1101px) {
  [data-theme="warm"] .tri__books { --tc-want: clamp(150px, min(48vh, 21vw, 100svh - 380px), 390px); }
  [data-theme="navy"] .tri__books { --tc-want: clamp(150px, min(46vh, 18.5vw, 100svh - 380px), 330px); }
}
@media (min-width: 761px) and (max-height: 720px) {
  .view { padding-top: 8px; padding-bottom: 8px; }
  .tri .lockup__t { gap: 2px; } .series-id { font-size: 14.5px; }
  [data-theme="warm"] .tri__text, [data-theme="navy"] .tri__text { gap: 10px; }
  .shelf .cap strong { min-height: 0; }
  [data-theme="ivory"] .tri__books { --tc: clamp(100px, min(29vh, 100svh - 420px), 240px) !important; }
  [data-theme="ivory"] .shelf { --shelf-gap: 14px; }
}

/* landscape tablets / small laptops: books sized to the window height */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {
  .tri__books { --tc: clamp(110px, min(36vh, 15vw, 100svh - 400px), 240px) !important; }
}

/* book pages: the title and question pair scale with width as well as height; short windows set the question pair on one line */
@media (min-width: 761px) {
  .bk h1 { font-size: clamp(30px, min(6.6vh, 3.7vw), 60px); }
  .bk__cover { --tc: min(64vh, 540px, 32vw, 100svh - 150px); }
}
@media (min-width: 761px) and (max-height: 760px) {
  .bk__text { gap: clamp(6px, 1.4vh, 12px); }
  .bk__qs { display: flex; flex-wrap: wrap; gap: 0 .5em; } .bk__qs q { font-size: clamp(24px, 4.6vh, 34px); } .qb { padding-left: 0; }
  .bk__sub { font-size: clamp(18px, 2.9vh, 22px); }
  .bk__desc { gap: .4em; } .bk__desc .bk__copy { font-size: clamp(16.5px, 2.4vh, 18px); line-height: 1.45; }
  .bk__copy { font-size: clamp(17px, 2.5vh, 19px); line-height: 1.5; }
  .bk .acts-row .btn-join, .bk .acts-row .btn-ghost { padding-top: 10px; padding-bottom: 10px; }
}

/* BigQ: one balanced screen — stage and label share a line, the closing passage sits beside the tagline and actions */
.view--questions { align-items: center; }
.fq { gap: clamp(10px, 2.6vh, 30px); padding: 0; }
.fq__head { gap: 4px; }
.fq__head h1 { font-size: clamp(28px, min(5.4vh, 3.6vw), 50px); }
.fq__card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(6px, 1.2vh, 12px) 8px;
  padding: clamp(12px, 2.4vh, 26px) clamp(14px, 1.5vw, 24px) clamp(14px, 2.6vh, 28px); }
.fq__card > .fq__q, .fq__card > .fq__s { grid-column: 1 / -1; }
.fq__card + .fq__card::before { top: calc(clamp(12px, 2.4vh, 26px) + 14px); }
.fq__label { gap: 6px; font-size: 12px; letter-spacing: .14em; }
.fq__q { margin-top: 2px; font-size: clamp(20px, 3.3vh, 28px); line-height: 1.15; }
.fq__s { font-size: clamp(16px, 2.2vh, 18.5px); line-height: 1.4; }
.fq__books { margin-top: calc(-1 * clamp(2px, 1vh, 10px)); }
.fq__book a { padding-top: clamp(12px, 1.8vh, 16px); gap: 2px; }
.fq__order { max-width: 1060px; padding-top: clamp(10px, 2vh, 20px); }
.fq__order-cta { display: grid; justify-items: center; gap: clamp(8px, 1.4vh, 12px); }
@media (min-width: 901px) and (orientation: landscape) {
  .fq__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fq__card:nth-child(3)::before { content: "→"; }
  .fq__books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fq__book { grid-row: 1; margin: 0 calc((100% - var(--g)) / 4); }
  .fq__book--1 { grid-column: 1 / 3 !important; } .fq__book--2 { grid-column: 2 / 4 !important; } .fq__book--3 { grid-column: 3 / 5 !important; }
  .fq__order { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(24px, 3vw, 48px); text-align: left; justify-items: stretch; }
  .fq__order-cta { justify-items: start; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
  .fq__order .reigns { text-align: left; }
  .fq__order .acts-row { justify-content: flex-start; flex-wrap: nowrap; }
}
@media (min-width: 761px) and (max-height: 640px) {
  .fq__num { width: 24px; height: 24px; font-size: 13px; }
  .fq__stage { font-size: 12px; gap: 8px; } .fq__label svg { width: 19px; height: 19px; }
  .fq__order .btn-join, .fq__order .btn-ghost { padding-top: 10px; padding-bottom: 10px; }
}
/* rotating demo on phones: the homepage view stays hidden on the other pages (its mobile flex layout had overridden [hidden]) */
body[data-mode="rotate"] .view--trilogy[hidden] { display: none !important; }
@media (max-width: 760px) { .mini-author img { width: 96px; } .mini-author { align-items: center; } }

/* ---------- 3 Dec (restore three distinct homepage designs) ----------
   Each design keeps its own composition; nothing below is a common grid. Warm Horizon: the approved two-column layout.
   Ivory Cinema: centred cinematic head, the author at left and the tagline at right flanking the books. Quiet Navy: text | books |
   author card at right. The series-identity line is about 2pt larger in all three. */
.series-id { font-size: clamp(17.5px, 2.35vh, 20px); }

/* ===== Warm Horizon: left = message above the author feature; right = the books ===== */
@media (min-width: 761px) and (orientation: landscape) {
  [data-theme="warm"] .tri--split { --lead-w: clamp(420px, 37vw, 640px); display: grid; grid-template-columns: minmax(0, var(--lead-w)) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px); align-items: center; }
  [data-theme="warm"] .tri--split h1 { font-size: clamp(22px, calc(var(--lead-w) / 18), 38px) !important; white-space: nowrap; }
  [data-theme="warm"] .tri--split h1 span { display: inline !important; }
  [data-theme="warm"] .tri--split > .tri__books { grid-column: 2; }
  [data-theme="warm"] .tri .mini-author { width: 100%; max-width: none; margin: clamp(0px, 1vh, 8px) 0 0; padding-top: clamp(12px, 2.4vh, 24px); border-top: 1px solid var(--line); gap: clamp(16px, 1.6vw, 24px); }
  [data-theme="warm"] .tri .mini-author img { width: clamp(96px, 18.5vh, 168px); }
  [data-theme="warm"] .tri .mini-author p { max-width: none !important; }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {
  [data-theme="warm"] .tri--split { --lead-w: 47vw; }
  [data-theme="warm"] .tri .fourd { flex-wrap: nowrap; white-space: nowrap; letter-spacing: .08em; }
}

/* ===== Ivory Cinema: centred head with the one-line headline; author (left) and tagline (right) flank the books ===== */
@media (min-width: 761px) {
  [data-theme="ivory"] .tri h1 { font-size: clamp(30px, min(6vh, 3.7vw), 58px) !important; white-space: nowrap; }
  [data-theme="ivory"] .tri h1 span { display: inline !important; }
}
@media (min-width: 761px) and (orientation: landscape) {
  [data-theme="ivory"] .tri--center { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(18px, 2.4vw, 40px); }
  [data-theme="ivory"] .tri__head { grid-column: 1 / -1; }
  [data-theme="ivory"] .tri__books { grid-column: 2; grid-row: 2; }
  [data-theme="ivory"] .tri__foot { display: contents; }
  [data-theme="ivory"] .tri__foot .mini-author { grid-column: 1; grid-row: 2; justify-self: end; align-self: center; flex-direction: column; text-align: center; gap: clamp(8px, 1.6vh, 14px); }
  [data-theme="ivory"] .tri__foot .mini-author img { width: clamp(80px, 16vh, 150px); }
  [data-theme="ivory"] .tri__foot .mini-author p { justify-items: center; max-width: 260px !important; }
  [data-theme="ivory"] .tri__foot .reigns { grid-column: 3; grid-row: 2; justify-self: start; align-self: center; max-width: 9em; text-align: left; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {
  [data-theme="ivory"] .tri--center { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  [data-theme="ivory"] .tri__foot .mini-author p { max-width: 300px !important; }
}
@media (min-width: 761px) and (max-height: 600px) and (orientation: landscape) { [data-theme="ivory"] .tri__foot .mini-author img { width: clamp(72px, 13.5vh, 150px); } [data-theme="ivory"] .tri__head { gap: 6px; } [data-theme="ivory"] .tri--center { row-gap: 6px; } }
@media (min-width: 1101px) and (max-height: 720px) and (orientation: landscape) { [data-theme="ivory"] .tri__books { --tc-want: clamp(110px, min(29vh, 100svh - 430px), 300px); } }

/* ===== Quiet Navy: text column | books | author card at right (its original three-column composition) ===== */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {
  [data-theme="navy"] .tri--three { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 190px); column-gap: 22px; }
  [data-theme="navy"] .tri__author { grid-column: auto; grid-template-columns: none; padding: 16px; }
  [data-theme="navy"] .tri__author img { grid-row: auto; width: clamp(72px, 13vh, 120px); }
  [data-theme="navy"] .tri__author .quals { font-size: 12px; }
  [data-theme="navy"] .tri__line { font-size: 15px; }
  [data-theme="navy"] .tri--three h1 { font-size: clamp(26px, min(5vh, 3.4vw), 40px); }
}
@media (min-width: 761px) and (max-height: 600px) and (orientation: landscape) {
  [data-theme="navy"] .tri__author { gap: 6px; padding: 14px; }
  [data-theme="navy"] .tri__author .btn-ghost { padding: 6px 12px; }
  [data-theme="navy"] .tri--three .lede { line-height: 1.4; }
}

/* ===== captions match the visible (perspective-turned) book width, centred under each book, equal in each scene =====
   The turned book shows about --vis x its height; the journey line scales with the panel so it stays on one line. */
@media (min-width: 1101px) {
  [data-theme] .tri .shelf { --vis: .64; }
  [data-theme] .tri .shelf .cap { width: calc(var(--tc) * var(--vis)); min-width: 0; padding-left: 4px; padding-right: 4px; box-sizing: border-box; }
  [data-theme] .tri .shelf .cap__arc { font-size: clamp(12.5px, calc(var(--tc) * var(--vis) / 10.6), 16px); }
  [data-theme] .tri .shelf .cap strong { font-size: clamp(13.5px, calc(var(--tc) * var(--vis) / 10.5), 15px); }
  [data-theme] .tri .shelf .cap .soon { max-width: 100%; font-size: clamp(12px, calc(var(--tc) * var(--vis) / 11.5), 15px); padding: 4px 10px; gap: 5px; letter-spacing: .01em; }
}
body[data-mode="rotate"] .view--trilogy[hidden] { display: none !important; }
@media (max-width: 760px) { .mini-author img { width: 96px; } .mini-author { align-items: center; } }
/* very short windows only (books under ~180px): a caption never narrower than its "Coming soon" badge */
@media (min-width: 761px) and (max-height: 720px) and (orientation: landscape) {
  [data-theme] .tri .shelf .cap { min-width: 116px; }
  [data-theme] .tri .shelf .cap .soon { font-size: 11px; padding: 3px 7px; gap: 4px; }
}

/* ---------- 4 Dec (hierarchy refinement): message first, then books, then author, then captions ----------
   Books larger in all three designs; caption panels lighter and smaller so they support the books; Ivory's author photo larger
   and its tagline set as the author's centred counterpart on the right. Each design keeps its own composition. */
@media (min-width: 1101px) {
  /* the turned books show ~0.61 of their 0.7 layout width: neighbours sit a little closer, so the same column holds larger books */
  [data-theme] .tri .shelf > li { margin-inline: calc(var(--tc) * -.03); }
  [data-theme] .tri .shelf { --shelf-gap: clamp(14px, 1.4vw, 26px); --tc: min(var(--tc-want, 300px), calc((100cqw - 2 * var(--shelf-gap)) / 1.92)); }
  [data-theme="warm"] .tri__books { --tc-want: clamp(150px, min(52vh, 25vw, 100svh - 330px), 420px); }
  [data-theme="navy"] .tri__books { --tc-want: clamp(150px, min(48vh, 22vw, 100svh - 360px), 380px); }
  [data-theme="ivory"] .tri__books { --tc-want: clamp(150px, min(35vh, 22vw, 100svh - 495px), 360px); }
  /* captions: quieter type that scales with the panel */
  [data-theme] .tri .shelf .cap strong { font-size: clamp(12.5px, calc(var(--tc) * var(--vis) / 12.5), 14px); }
  [data-theme] .tri .shelf .cap__arc { font-size: clamp(12.5px, calc(var(--tc) * var(--vis) / 12), 15px); }
  [data-theme] .tri .shelf .cap .soon { font-size: clamp(11.5px, calc(var(--tc) * var(--vis) / 14), 13px); padding: 3px 9px; }
}
@media (min-width: 761px) {
  /* caption panels: translucent, compact, no heavier than the text they carry */
  [data-theme] .tri .shelf .cap { padding: 6px 4px 8px; gap: 2px; border-radius: 9px; background: color-mix(in srgb, var(--cap-bg) 38%, transparent); box-shadow: none; }
  [data-theme="warm"] .tri .shelf .cap strong { min-height: 1.2em; } /* Warm titles sit on one line: no reserved second line */
  [data-theme] .tri .shelf .cap__n { font-size: 11px; letter-spacing: .13em; }
  [data-theme] .tri .shelf .cap strong { min-height: 2.3em; line-height: 1.15; }
}
/* Ivory Cinema: larger author photo; the tagline mirrors the author as a centred, framed line on the right */
@media (min-width: 761px) and (orientation: landscape) {
  [data-theme="ivory"] .tri__foot .mini-author img { width: clamp(100px, 22vh, 200px); }
  [data-theme="ivory"] .tri__foot .reigns { justify-self: center; text-align: center; max-width: 10em; padding: 14px 0; border-left: 0;
    font-size: clamp(20px, 3vh, 28px); line-height: 1.3; display: grid; justify-items: center; gap: 12px; }
  [data-theme="ivory"] .tri__foot .reigns::before, [data-theme="ivory"] .tri__foot .reigns::after { content: ""; width: 44px; height: 1px; background: var(--accent); opacity: .6; }
}
@media (min-width: 761px) and (max-height: 720px) and (orientation: landscape) {
  [data-theme="ivory"] .tri__foot .mini-author img { width: clamp(72px, 16vh, 150px); }
  [data-theme="ivory"] .tri__foot .reigns { font-size: 18px; gap: 8px; padding: 6px 0; }
}
@media (min-width: 1101px) and (max-height: 720px) and (orientation: landscape) { [data-theme="ivory"] .tri__books { --tc-want: clamp(110px, min(30vh, 100svh - 420px), 300px); } }

/* ---------- 4 Dec (final mobile/tablet validation): genuine defects only ----------
   small phones: scene controls wrap instead of pushing the page sideways; caption labels never below 11px; caption panels as
   light as on desktop; Quiet Navy's author card shown on phones (its scene no longer ends in an empty band).
   portrait tablets: header items no longer overlap; homepage follows the phone order (headline, books, text, author) with
   larger books; scene controls sit above the scene instead of crowding the footer. */
@media (max-width: 760px) {
  [data-theme] .tri .shelf .cap { background: color-mix(in srgb, var(--cap-bg) 55%, transparent); }
  [data-theme] .tri .shelf .cap__n { font-size: 11px; }
  .scene[data-theme="navy"] .tri__author { display: grid; }
}
@media (max-width: 400px) {
  .scene-ctl { flex-wrap: wrap; justify-content: center; border-radius: 20px; row-gap: 4px; max-width: 100%; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .brand { gap: 6px; } .brand__mono { height: 30px; } .brand__wm { height: 20px; } .brand__tag { font-size: 6.5px; letter-spacing: .36em; }
  .hdr { gap: 10px; }
  .nav { gap: 0; }
  .nav a { --np: 5px; font-size: 11px; letter-spacing: .05em; }
  .nav a.nav__book { display: grid; place-items: center; gap: 1px; padding-top: 4px; padding-bottom: 4px; }
  .nav__book .n-k { font: 600 8px/1 var(--sans); letter-spacing: .12em; }
  .nav__book .n-v { font: 600 13px/1 var(--display); letter-spacing: .04em; }
  .act { padding: 8px; }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .tri--split .tri__text, .tri--three .tri__text { display: contents !important; }
  .tri .lockup { order: 1; } .tri .tri__books { order: 2 !important; } .tri .lede { order: 3; } .tri .fourd { order: 4; }
  .tri .reigns { order: 5; } .tri .mini-author { order: 7; } .tri .tri__author { order: 8; }
  [data-theme="ivory"] .tri__head { order: 1; } [data-theme="ivory"] .tri__books { order: 2 !important; } [data-theme="ivory"] .tri__foot { order: 3; }
  .tri { row-gap: 18px; }
  .tri__books { --tc: min(250px, calc((100vw - 64px - 40px) / 2.1)) !important; }
  .shelf { --shelf-gap: 20px; }
  [data-theme] .tri .shelf .cap { width: calc(var(--tc) * .66); }
  .tri .mini-author { justify-content: center; text-align: left; }
  [data-theme="navy"] .tri__author { max-width: 560px; justify-self: center; }
  body[data-mode="rotate"] .view--trilogy { display: flex; flex-direction: column; gap: 16px; }
  body[data-mode="rotate"] .view--trilogy > .scenes { order: 2; }
  .scene { align-items: start; }
  .scene-ctl { order: 1; position: relative; left: auto; bottom: auto; translate: none; align-self: center; z-index: 5; }
}

/* ---------- 4 Dec (production mobile refinements) ----------
   phones: the three scenes share one grid cell, so the page took the height of the tallest scene (Quiet Navy) and Warm/Ivory
   ended in a blank band after the author. Only the visible scene now sets the height; the others are layered over it, clipped.
   The background-motion button is not shown on phones (reduced-motion settings still stop all motion). */
@media (max-width: 760px) {
  body[data-mode="rotate"] .scenes { position: relative; }
  body[data-mode="rotate"] .scene:not(.on) { position: absolute; inset: 0 0 auto 0; max-height: 100%; overflow: hidden; }
  .motion { display: none !important; }
}
