/* ==========================================================================
   Home — the opening, the proof, the shelf.
   Every section reads correctly with no JavaScript: initial animation states
   are set by script, never hidden by CSS.
   ========================================================================== */

/* ---------- Intro overlays (hero 1 wordmark window, hero 5 chapter words) ---------- */
.intro { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.intro__skip { position: absolute; right: 18px; bottom: 18px; z-index: 3; font: 500 .8125rem/1 var(--sans); padding: 10px 14px; border-radius: var(--pill); border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 85%, transparent); color: var(--ink); cursor: pointer; }
/* Wordmark window: paint-only. A mask cuts the window in the paper sheet, a
   clip-path reveals the spreads behind it and the letters part with transforms,
   so the opening never moves layout (no layout shift). */
.intro--wordmark { background: transparent; --hw: 0px; --hh: 0px; }
.intro__paper { position: absolute; inset: 0; z-index: 1; background: var(--paper);
  -webkit-mask: linear-gradient(#000 0 0) center / var(--hw) var(--hh) no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) center / var(--hw) var(--hh) no-repeat exclude, linear-gradient(#000 0 0); }
.intro__window { position: absolute; inset: 0; z-index: 0; clip-path: inset(calc(50% - var(--hh) / 2) calc(50% - var(--hw) / 2) round 6px); }
.intro__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.intro__word { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(5.5rem, 21vw, 19rem); line-height: .8; letter-spacing: -.045em; white-space: nowrap; }
.intro__start, .intro__end { position: absolute; top: 0; display: flex; overflow: hidden; padding-block: .14em; transform: translateY(-50%); }
.intro__start { right: 0; }
.intro__end { left: 0; }
.intro__letter { display: block; }
.intro__caption { position: absolute; left: 0; right: 0; bottom: max(12vh, 80px); z-index: 2; display: flex; justify-content: center; gap: .6rem; align-items: baseline; font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--ink-2); }
.intro__caption .label { color: var(--ink-muted); min-width: 2.6em; text-align: right; }
/* Chapter words with a curved lift (hero 5) */
.intro--chapter { background: transparent; }
.intro__sheet { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 300px); pointer-events: none; }
.intro__sheet path { fill: var(--paper); }
.intro__words { position: relative; z-index: 2; display: flex; align-items: baseline; gap: .9rem; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.02em; }
.intro__words .intro__dot { width: .22em; height: .22em; border-radius: 50%; background: var(--terracotta); align-self: center; }
.intro__words .label { font-size: .8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px 72px; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  background:
    radial-gradient(60% 55% at 70% 42%, rgba(204, 107, 87, .22), transparent 70%),
    radial-gradient(90% 70% at 30% 110%, rgba(126, 44, 32, .35), transparent 70%),
    var(--night); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s12); align-items: center; }
.hero__copy { grid-column: 1 / -1; max-width: 40rem; }
.hero__kicker { color: var(--on-night-muted); margin-bottom: var(--s5); }
.hero__title { color: var(--on-night); }
.hero__title em { font-weight: 300; }
.hero__lede { margin-top: var(--s6); color: var(--on-night-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.hero__facts { list-style: none; margin: var(--s6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .875rem; color: var(--on-night-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta-on-night); }
.hero__figure { grid-column: 1 / -1; margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero__caption { margin-top: var(--s5); max-width: 34rem; text-align: center; color: var(--on-night-muted); }
.hero__caption b { color: var(--on-night-2); }
.hero__next { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%; }
.hero__next span { width: 1px; height: 28px; background: linear-gradient(var(--on-night-muted), transparent); }
@media (min-width: 1040px) {
  .hero__copy { grid-column: 1 / span 6; }
  .hero__figure { grid-column: 7 / span 6; }
}

/* The book: a real verso/recto pair; the leaf is hinged at the gutter. */
.book { --w: min(88vw, 640px); position: relative; display: block; width: var(--w); aspect-ratio: 1.25; padding: 0; border: 0; background: none; cursor: zoom-in; perspective: 2200px; color: inherit; }
@media (min-width: 1040px) { .book { --w: min(44vw, 660px); } }
.book__tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.book__page, .book__leaf { position: absolute; top: 0; bottom: 0; width: 50%; }
.book__page--recto { left: 50%; box-shadow: var(--shadow-book); }
.book__page img, .book__face img { width: 100%; height: 100%; object-fit: cover; }
.book__leaf { left: 50%; transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(-180deg); }
.book__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.book__face--verso { transform: rotateY(180deg); box-shadow: var(--shadow-book); }
.book__face--cover { background: #5a2219; border-radius: 0 6px 6px 0; box-shadow: var(--shadow-book); }
.book__cloth { position: absolute; inset: 0; background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
  linear-gradient(90deg, rgba(0,0,0,.35), transparent 7%, transparent 94%, rgba(255,255,255,.06)),
  linear-gradient(160deg, #7E2C20, #4b1b14); }
.book__cloth::after { content: ''; position: absolute; left: 11%; right: 9%; top: 7%; bottom: 7%; border: 1px solid rgba(243, 236, 221, .16); border-radius: 2px; }
.book__gutter { position: absolute; top: 0; bottom: 0; left: 46%; width: 8%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,0,0,.18) 45%, rgba(0,0,0,.28) 50%, rgba(255,255,255,.06) 54%, transparent); transform: translateZ(1px); }
.book__shadow { position: absolute; left: 4%; right: 4%; bottom: -7%; height: 14%; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.6), transparent 70%); filter: blur(8px); transform: translateZ(-40px); }
.book__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(42% 52% at var(--lx, 62%) var(--ly, 30%), rgba(255, 236, 205, .55), transparent 70%); transform: translateZ(2px); opacity: .9; }
.book:focus-visible { outline-offset: 10px; }

/* ---------- Mask zoom (scroll 8): the A opens onto a page ---------- */
.mask-zoom { position: relative; height: 320vh; background: var(--night); color: var(--on-night); }
.mask-zoom__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mask-zoom__art { position: absolute; inset: 0; display: grid; place-items: center; padding: 5vh 4vw; }
.mask-zoom__art img { width: 100%; height: 100%; object-fit: contain; }
html.motion .mask-zoom__art.is-masked {
  -webkit-mask-image: url("/static/website/v3/assets/brand/a-mask.b349ba196fbe.svg"); mask-image: url("/static/website/v3/assets/brand/a-mask.b349ba196fbe.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--mw, 40vw) auto; mask-size: var(--mw, 40vw) auto;
  -webkit-mask-position: var(--mx, 30vw) var(--my, 20vh); mask-position: var(--mx, 30vw) var(--my, 20vh);
}
.mask-zoom__copy { position: absolute; left: 0; right: 0; bottom: clamp(32px, 9vh, 96px); z-index: 2; pointer-events: none; }
.mask-zoom__copy .lede { margin-top: var(--s4); color: var(--on-night-2); max-width: 30rem; }
.mask-zoom__caption { position: absolute; right: var(--margin); bottom: 18px; z-index: 2; color: var(--on-night-muted); }
.mask-zoom__caption b { color: var(--on-night-2); }
html.reduce-motion .mask-zoom, .mask-zoom.is-static { height: auto; }
html.reduce-motion .mask-zoom__sticky, .mask-zoom.is-static .mask-zoom__sticky { position: relative; height: auto; display: flex; flex-direction: column-reverse; gap: var(--s8); padding-block: var(--section); }
html.reduce-motion .mask-zoom__art, .mask-zoom.is-static .mask-zoom__art { position: relative; padding: 0 var(--margin); }
html.reduce-motion .mask-zoom__copy, .mask-zoom.is-static .mask-zoom__copy { position: relative; bottom: auto; }
html.reduce-motion .mask-zoom__caption, .mask-zoom.is-static .mask-zoom__caption { position: relative; right: auto; bottom: auto; padding-inline: var(--margin); }

/* ---------- Proof: manuscript to page ---------- */
.proof__head { max-width: 48rem; }
.proof__head .lede { margin-top: var(--s6); }
.proof__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--s16); }
.proof__steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.proof__step { padding-block: var(--s8); border-top: 1px solid var(--line); }
.proof__step .h3 { margin: var(--s2) 0 var(--s4); }
.proof__num { color: var(--terracotta); font-size: .8125rem; }
.proof__mobile-fig { margin: var(--s6) 0 0; }
.proof__mobile-fig img { width: min(100%, 420px); box-shadow: var(--shadow-lg); }
.proof__step:nth-child(3) .proof__mobile-fig img { width: 100%; max-width: 640px; }
.proof__stage { display: none; }
.proof__note { margin-top: var(--s12); }
.manuscript { background: #fff; color: #222; font-family: 'Times New Roman', Times, serif; font-size: 13px; line-height: 2; padding: 9% 10%; box-shadow: var(--shadow); }
.manuscript p { margin: 0 0 .2em; text-indent: 0; }
.manuscript p + p:not(:nth-child(-n+3)) { text-indent: 2.4em; }
.manuscript__file { font: 500 11px/1.4 var(--mono); color: #5f5f5f; margin-bottom: 1.8em !important; text-indent: 0 !important; }
.manuscript--static { max-width: 420px; font-size: 12px; }
@media (min-width: 960px) {
  .proof__steps { grid-column: 1 / span 5; }
  .proof__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding-block: 0; }
  .proof__step .prose { max-width: 27em; }
  .proof__step .h3, .proof__step .proof__num { transition: color var(--d-leaf) var(--e-ink); }
  .proof__step:not(.is-active) .h3 { color: var(--fg-muted); }
  .proof__step:not(.is-active) .proof__num { color: var(--fg-muted); }
  html.reduce-motion .proof__step .h3 { color: var(--fg); }
  .proof__mobile-fig { display: none; }
  .proof__stage { display: flex; flex-direction: column; justify-content: center; align-items: center; grid-column: 6 / span 7; position: sticky; top: calc(76px + 2vh); height: calc(100vh - 76px - 5vh); align-self: start; }
  .proof__frame { position: relative; width: min(100%, calc((100vh - 76px - 5vh) * 1.25 - 170px)); aspect-ratio: 1.25; }
  .proof__verso, .proof__recto { position: absolute; top: 0; bottom: 0; width: 50%; }
  .proof__verso { left: 0; opacity: 0; box-shadow: var(--shadow-lg); }
  .proof__recto { left: 50%; }
  .proof__verso img, .proof__set img { width: 100%; height: 100%; object-fit: cover; }
  .proof__recto .manuscript { position: absolute; inset: 0; overflow: hidden; font-size: clamp(9px, .78vw, 13px); }
  .proof__set { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); box-shadow: var(--shadow-lg); }
  .proof__slices { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
  .proof__slices span { flex: 1; background: var(--terracotta); transform: scaleX(0); transform-origin: left; }
  .proof__slices span:nth-child(even) { transform-origin: right; background: var(--terracotta-dk); }
  .proof__chips { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; opacity: 0; }
  .proof__legend { margin-top: var(--s4); }
  html.reduce-motion .proof__set, .proof__stage.is-final .proof__set { clip-path: none; }
  html.reduce-motion .proof__verso, .proof__stage.is-final .proof__verso { opacity: 1; }
  html.reduce-motion .proof__chips { opacity: 1; }
}
.chip { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .85rem; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.chip--quiet { background: transparent; }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ---------- Verbs (text 8): typesetting that acts out its name ---------- */
.verbs__head { display: grid; gap: var(--s6); max-width: 52rem; margin-bottom: var(--s16); }
.verbs__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); background: var(--line); border: 1px solid var(--line); }
.verb { background: color-mix(in srgb, var(--tint) 62%, var(--paper)); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; min-height: 330px; }
.verb__word { flex: 1; display: flex; align-items: center; min-height: 150px; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 300; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.verb__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; letter-spacing: -.01em; margin-top: var(--s4); }
.verb__text { margin-top: var(--s2); font-size: .9375rem; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.verb--justify span { display: inline-block; }
.verb--drop { align-items: flex-start; padding-top: .2em; }
.verb__cap { display: inline-block; color: var(--terracotta-dk); transform-origin: 0 0; }
.verb--hyphen { flex-direction: column; align-items: flex-start; justify-content: center; }
.verb--hyphen span { display: block; }
.verb--italic span { display: inline-block; }
.verb--ornament svg { width: min(100%, 260px); height: auto; overflow: visible; }
.verb__rule { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.verb__orn { fill: var(--terracotta); transform-origin: 110px 20px; }
.verb--folio { flex-direction: column; align-items: stretch; justify-content: center; gap: .6rem; font-size: 1rem; }
.verb__rh { font-family: var(--serif); font-size: .8rem; letter-spacing: .28em; text-align: center; color: var(--ink-2); }
.verb__fn { font-size: 1.6rem; text-align: center; color: var(--ink); }
/* The motion only runs on screen (JS toggles .is-playing), never under reduced motion */
html.motion .verb.is-playing .verb--justify span { animation: v-justify 3.2s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__cap { animation: v-drop 3.6s var(--e-settle) infinite; }
html.motion .verb.is-playing .verb__cap + span { display: inline-block; animation: v-drop-rest 3.6s var(--e-settle) infinite; }
html.motion .verb.is-playing .verb__b { animation: v-hyphen 3.4s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb--italic span { animation: v-italic 3s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__rule { stroke-dasharray: 82; animation: v-rule 3.4s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__orn { animation: v-orn 3.4s var(--e-settle) infinite; }
html.motion .verb.is-playing .verb__rh { animation: v-rh 3.6s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__fn { animation: v-fn 3.6s var(--e-settle) infinite; }
@keyframes v-justify { 0%, 12% { letter-spacing: -.02em; } 46%, 70% { letter-spacing: .14em; } 100% { letter-spacing: -.02em; } }
@keyframes v-drop { 0%, 10% { transform: none; } 40%, 76% { transform: translateY(.06em) scale(2.4); } 100% { transform: none; } }
@keyframes v-drop-rest { 0%, 10% { transform: none; } 40%, 76% { transform: translate(.95em, .12em); } 100% { transform: none; } }
@keyframes v-hyphen { 0%, 12% { transform: translate(2.62em, -1em); } 42%, 74% { transform: none; } 100% { transform: translate(2.62em, -1em); } }
@keyframes v-italic { 0%, 15% { font-style: normal; transform: none; } 38% { font-style: normal; transform: skewX(-11deg); } 40%, 75% { font-style: italic; transform: none; } 100% { font-style: normal; } }
@keyframes v-rule { 0% { stroke-dashoffset: 82; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -82; } }
@keyframes v-orn { 0%, 20% { transform: scale(0) rotate(-90deg); opacity: 0; } 45%, 80% { transform: none; opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes v-rh { 0%, 10% { letter-spacing: .6em; opacity: 0; } 40%, 85% { letter-spacing: .28em; opacity: 1; } 100% { opacity: 0; } }
@keyframes v-fn { 0%, 25% { transform: translateY(.6em); opacity: 0; } 50%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* Chapter openings and contents. */
.verb--chapter { perspective: 650px; }
.verb__chapter-stage { position: relative; width: 100%; height: 150px; perspective: 650px; }
.verb__chapter-number { position: absolute; left: 0; top: 0; color: var(--terracotta-dk); font-size: 3.3rem; font-style: italic; line-height: 1; transform-origin: left top; }
.verb__chapter-title { position: absolute; left: 0; top: 57px; font-size: 2.15rem; line-height: 1.02; }
.verb__chapter-title > span { display: block; transform-origin: center top; }
.verb__chapter-rule { position: absolute; left: 0; top: 140px; width: 92px; height: 1px; background: var(--terracotta-dk); transform-origin: left; }
.verb--contents { flex-direction: column; align-items: stretch; justify-content: center; gap: .65rem; font-size: 1.05rem; letter-spacing: -.01em; }
.verb__contents-heading { margin-bottom: .3rem; font-size: 2.25rem; }
.verb__contents-row { display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; perspective: 400px; }
.verb__contents-name { display: inline-block; }
.verb__contents-leader { position: relative; flex: 1; min-width: 10px; border-bottom: 1px dotted var(--ink-muted); transform-origin: left; }
.verb__contents-leader::after { content: ''; position: absolute; right: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta); opacity: 0; }
.verb__contents-number { display: inline-block; flex: none; width: 1.4em; height: 1.1em; overflow: hidden; color: var(--terracotta-dk); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.verb__contents-reel { display: flex; flex-direction: column; line-height: 1.1; transform: translateY(-50%); }
.verb__contents-reel > span { display: block; height: 1.1em; }
html.motion .verb.is-playing .verb__chapter-number { animation: v-chapter-number 5.4s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__chapter-title > span { animation: v-chapter-title 5.4s var(--e-turn) infinite both; }
html.motion .verb.is-playing .verb__chapter-title > span + span { animation-delay: .12s; }
html.motion .verb.is-playing .verb__chapter-rule { animation: v-chapter-rule 5.4s var(--e-turn) infinite; }
html.motion .verb.is-playing .verb__contents-name { animation: v-contents-align 5.4s var(--e-turn) infinite; animation-delay: calc(var(--entry-delay) - .8s); }
html.motion .verb.is-playing .verb__contents-leader { animation: v-contents-leader 5.4s var(--e-turn) infinite; animation-delay: calc(var(--entry-delay) - .8s); }
html.motion .verb.is-playing .verb__contents-leader::after { animation: v-contents-dot 5.4s var(--e-turn) infinite; animation-delay: calc(var(--entry-delay) - .8s); }
html.motion .verb.is-playing .verb__contents-number { animation: v-contents-number 5.4s var(--e-turn) infinite; animation-delay: calc(var(--entry-delay) - .8s); }
html.motion .verb.is-playing .verb__contents-reel { animation: v-contents-reel 5.4s var(--e-settle) infinite; animation-delay: calc(var(--entry-delay) - .8s); }
@keyframes v-chapter-number { 0%, 16%, 100% { transform: translate(64px, 30px) scale(2.1); } 42%, 72% { transform: none; } }
@keyframes v-chapter-title { 0%, 20%, 96%, 100% { transform: translateY(20px) rotateX(-85deg); opacity: 0; letter-spacing: .08em; } 44%, 70% { transform: none; opacity: 1; letter-spacing: -.02em; } }
@keyframes v-chapter-rule { 0%, 34%, 94%, 100% { transform: scaleX(0); } 52%, 72% { transform: scaleX(1); } }
@keyframes v-contents-align { 0%, 10%, 100% { transform: translateX(var(--entry-offset)); } 34%, 72% { transform: none; } }
@keyframes v-contents-leader { 0%, 22%, 96%, 100% { transform: scaleX(0); } 48%, 72% { transform: scaleX(1); } }
@keyframes v-contents-dot { 0%, 20%, 53%, 72%, 98%, 100% { opacity: 0; } 30%, 44%, 80%, 88% { opacity: 1; } }
@keyframes v-contents-number { 0%, 24%, 98%, 100% { transform: translateX(-28px) rotateX(-90deg); opacity: 0; } 46%, 74% { transform: none; opacity: 1; } }
@keyframes v-contents-reel { 0%, 34%, 100% { transform: translateY(0); } 52%, 76% { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { html.motion .verb.is-playing .verb--chapter *, html.motion .verb.is-playing .verb__chapter-title > span, html.motion .verb.is-playing .verb--contents *, html.motion .verb.is-playing .verb__contents-leader::after { animation: none; } }

/* ---------- Studio (hover 21): words that open into the app ---------- */
.studio { background: var(--night); color: var(--on-night); }
.studio__lines { margin-top: var(--s6); font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 1rem + 7.2vw, 8.4rem); line-height: .98; letter-spacing: -.035em; }
.studio__line { display: flex; align-items: center; flex-wrap: wrap; white-space: nowrap; }
.spot { position: relative; display: inline-block; flex: none; width: .5em; height: .5em; margin: 0 .16em; perspective: 900px; vertical-align: middle; cursor: zoom-in; border-radius: .05em; }
.spot__card { position: absolute; left: 50%; top: 50%; width: .5em; height: .5em; transform: translate(-50%, -50%); background: var(--terracotta); border-radius: .05em; overflow: hidden; z-index: 3; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); will-change: width, height, transform; }
.spot__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transform: scale(1.4); }
@media (hover: none), (max-width: 999px) {
  .spot { width: 1.1em; height: .7em; }
  .spot__card { width: 100%; height: 100%; }
  .spot__card img { opacity: 1; transform: none; }
}
html.reduce-motion .spot { width: 1.1em; height: .7em; }
html.reduce-motion .spot__card { width: 100%; height: 100%; }
html.reduce-motion .spot__card img { opacity: 1; transform: none; }
.studio__shot { margin: var(--s20) 0 0; }
.studio__shot img { width: 100%; border-radius: 12px; box-shadow: 0 50px 120px -40px rgba(0,0,0,.8), 0 0 0 1px var(--rule-night); }
.studio__shot figcaption { margin-top: var(--s4); color: var(--on-night-muted); }
.studio__shot figcaption b { color: var(--on-night-2); }
.studio__points { list-style: none; margin: var(--s16) 0 0; padding: 0; display: grid; gap: var(--s10) var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.studio__points p { margin-top: var(--s3); color: var(--on-night-2); font-size: 1rem; line-height: 1.6; }

/* ---------- Index folders (hover 20) ---------- */
.index { padding-bottom: 0; overflow: hidden; }
.index__head { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: end; margin-bottom: var(--s12); }
.folders { --v1: #E3C3A3; --v2: #DCD1BE; --v3: #C9BAA2; --off-bg: #EBE3D3; --off-fg: #B5A891; position: relative; display: flex; flex-direction: column; }
.folders__row { position: relative; display: flex; flex-direction: column; }
.folder { position: relative; display: flex; flex-direction: column; min-height: 8.5rem; color: var(--ink); text-decoration: none; margin-bottom: -.6rem; }
.folder__preview { display: none; }
.folder__wrap { position: relative; display: flex; flex-direction: column; height: 100%; }
.folder__index { position: relative; align-self: flex-start; width: 40%; padding: .75rem 1rem; font-size: .75rem; background: var(--bg-f); transition: background-color var(--d-ink) var(--e-paper), color var(--d-ink) var(--e-paper); }
.folder__index::after { content: ''; position: absolute; top: 0; left: 99%; height: 101%; aspect-ratio: 1; clip-path: polygon(0 0, 25% 0, 100% 100%, 0% 100%); background: inherit; }
.folder__name { flex: 1; padding: .25rem 1.5rem 2rem; font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; background: var(--bg-f); transition: background-color var(--d-ink) var(--e-paper), color var(--d-ink) var(--e-paper); }
.folder--1 { --bg-f: var(--v1); }
.folder--2 { --bg-f: var(--v2); }
.folder--3 { --bg-f: var(--v3); }
.folder:focus-visible { outline-offset: -4px; }
.folder:hover .folder__name, .folder:focus-visible .folder__name { font-style: italic; }
@media (min-width: 1000px) {
  .folders { height: 34rem; justify-content: flex-end; }
  .folders__row { flex-direction: row; }
  .folders__row:nth-child(1) { bottom: -12rem; }
  .folders__row:nth-child(2) { bottom: -7rem; }
  .folders__row:nth-child(3) { bottom: -2rem; }
  .folder { flex: 1; height: 12.5rem; min-height: 0; margin-bottom: 0; cursor: pointer; }
  .folders__row:nth-child(2) .folder:nth-child(1) { flex: 2; }
  .folders__row:nth-child(2) .folder:nth-child(2) { flex: 3; }
  .folder__preview { display: block; position: absolute; top: 0; left: 0; width: 25rem; height: 100%; pointer-events: none; }
  .folder__img { position: absolute; top: 50%; width: 8rem; height: 12.8rem; box-shadow: var(--shadow-lg); }
  .folder__img img { width: 100%; height: 100%; object-fit: cover; }
  .folder__img:nth-child(1) { left: 20%; transform-origin: top left; }
  .folder__img:nth-child(2) { left: 50%; transform-origin: center; }
  .folder__img:nth-child(3) { left: 80%; transform-origin: top right; }
  .folder__wrap { will-change: transform; }
  .folders.has-active .folder:not(.is-active) { --bg-f: var(--off-bg); color: var(--off-fg); }
  .folder.is-active { --bg-f: var(--terracotta); color: var(--on-night); }
}
.index__hint { margin-top: var(--s6); }

/* ---------- Specimen shelf (scroll 4) ---------- */
.shelf { position: relative; background: var(--night); color: var(--on-night); padding-block: var(--s20) var(--s16); overflow: hidden; }
.shelf__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s6); }
.shelf__top .small { max-width: 34rem; margin-top: var(--s2); color: var(--on-night-muted); }
.shelf__controls { display: flex; gap: var(--s2); align-items: center; }
.shelf__stage { position: relative; height: min(78vh, 74vw); margin-top: var(--s10); }
.shelf__row { position: absolute; inset: 0; perspective: 1000px; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 24px); }
.shelf__row li { flex: none; }
.shelf__row button { display: block; width: clamp(92px, 13vw, 190px); aspect-ratio: .625; padding: 0; border: 0; border-radius: 999px 999px 18px 18px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 20px 50px -18px rgba(0,0,0,.8); }
.shelf__row img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform var(--d-leaf) var(--e-settle); }
.shelf__row button:hover img, .shelf__row button:focus-visible img { transform: scale(1.06); }
.shelf__row .is-current { visibility: hidden; }
.shelf__clip { position: absolute; inset: 0; margin: 0 auto; width: min(100% - 2 * var(--margin), 1500px); padding: 0; border: 0; background: none; cursor: zoom-in; }
.shelf__clip img { width: 100%; height: 100%; object-fit: contain; }
.shelf__caption { margin-top: var(--s6); display: grid; gap: .35rem; justify-items: center; text-align: center; }
.shelf__count { font-size: .8125rem; color: var(--on-night-muted); }
.shelf__name { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.shelf[data-mode="row"] .shelf__clip { cursor: pointer; }
.shelf:not([data-mode="row"]) .shelf__row { opacity: 0; pointer-events: none; }

/* ---------- Sticky grid (scroll 16) ---------- */
.sgrid { position: relative; background: var(--paper); }
.sgrid__sticky { position: relative; padding-block: var(--section); }
.sgrid__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: var(--margin); }
.sgrid__title { max-width: 12em; }
.sgrid__desc { margin-top: var(--s6); max-width: 34rem; }
.sgrid__btn { margin-top: var(--s8); }
.sgrid__grid { list-style: none; margin: var(--s16) auto 0; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 32px) clamp(10px, 2vw, 32px); max-width: 860px; }
.sgrid__grid li { aspect-ratio: .82; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-warm); }
.sgrid__grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html.motion .sgrid.is-live { height: 420vh; }
html.motion .sgrid.is-live .sgrid__sticky { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; }
html.motion .sgrid.is-live .sgrid__content { height: 100%; justify-content: center; }
html.motion .sgrid.is-live .sgrid__grid { position: absolute; left: 50%; top: 50%; width: min(736px, 62vw); margin: 0; padding: 0; transform: translate(-50%, -50%); z-index: 1; }

/* ---------- Confidence ---------- */
.confidence__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s16); align-items: center; }
.confidence__copy { grid-column: 1 / -1; }
.confidence__copy .prose { margin-top: var(--s6); }
.confidence__figure { grid-column: 1 / -1; margin: 0; }
@media (min-width: 1040px) { .confidence__copy { grid-column: 1 / span 6; } .confidence__figure { grid-column: 8 / span 5; } }
.checks { list-style: none; margin: var(--s8) 0 0; padding: 0; display: grid; gap: var(--s4); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; padding-bottom: var(--s4); border-bottom: 1px solid var(--rule-soft); }
.checks b { display: block; font-weight: 500; }
.checks span { color: var(--fg-muted); font-size: .9375rem; }
.checks__mark { width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--success); position: relative; }
.checks__mark::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid var(--success); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.confidence__limit { margin-top: var(--s6); max-width: 36rem; }
.guides { position: relative; max-width: 460px; margin-inline: auto; box-shadow: var(--shadow-lg); }
.guides img { width: 100%; }
.guides__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.guides__svg rect, .guides__svg line { fill: none; vector-effect: non-scaling-stroke; }
.guides__trim { stroke: #E9B79F; stroke-width: 1.5; }
.guides__margin { stroke: #8FD3C7; stroke-width: 1; stroke-dasharray: 5 4; }
.guides__gutter { stroke: #E9B79F; stroke-width: 1; stroke-dasharray: 2 4; }
.guides__tag { position: absolute; padding: 3px 7px; border-radius: 4px; background: rgba(15, 12, 10, .72); color: var(--on-night) !important; font-size: .6875rem; }
.guides__tag--trim { right: 8px; top: -26px; background: var(--ink); }
.guides__tag--gutter { left: 4%; top: 46%; }
.guides__tag--margin { right: 14%; bottom: 10%; }

/* ---------- Voices ---------- */
.voices { background: var(--night); color: var(--on-night); }
.voices__grid { margin-top: var(--s16); display: grid; gap: var(--s12) var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.voice { margin: 0; display: flex; flex-direction: column; gap: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--rule-night); }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--on-night); }
.voice figcaption { display: grid; gap: .15rem; font-size: .9375rem; }
.voice figcaption span { color: var(--on-night-muted); }
.voices__note { margin-top: var(--s12); max-width: 44rem; color: var(--on-night-muted); }

/* ---------- Offer ---------- */
.offer__head { max-width: 48rem; }
.offer__head .lede { margin-top: var(--s6); }
.offer__grid { margin-top: var(--s16); display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.offer__free, .offer__plans { padding: clamp(24px, 3.5vw, 48px); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.offer__free { background: var(--surface); border: 1px solid var(--line); }
.offer__plans { background: var(--paper-warm); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.ticks li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border: solid var(--terracotta); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.plans-mini { margin: 0; display: grid; gap: var(--s3); width: 100%; }
.plans-mini div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule-soft); }
.plans-mini dt { font-family: var(--serif); font-size: 1.15rem; }
.plans-mini dd { margin: 0; color: var(--ink-2); }

/* ---------- Begin ---------- */
.begin { position: relative; background: var(--night); color: var(--on-night); padding-block: calc(var(--section) * 1.1); overflow: hidden; isolation: isolate; }
.begin__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s6); }
.begin__platforms { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s4); }
.begin .small { color: var(--on-night-muted); }
html.motion .sgrid.is-live .sgrid__content::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(980px, 92vw); height: 62vh; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(245, 239, 227, .96) 40%, rgba(245, 239, 227, .8) 62%, rgba(245, 239, 227, 0) 100%); z-index: -1; pointer-events: none; }
/* Reduced motion keeps the before-and-after: each step shows its own still figure. */
@media (min-width: 960px) {
  html.reduce-motion .proof__mobile-fig { display: block; }
  html.reduce-motion .proof__stage { display: none; }
  html.reduce-motion .proof__steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12) var(--gutter); }
  html.reduce-motion .proof__step { min-height: 0; justify-content: flex-start; }
}

html.reduce-motion .shelf[data-mode="row"] .shelf__clip { visibility: hidden; }
html.reduce-motion .shelf[data-mode="row"] .shelf__row .is-current { visibility: visible; outline: 2px solid var(--terracotta-on-night); outline-offset: 4px; }

/* ---------- Opening variants: folio count (hero 9 + 3) and page orbit (hero 11) ---------- */
.intro--folio { background: var(--night); color: var(--on-night); }
.intro__bg { position: absolute; inset: 0; overflow: hidden; }
.intro__bg img { width: 100%; height: 100%; object-fit: cover; }
.intro__count { position: absolute; left: var(--margin); bottom: 14vh; overflow: hidden; }
.intro__num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 22vw, 20rem); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.intro__status { position: absolute; left: var(--margin); bottom: calc(14vh - 2.2rem); color: var(--on-night-muted) !important; }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rule-night); }
.intro__bar span { display: block; height: 100%; background: var(--terracotta-on-night); transform: scaleX(0); transform-origin: left; }
.intro--folio .intro__skip { background: rgba(15,12,10,.6); color: var(--on-night); border-color: var(--rule-night); }
.intro--orbit { background: var(--paper); }
.intro__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.intro__card { position: absolute; left: 0; top: 0; max-width: none; width: clamp(64px, 9vw, 118px); aspect-ratio: .625; object-fit: cover; box-shadow: var(--shadow-lg); border-radius: 2px; }
.intro__orbit-word { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3rem, 9vw, 7.5rem); letter-spacing: -.04em; color: var(--ink); }

/* ---------- Cursor variants: page trail (mouse 9) and spotlight (mouse 3) ---------- */
.page-trail { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.page-trail img { position: absolute; left: 0; top: 0; width: clamp(80px, 8vw, 120px); aspect-ratio: .625; object-fit: cover; opacity: 0; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); will-change: transform, opacity; }
.hero__copy { position: relative; }
.spotlight { position: absolute; inset: -40px -60px; padding: 40px 60px; pointer-events: none; z-index: 3; background: var(--terracotta); color: var(--night);
  -webkit-mask: radial-gradient(circle at var(--sx) var(--sy), #000 calc(var(--sr) - .5px), transparent var(--sr)); mask: radial-gradient(circle at var(--sx) var(--sy), #000 calc(var(--sr) - .5px), transparent var(--sr)); }
.spotlight .hero__kicker, .spotlight .hero__title, .spotlight .hero__lede { color: var(--night); }
.spotlight .hero__title em { color: var(--paper); }

/* ---------- Shelf variants: ring (slider 23), stack (slider 3), cylinder (slider 9) ---------- */
.alt-shelf { position: absolute; inset: 0; overflow: hidden; }
.alt-shelf__item { position: absolute; left: 50%; top: 50%; width: clamp(96px, 11vw, 168px); aspect-ratio: .625; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 20px 50px -20px rgba(0,0,0,.85); transition: box-shadow var(--d-ink) var(--e-paper); }
.alt-shelf__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.alt-shelf__item.is-current { box-shadow: 0 0 0 2px var(--terracotta-on-night), 0 30px 70px -20px rgba(0,0,0,.9); cursor: zoom-in; }
.alt-shelf--ring .alt-shelf__ring { position: absolute; left: 50%; top: 90%; width: 0; height: 0; }
.alt-shelf--ring .alt-shelf__item { width: clamp(80px, 9vw, 132px); }
.alt-shelf--cylinder { perspective: 1400px; cursor: grab; touch-action: pan-y; }
.alt-shelf--cylinder:active { cursor: grabbing; }
.alt-shelf--cylinder .alt-shelf__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.alt-shelf--cylinder .alt-shelf__item { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.alt-shelf__deck { position: absolute; left: 50%; top: 54%; width: min(72vw, 820px); aspect-ratio: 1.25; transform: translate(-50%, -50%); perspective: 1200px; transform-style: preserve-3d; }
@media (max-width: 720px) { .alt-shelf__deck { width: 88vw; } }
.alt-shelf__card { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.alt-shelf__card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Shelf variant: bound books (Vengeance UI 3D Books Showcase, MIT) ---------- */
.shelf[data-layout="bound"] .shelf__stage { height: clamp(540px, 86vh, 900px); margin-top: var(--s6); }
.bound { position: absolute; inset: 0; overflow: hidden; }
.bound__canvas { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.bound__word { position: absolute; z-index: 1; left: 50%; top: 9%; width: min(92%, 1180px); transform: translateX(-50%); pointer-events: none; user-select: none;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 200px; letter-spacing: -.03em;
  transition: opacity .5s var(--e-settle), transform .6s var(--e-settle); }
.bound__word text { fill: color-mix(in srgb, var(--on-night) 11%, transparent); }
.bound__word tspan { fill: color-mix(in srgb, var(--terracotta-on-night) 70%, transparent); }
.bound:not([data-state="hero"]):not([data-state="loading"]) .bound__word { opacity: 0; transform: translate(-50%, -32px); }
.bound__slip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0; padding: 14px 34px 16px;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: repeating-linear-gradient(92deg, rgba(90,74,40,.035) 0 2px, transparent 2px 6px), radial-gradient(125% 150% at 28% 0%, #fffdf7 0%, #f6efe0 58%, #e9dfc8 100%);
  clip-path: polygon(0% .9%, 8.3% .8%, 16.7% 6.3%, 25% 3.8%, 33.3% 5.5%, 41.7% 2.7%, 50% 5.2%, 58.3% .4%, 66.7% 5.9%, 75% 6.5%, 83.3% 1%, 91.7% 6.4%, 100% .7%, 97.7% 20%, 97% 40%, 99.6% 60%, 98.7% 80%, 100% 96.5%, 91.7% 99.8%, 83.3% 95.6%, 75% 94.9%, 66.7% 96.6%, 58.3% 93.5%, 50% 97.9%, 41.7% 99.5%, 33.3% 93.2%, 25% 93.6%, 16.7% 93.2%, 8.3% 93.1%, 0% 93.5%, .2% 80%, 1.1% 60%, 3.9% 40%, 3.8% 20%);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.16)) drop-shadow(0 14px 26px rgba(0,0,0,.4)); transition: opacity .3s var(--e-settle); }
.bound__slip.is-on { opacity: 1; }
.bound__picks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bound:not([data-state="hero"]) .bound__picks { visibility: hidden; }
.bound__pick { position: absolute; left: 0; top: 0; width: clamp(110px, 16%, 250px); height: 50%; padding: 0; border: 0; border-radius: 14px; background: none; pointer-events: none; }
.bound__pick:focus-visible { outline: 2px solid var(--terracotta-on-night); outline-offset: 6px; }
.bound__panel { position: absolute; z-index: 5; right: var(--margin); top: 50%; width: min(38%, 500px); transform: translateY(-50%); }
.bound__panel:not(.is-on) { visibility: hidden; transition: visibility 0s .45s; }
.bound__panel > * { opacity: 0; transform: translateY(26px); transition: opacity .28s ease-out, transform .28s ease-out; }
.bound__panel.is-on > * { opacity: 1; transform: none; transition: opacity .6s var(--e-settle), transform .6s var(--e-settle); }
.bound__panel.is-on > :nth-child(2) { transition-delay: 60ms; }
.bound__panel.is-on > :nth-child(3) { transition-delay: 120ms; }
.bound__panel.is-on > :nth-child(4) { transition-delay: 180ms; }
.bound__panel.is-on > :nth-child(5) { transition-delay: 240ms; }
.bound__kicker { color: var(--terracotta-on-night); }
.bound__title { margin-top: var(--s3); font-size: clamp(2.1rem, 1.3rem + 2.6vw, 4.1rem); font-style: italic; line-height: 1; outline: none; }
.bound__book { margin-top: var(--s3); font-family: var(--serif); font-size: var(--t-lede); color: var(--on-night-muted); }
.bound__facts { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: .55rem; font-size: var(--t-small); }
.bound__facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s3); padding-top: .55rem; border-top: 1px solid var(--rule-night); }
.bound__facts span { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .04em; color: var(--on-night-muted); padding-top: .15em; }
.bound__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
@media (max-aspect-ratio: 9/10) { .shelf[data-layout="bound"] .shelf__stage { height: clamp(560px, 88vh, 860px); } }
/* The scene decides portrait from the stage's own shape and marks it here. */
.bound[data-portrait] .bound__panel { left: var(--margin); right: var(--margin); top: auto; bottom: 3%; width: auto; max-width: 640px; margin-inline: auto; transform: none; }
.bound[data-portrait] .bound__title { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); }
.bound[data-portrait] .bound__facts { margin-top: var(--s4); }
.bound[data-portrait] .bound__facts li:nth-child(3) { display: none; }
.bound[data-portrait] .bound__actions { margin-top: var(--s5); }

/* ---------- Every shelf (Magic UI orbiting circles, adapted) ---------- */
.exports { background: var(--night); color: var(--on-night); overflow: hidden; }
.exports__grid { display: grid; gap: var(--s12); align-items: center; }
@media (min-width: 960px) { .exports__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.exports__copy .prose { margin-top: var(--s4); color: var(--on-night-2, var(--on-night)); }
.exports__list { margin: var(--s6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s3); font-size: 1rem; line-height: 1.5; color: var(--on-night-muted); }
.exports__list li { padding-left: 1.2rem; position: relative; }
.exports__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-on-night); }
.exports__list b { color: var(--on-night); font-weight: 500; }
.exports__note { margin-top: var(--s6); color: var(--on-night-muted); max-width: 52ch; }
.orbit { --size: min(560px, 88vw); --r-outer: calc(var(--size) * .46); --r-inner: calc(var(--size) * .27); position: relative; width: var(--size); aspect-ratio: 1; margin: 0 auto; }
.orbit__paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__paths circle { fill: none; stroke: rgba(243, 236, 221, .12); stroke-width: .25; }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); filter: invert(1) sepia(.2) brightness(.95); opacity: .95; }
.orbit__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit__ring--outer { --radius: var(--r-outer); }
.orbit__ring--inner { --radius: var(--r-inner); }
.orbit__item { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  translate: -50% -50%; transform: rotate(calc(var(--angle) * 1deg)) translateY(var(--radius)) rotate(calc(var(--angle) * -1deg));
  animation: orbit calc(var(--duration) * 1s) linear infinite; }
.orbit__ring.is-reverse .orbit__item { animation-direction: reverse; }
@keyframes orbit {
  from { transform: rotate(calc(var(--angle) * 1deg)) translateY(var(--radius)) rotate(calc(var(--angle) * -1deg)); }
  to { transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(var(--radius)) rotate(calc(var(--angle) * -1deg - 360deg)); }
}
.orbit__item--store { padding: .7rem 1.05rem; border-radius: var(--pill); background: var(--paper); color: var(--ink); font: 600 clamp(.78rem, .7rem + .35vw, .95rem)/1 var(--sans); letter-spacing: -.005em; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.orbit__item--store { gap: .5rem; padding: .55rem .95rem .55rem .7rem; }
.orbit__mark { flex: none; width: auto; height: clamp(16px, 1.1rem + .3vw, 22px); }
.orbit__mark--apple { height: clamp(15px, 1rem + .3vw, 20px); margin-top: -2px; }
.orbit__item--word { padding: .6rem 1rem; }
.orbit__word { display: block; width: auto; height: clamp(14px, .8rem + .4vw, 19px); }
.orbit__word--kobo { height: clamp(16px, .9rem + .45vw, 22px); }
.orbit__word--bn { height: clamp(9px, .5rem + .25vw, 12px); }
.orbit__press { font-weight: 500; color: #5b5b5b; margin-left: .1rem; }
.orbit__item--apple { width: clamp(46px, 9vw, 58px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.orbit__item--apple svg { width: 42%; height: auto; margin-top: -6%; }
.orbit__item--fmt { padding: .45rem .75rem; border-radius: var(--pill); border: 1px solid rgba(243,236,221,.22); background: var(--night-raised); color: var(--on-night); font: 500 .8rem/1 var(--mono); }
/* Pause only the ring whose logo is being pointed at, so it can be read; the orbit keeps turning while the page scrolls under the cursor. */
.orbit__ring:has(.orbit__item:hover) .orbit__item { animation-play-state: paused; }
html.reduce-motion .orbit__item { animation: none; }

/* ---------- What's new (bento) ---------- */
.whatsnew__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s6); margin-bottom: var(--s10); }
.whatsnew__head .lede { max-width: 30rem; }
.whatsnew__more { margin-top: var(--s8); text-align: center; }

/* ---------- Authors' words (Magic UI marquee + Blobatar) ---------- */
.voices { overflow: hidden; }
.voices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); margin-bottom: var(--s10); }
.voices__rows { display: grid; gap: var(--s4); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { --gap: var(--s4); --duration: 70s; display: flex; gap: var(--gap); overflow: hidden; padding: 6px 0; }
.marquee--reverse { --duration: 52s; }
.marquee__track { display: flex; flex-shrink: 0; justify-content: space-around; gap: var(--gap); animation: marquee var(--duration) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .is-paused .marquee__track, .is-offscreen .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }
.review { flex: none; width: clamp(300px, 34vw, 460px); margin: 0; display: grid; align-content: space-between; gap: var(--s5); padding: var(--s6); border-radius: var(--radius-lg); background: var(--night-card); box-shadow: 0 0 0 1px var(--rule-night); }
.review--short { width: auto; max-width: 380px; padding: var(--s4) var(--s5); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--on-night); }
.review--short blockquote p { font-size: 1.05rem; }
.review figcaption { display: flex; align-items: center; gap: .7rem; font-size: .875rem; color: var(--on-night-muted); }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.review figcaption > span { display: grid; }
.review figcaption b { color: var(--on-night); font-weight: 500; }
.voices__rows.is-still { -webkit-mask: none; mask: none; padding-inline: var(--margin); }
.is-still .marquee { flex-wrap: wrap; overflow: visible; }
.is-still .marquee__track { animation: none; flex-wrap: wrap; flex-shrink: 1; justify-content: flex-start; }
.is-still .marquee__track[aria-hidden] { display: none; }
.is-still .review { width: min(100%, 420px); }
.voices__note { margin-top: var(--s8); color: var(--on-night-muted); max-width: 70ch; }

/* ---------- The real studio (live sample) + Web Studio ---------- */
.trystudio { background: var(--paper-warm); }
.trystudio__head { display: grid; gap: var(--s4); max-width: 46rem; margin: 0 auto var(--s10); text-align: center; justify-items: center; }
.simulator { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 40px 90px -40px rgba(33,26,18,.45); }
.simulator__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: .7rem 1rem; border-bottom: 1px solid var(--rule); font-size: .875rem; }
.simulator__bar a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.simulator__id { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.simulator__a { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--paper); font-family: var(--serif); font-style: italic; }
.simulator__badge { padding: .2rem .5rem; border-radius: var(--pill); background: color-mix(in srgb, var(--terracotta) 12%, transparent); color: var(--accent-text); font-size: .75rem; }
.simulator__stage { position: relative; aspect-ratio: 1440 / 920; max-height: 82vh; background: var(--paper); }
.simulator__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.simulator__invite { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s3); padding: var(--s6); text-align: center; font-size: .9375rem; color: var(--ink-2);
  background: radial-gradient(60% 60% at 50% 50%, rgba(245,239,227,.94), rgba(245,239,227,.55) 70%, transparent); }
.simulator__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
.simulator[data-running] .simulator__invite { display: none; }
.simulator__status { margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--fg-muted); }
@media (max-width: 720px) { .simulator__stage { aspect-ratio: 3 / 4; } .simulator__poster { object-position: 22% top; } }
.webstudio { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); margin-top: var(--s6); padding: var(--s5) var(--s6); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--rule); }
.webstudio__copy { max-width: 46rem; }
.webstudio__copy p { margin-top: .35rem; color: var(--fg-muted); }
.beta { display: inline-block; padding: .15rem .45rem; border-radius: var(--pill); background: color-mix(in srgb, var(--terracotta) 12%, transparent); color: var(--accent-text); font: 600 .6875rem/1.2 var(--sans); letter-spacing: .04em; vertical-align: middle; }
[data-theme="night"] .beta { background: rgba(204,107,87,.18); color: var(--terracotta-on-night); }
.stores__web { font-weight: 500; }

.offer__plans { position: relative; }
.offer__stamp { position: absolute; top: -34px; right: -18px; z-index: 1; line-height: 0; border-radius: 50%; transform: rotate(8deg); transition: transform var(--d-leaf) var(--e-settle); }
.offer__stamp:hover { transform: rotate(0deg) scale(1.04); }
.offer__stamp .stamp { --stamp-size: clamp(92px, 9vw, 118px); }
@media (max-width: 560px) { .offer__stamp { top: -26px; right: -6px; } .offer__stamp .stamp { --stamp-size: 84px; } }

/* Beyond the page: the doorway to /features/ (round six) */
.beyond { background: var(--paper); }
.beyond__head { display: grid; gap: var(--s5); margin-bottom: var(--s10); }
@media (min-width: 1000px) { .beyond__head { grid-template-columns: 1fr minmax(0, 30rem); align-items: end; gap: var(--s12); } }
.beyond__grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .beyond__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .beyond__tile--world, .beyond__tile--together, .beyond__tile--cta { grid-column: span 2; } }
@media (min-width: 1100px) {
  .beyond__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .beyond__tile--world { grid-column: span 2; grid-row: span 2; }
}
.beyond__tile { position: relative; display: grid; align-content: start; gap: var(--s3); min-height: 200px; padding: var(--s6); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--fg); text-decoration: none; overflow: hidden; transition: transform var(--d-ink) var(--ease-out, ease), box-shadow var(--d-ink); }
.beyond__tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(33,26,18,.45); }
.beyond__tile:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.beyond__tile h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); line-height: 1.15; letter-spacing: -.01em; }
.beyond__tile p:not(.label) { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--fg-2); max-width: 46ch; }
.beyond__more { margin-top: auto; padding-top: var(--s3); font-weight: 500; font-size: .9375rem; color: var(--accent-text); }
.beyond__tile--world { align-content: end; min-height: 420px; background: radial-gradient(70% 60% at 70% 20%, rgba(185,68,52,.22), transparent 65%), var(--night); color: var(--on-night); box-shadow: none; }
.beyond__tile--world h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.beyond__tile--world p:not(.label) { color: var(--on-night-muted); }
.beyond__map { position: absolute; inset: 6% 4% auto auto; width: min(78%, 440px); height: auto; opacity: .9; }
.beyond__map path { fill: none; stroke: rgba(243,236,221,.25); stroke-width: 1.2; stroke-dasharray: 3 5; }
.beyond__map circle { fill: rgba(204,107,87,.16); stroke: var(--terracotta-on-night); stroke-width: 1.2; }
html.motion .beyond__map path { animation: fx-dash 30s linear infinite; }
@keyframes fx-dash { to { stroke-dashoffset: -400; } }
.beyond__tile--together { background: linear-gradient(135deg, color-mix(in srgb, #3b6b5a 9%, var(--surface)), var(--surface)); }
.beyond__faces { display: flex; margin-bottom: var(--s2); }
.beyond__faces i { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -8px; border-radius: 50%; background: var(--c); color: #fff; font: 600 .75rem/1 var(--sans); font-style: normal; box-shadow: 0 0 0 3px var(--surface); }
.beyond__seal { width: 46px; height: 46px; margin-bottom: var(--s2); border-radius: 50%; background: radial-gradient(circle, transparent 52%, var(--terracotta) 53% 56%, transparent 57%), conic-gradient(from 0deg, color-mix(in srgb, var(--terracotta) 22%, transparent) 0 25%, transparent 0 50%, color-mix(in srgb, var(--terracotta) 22%, transparent) 0 75%, transparent 0); box-shadow: inset 0 0 0 1.5px var(--terracotta); }
.beyond__swatches { display: flex; gap: 5px; margin-bottom: var(--s2); }
.beyond__swatches i { width: 26px; height: 26px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(33,26,18,.12); }
.beyond__tile--cta { background: var(--terracotta); color: var(--paper); box-shadow: none; }
.beyond__tile--cta .label, .beyond__tile--cta .beyond__more { color: var(--paper); }
@media (min-width: 1100px) { .beyond__tile--cta { grid-column: span 2; } }
.orbit__mark, .orbit__word { max-width: none; }
@media (max-width: 600px) {
  .orbit { --r-outer: calc(var(--size) * .41); --r-inner: calc(var(--size) * .23); }
  .orbit__item--store { gap: .35rem; padding: .42rem .7rem .42rem .55rem; font-size: .7rem; }
  .orbit__item--word { padding: .48rem .75rem; }
  .orbit__mark { height: 14px; } .orbit__mark--apple { height: 13px; }
  .orbit__word { height: 12px; } .orbit__word--kobo { height: 14px; } .orbit__word--bn { height: 7px; }
}

/* Founder offer, top of the hero (round six) */
.founder { position: relative; display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; max-width: 100%; margin-bottom: var(--s6); padding: .55rem 1rem .55rem .55rem; border-radius: 22px;
  background: linear-gradient(120deg, rgba(204,107,87,.18), rgba(243,236,221,.05) 60%), rgba(243,236,221,.04); box-shadow: inset 0 0 0 1px rgba(204,107,87,.38), 0 18px 40px -24px rgba(0,0,0,.8);
  color: var(--on-night); text-decoration: none; overflow: hidden; isolation: isolate; transition: box-shadow var(--d-ink), transform var(--d-ink) var(--e-settle); }
.founder::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(243,236,221,.10) 45%, transparent 60%); transform: translateX(-100%); }
html.motion .founder::after { animation: founder-sheen 6s var(--e-settle, ease) 2.5s infinite; }
@keyframes founder-sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.founder:hover { box-shadow: inset 0 0 0 1px rgba(204,107,87,.7), 0 22px 50px -24px rgba(0,0,0,.9); transform: translateY(-1px); }
.founder:focus-visible { outline: 2px solid var(--terracotta-on-night); outline-offset: 3px; }
.founder__seal { line-height: 0; }
.founder__seal .stamp { --stamp-size: 64px; }
.founder__body { display: grid; gap: .28rem; min-width: 0; }
.founder__kicker { display: inline-flex; align-items: center; gap: .45rem; font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-on-night); }
.founder__live { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-on-night); box-shadow: 0 0 0 3px rgba(204,107,87,.2); }
html.motion .founder__live { animation: founder-live 2s ease-in-out infinite; }
@keyframes founder-live { 50% { box-shadow: 0 0 0 6px rgba(204,107,87,0); } }
.founder__line { font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.15; }
.founder__line b { font-weight: 500; color: #fff; }
.founder__line s { margin-left: .3rem; font-size: .8em; color: var(--on-night-muted); text-decoration-thickness: 1px; }
.founder__meter { display: flex; align-items: center; gap: .6rem; font-size: .75rem; color: var(--on-night-muted); }
.founder__bar { position: relative; width: 92px; height: 4px; border-radius: 2px; background: rgba(243,236,221,.14); overflow: hidden; }
.founder__bar i { position: absolute; inset: 0 auto 0 0; width: var(--claimed); border-radius: inherit; background: var(--terracotta-on-night); }
.founder__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: var(--paper); transition: transform var(--d-ink) var(--e-settle); }
.founder__go svg { width: 16px; height: 16px; }
.founder:hover .founder__go { transform: translateX(3px); }
@media (max-width: 420px) { .founder { gap: .65rem; padding-right: .7rem; } .founder__seal .stamp { --stamp-size: 52px; } .founder__go { width: 28px; height: 28px; } .founder__bar { width: 64px; } }
.exports { overflow-x: clip; }
@media (min-width: 1100px) { .beyond__tile--cta { grid-column: span 1; } }



/* Production wiring: each plan in the offer can be bought from here (checkout.js),
   with the pound figure under a local price and the refund promise beneath. */
.plans-mini__buy { display: block; width: max-content; margin-top: .35rem; font-weight: 500; color: var(--accent-text); }
.plans-mini .pricing-billed { margin: .15rem 0 0; font: 400 var(--t-micro)/1.4 var(--mono); color: var(--fg-muted); }
.offer__plans .pricing-reassurance { margin: 0 !important; text-align: left !important; font-size: var(--t-small) !important; color: var(--fg-muted) !important; }
.whatsnew__board { margin: var(--s4) 0 0; text-align: center; color: var(--fg-2); }
