/* ZoderoT v2: ink, ember and gold. */

@font-face { font-family: "Fell"; src: url(../fonts/im-fell-english-regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Fell"; font-style: italic; src: url(../fonts/im-fell-english-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #060507;
  --ink-2: #0c0a0b;
  --ink-3: #141112;
  --bone: #ece4d6;
  --bone-dim: #a39a8c;
  --bone-faint: #8b8275;
  --ember: #e2782b;
  --ember-deep: #9c3d0e;
  --gold: #d6b065;
  --blood: #a3231a;
  --line: rgba(236, 228, 214, .12);
  --gutter: clamp(16px, 4.5vw, 64px);
  --display: "Fell", "IM Fell English", Georgia, serif;
  --ui: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ink: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--ui); background: var(--ink); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -.005em; }
p { margin: 0; }
::selection { background: var(--ember-deep); color: var(--bone); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow {
  font: 500 .72rem/1.4 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .9em;
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: .6; }
.lede { font: italic 400 clamp(1.15rem, 1.6vw, 1.45rem)/1.45 var(--display); color: var(--bone-dim); }
.body-copy { color: var(--bone-dim); max-width: 38rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  --b: var(--line);
  position: relative; display: inline-flex; align-items: center; gap: .75em; isolation: isolate; overflow: hidden;
  padding: 1.05em 1.7em; font: 600 .74rem/1 var(--ui); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--bone); border: 1px solid var(--b); border-radius: 999px;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 140% at var(--mx, 50%) 120%, var(--ember) 0%, var(--ember-deep) 55%, transparent 56%);
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--ember); }
.btn--fire { --b: transparent; background: linear-gradient(135deg, var(--ember), var(--ember-deep)); color: #1a0a02; box-shadow: 0 10px 40px -12px rgba(226, 120, 43, .7); }
.btn--fire::before { background: linear-gradient(135deg, #f6a25d, var(--ember)); }
.btn--fire:hover { color: #1a0a02; }
.btn .arrow { transition: transform .5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.link {
  font: 600 .72rem/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 6px;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }

/* Atmosphere: film grain, reading progress, the torch you carry */
body::after {
  content: ""; position: fixed; inset: -60px; z-index: 80; pointer-events: none;
  background: url(../media/grain.png); opacity: .055; animation: grain .9s steps(5) infinite;
}
@keyframes grain { 20% { transform: translate(-22px, 14px); } 40% { transform: translate(18px, -26px); } 60% { transform: translate(-9px, 31px); } 80% { transform: translate(27px, 7px); } }
@media (hover: none) { body::after { animation: none; } }
.progress { position: fixed; left: 0; top: 0; z-index: 70; width: 100%; height: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--ember-deep), var(--ember), #ffd08a); pointer-events: none; }
.torch {
  position: fixed; left: 0; top: 0; z-index: 65; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,156,72,.11), rgba(255,120,40,.04) 45%, transparent); mix-blend-mode: screen;
  opacity: 0; transition: opacity .8s;
}
.torch.is-on { opacity: 1; }
@media (hover: none) { .torch { display: none; } }
.ln { will-change: transform; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 18px var(--gutter); transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(6, 5, 7, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.nav.is-tucked { transform: translateY(-100%); }
.nav.is-open, .nav:focus-within { transform: none; }
/* a blurred backdrop would trap the fixed full-screen menu inside the 80px bar */
.nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__brand { font: 400 1.35rem/1 var(--display); text-decoration: none; color: var(--bone); white-space: nowrap; }
.nav__brand .short { display: none; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font: 500 .7rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim);
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.nav__menu a:hover { color: var(--bone); }
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__cta { padding: .85em 1.3em; }
.nav__toggle { display: none; background: none; border: 0; color: var(--bone); width: 44px; height: 44px; padding: 10px; cursor: pointer; position: relative; z-index: 2; }
.nav__toggle span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform .45s var(--ease-out), opacity .3s; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__brand .full { display: none; }
  .nav__brand .short { display: inline; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.4rem;
    background: radial-gradient(120% 80% at 80% 0%, #1d0d05 0%, var(--ink) 60%);
    clip-path: circle(0% at calc(100% - 38px) 38px); transition: clip-path .8s var(--ease-ink); visibility: hidden;
  }
  .nav.is-open .nav__menu { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; }
  .nav__menu a { font: 400 2.1rem/1.1 var(--display); letter-spacing: 0; text-transform: none; color: var(--bone); }
  .nav__menu li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
  .nav.is-open .nav__menu li { opacity: 1; transform: none; }
  .nav.is-open .nav__menu li:nth-child(2) { transition-delay: .06s; }
  .nav.is-open .nav__menu li:nth-child(3) { transition-delay: .12s; }
  .nav.is-open .nav__menu li:nth-child(4) { transition-delay: .18s; }
  .nav.is-open .nav__menu li:nth-child(5) { transition-delay: .24s; }
  .nav.is-open .nav__menu li:nth-child(6) { transition-delay: .3s; }
  .nav.is-open .nav__menu li:nth-child(7) { transition-delay: .36s; }
}

/* Plates: a painting in darkness, lit by WebGL (js/light.js) */
.plate { position: relative; overflow: hidden; background: #000; }
.plate > img { width: 100%; height: 100%; object-fit: cover; }
.js .plate[data-light] > img { opacity: 0; }
.js .plate.is-fallback > img { opacity: 1; filter: brightness(.6) contrast(1.05); transition: opacity 1.2s; }
.plate__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.plate.is-lit .plate__canvas { opacity: 1; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero > .plate { position: absolute; inset: 0; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,5,7,.55) 0%, transparent 22%, transparent 55%, rgba(6,5,7,.85) 88%, var(--ink) 100%);
}
.hero__content {
  width: min(1240px, 100% - var(--gutter) * 2); margin: 0 auto; padding-bottom: clamp(56px, 11vh, 130px);
  display: grid; justify-items: end; text-align: right; position: relative; z-index: 2;
}
.js .hero__content { opacity: 0; }
.js .hero__content.is-in { opacity: calc(1 - var(--out, 0)); }
.hero__title { font-size: clamp(3.1rem, 7.6vw, 8.6rem); line-height: .86; margin: 1.1rem 0 1.6rem; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--gold); }
.hero__title .kern { margin-left: -.07em; }
.hero__tagline { font: italic 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.5 var(--display); color: var(--bone-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; margin-top: 2.2rem; }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: clamp(56px, 11vh, 130px); z-index: 2; display: grid; gap: 14px; justify-items: center;
  font: 500 .62rem/1 var(--ui); letter-spacing: .4em; text-transform: uppercase; color: var(--bone-faint); writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--ember), transparent); animation: drip 2.4s var(--ease-ink) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hint { position: absolute; right: var(--gutter); top: 96px; z-index: 2; font: italic .9rem var(--display); color: var(--bone-faint); opacity: .8; }
@media (hover: none) { .hint { display: none; } }

@media (max-width: 760px) {
  .hero__content { justify-items: start; text-align: left; }
  .hero__actions { justify-content: flex-start; }
  .scroll-cue { display: none; }
}

/* Section scaffolding */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section__head { display: grid; gap: 1.2rem; margin-bottom: clamp(48px, 7vw, 88px); }
.section__title { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.section__title em { color: var(--gold); }

/* Enoch: candle-lit plate beside the scripture */
.enoch { background: radial-gradient(70% 60% at 25% 40%, #1a1206 0%, var(--ink) 70%); }
.enoch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.enoch__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.enoch__plate { width: min(100%, 520px); aspect-ratio: 724 / 1086; border-radius: 4px; box-shadow: 0 40px 120px -30px rgba(214,176,101,.25), 0 0 0 1px rgba(214,176,101,.14); }
.enoch__text { padding: 22vh 0 18vh; display: grid; gap: 2rem; }
.enoch__title { font-size: clamp(3rem, 6.5vw, 6rem); }
.enoch__title small { display: block; font: italic 400 clamp(1.15rem, 1.7vw, 1.5rem)/1.4 var(--display); color: var(--gold); margin-top: .8rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1px; padding: 1px; }
.stat { flex: 1 1 130px; background: var(--ink); outline: 1px solid var(--line); padding: 1.1rem .9rem; }
.stats:has(> :nth-child(12):last-child) > .stat { flex-basis: max(130px, 22%); }
.stat b { display: block; font: 400 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); color: var(--gold); }
.stat span { display: block; margin-top: .5rem; font: 500 .62rem/1.5 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-faint); }
.verse { margin: 3rem 0 1rem; padding-left: clamp(1rem, 2vw, 1.8rem); border-left: 1px solid rgba(214,176,101,.35); display: grid; gap: 1.2rem; }
.verse__ask { font: italic 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.55 var(--display); color: var(--bone-faint); }
.verse__lead { font: italic 400 1.05rem/1.4 var(--display); color: var(--bone-dim); }
.verse__text { font: 400 clamp(1.6rem, 2.8vw, 2.5rem)/1.28 var(--display); color: var(--bone); }
.vw { transition: color .35s, text-shadow .35s, opacity .35s; }
.is-speaking .vw { opacity: .16 !important; }
.is-speaking .vw.is-said { opacity: 1 !important; }
.is-heard .vw { opacity: 1 !important; }
.is-speaking .vw.is-now { color: #ffe3a6; text-shadow: 0 0 18px rgba(255,190,90,.75), 0 0 2px rgba(255,220,160,.9); }
.verse__cite { font: 500 .66rem/1.4 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint); }
.listen {
  --p: 0; display: inline-flex; align-items: center; gap: 1rem; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--bone); font: 600 .72rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; width: fit-content;
}
.listen__ring {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(214,176,101,.18) 0);
  transition: transform .5s var(--ease-out);
}
.listen__ring::before { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--ink); }
.listen__ring svg { position: relative; width: 16px; height: 16px; fill: var(--gold); }
.listen .i-pause { display: none; }
.listen[aria-pressed="true"] .i-play { display: none; }
.listen[aria-pressed="true"] .i-pause { display: block; }
.listen:hover .listen__ring { transform: scale(1.08); }
.listen--sm { gap: .8rem; font-size: .66rem; }
.listen--sm .listen__ring { width: 42px; height: 42px; }
.listen--sm .listen__ring svg { width: 13px; height: 13px; }
.soon__link { color: inherit; text-decoration: none; }
.soon__link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.soon .listen { position: relative; z-index: 1; margin-top: .4rem; }
.listen[aria-pressed="true"] .listen__ring { box-shadow: 0 0 0 0 rgba(214,176,101,.5); animation: breathe 2s infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(214,176,101,0); } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

@media (max-width: 860px) {
  .enoch__grid { grid-template-columns: 1fr; }
  .enoch__stage { position: relative; height: auto; padding-top: 96px; }
  .enoch__plate { width: min(100%, 420px); }
  .enoch__text { padding: 2rem 0 0; }
  .stat { flex-basis: 40%; }
}

/* A spoken page: book art beside its own words, read aloud (Curse palette) */
.spoken { background: radial-gradient(60% 70% at 30% 50%, #1a0606 0%, var(--ink) 70%); }
.spoken__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.spoken__art { position: relative; aspect-ratio: 2 / 3; max-height: 82vh; overflow: hidden; border-radius: 3px; box-shadow: 0 40px 120px -30px rgba(163,35,26,.35); }
.spoken__art { width: min(100%, 520px); justify-self: center; }
.spoken__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spoken__turn { opacity: 0; transform: scale(1.05); transition: opacity 1.4s var(--ease-out), transform 2.4s var(--ease-out); }
.spoken.is-turned .spoken__turn { opacity: 1; transform: none; }
.spoken__copy { display: grid; gap: 1.6rem; }
.spoken .verse { border-left-color: rgba(163,35,26,.55); margin: 0; }
.spoken .verse__text { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
/* the ballad set in its stanzas: each rhyme on its own line */
.verse__text--stanzas { line-height: 1.32; }
.verse__text--stanzas .vl { display: block; }
.verse__text--stanzas .vl:nth-child(even) { padding-left: 1.2em; }
.verse__text--stanzas .vl--stanza { margin-top: .85em; padding-left: 0; }
.spoken .listen__ring { background: conic-gradient(var(--blood) calc(var(--p) * 360deg), rgba(163,35,26,.22) 0); }
.spoken .listen__ring svg { fill: #e5574a; }
.spoken.is-speaking .vw.is-now { color: #ffb4a8; text-shadow: 0 0 18px rgba(220,40,30,.85), 0 0 2px rgba(255,190,180,.9); }
@media (max-width: 860px) { .spoken__grid { grid-template-columns: 1fr; } .spoken__art { width: min(100%, 420px); max-height: 62vh; order: 2; } }

/* Illuminated classics: one card per book */
.classics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); }
.classic { display: grid; gap: 1.3rem; align-content: start; }
.classic__art { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #000; }
.classic__art { position: relative; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s var(--ease-out), transform 7s linear; }
.js .slides img { opacity: 0; transform: scale(1.07); }
.slides img.is-on { opacity: 1; transform: scale(1); }
.slides__dots { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: flex; gap: 2px; }
.slides__dots button { width: 22px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.slides__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(236,228,214,.35); box-shadow: 0 0 6px rgba(0,0,0,.8); transition: background .4s, transform .4s; }
.slides__dots button[aria-current]::before { background: var(--gold); transform: scale(1.3); }
.classic .actions { align-items: center; }
.classic h3 { font-size: clamp(2rem, 3.4vw, 3rem); }

/* Theogony band */
.theo { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.theo__art { aspect-ratio: 1300 / 975; overflow: hidden; border-radius: 4px; }
.theo__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.theo:hover .theo__art img { transform: scale(1); }
.theo__copy { display: grid; gap: 1.4rem; }
.theo__copy h3 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
@media (max-width: 860px) { .theo { grid-template-columns: 1fr; } }

/* Ink mask (js/ink.js, js/descent.js) */
.ink {
  -webkit-mask-size: 100% 2400%; mask-size: 100% 2400%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 var(--ink-y, 0%); mask-position: 0 var(--ink-y, 0%);
}
.ink--a { -webkit-mask-image: url(../media/ink-a.png); mask-image: url(../media/ink-a.png); }
.ink--b { -webkit-mask-image: url(../media/ink-b.png); mask-image: url(../media/ink-b.png); }

/* The Path of None */
.path-intro { padding: clamp(120px, 16vw, 220px) 0 clamp(64px, 8vw, 110px); text-align: center; }
.path-intro .section__title { font-size: clamp(3rem, 8vw, 7.4rem); }
.path-intro .body-copy { margin: 1.8rem auto 0; font: italic 400 clamp(1.15rem, 1.7vw, 1.5rem)/1.5 var(--display); max-width: 44rem; }
.path-intro__links { justify-content: center; gap: 2.4rem; margin-top: 2.2rem; }
.descent { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.life { position: absolute; inset: 0; overflow: hidden; }
/* without JavaScript the four lives stack instead of pinning */
html:not(.js) .descent { height: auto; }
html:not(.js) .life { position: relative; height: 100vh; height: 100svh; }
/* Wide screens: a 3:2 extension of each painting (Codex, from the book art) fills the frame with its subject on the right.
   Tall screens: the original painting is shown whole above the words, over a blurred copy of itself. */
.life__bg { display: none; }
.life__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 45%; will-change: transform; }
.life--curse2 .life__art { object-position: 55% 18%; }
@media (max-aspect-ratio: 1/1) {
  .life__bg { display: block; position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(42px) brightness(.32) saturate(1.25); }
  .life__art { inset: auto; top: 10%; left: 0; width: 100%; height: 44%; object-fit: contain; object-position: center; filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)); }
}
.life::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,3,4,.7) 0%, rgba(4,3,4,.35) 34%, transparent 52%); }
.life--curse1 { background: #000; }
.life--curse1 .life__bg { display: none; }
.life--curse1 .life__art { filter: contrast(1.08); inset: 5% auto auto 0; width: 86%; height: 90%; object-fit: contain; object-position: 100% 50%; }   /* its black ground matches the section: show it uncropped, clear of the marks */
@media (max-aspect-ratio: 1/1) { .life--curse1 .life__art { inset: auto; top: 10%; left: 0; width: 100%; height: 46%; object-fit: contain; object-position: 50% 50%; filter: contrast(1.08); } }   /* phones get mask-sq.webp, the mask centred */
.life--curse1::before { content: ""; position: absolute; inset: 0 0 auto; height: 26vh; z-index: 1; background: linear-gradient(var(--ink), transparent); pointer-events: none; }
.life__copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 12vh, 140px); width: min(40rem, 38vw, 100% - var(--gutter) * 2); display: grid; gap: 1.1rem; }
@media (max-aspect-ratio: 1/1) { .life__copy { width: calc(100% - var(--gutter) * 2); } }
.life__num { font: italic 400 clamp(1rem, 1.3vw, 1.2rem)/1 var(--display); color: var(--gold); letter-spacing: .04em; }
.life__title { font-size: clamp(3.2rem, 6.2vw, 6.6rem); line-height: .9; }
.life__line { color: var(--bone-dim); font: italic 400 clamp(1.05rem, 1.4vw, 1.3rem)/1.5 var(--display); }
.descent__marks { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.descent__mark {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font: 600 .78rem/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: rgba(236,228,214,.62);
  text-shadow: 0 1px 12px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9); transition: color .5s;
}
.descent__mark span { font: italic 400 1.15rem/1 var(--display); letter-spacing: 0; color: var(--gold); opacity: .7; }
.descent__mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; box-shadow: 0 0 10px rgba(0,0,0,.8); transition: background .5s, box-shadow .5s, transform .5s; }
.descent__mark:hover { color: var(--bone); }
.descent__mark.is-on { color: var(--bone); }
.descent__mark.is-on span { opacity: 1; }
.descent__mark.is-now::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px var(--gold); transform: scale(1.25); }
.descent.is-static { height: auto; }
.descent.is-static .life { position: relative; height: 100svh; }
.descent.is-static .descent__marks { display: none; }
@media (max-width: 760px) {
  .descent__marks { top: 84px; transform: none; gap: 2px; }
  .descent__mark { font-size: 0; gap: 10px; padding: 6px 0; }   /* numerals and dots only: the names covered the paintings */
  .descent__mark span { font-size: .95rem; }
  .life::after { background: linear-gradient(0deg, rgba(4,3,4,.95) 0%, rgba(4,3,4,.7) 38%, transparent 66%); }
}

/* Library: books as objects */
.library { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.shelf { display: grid; gap: clamp(72px, 9vw, 120px); }
.shelf__group { display: grid; gap: 2rem; }
.shelf__label { display: flex; align-items: baseline; gap: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.shelf__label h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.shelf__label p { font: italic .95rem var(--display); color: var(--bone-faint); }
.shelf__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 40vw), 1fr)); gap: clamp(48px, 6vw, 72px) clamp(24px, 3.4vw, 52px); }
.shelf__row--feature { grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 290px)); }
.book { text-decoration: none; display: grid; gap: 1.5rem; align-content: start; position: relative; perspective: 1100px; perspective-origin: 50% 40%; }
.book3d {
  --rx: 0deg; --ry: 30deg; --t: 30px;
  position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx)) rotateY(var(--ry)); transition: none;
}
.book3d > * { position: absolute; }
.book3d__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 4px 0 6px -2px rgba(0,0,0,.6), 22px 26px 44px -10px rgba(0,0,0,.85); background: #000; }
.book3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book3d__front::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,236,200,.38), transparent 45%),
              linear-gradient(90deg, rgba(0,0,0,.35) 0, transparent 6%, rgba(255,255,255,.08) 7%, transparent 12%);
  mix-blend-mode: screen;
}
.book:hover .book3d__front::after, .book:focus-visible .book3d__front::after { opacity: 1; }
.book3d__spine {
  left: 0; top: 0; width: var(--t); height: 100%; transform-origin: left center;
  transform: translateZ(calc(var(--t) / 2)) rotateY(-90deg);
  overflow: hidden; background: #0d0b0b;
}
.book3d__spine img { height: 100%; width: auto; max-width: none; }
/* the spine showed a sliver of each cover's left edge, which read as a cut-off strip (owner, 2026-10-23): books are shown cover-only */
.book3d__spine, .book3d__back { display: none; }
.book3d__spine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 40%, rgba(0,0,0,.6)); }
.book3d__pages {
  left: 100%; top: 2%; width: var(--t); height: 96%; transform-origin: left center;
  transform: translateZ(calc(var(--t) / 2 - 2px)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #d8cfbf 0 1px, #b9ae9b 1px 2px);
}
.book3d__back { inset: 0; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: #0d0b0b; border-radius: 6px 2px 2px 6px; }
.book__info { display: grid; gap: .35rem; }
.book__title { font: 400 1.22rem/1.15 var(--display); color: var(--bone); transition: color .3s; }
.book:hover .book__title { color: var(--gold); }
.book__meta { font: 500 .6rem/1.5 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
.book__tag { justify-self: start; font: 600 .58rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: #1a0a02; background: var(--gold); padding: .45em .7em; border-radius: 2px; }
.ku { margin-top: clamp(64px, 8vw, 100px); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.6rem 2rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.015); }
.ku p { color: var(--bone-dim); max-width: 46rem; }
.ku strong { font: 400 1.4rem var(--display); color: var(--bone); display: block; margin-bottom: .3rem; }

/* Quote */
.quote { text-align: center; padding: clamp(120px, 16vw, 220px) 0; position: relative; overflow: hidden; }
.quote blockquote { margin: 0; font: italic 400 clamp(2.4rem, 6.4vw, 6rem)/1.05 var(--display); }
.quote blockquote span { display: block; }
.quote blockquote span + span {
  color: var(--ember);
  background: linear-gradient(100deg, var(--ember-deep) 20%, var(--ember) 38%, #ffd38e 50%, var(--ember) 62%, var(--ember-deep) 80%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: molten 7s linear infinite;
}
@keyframes molten { to { background-position: -250% 0; } }
.quote cite { display: block; margin-top: 2rem; font: 500 .7rem/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--bone-faint); font-style: normal; }

/* Reviews */
.reviews { overflow: hidden; }
.reviews__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.rating b { font: 400 clamp(3.4rem, 7vw, 6rem)/1 var(--display); color: var(--gold); }
.rating span { display: block; font: 500 .66rem/1.5 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
.marquee { display: grid; gap: 22px; margin-top: 3rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: drift 80s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 95s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.review { width: min(380px, 78vw); flex: none; padding: 1.8rem; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); display: grid; gap: 1.1rem; align-content: space-between; }
.review p { font: italic 400 1.12rem/1.5 var(--display); color: var(--bone); }
.review footer { display: flex; justify-content: space-between; gap: 1rem; font: 500 .62rem/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); }
.review .stars { color: var(--gold); letter-spacing: .1em; }

/* Coming from the dark */
.soon__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 18px; }
.soon {
  --mx: 50%; --my: 40%;
  position: relative; min-height: 440px; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; align-content: end; gap: .8rem; padding: 1.8rem; isolation: isolate;
  background: #070607;
}
.soon__art { position: absolute; inset: 0; z-index: -2; }
.soon__art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.22) saturate(.6) blur(1.5px); transform: scale(1.06); transition: filter 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
.soon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,170,90,.16), transparent 70%), linear-gradient(0deg, rgba(6,5,7,.95) 10%, transparent 70%); transition: opacity .5s; }
.soon:hover .soon__art img { filter: brightness(.55) saturate(.9) blur(0); transform: scale(1); }
.soon__veil { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 60% at 50% 30%, #241009, #070607 70%); }
.soon__veil::after { content: attr(data-glyph); position: absolute; inset: 0; display: grid; place-items: center; font: italic 9rem/1 var(--display); color: rgba(214,176,101,.07); }
.soon__status { justify-self: start; font: 600 .58rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ember); border: 1px solid rgba(226,120,43,.5); padding: .55em .8em; border-radius: 999px; }
.soon h3 { font-size: 2rem; }
.soon p { color: var(--bone-dim); font: italic 1rem/1.5 var(--display); }

/* Join */
.join { position: relative; overflow: hidden; text-align: center; background: radial-gradient(60% 70% at 50% 100%, #2a1206 0%, var(--ink) 70%); }
.join .wrap { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.2rem; }
.join__form { display: flex; gap: 10px; width: min(100%, 520px); margin-top: 1.4rem; flex-wrap: wrap; justify-content: center; }
.join__form input {
  flex: 1 1 240px; min-width: 0; padding: 1.05em 1.4em; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 999px;
  color: var(--bone); font: 400 1rem var(--ui); transition: border-color .3s, box-shadow .3s;
}
.join__form input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(226,120,43,.15); }
.join__form button { cursor: pointer; }
.join small { color: var(--bone-faint); font-size: .8rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: start; }
.footer__brand { font: 400 1.6rem var(--display); }
.footer__brand p { font: italic .95rem var(--display); color: var(--bone-faint); margin-top: .4rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; max-width: 640px; }
.footer nav a { font: 500 .66rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); }
.footer nav a:hover { color: var(--gold); }
.footer__legal { margin-top: 3rem; font-size: .75rem; color: var(--bone-faint); }
.footer { overflow: hidden; padding-bottom: 0; }
.footer__mark {
  margin: 2.5rem 0 0; text-align: center; font: 400 clamp(5rem, 24vw, 22rem)/.78 var(--display); letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(214,176,101,.22), rgba(214,176,101,0) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateY(14%); user-select: none;
}

/* Book page */
.bookhero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; background: radial-gradient(60% 70% at 70% 40%, #1d1407, var(--ink) 70%); }
.bookhero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.bookhero .book3d { --ry: 18deg; width: min(100%, 420px); justify-self: center; }
.bookhero__copy { display: grid; gap: 1.6rem; }
.bookhero__copy h1 { font-size: clamp(2.7rem, 5vw, 4.9rem); }
.peek { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
html:not(.js) .peek { height: auto; overflow-x: auto; padding: 12vh 0; }
.peek__track { display: flex; gap: 4vw; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.peek__plate { flex: none; width: min(78vw, 1000px); aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 100px -30px rgba(214,176,101,.2); }
.peek__plate img { width: 100%; height: 100%; object-fit: cover; }
.peek__label { position: absolute; top: 96px; left: var(--gutter); z-index: 2; }
.peek.is-static { height: auto; padding: 4rem 0; overflow-x: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 1px; padding: 1px; }
.fact { flex: 1 1 260px; background: var(--ink); outline: 1px solid var(--line); padding: 2rem; display: grid; gap: .8rem; align-content: start; }
.facts:has(> :nth-child(5):last-child) > .fact, .facts:has(> :nth-child(6):last-child) > .fact, .facts:has(> :nth-child(9):last-child) > .fact { flex-basis: max(260px, 30%); }
.facts:has(> :nth-child(13):last-child) > .fact { flex-basis: max(150px, 13%); }
.fact h3 { font-size: 1.6rem; color: var(--gold); }
.fact p { color: var(--bone-dim); }
@media (max-width: 860px) { .bookhero { min-height: 0; padding: 96px 0 56px; } .bookhero__grid { grid-template-columns: 1fr; gap: 28px; } .bookhero .book3d { width: min(46vw, 210px); } .bookhero__copy { gap: 1.1rem; } }

/* ============ Inner pages ============ */

/* Page header: a shorter hero; reuses .hero for the light plate, embers, intro and scroll-out */
.pagehero { min-height: 78vh; min-height: 78svh; }
.pagehero .hero__content { justify-items: start; text-align: left; padding-bottom: clamp(48px, 9vh, 110px); }
.pagehero .hero__title { font-size: clamp(3rem, 7vw, 7.2rem); margin: .9rem 0 1.2rem; }
.pagehero .hero__tagline { max-width: 40rem; }
.pagehero .hero__actions { justify-content: flex-start; }
.pagehero > .plate > img { object-position: var(--focus, 60% 45%); }
/* phones: the painting on top like a poster, the title below it on ink (over the painting it was unreadable) */
@media (max-width: 860px) {
  .pagehero { display: block; min-height: 0; }
  .pagehero::after { display: none; }
  .pagehero > .plate { position: relative; inset: auto; height: 58svh; z-index: 0; }
  .pagehero > .plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,5,7,.45) 0%, transparent 22%, transparent 55%, var(--ink) 100%); }
  .pagehero .hero__content { margin-top: -9svh; padding-bottom: 56px; }
}

/* Long reading text */
.prose { max-width: 44rem; display: grid; gap: 1.3rem; color: var(--bone-dim); font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--bone); margin-top: 1.6rem; }
.prose h3 { font-size: 1.6rem; color: var(--gold); margin-top: 1rem; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--gold); }
.prose > p:first-of-type:not(:only-of-type):not(.eyebrow)::first-letter { float: left; font: 400 4.2em/.82 var(--display); color: var(--gold); margin: .06em .1em 0 0; }
.prose blockquote { margin: 1rem 0; padding-left: 1.4rem; border-left: 1px solid rgba(214,176,101,.4); font: italic 1.35rem/1.5 var(--display); color: var(--bone); }

/* Catalogue entry: a 3D book beside its details */
.entries { display: grid; gap: clamp(56px, 7vw, 96px); }
.entry { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.entry .book { max-width: 240px; }
.entry__body { display: grid; gap: 1rem; align-content: center; }
.entry__meta { font: 500 .66rem/1.5 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.entry__title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.entry__title a { color: inherit; text-decoration: none; }
.entry__title a:hover { color: var(--gold); }
.entry__body > p { color: var(--bone-dim); max-width: 40rem; }
.entry--soon .book3d { filter: none; }
.entry--soon .entry__meta { color: var(--ember); }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; } .entry .book { max-width: 190px; } }

/* Reading order: a numbered descent down one line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), rgba(214,176,101,.1)); }
.step { display: grid; grid-template-columns: 56px minmax(0, 170px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; position: relative; }
.step__num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--gold); font: italic 1.4rem/1 var(--display); color: var(--gold); position: relative; z-index: 1; }
.step .book { max-width: 170px; }
.step__body { display: grid; gap: .7rem; }
.step__body h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.step__body p { color: var(--bone-dim); }
@media (max-width: 700px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step .book { grid-column: 2; max-width: 140px; }
  .step__body { grid-column: 2; }
}

/* Link cards with an image */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
.card { position: relative; display: grid; align-content: end; gap: .7rem; min-height: 420px; padding: 1.8rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--bone); background: #070607; }
.card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter 1s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,5,7,.96) 12%, rgba(6,5,7,.2) 70%); }
.card:hover > img { transform: scale(1); filter: brightness(.7); }
.card h3 { font-size: 2rem; }
.card p { color: var(--bone-dim); }
.card .link { justify-self: start; }
.card:not(:has(> img)) { min-height: 0; align-content: start; }
.card:not(:has(> img)):hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* A large image beside its words (alternate with .split--flip) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split + .shelf__row { margin-top: clamp(72px, 9vw, 120px); }
.split__art { border-radius: 4px; overflow: hidden; background: #000; }
.split__art img { width: 100%; height: auto; }
/* art on a black ground: no visible box, the painting floats on the page */
.split__art--float { background: none; }
.split__art--float img { --fade: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in; mask-image: var(--fade); mask-composite: intersect; }
.fade-edges { background: none; }
.fade-edges img { -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent); mask-image: radial-gradient(closest-side, #000 58%, transparent); }
.split__copy { display: grid; gap: 1.3rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { display: grid; gap: .45rem; font: 500 .66rem/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
.form input, .form textarea, .form select {
  width: 100%; padding: 1em 1.2em; background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 6px;
  color: var(--bone); font: 400 1rem/1.5 var(--ui); letter-spacing: 0; text-transform: none; transition: border-color .3s, box-shadow .3s;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(226,120,43,.15); }
.form .btn { justify-self: start; cursor: pointer; }

/* Book pages: portrait sample pages in the sideways gallery, and a still grid of reviews */
.peek--pages .peek__plate { aspect-ratio: 816 / 1140; width: auto; height: min(76vh, 860px); background: #000; }
.peek--pages .peek__plate img { object-fit: contain; }
@media (max-width: 700px) { .peek--pages .peek__plate { height: min(68vh, 640px); } }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.review-grid .review { width: auto; }
.bookhero[data-embers] { position: relative; overflow: hidden; }

/* Articles (journal) and long landing pages */
.articlehero { padding: clamp(130px, 18vh, 190px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(70% 90% at 70% 0%, #1d1208 0%, var(--ink) 70%); border-bottom: 1px solid var(--line); }
.articlehero .narrow { display: grid; gap: 1.1rem; }
.articlehero h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.02; }
.articlehero .lede { max-width: 42rem; }
.article__meta { font: 500 .66rem/1.5 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
h2 .article__meta { display: inline-block; white-space: nowrap; }
.article { padding: clamp(56px, 8vw, 96px) 0; }
.article .prose { max-width: 46rem; margin-inline: auto; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: .5rem; }
.prose li::marker { color: var(--gold); }
.prose figure { margin: 1.4rem 0; display: grid; gap: .6rem; }
.prose img { border-radius: 4px; width: 100%; height: auto; }
/* a tall page or cover never runs taller than the screen */
.prose img { max-height: min(80vh, 720px); object-fit: contain; }
.prose img.cover-sm { width: min(280px, 70%); margin-inline: auto; }
.prose .cover-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; }
.prose .cover-row img { width: 100%; }
.prose .page-link { display: grid; gap: .5rem; justify-items: center; font: 500 .66rem/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); text-decoration: none; }
.prose .page-link:hover { color: var(--gold); }
.prose figcaption { font: italic .95rem var(--display); color: var(--bone-faint); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .7rem .5rem; text-align: left; vertical-align: top; }
.prose th { color: var(--bone); font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }
/* quote checker (journal/sun-tzu-quotes-real-or-fake.html): a verdict under each quote */
.prose .verdict { justify-self: start; margin: -.6rem 0 0; padding: .42rem .72rem; border: 1px solid currentColor; border-radius: 999px; font: 600 .6rem/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; }
.prose .verdict--yes { color: var(--gold); }
.prose .verdict--soft { color: var(--bone-dim); }
.prose .verdict--no { color: var(--ember); }
/* family tree (journal/greek-gods-family-tree.html): one block per generation, families as cards, names as chips */
.prose .tree { display: grid; gap: .9rem; margin: .6rem 0 .4rem; padding-left: 1.1rem; border-left: 1px solid rgba(214,176,101,.35); }
.prose .tree__label { font: 500 .66rem/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }
.prose .tree__families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.prose .tree__family { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem; background: rgba(255,255,255,.015); }
.prose .tree__parents { font: italic 1.08rem/1.35 var(--display); color: var(--bone); margin: 0 0 .7rem; }
.prose .tree__parents .article__meta { font-style: normal; margin-left: .3rem; white-space: nowrap; }
.prose .tree__kids { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.prose .tree__kids li { font: .88rem/1.25 var(--ui); padding: .34rem .66rem; border-radius: 999px; border: 1px solid rgba(214,176,101,.28); color: var(--bone-dim); }
.prose .toc { border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.4rem; background: rgba(255,255,255,.015); }
.callout { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.6rem; border: 1px solid rgba(214,176,101,.3); border-radius: 6px; background: linear-gradient(160deg, rgba(214,176,101,.06), transparent); }
.callout .book { max-width: 150px; }
.callout h3 { font-size: 1.7rem; color: var(--bone); }
@media (max-width: 600px) { .callout { grid-template-columns: 1fr; } .callout .book { max-width: 130px; } }

/* Small helpers */
.center { text-align: center; justify-items: center; }
.narrow { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.divider { height: 1px; background: var(--line); border: 0; margin: clamp(64px, 8vw, 110px) 0; }

/* Page transitions between pages (same origin) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .5s var(--ease-ink) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) .1s both; }
::view-transition-group(*) { animation-duration: .8s; animation-timing-function: var(--ease-ink); }
@keyframes vt-out { to { opacity: 0; filter: blur(10px) brightness(.4); } }
@keyframes vt-in { from { opacity: 0; filter: blur(10px); } }

/* Reduced motion: every effect has a still state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
.no-gsap .plate[data-light] > img { opacity: 1; }
