/* REVIEW 2026-12-01 copy of ../../shared/base.css (original unchanged). Fonts: Latin subsets (WOFF). */
/* GOD AND AI refined prototypes — shared foundation (layout grid, type scale, 3D books, stage, header/footer).
   Each theme file (warm / ivory / navy) sets colours, backdrop, motion style and its trilogy arrangement. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond-Italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat.woff") format("woff"); font-weight: 300 800; font-display: swap; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 36deg; }

:root {
  --hdr: 64px; --ftr: 42px; --gut: clamp(20px, 3.4vw, 56px); --maxw: 1260px;
  --display: "Cinzel", Georgia, serif; --serif: "Cormorant", Georgia, serif; --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --px: 0; --py: 0;
  /* theme tokens (overridden per theme) */
  --bg: #101a29; --fg: #f4efe4; --muted: #c5cdd6; --dim: rgba(244,239,228,.45); --accent: #f0c97c; --blue: #a6d2ff; --line: rgba(244,239,228,.18);
  --chip: rgba(10,16,26,.4); --hdr-bg: transparent; --ink: #18202c;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; padding-bottom: var(--ftr); background: var(--bg); color: var(--fg); font: 400 17px/1.5 var(--serif); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--accent); color: var(--ink); }
.skip:focus { left: 8px; }

/* ---------- stage: graded horizon from the final Book Three artwork, slow drift, sparse dust ---------- */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--sky, var(--bg)); }
.cam { position: absolute; inset: 0; transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0); transition: transform 1.2s var(--ease); }
.far { position: absolute; inset: -8%; background: center / cover no-repeat; opacity: var(--far-o, .5); animation: drift-far 60s ease-in-out infinite alternate; }
.near { position: absolute; left: -5%; right: -5%; bottom: 0; height: var(--nh, 66%); background: center bottom / cover no-repeat; opacity: var(--near-o, .7);
  -webkit-mask: linear-gradient(180deg, transparent, #000 38%); mask: linear-gradient(180deg, transparent, #000 38%);
  animation: drift-near 44s ease-in-out infinite alternate; transition: opacity 1s var(--ease); }
.glow { position: absolute; inset: 0; background: var(--glow, none); animation: breathe 14s ease-in-out infinite alternate; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: var(--scrim, none); transition: background 1s; }
body:not([data-route="trilogy"]) .near { opacity: calc(var(--near-o, .7) * .55); }
body:not([data-route="trilogy"]) .scrim { background: var(--scrim-inner, var(--scrim, none)); }
@keyframes drift-far { from { transform: scale(1.04) translate3d(1%, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes drift-near { from { transform: scale(1) translate3d(-1%, 0, 0); } to { transform: scale(1.05) translate3d(1.2%, -.5%, 0); } }
@keyframes breathe { from { opacity: .75; } to { opacity: 1; } }
.is-paused .far, .is-paused .near, .is-paused .glow { animation-play-state: paused; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 var(--gut); background: var(--hdr-bg); }
/* header identity: triangle monogram + the covers' own GOD AND AI lettering (extracted from the final cover artwork) */
.brand { justify-self: start; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand__mono { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.brand__wm { height: 30px; width: auto; }
.w-god, .w-ai { font-weight: 800; -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-god { background-image: var(--god-fill, linear-gradient(180deg, #fff3bf 0%, #fbc845 46%, #ec8a1e 100%)); filter: drop-shadow(0 0 7px rgba(255,150,40,.32)); }
.w-ai { background-image: var(--ai-fill, linear-gradient(180deg, #e4f7ff 0%, #62b9ff 50%, #1f6fe0 100%)); filter: drop-shadow(0 0 7px rgba(70,160,255,.32)); }
.w-and { font-size: .52em; letter-spacing: .14em; font-weight: 600; color: var(--muted); }
.nav { display: flex; justify-content: center; gap: clamp(2px, .8vw, 12px); }
.nav a { position: relative; padding: 10px 12px; text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-radius: 6px; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; }
.acts { justify-self: end; display: flex; align-items: center; gap: 8px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip);
  color: var(--fg); font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.act:hover { border-color: var(--accent); color: var(--accent); }
.btn-join { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 700 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #1a1408; background: linear-gradient(180deg, #ffe2a0, #e9b04e 68%, #cf9133);
  box-shadow: 0 10px 26px -12px rgba(200,140,50,.9), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .2s var(--ease), box-shadow .2s; }
.btn-join:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(200,140,50,1), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-join--hdr { padding: 11px 16px; font-size: 13px; }
.j-short { display: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--sans); letter-spacing: .06em; color: var(--fg); background: var(--chip); transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.acts-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- footer: motion control · OneHumanX imprint (live-site wording) · contact ---------- */
.ftr { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--ftr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gut); border-top: 1px solid var(--line); background: var(--ftr-bg, rgba(8,12,20,.55)); backdrop-filter: blur(8px); font: 500 14px/1 var(--sans); color: var(--muted); }
.motion { justify-self: start; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; color: var(--fg); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.motion:hover { border-color: var(--accent); }
.motion .motion__r, .is-paused .motion .motion__p { display: none; }
.is-paused .motion .motion__r { display: inline; }
.imprint { display: inline-flex; align-items: baseline; gap: .5em; font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.imprint__mark { font: 400 18px/1 var(--serif); letter-spacing: .05em; text-transform: none; color: var(--fg); }
.contact { justify-self: end; } .contact a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line); } .contact a:hover { color: var(--accent); }

/* ---------- views: one shared frame (margins, max width) ---------- */
main { position: relative; }
.view { min-height: calc(100svh - var(--hdr) - var(--ftr)); padding: clamp(10px, 2.4vh, 26px) var(--gut); display: grid; align-items: center; }
.view[hidden] { display: none; }
.view > * { width: 100%; max-width: var(--maxw); margin: 0 auto; animation: view-in .7s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* type scale (shared by all three themes) */
.kicker { font: 600 14px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.kicker span { color: var(--muted); }
.kicker .w-and { font-size: 1em; }
.lede { color: var(--muted); font-size: clamp(17px, 2.4vh, 20px); line-height: 1.45; max-width: 34em; }
.reigns { font: italic 600 clamp(21px, 3vh, 27px)/1.2 var(--serif); color: var(--accent); }
.fourd { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 600 14px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.fourd li { color: var(--dim); }
.fourd li + li::before { content: "→"; font-family: var(--sans); letter-spacing: 0; margin-right: 10px; color: var(--dim); }
.fourd li.on { color: var(--accent); }
.soon { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
  font: 700 14px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; background: var(--chip); vertical-align: middle; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* lockup: monogram beside the heading */
.lockup { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.mono { width: clamp(88px, 14vh, 128px); height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.lockup__t { display: grid; gap: 8px; }
.tri h1 { font: 600 clamp(34px, 5.5vh, 52px)/1.04 var(--serif); letter-spacing: -.005em; }
.tri h1 span { display: block; white-space: nowrap; }
.tri h1 span:last-child { color: var(--h1-2, var(--fg)); }

.mini-author { display: flex; align-items: center; gap: 14px; }
.mini-author img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); flex: none; }
.mini-author p { display: grid; gap: 3px; font-size: 16px; line-height: 1.35; color: var(--muted); max-width: 420px; }
.mini-author a { text-decoration: none; } .mini-author a:hover strong { color: var(--accent); }
.mini-author strong { font: 700 15px/1.2 var(--display); letter-spacing: .05em; color: var(--fg); }
.quals { font: 600 14px/1.3 var(--sans); letter-spacing: .06em; color: var(--accent); white-space: nowrap; }
.mini-author .quals { margin-bottom: 2px; }
.quals--lg { font-size: clamp(14px, 2vh, 16px); letter-spacing: .1em; margin-top: -4px; }

/* ---------- 3D books: final front cover + prototype spine treatment ---------- */
.b3d { --rh: 0deg; --bh: var(--tc, 300px); --bw: calc(var(--bh) * 2 / 3); --bt: calc(var(--bh) * .1172);
  position: relative; display: block; width: var(--bw); height: var(--bh); margin-left: calc(var(--bt) * .55); isolation: isolate; }
.b3d::after { content: ""; position: absolute; z-index: -1; left: -14%; right: -6%; bottom: calc(var(--bh) * -.045); height: calc(var(--bh) * .09); border-radius: 50%;
  background: radial-gradient(closest-side, var(--shadow, rgba(0,0,0,.55)), transparent); }
.b3d__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1900px) rotateY(calc(var(--ry) + var(--rh))); transition: transform .7s var(--ease); }
.b3d__front { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform: translateZ(calc(var(--bt) / 2)); 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); backface-visibility: hidden; }
.b3d__spine { position: absolute; top: 0; left: calc(50% - var(--bt) / 2); width: var(--bt); height: 100%; max-width: none;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); filter: brightness(.92); backface-visibility: hidden; }
a:hover > .b3d, a:focus-visible > .b3d { --rh: 12deg; }
.view.play .b3d { animation: var(--enter, enter-rise) 1.4s var(--ease) both; animation-delay: calc(.2s + var(--i) * .42s); }
@keyframes enter-rise { from { opacity: 0; transform: translateY(46px); --ry: 62deg; } }

.shelf { display: flex; justify-content: center; align-items: flex-start; gap: var(--shelf-gap, clamp(22px, 2.6vw, 44px)); }
.shelf__item { display: grid; justify-items: center; gap: calc(var(--tc) * .075 + 8px); text-decoration: none; }
.cap { display: grid; justify-items: center; gap: 4px; text-align: center; width: calc(var(--tc) * .74); }
.cap__n { font: 600 14px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cap strong { font: 700 16px/1.2 var(--display); letter-spacing: .03em; color: var(--fg); }
.cap em { font: italic 500 18px/1.2 var(--serif); color: var(--accent); }
.cap .soon { margin-top: 4px; }
.shelf__item:hover .cap strong { color: var(--accent); }
.view.play .cap { animation: fade-up .9s var(--ease) both; animation-delay: calc(.9s + var(--i) * .42s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- book view (identical structure in every theme) ---------- */
.bk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.bk__cover { --tc: min(66vh, 560px); justify-self: end; padding-right: 8px; }
.bk__cover .b3d { --ry: 30deg; }
.bk__text { display: grid; gap: clamp(10px, 1.8vh, 18px); justify-items: start; max-width: 620px; }
.bk .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bk h1, .au h1 { font: 700 clamp(36px, 6.6vh, 60px)/1.04 var(--display); letter-spacing: .01em; }
.bk__sub { font: italic 500 clamp(20px, 3vh, 25px)/1.3 var(--serif); color: var(--muted); }
.bk__qs { display: grid; gap: 2px; }
.bk__qs q { quotes: "“" "”"; font: 600 clamp(27px, 4.5vh, 40px)/1.12 var(--serif); }
.qa { color: var(--accent); } .qb { color: var(--blue); padding-left: 1.2em; }
.bk__copy { color: var(--muted); font-size: clamp(17px, 2.5vh, 20px); max-width: 34em; }

/* ---------- author view ---------- */
.au { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.au__photo { justify-self: end; }
.au__photo img { width: min(54vh, 430px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent), 0 0 0 14px var(--chip), 0 40px 80px -30px rgba(0,0,0,.7); }
.au__text { display: grid; gap: clamp(10px, 1.8vh, 16px); justify-items: start; max-width: 620px; }
.au__role { font: italic 500 clamp(20px, 3vh, 24px)/1.35 var(--serif); color: var(--accent); }
.au__bio { color: var(--muted); font-size: clamp(17px, 2.5vh, 20px); }
.au__books { display: flex; gap: 14px; }
.au__books img { height: clamp(88px, 14vh, 128px); width: auto; aspect-ratio: 2 / 3; border-radius: 2px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); transition: transform .3s var(--ease); }
.au__books a:hover img { transform: translateY(-4px); }
.au__group img { height: clamp(100px, 17vh, 150px); width: auto; aspect-ratio: 2 / 1; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.au__group:hover img { transform: translateY(-3px); }

/* ---------- live-site dialogs on a dark panel, as on the site ---------- */
.modal { font-family: var(--sans); }
.er-modal { background: #0f1b2b; color: #d9dfe6; width: min(520px, calc(100vw - 24px)); }
.er-modal h2 { color: #f6eedd; font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.er-modal .modal__close { color: #f6eedd; }
.er-modal__lead { margin: 0 0 12px; font-size: 15px; }
.er-modal .readers__panel { background: transparent; border: 0; padding: 0; }
.er-modal__scan { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #f6eedd; font: 600 14px var(--sans); cursor: pointer; width: 100%; }
.er-modal__scan img { background: #fff; border-radius: 6px; padding: 3px; }

/* ---------- mobile: adapted layout, bottom tabs, footer in flow (scrolling allowed) ---------- */
@media (max-width: 760px) {
  :root { --hdr: 56px; --tab: 60px; --gut: 16px; }
  body { padding-bottom: var(--tab); }
  .hdr { grid-template-columns: auto 1fr; gap: 10px; background: var(--hdr-solid, rgba(10,15,24,.92)); }
  .brand { gap: 8px; } .brand__mono { height: 36px; } .brand__wm { height: 22px; }
  .j-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .j-short { display: inline; }
  .act { padding: 9px; } .act span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn-join--hdr { padding: 10px 14px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: var(--tab); gap: 0; padding: 0 4px env(safe-area-inset-bottom);
    background: var(--hdr-solid, rgba(10,15,24,.94)); border-top: 1px solid var(--line); }
  .nav a { flex: 1; display: grid; place-items: center; padding: 0 2px; font-size: 12.5px; letter-spacing: .05em; }
  .nav a[aria-current="page"]::after { left: 22%; right: 22%; bottom: auto; top: 0; }
  .ftr { position: static; height: auto; grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 20px 16px 24px; text-align: center; backdrop-filter: none; }
  .contact { justify-self: center; }
  .motion { position: fixed; right: 10px; bottom: calc(var(--tab) + 10px); z-index: 34; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hdr-solid, rgba(10,15,24,.9)); }
  .motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .motion::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
  .is-paused .motion::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
  .view { min-height: 0; padding: 18px 16px 28px; align-items: start; }
  .tri { display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: none !important; gap: 20px !important; }
  .tri > * { min-width: 0; }
  .tri__text, .tri__head, .tri__foot { display: grid !important; gap: 14px !important; justify-items: start !important; text-align: left !important; grid-template-columns: 1fr !important; }
  .lockup { text-align: left !important; }
  .mono { width: 76px; }
  .tri h1 { font-size: clamp(28px, 8vw, 34px) !important; } .tri h1 span { white-space: normal; }
  .tri__books { --tc: min(150px, calc((100vw - 32px - 24px) / 2.3)) !important; }
  .tri--split .tri__books, .tri--three .tri__books { order: -1; }
  .shelf { --shelf-gap: 12px; justify-content: center; }
  .cap { width: calc(var(--tc) * .68); }
  .cap strong { font: 700 16px/1.15 var(--serif); letter-spacing: 0; }
  .cap em { font-size: 16px; } .cap__n { letter-spacing: .08em; }
  .cap .soon { padding: 5px 8px; letter-spacing: 0; }
  .bk, .au { grid-template-columns: 1fr; gap: 22px; }
  .bk__cover { --tc: min(64vw, 300px); justify-self: center; padding: 0; }
  .au__photo { justify-self: center; } .au__photo img { width: min(56vw, 230px); }
  .bk h1, .au h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .bk__qs q { font-size: clamp(24px, 7vw, 30px); } .qb { padding-left: 0; }
  .au__group img { height: auto; width: 100%; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .far, .near, .glow, .view > *, .view.play .b3d, .view.play .cap { animation: none !important; }
  .cam, .b3d__body, .btn-join { transition: none !important; }
}
