/* =====================================================================
   ŞƏFƏQ NƏŞRLƏRİ — public site · cinematic editorial design system
   Brand: logo gradient #EC1B69 → #F05B57 · ink + warm paper · Source Serif 4 (display) + Inter (UI)
   1 tokens · 2 base · 3 motion primitives · 4 buttons/links · 5 header/nav · 6 loader/cursor
   7 home chapters · 8 book object · 9 player · 10 inner pages · 11 footer/modal/toast · 12 responsive · 13 reduced motion
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand-600: #d41459; --brand-500: #EC1B69; --brand-400: #F05B57; --brand-300: #f78e86; --brand-100: #fde3ea;
  --grad-brand: linear-gradient(100deg, var(--brand-500) 0%, var(--brand-400) 100%);

  --ink-950: #07070a; --ink-900: #0b0b0f; --ink-800: #15151b; --ink-700: #23232b; --ink-600: #3a3a45; --ink-500: #5a5a66; --ink-400: #8a8a96; --ink-300: #b9b9c2;
  --paper-50: #faf7f1; --paper-100: #f4efe6; --paper-200: #ebe4d7; --paper-300: #ddd3c2;
  --text-on-paper: #141418; --muted-on-paper: #6b6a72; --text-on-ink: #f4f0e8; --muted-on-ink: #a9a7b3;
  --muted: var(--muted-on-paper); /* each [data-bg] chapter re-declares this for its own scheme */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: .78rem; --fs-sm: .9rem; --fs-md: 1rem; --fs-lg: 1.18rem; --fs-xl: 1.4rem;
  --display-sm: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem);
  --display-md: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --display-lg: clamp(2.6rem, 1.6rem + 4vw, 5.4rem);
  --display-xl: clamp(3rem, 1.5rem + 6.5vw, 8rem);

  --container: 1320px; --gutter: clamp(1.1rem, 4vw, 3rem);
  --header-h: 84px;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .35s; --dur-slow: .9s;
  --radius: 6px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: var(--fs-md); line-height: 1.6;
  color: var(--text-on-ink); background: var(--ink-900);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}

/* --- section-owned colour scheme -------------------------------------------
   Each [data-bg] chapter paints its OWN background and text colour. Two
   chapters are visible at once while scrolling between them, so a single
   body-level colour that flips at the viewport centre used to put paper text
   on an ink background (and vice versa) for a whole second. The body colour is
   now only the canvas behind the page (over-scroll / rubber banding) and never
   animates. ------------------------------------------------------------- */
body[data-bg-current="paper"] { background: var(--paper-100); }
body[data-bg-current="ink"] { background: var(--ink-900); }
body[data-bg-current="brand"] { background: var(--brand-600); }

[data-bg] { position: relative; }
[data-bg="paper"] { background-color: var(--paper-100); color: var(--text-on-paper); --muted: var(--muted-on-paper); }
[data-bg="ink"] { background-color: var(--ink-900); color: var(--text-on-ink); --muted: var(--muted-on-ink); }
[data-bg="brand"] { background-color: var(--brand-600); color: #fff; --muted: rgba(255, 255, 255, .78); }

/* state-aware accents: brand text is invisible on the brand background, light accents are weak on paper */
[data-bg="brand"] .eyebrow { color: rgba(255, 255, 255, .88); }
[data-bg="brand"] :is(.display-xl, .display-lg, .display-md) em { background: none; -webkit-text-fill-color: #fff; color: #fff; }
[data-bg="paper"] .eyebrow--light { color: var(--brand-500); }
[data-bg="paper"] .btn--line-light { color: var(--text-on-paper); }
[data-bg="brand"] :is(.pos__num, .topic-row__num, .edition-row__num, .timeline__num, .tracks__num, .showcase__index, .shelf__meta, .media-tile__meta, .showcase__edition) { color: rgba(255, 255, 255, .85); }
/* anchors must not land underneath the fixed header */
:target, section[id], [id].chapter { scroll-margin-top: calc(var(--header-h) + 14px); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, blockquote, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; padding: .6rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.muted { opacity: .65; }
.icon { flex: none; vertical-align: middle; }

/* typography */
.serif { font-family: var(--serif); }
.display-xl, .display-lg, .display-md, .display-sm { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.display-xl { font-size: var(--display-xl); letter-spacing: -.03em; }
.display-lg { font-size: var(--display-lg); }
.display-md { font-size: var(--display-md); }
.display-sm { font-size: var(--display-sm); }
.display-xl em, .display-lg em, .display-md em, .hero__statement em, .modal__title em { font-style: italic; font-weight: 300; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-500); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--brand-300); }
.lead { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.55; white-space: pre-line; }
.lead + .lead { margin-top: 1.4em; }
.dropcap::first-letter { float: left; font-size: 4.2em; line-height: .82; padding: .08em .12em 0 0; font-weight: 600; color: var(--brand-500); }
.crumbs { display: flex; flex-wrap: wrap; gap: .55rem; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--brand-400); }
.empty { padding: 3rem 0; }

/* chapters */
.chapter { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; }
.chapter--tight { padding-top: clamp(2rem, 5vw, 4rem); }
.chapter__head { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.chapter__head .eyebrow { grid-column: 1 / -1; }
.chapter__head--sub { margin: 3rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.chapter__foot { margin-top: 3rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 2rem; background: #000; overflow: hidden; border-radius: var(--radius); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 3. Motion primitives (transform/opacity only) ---------- */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); will-change: transform, opacity; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-now { opacity: 0; transform: translate3d(0, 18px, 0); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* words are wrapped in place (inline markup such as <em> survives), each in its own mask */
.split-lines .line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.split-lines .line > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .9s var(--ease); transition-delay: calc(var(--l, 0) * 55ms); will-change: transform; }
.split-lines.is-in .line > span { transform: none; }
/* The brand gradient lives on <em> via background-clip:text. Once the headline is split, the words
   sit inside overflow:hidden masks, and a clipped background cannot paint through them - the emphasised
   words rendered as invisible. Inheriting the background onto the word itself restores the effect and,
   because it INHERITS, every per-section override of <em> (solid white on brand, gradient on ink) keeps
   working without being repeated here. */
.split-lines em .line { background-image: inherit; -webkit-background-clip: text; background-clip: text; }
.split-lines em .line > span { background-image: inherit; -webkit-background-clip: text; background-clip: text; }
.mask-img { position: relative; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.mask-img.is-in { clip-path: inset(0 0 0 0); }
.mask-img img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.mask-img.is-in img { transform: scale(1); }
[data-parallax] { will-change: transform; }
.page-enter { animation: page-in .6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
html.is-leaving .page, html.is-leaving .site-header, html.is-leaving .footer { opacity: 0; transform: translate3d(0, -10px, 0); transition: opacity .28s var(--ease-io), transform .28s var(--ease-io); }

/* ---------- 4. Buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.35rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; line-height: 1; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur); overflow: hidden; }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: var(--fs-md); }
.btn--block { width: 100%; justify-content: center; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 14px 34px -14px rgba(236, 27, 105, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(236, 27, 105, .7); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { transform: translateY(-2px); color: var(--brand-600); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--pill { padding: .6rem 1rem; font-size: var(--fs-xs); }
.btn--line { align-self: flex-start; padding: 0 0 .35rem; border-radius: 0; border-bottom: 1px solid currentColor; color: inherit; font-weight: 600; }
.btn--line::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--brand-500); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.btn--line:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--line:hover { color: var(--brand-500); }
.btn--line-light { color: #fff; }
.link-reveal { position: relative; display: inline-block; }
.link-reveal::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.link-reveal:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 5. Header & navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: transform .45s var(--ease), background .45s, color .45s, height .45s var(--ease), box-shadow .45s; color: #fff; }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header.is-scrolled { height: 64px; background: rgba(11, 11, 15, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
/* over a paper chapter the bar (and its text) must flip to ink, scrolled or not */
.site-header.is-on-paper { color: var(--ink-900); }
.site-header.is-on-paper.is-scrolled { background: rgba(250, 247, 241, .82); box-shadow: 0 1px 0 rgba(0, 0, 0, .07); }
.site-header.is-on-brand { color: #fff; }
.site-header.is-on-brand.is-scrolled { background: color-mix(in srgb, var(--brand-600) 78%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
/* unscrolled over a light chapter the logotype needs a touch of legibility */
.site-header.is-on-paper:not(.is-scrolled) .brand__word { text-shadow: none; }
.site-header__bar { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 34px; height: 35px; }
.brand__word { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; }
.brand__word span { font-style: italic; font-weight: 300; opacity: .85; }
.site-nav { margin-left: auto; display: flex; gap: 1.6rem; }
.site-nav__link { position: relative; font-size: var(--fs-sm); font-weight: 500; opacity: .82; padding: .4rem 0; transition: opacity var(--dur); }
.site-nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--brand-400); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.site-nav__link:hover, .site-nav__link.is-active { opacity: 1; }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-header__right { display: flex; align-items: center; gap: .75rem; margin-left: 1rem; }
.site-header.is-on-paper .btn--light { background: var(--ink-900); color: #fff; }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .2rem .5rem .8rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.menu-btn__icon { position: relative; width: 30px; height: 14px; }
.menu-btn__icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease); }
.menu-btn__icon i:nth-child(1) { top: 0; }
.menu-btn__icon i:nth-child(2) { top: 12px; width: 60%; }
.menu-btn:hover .menu-btn__icon i:nth-child(2) { width: 100%; }
html.menu-open .menu-btn__icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
html.menu-open .menu-btn__icon i:nth-child(2) { top: 6px; width: 100%; transform: rotate(-45deg); }
html.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
html.menu-open .site-header__cta, html.menu-open .site-nav { opacity: 0; pointer-events: none; }
html.menu-open { overflow: hidden; }
/* iOS Safari ignores overflow:hidden on <html>; the body is pinned instead (see site.js) */
html.menu-open body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; overscroll-behavior: none; }

.nav-overlay { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; color: #fff; }
.nav-overlay__bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(236, 27, 105, .35), transparent 55%), var(--ink-950); clip-path: circle(0% at calc(100% - 3rem) 2.5rem); transition: clip-path .9s var(--ease-io); }
.nav-overlay__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-content: center; padding: var(--header-h) 0 2rem; overflow: auto; overscroll-behavior: contain; }
.nav-overlay__list { margin-top: 1.5rem; }
.nav-overlay__link { display: flex; align-items: baseline; gap: 1.25rem; font-family: var(--serif); font-size: clamp(1.8rem, 1rem + 2.6vw, 3.4rem); line-height: 1.15; padding: .2rem 0; opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.nav-overlay__link:hover, .nav-overlay__link.is-active { color: var(--brand-300); }
.nav-overlay__num { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .2em; opacity: .5; }
.nav-overlay__aside { display: flex; flex-direction: column; gap: 1.4rem; opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s; }
.nav-overlay__sub a { display: block; padding: .3rem 0; color: var(--muted-on-ink); font-size: var(--fs-md); }
.nav-overlay__sub a:hover { color: #fff; }
.nav-overlay__contact a { display: block; font-size: var(--fs-lg); font-family: var(--serif); }
html.menu-open .nav-overlay { visibility: visible; pointer-events: auto; }
html.menu-open .nav-overlay__bg { clip-path: circle(160% at calc(100% - 3rem) 2.5rem); }
html.menu-open .nav-overlay__link { opacity: 1; transform: none; }
html.menu-open .nav-overlay__link:nth-child(1) { transition-delay: .25s; } html.menu-open .nav-overlay__link:nth-child(2) { transition-delay: .3s; } html.menu-open .nav-overlay__link:nth-child(3) { transition-delay: .35s; } html.menu-open .nav-overlay__link:nth-child(4) { transition-delay: .4s; } html.menu-open .nav-overlay__link:nth-child(5) { transition-delay: .45s; } html.menu-open .nav-overlay__link:nth-child(6) { transition-delay: .5s; } html.menu-open .nav-overlay__link:nth-child(7) { transition-delay: .55s; } html.menu-open .nav-overlay__link:nth-child(8) { transition-delay: .6s; } html.menu-open .nav-overlay__link:nth-child(9) { transition-delay: .65s; }
html.menu-open .nav-overlay__aside { opacity: 1; transform: none; }
.social-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: inherit; transition: background var(--dur), transform var(--dur), border-color var(--dur); }
.social-link:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); color: #fff; }

/* ---------- 6. Loader & cursor ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink-950); color: #fff; transition: opacity .6s var(--ease-io), visibility .6s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader__mark { animation: loader-mark 1.2s var(--ease) both; }
.loader__word { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .08em; animation: rise .8s var(--ease) .2s both; }
.loader__word em { font-style: italic; font-weight: 300; color: var(--brand-300); }
.loader__bar { width: 160px; height: 1px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; animation: loader-bar 1s var(--ease-io) .1s both; }
@keyframes loader-mark { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes loader-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.no-loader .loader { display: none; }

.cursor { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; display: none; }
.cursor__dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.cursor__ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(236, 27, 105, .6); transition: transform .35s var(--ease), background .35s, border-color .35s; }
.cursor__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__ring { transform: scale(1.6); border-color: rgba(236, 27, 105, .9); }
.cursor.is-label .cursor__ring { transform: scale(2.2); background: var(--brand-500); border-color: var(--brand-500); }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
html.has-cursor { cursor: none; }
html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor .cursor { display: block; }

/* ---------- 7. Home chapters ---------- */
/* 01 hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 10vh, 7rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink-950); will-change: transform; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero__video.is-ready { opacity: 1; }
.hero__grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); mix-blend-mode: overlay; pointer-events: none; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 10, .55) 0%, rgba(7, 7, 10, .15) 35%, rgba(7, 7, 10, .72) 75%, var(--ink-900) 100%), radial-gradient(70% 60% at 80% 30%, rgba(236, 27, 105, .28), transparent 70%); }
.hero__inner { position: relative; width: min(100% - 2 * var(--gutter), 1440px); will-change: transform, opacity; }
.hero__label { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brand-300); margin-bottom: 1.4rem; }
.hero__statement { font-family: var(--serif); font-weight: 300; font-size: min(clamp(2.6rem, 1rem + 7.5vw, 8.4rem), 13.5vh); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.hero__word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-right: .22em; vertical-align: bottom; }
.hero__word > span { display: inline-block; transform: translate3d(0, 105%, 0) rotate(3deg); animation: word-in 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .09s); transform-origin: left bottom; }
.hero__word:last-child > span { font-style: italic; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
@keyframes word-in { to { transform: none; } }
.hero__sub { max-width: 52ch; margin-top: 1.6rem; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero__stats dt { font-family: var(--serif); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats dd { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: .3rem; }
.hero__marquee { position: absolute; left: 0; right: 0; bottom: -2%; z-index: -1; display: flex; white-space: nowrap; font-family: var(--serif); font-size: clamp(4rem, 12vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); pointer-events: none; transform: translate3d(0, 42%, 0); opacity: .7; }
.hero__marquee span { animation: marquee 38s linear infinite; padding-right: 2rem; }
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .7); writing-mode: vertical-rl; }
.hero__scroll-line { width: 1px; height: 56px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff; animation: scroll-hint 1.8s var(--ease-io) infinite; }
@keyframes scroll-hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* 02 story (sticky) */
.story { position: relative; display: grid; grid-template-columns: 1fr 1fr; color: #fff; }
.story__sticky { position: sticky; top: 0; height: 100svh; }
.story__media { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ink-950); }
.story__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8); }
.story__img { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease-io), transform 1.4s var(--ease); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img.is-active { opacity: 1; transform: none; }
.story__caption { position: absolute; left: 2rem; bottom: 2rem; display: flex; gap: .8rem; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; }
.story__caption span { color: var(--brand-300); }
.story__veil { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--ink-900) 100%), linear-gradient(0deg, rgba(11, 11, 15, .5), transparent 40%); }
.story__steps { display: flex; flex-direction: column; width: auto; margin: 0; padding: 0 clamp(2rem, 6vw, 6rem); }
.story__step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem; opacity: .28; transition: opacity .8s var(--ease-io); }
.story__step.is-active { opacity: 1; }
.story__text { max-width: 46ch; font-size: var(--fs-lg); color: rgba(255, 255, 255, .8); white-space: pre-line; }

/* 03 showcase (sticky books) */
.showcase { position: relative; }
.showcase__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.showcase__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.showcase__texts { position: relative; min-height: 360px; display: grid; }
.showcase__texts .eyebrow { position: absolute; top: -3.5rem; }
.showcase__text { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1rem; opacity: 0; transform: translate3d(0, 30px, 0); pointer-events: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.showcase__text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.showcase__index { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--brand-500); font-variant-numeric: tabular-nums; }
.showcase__index small { font-size: 1rem; color: var(--muted); margin-left: .2rem; }
.showcase__title { font-family: var(--serif); font-size: var(--display-lg); line-height: 1; letter-spacing: -.02em; }
.showcase__edition { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }
.showcase__desc { max-width: 48ch; color: var(--muted); font-size: var(--fs-lg); }
.showcase__actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.showcase__progress { position: absolute; left: 0; bottom: -3.5rem; width: 220px; height: 2px; background: color-mix(in srgb, currentColor 14%, transparent); }
.showcase__progress span { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); }
.showcase__books { position: relative; height: min(72svh, 640px); display: grid; place-items: center; perspective: 1600px; }
.showcase__book { grid-area: 1 / 1; width: min(62%, 360px); opacity: 0; transform: translate3d(22%, 6%, -200px) rotateY(-28deg) scale(.86); transition: opacity .8s var(--ease), transform 1s var(--ease); will-change: transform; pointer-events: none; }
.showcase__book.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.showcase__book.is-prev { opacity: 0; transform: translate3d(-24%, -6%, -200px) rotateY(28deg) scale(.86); }
.showcase__halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(236, 27, 105, .25), transparent 70%); filter: blur(10px); z-index: 0; transform: translateZ(-1px); }
.showcase__spacer { height: calc(var(--count) * 80svh); }
.showcase__mobile { display: none; }

/* rail (horizontal) */
.rail { position: relative; }
.rail__track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 1rem; cursor: grab; -webkit-overflow-scrolling: touch; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__item { flex: 0 0 auto; scroll-snap-align: start; }
.rail__item--book { width: 200px; }
.rail--bleed .rail__track { width: 100%; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-right: var(--gutter); }

/* 04 explore editions */
.explore { position: relative; color: #fff; padding: clamp(4rem, 9vw, 8rem) 0; isolation: isolate; overflow: hidden; }
.explore__media { position: absolute; inset: 0; z-index: -1; }
.explore__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.7); }
.explore__veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-900) 0%, rgba(11, 11, 15, .55) 30%, rgba(11, 11, 15, .8) 80%, var(--ink-900) 100%); }
.explore__head { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: end; margin-bottom: 3rem; }
.explore__head .eyebrow { grid-column: 1 / -1; }
.edition-panel { display: flex; flex-direction: column; gap: 1rem; width: min(78vw, 520px); color: #fff; }
.edition-panel__media { display: block; aspect-ratio: 3 / 2; background: var(--ink-800); border-radius: var(--radius); overflow: hidden; }
.edition-panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.edition-panel:hover .edition-panel__media img { transform: scale(1.05); }
.edition-panel__blank { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .3); }
.edition-panel__body { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: baseline; }
.edition-panel__num { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--brand-300); grid-row: span 3; }
.edition-panel__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.edition-panel__sub { color: rgba(255, 255, 255, .7); font-size: var(--fs-sm); }
.edition-panel__meta { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

/* 05 topics */
.topic-list { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.topic-row { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.topic-row__link { display: grid; grid-template-columns: 3.5rem 1fr auto auto; align-items: center; gap: 1.5rem; padding: 1.4rem 0; transition: padding .5s var(--ease), color var(--dur); }
.topic-row__link:hover { padding-left: 1rem; color: var(--brand-500); }
.topic-row__num { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--brand-500); }
.topic-row__name { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; }
.topic-row__excerpt { display: none; }
.topic-row__thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; opacity: .9; }
.topic-row__arrow { transition: transform .5s var(--ease); }
.topic-row__link:hover .topic-row__arrow { transform: translate(4px, -4px); }
.topic-list--big .topic-row__link { grid-template-columns: 3.5rem 1.2fr 1fr auto auto; }
.topic-list--big .topic-row__excerpt { display: block; font-size: var(--fs-sm); color: var(--muted); max-width: 40ch; }
.topic-float { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 5; opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease); overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.topic-float img { width: 100%; height: 100%; object-fit: cover; }
.topic-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
@media (hover: none) { .topic-float { display: none; } }

/* 06 portrait */
.portrait { padding: clamp(4rem, 9vw, 8rem) 0; }
.portrait__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.portrait__media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper-200); }
.portrait__media img { width: 100%; height: 100%; object-fit: cover; }
.portrait__text { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.portrait__quote { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); line-height: 1.2; font-weight: 300; letter-spacing: -.01em; }

/* 07 listen */
.listen { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; color: #fff; background: var(--ink-900); isolation: isolate; overflow: hidden; }
.listen__bg { position: absolute; inset: 0; z-index: -1; }
.listen__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .35; filter: saturate(.7) blur(1px); }
.listen__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-900), rgba(11, 11, 15, .6) 40%, var(--ink-900)); }
.listen__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.listen__book { perspective: 1400px; padding-left: 1.5rem; }
.listen__body { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.listen__text { max-width: 52ch; color: rgba(255, 255, 255, .78); font-size: var(--fs-lg); }
.listen__actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.listen .player { width: 100%; max-width: 640px; }

/* 08 feature (brand chapter) */
.feature { padding: clamp(4rem, 9vw, 8rem) 0; color: #fff; background: var(--brand-600); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature__text { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.feature .eyebrow { color: rgba(255, 255, 255, .8); }
.feature .display-lg em { -webkit-text-fill-color: #fff; color: #fff; background: none; }
.feature__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* 09 pos */
.pos__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.pos__list { display: flex; flex-direction: column; }
.pos__item { width: 100%; display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; text-align: left; padding: 1.1rem 1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-left: 2px solid transparent; transition: background var(--dur), border-color var(--dur), padding var(--dur) var(--ease); }
.pos__item:hover, .pos__item.is-active { background: color-mix(in srgb, var(--brand-500) 7%, transparent); border-left-color: var(--brand-500); padding-left: 1.3rem; }
.pos__num { grid-row: span 2; font-size: var(--fs-xs); letter-spacing: .2em; color: var(--brand-500); padding-top: .35rem; }
.pos__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.pos__addr { font-size: var(--fs-sm); color: var(--muted); }
.pos__nomap-hint { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); }
.pos__list--row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.pos__list--row .pos__item { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: var(--radius); }
.pos__map { position: relative; aspect-ratio: 4 / 3; background: color-mix(in srgb, currentColor 8%, transparent); border-radius: var(--radius); overflow: hidden; }
.pos__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper-200); }
.pos__map__link { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--ink-900); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.pos__map__link:hover { background: #fff; color: var(--brand-600); }
.pos__map--sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
.pos__nomap { display: grid; place-items: center; height: 100%; color: var(--muted); }

/* 10 contact chapter */
.contact-chapter { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); color: #fff; background: var(--ink-900); }
.contact-chapter__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; }
.contact-chapter__info { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.contact-chapter__big { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.2; }
.contact-chapter__addr { color: rgba(255, 255, 255, .7); max-width: 36ch; }
.contact-chapter__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }

/* video poster layer: real <img> behind each lazy <video> (LCP + reduced-motion + screenshots) */
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__video.vposter, .explore__video.vposter, .manifesto__video.vposter { opacity: 1; }
.story__media > video.story__video { opacity: 0; transition: opacity 1s; } .story__media > video.story__video.is-ready { opacity: .7; }
.explore__media > video.explore__video { opacity: 0; transition: opacity 1s; } .explore__media > video.explore__video.is-ready { opacity: .6; }
.manifesto__media > video.manifesto__video { opacity: 0; transition: opacity 1s; } .manifesto__media > video.manifesto__video.is-ready { opacity: .8; }
.story__media > img.story__video { opacity: .7; filter: saturate(.8); }
.explore__media > img.explore__video { opacity: .6; filter: saturate(.7); }
.manifesto__media > img.manifesto__video { opacity: .8; }
.book3d__cover.is-broken img { display: none; }
.book3d__cover.is-broken::before { content: attr(data-title); position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font-family: var(--serif); color: rgba(255,255,255,.75); background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); }
@media (max-height: 760px) { .hero__stats { display: none; } .hero__sub { margin-top: 1rem; } }

/* ---------- 8. Book object (CSS 3D) ---------- */
.book3d { display: block; width: 100%; perspective: 1200px; --rx: 0deg; --ry: -14deg; }
.book3d__body { position: relative; display: block; aspect-ratio: 5 / 7; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s var(--ease); }
.book3d:hover .book3d__body, .book3d.is-tilt .book3d__body { transition-duration: .25s; }
.book3d__cover { position: absolute; inset: 0; display: block; background: var(--ink-800); border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55), 0 12px 24px -12px rgba(0, 0, 0, .35); transform: translateZ(14px); }
.book3d__cover img { width: 100%; height: 100%; object-fit: cover; }
.book3d__blank { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: rgba(255, 255, 255, .7); background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); }
.book3d__gloss { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .08) 100%); mix-blend-mode: screen; pointer-events: none; }
.book3d__spine { position: absolute; left: 0; top: 1px; bottom: 1px; width: 28px; background: linear-gradient(90deg, #1a1a20, #35353f); transform: rotateY(-90deg) translateZ(0px); transform-origin: left; border-radius: 2px 0 0 2px; }
.book3d__pages { position: absolute; top: 4px; bottom: 4px; right: 4px; width: 26px; background: repeating-linear-gradient(180deg, #efe9dc 0 2px, #d9d2c3 2px 3px); transform: rotateY(90deg) translateZ(0); transform-origin: right; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.5rem 2rem; }
.shelf__item { display: flex; flex-direction: column; gap: .8rem; }
.shelf__title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; margin-top: .6rem; }
.shelf__title a:hover { color: var(--brand-500); }
.shelf__meta { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-500); font-weight: 600; }
.shelf__text { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 9. Audio player ---------- */
.player { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); backdrop-filter: blur(8px); }
.player--compact { grid-template-columns: 1fr; padding: .9rem 1rem; }
.player__art { width: 72px; aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; background: var(--ink-700); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__art-empty { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .5); }
.player__main { min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.player__meta { min-width: 0; display: flex; flex-direction: column; }
.player__title { font-weight: 600; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__sub { font-size: var(--fs-xs); opacity: .6; }
.player__dl { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); opacity: .8; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.player__dl:hover { background: var(--brand-500); color: #fff; border-color: var(--brand-500); opacity: 1; }
.player__controls { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: .8rem; }
.player__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(236, 27, 105, .6); transition: transform var(--dur) var(--ease); }
.player__btn:hover { transform: scale(1.06); }
.player__btn .player__icon-pause { display: none; }
.player.is-playing .player__icon-play { display: none; }
.player.is-playing .player__icon-pause { display: block; }
.player__time { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; opacity: .7; min-width: 2.8ch; }
.player__bar { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; }
.player__bar::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: color-mix(in srgb, currentColor 18%, transparent); }
.player__buffer, .player__progress { position: absolute; left: 0; height: 3px; border-radius: 2px; width: 100%; transform-origin: left; transform: scaleX(0); }
.player__buffer { background: color-mix(in srgb, currentColor 28%, transparent); }
.player__progress { background: var(--grad-brand); }
.player__knob { position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(236, 27, 105, .35); transform: translateX(-6px) scale(0); transition: transform .2s var(--ease); }
.player__bar:hover .player__knob, .player.is-playing .player__knob, .player__bar:focus-visible .player__knob { transform: translateX(-6px) scale(1); }
.player__volume { display: flex; align-items: center; gap: .4rem; }
.player__mute { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; opacity: .8; }
.player.is-muted .player__wave { display: none; }
.player__vol { width: 72px; height: 3px; appearance: none; -webkit-appearance: none; background: color-mix(in srgb, currentColor 22%, transparent); border-radius: 2px; outline: none; cursor: pointer; }
.player__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); }
.player__vol::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); }

/* ---------- 10. Inner pages ---------- */
.page-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 7vw, 5rem); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero--plain { background: radial-gradient(80% 100% at 100% 0%, rgba(236, 27, 105, .35), transparent 60%), var(--ink-900); min-height: 56svh; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 120%; object-fit: cover; }
.page-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 10, .62), rgba(7, 7, 10, .42) 40%, var(--ink-900) 100%), linear-gradient(90deg, rgba(7, 7, 10, .55), rgba(7, 7, 10, .2) 55%, transparent); }
.page-hero__media img { filter: saturate(.85); }
.page-hero__inner { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.page-hero__top { display: flex; align-items: center; gap: 1.2rem; }
.page-hero__num { font-family: var(--serif); font-size: 1.6rem; color: var(--brand-300); }
.page-hero__title { font-family: var(--serif); font-weight: 300; font-size: var(--display-xl); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.page-hero__text { max-width: 56ch; font-size: var(--fs-lg); color: rgba(255, 255, 255, .82); }

.editorial { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.editorial--reverse { grid-template-columns: .9fr 1.1fr; }
.editorial--reverse .editorial__text { order: 2; }
.editorial--single { grid-template-columns: minmax(0, 820px); }
.editorial--narrow { grid-template-columns: minmax(0, 760px); }
.editorial__text { display: flex; flex-direction: column; gap: 2rem; }
.editorial__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-200); position: sticky; top: calc(var(--header-h) + 1rem); }
.editorial__media--tall { aspect-ratio: 4 / 5; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.about__lead { max-width: 22ch; }
.stats { padding: clamp(3rem, 7vw, 6rem) 0; color: #fff; background: var(--ink-900); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin-top: 2rem; }
.stats__grid dt { font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats__grid dd { margin-top: .4rem; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.timeline { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.timeline__item { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.timeline__num { font-family: var(--serif); font-size: 1.6rem; color: var(--brand-500); }
.timeline__title { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.timeline__sub { color: var(--muted); margin-top: .2rem; }
.timeline__meta { display: inline-block; margin-top: .5rem; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); }
.timeline__img { width: 160px; height: 106px; object-fit: cover; border-radius: 4px; }

.author-hero { padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 7vw, 6rem); color: #fff; }
.author-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.author-hero__text { display: flex; flex-direction: column; gap: 1.5rem; }
.author-hero__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.4; color: rgba(255, 255, 255, .85); max-width: 40ch; }
.author-hero__media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink-800); }
.author-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.manifesto { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 2rem) 0 4rem; }
.manifesto__media { position: absolute; inset: 0; z-index: -1; }
.manifesto__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.manifesto__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 10, .55), rgba(7, 7, 10, .3) 50%, var(--ink-900)); }
.manifesto__inner { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.manifesto__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 1rem + 3.2vw, 4.4rem); line-height: 1.18; letter-spacing: -.015em; max-width: 26ch; }
.manifesto__word { display: inline-block; margin-right: .25em; opacity: .18; transform: translate3d(0, .2em, 0); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.manifesto__word.is-on { opacity: 1; transform: none; }
.manifesto__more { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); animation: bob 2s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.cta-chapter { padding: clamp(4rem, 9vw, 7rem) 0; color: #fff; background: var(--brand-600); }
.cta-chapter[data-bg="ink"] { background: var(--ink-900); }
.cta-chapter .display-lg em { -webkit-text-fill-color: #fff; color: #fff; background: none; }
.cta-chapter[data-bg="ink"] .display-lg em { -webkit-text-fill-color: transparent; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }
.cta-chapter__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-chapter__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.contact-hero { position: relative; min-height: 70svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 3rem) 0 4rem; color: #fff; isolation: isolate; overflow: hidden; }
.contact-hero__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.contact-hero__links { display: flex; flex-direction: column; gap: .4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.contact-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.8rem; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: var(--radius); }
.contact-card__icon { color: var(--brand-500); }
.contact-card__value { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.contact-card__meta { font-size: var(--fs-sm); color: var(--muted); }
.contact-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.contact-sub__form { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact-sub__form .field { width: 100%; }

.edition-stack { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 7rem); }
.edition-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.edition-row--reverse { grid-template-columns: .85fr 1.15fr; }
.edition-row--reverse .edition-row__media { order: 2; }
.edition-row__media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-200); }
.edition-row__media img { width: 100%; height: 100%; object-fit: cover; }
.edition-row__body { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.edition-row__num { font-family: var(--serif); font-size: 2rem; color: var(--brand-500); }
.edition-row__title:hover { color: var(--brand-500); }
.edition-row__sub { font-weight: 600; color: var(--muted); }
.edition-row__text { color: var(--muted); max-width: 52ch; }
.edition-row__meta { display: flex; gap: 1.2rem; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.edition-row__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.edition-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 3rem) 0 4rem; color: #fff; isolation: isolate; overflow: hidden; }
.edition-hero__bg { position: absolute; inset: 0; z-index: -2; }
.edition-hero__bg img { width: 100%; height: 120%; object-fit: cover; }
.edition-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 10, .6), rgba(7, 7, 10, .35) 40%, var(--ink-900)); }
.edition-hero__inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.edition-hero__sub { font-size: var(--fs-lg); color: rgba(255, 255, 255, .82); max-width: 50ch; }

.media-meta { display: flex; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); color: var(--muted); }
.media-meta strong { font-family: var(--serif); font-size: 1.6rem; color: inherit; margin-right: .3rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem 2rem; }
.media-tile { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; align-items: start; }
.media-tile__body { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.media-tile__title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.media-tile__title a:hover { color: var(--brand-500); }
.media-tile__meta { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }
.media-tile__text { font-size: var(--fs-sm); color: var(--muted); }

.book-hero { position: relative; padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 7vw, 6rem); color: #fff; isolation: isolate; overflow: hidden; }
.book-hero__bg { position: absolute; inset: 0; z-index: -2; }
.book-hero__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .5; }
.book-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 10, .75), rgba(7, 7, 10, .5) 50%, var(--ink-900)); }
.book-hero__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.book-hero__cover { perspective: 1400px; padding-left: 1.25rem; }
.book-hero__body { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.book-hero__edition:hover { color: #fff; }
.book-hero__text { max-width: 56ch; font-size: var(--fs-lg); color: rgba(255, 255, 255, .82); }
.book-hero__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; font-size: var(--fs-sm); }
.book-hero__meta > span { display: inline-flex; align-items: center; gap: .4rem; opacity: .8; }
.tracks { display: flex; flex-direction: column; gap: .75rem; }
.tracks__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; }
.tracks__num { font-family: var(--serif); font-size: 1.4rem; color: var(--brand-500); }
.tracks__title { font-weight: 600; }

.error-page { min-height: 100svh; display: flex; align-items: center; color: #fff; position: relative; overflow: hidden; }
.error-page__inner { position: relative; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; max-width: 640px; }
.error-page__code { position: absolute; right: -5vw; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: clamp(10rem, 30vw, 28rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); pointer-events: none; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }

/* ---------- 11. Footer, modal, toast, fields ---------- */
.footer { position: relative; color: #fff; background: var(--ink-900); padding: clamp(4rem, 8vw, 6rem) 0 1.5rem; overflow: hidden; isolation: isolate; }
.footer__glow { position: absolute; left: 50%; bottom: -20%; width: 70vw; aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(236, 27, 105, .28), transparent 65%); filter: blur(30px); z-index: -1; pointer-events: none; animation: glow 9s var(--ease-io) infinite alternate; }
@keyframes glow { to { transform: translateX(-44%) scale(1.1); } }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.footer__about { max-width: 40ch; color: var(--muted-on-ink); font-size: var(--fs-sm); }
.footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin-top: 1.2rem; }
.footer__nav a { font-size: var(--fs-md); color: rgba(255, 255, 255, .85); }
.footer__contact { display: flex; flex-direction: column; gap: 1rem; }
.contact-list { display: flex; flex-direction: column; gap: .4rem; color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); }
.footer__subscribe { position: relative; display: flex; margin-top: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer__input { flex: 1; padding: .8rem 0; background: none; border: 0; color: #fff; font: inherit; outline: none; }
.footer__input::placeholder { color: rgba(255, 255, 255, .45); }
.footer__submit { display: grid; place-items: center; width: 40px; color: #fff; transition: transform var(--dur) var(--ease), color var(--dur); }
.footer__submit:hover { transform: translateX(4px); color: var(--brand-300); }
.footer__hint { font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.footer__giant { overflow: hidden; padding: 2rem 0 0; line-height: .85; }
.footer__giant span { display: block; font-family: var(--serif); font-size: clamp(3rem, 11.5vw, 12.5rem); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); text-align: center; transform: translate3d(0, 30%, 0); transition: transform 1.4s var(--ease), -webkit-text-stroke .8s; }
.footer.is-in .footer__giant span { transform: none; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.footer__top-link { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .8); }

.modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 480px); width: 100%; color: var(--text-on-paper); --muted: var(--muted-on-paper); }
.modal::backdrop { background: rgba(7, 7, 10, .7); backdrop-filter: blur(6px); }
.modal__body { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 2.4rem; background: var(--paper-50); border-radius: 10px; animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: .8rem; top: .8rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal__close:hover { background: var(--paper-200); color: var(--text-on-paper); }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; }
.modal__text { color: var(--muted); font-size: var(--fs-sm); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.field__input { width: 100%; padding: .9rem 0; font: inherit; font-size: var(--fs-lg); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); color: inherit; transition: border-color var(--dur); }
.field__input:focus { outline: none; border-color: var(--brand-500); }
.toast-region { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 520px); }
.toast { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: 8px; background: var(--ink-800); color: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); font-size: var(--fs-sm); animation: toast-in .4s var(--ease); border: 1px solid rgba(255, 255, 255, .08); }
.toast--success .toast__icon { color: #3ddc97; }
.toast--error .toast__icon { color: var(--brand-300); }
.toast__close { margin-left: auto; color: rgba(255, 255, 255, .7); display: grid; place-items: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .story { grid-template-columns: 1fr; }
  /* the media used to stay pinned to the top of the viewport while the steps
     scrolled *underneath* it, hiding the first third of every paragraph */
  .story__sticky { position: static; height: auto; z-index: 0; }
  .story__media { aspect-ratio: 16 / 10; }
  .story__img { position: absolute; }
  .story__veil { background: linear-gradient(0deg, var(--ink-900), rgba(11, 11, 15, .15) 55%, rgba(11, 11, 15, .35)); }
  .story__steps { padding: 0 var(--gutter) 2rem; }
  .story__step { min-height: 0; padding: 2.75rem 0; opacity: 1; justify-content: center; }
  .story__caption { left: 1.1rem; bottom: 1.1rem; }
  .showcase__stage, .showcase__spacer { display: none; }
  .showcase__mobile { display: block; padding: clamp(3rem, 8vw, 6rem) 0; }
  .showcase__mobile .rail__track { padding-top: 1rem; }
  .nav-overlay__inner { grid-template-columns: 1fr; align-content: start; gap: 2rem; overflow: auto; padding-bottom: 2rem; }
  .listen__grid { grid-template-columns: 260px 1fr; }
  .book-hero__grid { grid-template-columns: 240px 1fr; }
  .topic-list--big .topic-row__link { grid-template-columns: 3rem 1fr auto auto; }
  .topic-list--big .topic-row__excerpt { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .hero { align-items: flex-end; padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); min-height: 100svh; }
  .hero__inner { will-change: auto; }
  .hero__veil { background: linear-gradient(180deg, rgba(7, 7, 10, .6) 0%, rgba(7, 7, 10, .38) 30%, rgba(7, 7, 10, .82) 65%, var(--ink-900) 100%); }
  .story__step { min-height: 0; padding: 3.5rem 0 3rem; }
  .hero__statement { max-width: 12ch; }
  .hero__scroll { display: none; }
  .hero__marquee { font-size: 18vw; }
  .hero__stats { gap: 1rem 2rem; }
  .portrait__grid, .feature__grid, .pos__grid, .contact-chapter__grid, .editorial, .editorial--reverse, .edition-row, .edition-row--reverse, .author-hero__grid, .contact-sub, .listen__grid, .book-hero__grid { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__text, .edition-row--reverse .edition-row__media { order: 0; }
  .editorial__media { position: static; }
  .listen__book { max-width: 240px; }
  .book-hero__cover { max-width: 220px; }
  .cta-chapter__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav ul { grid-template-columns: 1fr 1fr; }
  .topic-row__link { grid-template-columns: 2.6rem 1fr auto; gap: 1rem; }
  .topic-row__thumb { display: none; }
  .chapter__head, .explore__head { grid-template-columns: 1fr; align-items: start; }
  .media-tile { grid-template-columns: 110px 1fr; }
  .timeline__item { grid-template-columns: 3rem 1fr; }
  .timeline__img { display: none; }
  .pos__map--sticky { position: static; }
  .player__controls { grid-template-columns: auto auto 1fr auto; }
  .player__volume { display: none; }
  .site-header__cta { display: none; }
  .error-page__code { right: -20vw; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .menu-btn__label { display: none; }
  .menu-btn { padding-right: .4rem; }
  .brand__word { font-size: 1rem; }
  .chapter { padding: clamp(3rem, 11vw, 5rem) 0; }
  .contact-card { padding: 1.3rem; }
  .pos__item { padding: .95rem .8rem; }
  .pos__map { aspect-ratio: 1 / 1; }
  .hero__statement { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .rail__item--book { width: 160px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .media-grid { grid-template-columns: 1fr; }
  .media-tile { grid-template-columns: 96px 1fr; gap: 1rem; }
  .player { grid-template-columns: 1fr; }
  .player__art { display: none; }
  .modal__body { padding: 1.8rem; }
  .footer__giant span { font-size: 15vw; }
}

/* ---------- 12b. Notch / gesture-bar safe areas (viewport-fit=cover) ---------- */
@supports (padding: max(0px)) {
  .container, .site-header__bar, .hero__inner {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .nav-overlay__inner { padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px)); }
  .toast-region { bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); }
  .footer__bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* touch devices: no hover-only affordances, comfortable hit areas */
@media (hover: none) {
  .btn:hover { transform: none; }
  .topic-row__link:hover { padding-left: 0; }
  .site-nav__link, .footer__nav a, .nav-overlay__sub a { padding-top: .5rem; padding-bottom: .5rem; }
  .rail__track { cursor: auto; scroll-snap-type: x mandatory; }
}
/* Very short viewports (phone landscape): the sticky/full-height chapters would
   otherwise leave no room for their own text. */
@media (max-height: 560px) and (max-width: 1100px) {
  .hero, .manifesto { min-height: 0; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
  .hero__marquee { display: none; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-now, .split-lines .line > span, .mask-img, .mask-img img, .hero__word > span, .manifesto__word, .footer__giant span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__video, .story__video, .explore__video, .manifesto__video { display: none; }
  .loader { display: none; }
  .story__step { opacity: 1; }
}
