@font-face {
  font-family: Newsreader; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('./fonts/newsreader-variable.ttf') format('truetype');
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('./fonts/manrope-variable.ttf') format('truetype');
}
:root {
  color-scheme: light;
  --desk: #eeeee7; --paper: #fffef9; --ink: #2d3731; --muted: #626b60;
  --green: #49634f; --rule: #dedfd3;
  --gutter: clamp(1.75rem, 7vw, 6.25rem);
  --body-font: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --title-font: Newsreader, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font: 1rem/1.75 var(--body-font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
p, h1, h2, h3, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green); outline-offset: 4px; border-radius: 3px;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: #dce5cb; color: #233c2a; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 10; padding: .75rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; text-decoration: none; font: 500 1.8rem/1 var(--title-font); letter-spacing: -.035em; }
.language-switch { display: flex; align-items: center; color: var(--muted); font-size: .75rem; }
.language-switch button { min-width: 44px; min-height: 44px; padding: .65rem .45rem; border: 0; background: transparent; color: inherit; cursor: pointer; }
.language-switch button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: .4em; }
/* Keep the entrance stable while the deferred script downloads. With scripting
   disabled, the ordinary complete document remains available. */
@media (scripting: enabled) {
  body:not(.film-ready) .language-gate { display: grid !important; }
  body:not(.film-ready)>main, body:not(.film-ready)>.skip-link { display: none !important; }
}
.language-gate { min-height: 100svh; display: grid; place-items: center; padding: 2rem; }
.language-gate-content { width: min(100%, 25rem); }
.language-gate h1 { font: 400 1.65rem/1.45 var(--title-font); text-align: center; letter-spacing: -.025em; }
.language-gate h1 span { display: block; }
.language-gate h1 span[lang=ko] { margin-top: .6rem; font: 400 .9375rem/1.65 var(--body-font); color: var(--muted); }
.language-choices { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.language-choices button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 64px; padding: .8rem .25rem; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.language-choices button span { color: var(--muted); transition: transform .25s ease; }
.language-choices button:hover span { transform: translateX(4px); }
.language-choices button:disabled { cursor: default; }
.welcome { min-height: 92svh; padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eyebrow { font-size: .75rem; font-weight: 600; line-height: 1.6; letter-spacing: .15em; color: var(--green); text-transform: uppercase; }
.welcome h1, .cover-title { margin: 1.5rem 0 1rem; font: 400 clamp(4.2rem, 9vw, 8.2rem)/.96 var(--title-font); letter-spacing: -.055em; }
.welcome h1 span, .cover-title span { display: block; }
.welcome-second { font-style: italic; font-synthesis: style; }
.welcome-note { max-width: 32ch; margin-top: .6rem; font-size: clamp(.9375rem, 1.5vw, 1.0625rem); line-height: 1.7; color: var(--muted); }
.begin-link { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-height: 44px; margin-top: clamp(1.75rem, 4vw, 3.5rem); padding: 1rem; font-size: .75rem; color: var(--muted); text-decoration: none; }
.down-arrow { color: var(--green); font-size: 1.5rem; line-height: 1; }

/* Real text on flat sheets. All three pages remain readable without motion. */
.book-stage { width: min(100% - 4rem, 1000px); margin: 0 auto 3rem; }
.notebook { position: relative; width: 100%; margin: 0 0 2rem; background: var(--paper); border: 1px solid #e0e1d6; border-radius: 4px; box-shadow: 0 4px 8px #333d2805, 0 24px 50px -28px #333d2830; }
.cover-page { display: none; }
.cover-title { text-align: center; opacity: var(--cover-title-opacity, 1); }
.notebook::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 1.35rem); border-left: 1px solid #d6c3b768; pointer-events: none; }
.letter-scene { padding: 2rem var(--gutter); }
.letter-greeting { margin-bottom: 1.1rem; font: 400 2.25rem/1.15 var(--title-font); letter-spacing: -.025em; }
.letter-body { max-width: 52ch; font: 400 clamp(1.125rem, 2.6vh, 1.375rem)/1.5 var(--title-font); letter-spacing: -.005em; }
.letter-body p+p { margin-top: .85rem; }
.page-navigation { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; margin: auto var(--gutter) 0; padding: .6rem 0 .9rem; border-top: 1px solid #e5e6dc; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.page-navigation a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; }
.page-navigation a:hover { color: var(--green); text-decoration: underline; }
.page-count { font-size: .6875rem; letter-spacing: .14em; }
.release-page-content { padding: clamp(2.25rem, 7vh, 4.5rem) var(--gutter) 1.5rem; }
.release-page h2 { max-width: 18ch; margin-top: .75rem; font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.07 var(--title-font); letter-spacing: -.035em; text-wrap: balance; }
.chapter-intro { max-width: 48ch; margin-top: 1rem; font-size: 1rem; line-height: 1.75; color: var(--muted); }
.release-list { padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--rule); }
.release-list>div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.release-list dt { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.release-list dd { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--muted); }
.release-list dd p { margin-top: .25rem; }
.release-stage { color: var(--green); font-size: .875rem; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.25rem; max-width: 100%; min-height: 50px; padding: .8rem 1.4rem; background: var(--green); color: var(--paper); border-radius: 100px; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.primary-link:hover { background: #344f3b; }
.contact-note { margin-top: .85rem; font-size: .8125rem; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }

/* Colophon: disclosures and all footer information belong to the final sheet. */
.credits-viewport { margin: 0 var(--gutter); }
.credits-content { padding: 0 0 1.25rem; }
.credits-title-block { flex: 0 0 auto; margin: clamp(2.25rem, 6vh, 4rem) var(--gutter) 0; padding: .5rem 0 1.25rem; }
.credits-title-block h2 { margin-top: .7rem; font: 400 clamp(2.2rem, 4.3vw, 3rem)/1.12 var(--title-font); letter-spacing: -.03em; }
.closing-chapter { counter-reset: note; }
.closing-chapter>.screen-gallery, .practical-notes>details { border-top: 1px solid var(--rule); }
.practical-notes { border-bottom: 1px solid var(--rule); }
details summary { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .6rem 0; cursor: pointer; list-style: none; font-size: .875rem; line-height: 1.6; }
details summary::-webkit-details-marker { display: none; }
.closing-chapter>.screen-gallery>summary::before, .practical-notes>details>summary::before { counter-increment: note; content: counter(note, decimal-leading-zero); flex: 0 0 1.75rem; color: var(--muted); font: italic .875rem Newsreader, Georgia, serif; }
.details-plus { flex-shrink: 0; margin-left: auto; color: var(--muted); font-size: 1.2rem; font-weight: 400; }
details[open]>summary>.details-plus { transform: rotate(45deg); }
.details-body { max-width: 64ch; padding: .5rem 0 1.5rem 2.55rem; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.details-body p+p { margin-top: 1rem; }
.text-link { display: inline-block; min-height: 44px; padding: .65rem 0; font-size: .875rem; line-height: 1.7; color: var(--green); }
.inside-chapter { padding: 1rem 0 2rem; }
.inside-chapter h2 { margin-top: .65rem; font: 400 2rem/1.15 var(--title-font); letter-spacing: -.025em; }
.inside-chapter .chapter-intro { font-size: .875rem; }
.app-capture { margin-top: 1.5rem; }
.app-capture img, .screen-pair img { width: 100%; border: 1px solid var(--rule); border-radius: 3px; }
.app-capture figcaption, .screen-pair figcaption { margin-top: .65rem; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.more-screens { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.screen-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1rem; padding-top: .5rem; }
.site-footer { margin-top: 1.4rem; padding: .6rem 0 0; text-align: center; }
.footer-main { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.footer-main .wordmark { font: italic 2.7rem/1.2 Newsreader, Georgia, serif; color: var(--green); gap: .65rem; }
.footer-main .wordmark img { width: 1.8rem; height: 1.8rem; }
.site-footer .language-switch { justify-content: center; margin-top: .5rem; }
.footer-main p { margin-top: .2rem; font-size: .8125rem; color: var(--muted); }
.footer-main nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
.footer-main nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; text-decoration: none; }
.footer-main nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem 1.25rem; padding-top: .65rem; font-size: .75rem; line-height: 1.8; color: var(--muted); }
.footer-bottom p { flex-basis: 100%; max-width: 48ch; margin: .6rem auto 0; }
.motion-toggle { min-height: 44px; max-width: 100%; padding: .5rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }


.brand-signature { transition: opacity 1.3s ease, transform 1.3s cubic-bezier(.2,.7,.3,1), filter 1.3s ease; }
.has-letter-stage .brand-signature:not(.is-revealed):not(:focus-within) { opacity: 0; transform: translateY(12px); filter: blur(3px); }
.inception-membership { margin-top: 1.75rem; padding: 1.5rem 0 .25rem; border-top: 1px solid var(--rule); }
.inception-membership-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem; }
.inception-membership-company, .inception-membership-program { display: inline-flex; align-items: center; justify-content: center; min-height: 68px; }
.inception-membership-company img { width: 240px; max-width: 100%; height: auto; }
.inception-membership-program img { width: 155px; max-width: 100%; height: auto; }
.inception-membership p { max-width: 48ch; margin: 1rem auto 0; font-size: .75rem; line-height: 1.8; color: var(--muted); }

/* Semantic text stays selectable and available to assistive technology. The
   visible pen layer is decorative; disabling motion restores ordinary text. */
.pen-ready { position: relative; }
.story-scroll:not(.is-stationary) .pen-original { position: static; color: inherit; pointer-events: auto; }
.story-scroll:not(.is-stationary) .pen-content { display: none; }
.pen-original { position: absolute; inset: 0; color: transparent; pointer-events: none; }
.pen-content { display: inline; }
.pen-word { white-space: nowrap; display: inline-block; }
.pen-glyph { display: inline-block; height: 1.2em; vertical-align: -.27em; overflow: visible; }

.pen-ready:not(.ink-running) .pen-content path { stroke-dasharray: none; opacity: 1 !important; }
.letter-body:has(.pen-ready) { max-width: none; font-size: clamp(1.35rem, 2.7vh, 1.6rem); line-height: 1.5; letter-spacing: 0; }
.letter-greeting.pen-ready { font-size: 2.4rem; }
:lang(ko) .letter-body:has(.pen-ready) { font-size: 1.2rem; line-height: 1.65; }
:lang(ko) .letter-greeting.pen-ready { font-size: 1.65rem; }

/* Pinned letter and page turns, then one ordinary, content-sized final sheet. */
.story-scroll.is-stationary { overflow-x: clip; overflow-y: visible; position: relative; height: calc(var(--stage-height, 800px) + var(--travel, 0px)); }
.is-stationary .book-stage { position: sticky; top: 16px; height: var(--stage-height, 800px); margin-bottom: 0; overflow: clip; border-radius: 4px; box-shadow: 0 6px 15px #333d2808, 0 26px 50px -26px #333d2826; }
.is-stationary .notebook { position: absolute; inset: 0; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 4px; box-shadow: 8px 0 22px -14px #26362140; }
.is-stationary .cover-page { z-index: 4; align-items: center; justify-content: flex-start; padding: calc(var(--stage-height) * .13) 1.25rem 2rem; background: #f9f8f0; transform-origin: left center; transform: perspective(2800px) rotateY(calc(-180deg * var(--cover-turn, 0))); }
.is-stationary .cover-page::before { top: 0; bottom: 0; left: .7rem; border-color: #d7d6c975; }
.is-stationary .cover-page::after { content: ''; position: absolute; inset: .7rem; border: 1px solid #e5e4d7; border-radius: 2px; pointer-events: none; }
.is-stationary .letter-page { z-index: 3; transform-origin: left center; transform: perspective(2800px) rotateY(calc(-180deg * var(--page-turn, 0))); }
.is-stationary .release-page { z-index: 2; transform-origin: left center; transform: perspective(2800px) rotateY(calc(-180deg * var(--credits-turn, 0))); }
.is-stationary .credits-page { z-index: 1; inset: 0 0 auto; height: auto; min-height: var(--stage-height, 800px); }
.is-stationary.is-at-credits .book-stage { position: relative; top: var(--credits-start, 0px); height: var(--credits-height, 800px); overflow: visible; }
/* The scene deck has explicit visibility; opacity also hides its descendants. */
.is-stationary .notebook.is-turned { visibility: hidden; opacity: 0; pointer-events: none; }
.is-stationary .curl-source { opacity: 0; pointer-events: none; }
.page-curl { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.paper-mesh { position: absolute; max-width: none; }
.paper-cast-shadow { position: absolute; inset: 0 auto 0 0; pointer-events: none; background: linear-gradient(90deg, #283022, transparent); }
.is-stationary .book-stage.has-curl { overflow: visible; }
body { overflow-x: clip; }
.is-stationary .letter-navigation { opacity: var(--letter-footer-opacity, 0); visibility: var(--letter-footer-visibility, hidden); }
.is-stationary .letter-navigation:focus-within { opacity: 1; visibility: visible; }
.is-stationary .scene-deck { position: relative; flex: 1 1 auto; min-height: 0; visibility: var(--page-contents-visibility, hidden); }
.is-stationary .letter-scene { position: absolute; inset: 0; padding-top: clamp(2.25rem, 8vh, 5rem); padding-bottom: 1rem; }
.is-stationary .release-page-content { flex: 0 0 auto; }
.is-stationary .credits-viewport { flex: 0 0 auto; overflow: visible; }
.is-stationary .credits-page>.page-navigation { padding-top: .7rem; background: var(--paper); }
.has-letter-stage .welcome { position: sticky; top: 16px; z-index: 4; height: var(--stage-height, 800px); min-height: 0; justify-content: center; padding: 2rem 1.25rem; opacity: var(--intro-opacity, 1); transform: translateY(var(--intro-y, 0px)); filter: blur(var(--intro-blur, 0px)); pointer-events: none; }
.has-letter-stage .welcome .begin-link { pointer-events: auto; }
.has-letter-stage .welcome[inert] .begin-link { pointer-events: none; }
.has-letter-stage .story-scroll { z-index: 1; margin-top: calc(-1 * var(--stage-height, 800px)); }
.has-letter-stage .book-stage { opacity: var(--paper-opacity, 0); transform: translateY(var(--paper-y, 48px)) scale(var(--paper-scale, .7)); transform-origin: center center; }
.has-letter-stage .welcome h1 { animation: greeting-enter 2.2s cubic-bezier(.2,.65,.3,1) both; }
.has-letter-stage .welcome>.eyebrow, .has-letter-stage .welcome-note, .has-letter-stage .begin-link { animation: support-enter 1.3s .5s ease both; }
@keyframes greeting-enter { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes support-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

html:lang(ko) { --body-font: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; --title-font: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) .wordmark { font-family: Newsreader, Georgia, serif; }
:lang(ko) .welcome h1, :lang(ko) .cover-title { font-size: clamp(3.1rem, 7vw, 6.1rem); letter-spacing: -.045em; line-height: 1.2; }
:lang(ko) .welcome-second { font-style: normal; }
:lang(ko) .eyebrow { letter-spacing: .04em; }
:lang(ko) .letter-greeting { font-size: 1.75rem; line-height: 1.35; letter-spacing: -.025em; }
:lang(ko) .letter-body { font-size: 1.0625rem; line-height: 1.75; letter-spacing: -.01em; }
:lang(ko) .release-page h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -.035em; line-height: 1.3; }
:lang(ko) .credits-title-block h2 { font-size: 2rem; line-height: 1.35; letter-spacing: -.025em; }
:lang(ko) .inside-chapter h2 { font-size: 1.75rem; line-height: 1.35; }

@media (max-width: 760px) {
  :root { --gutter: clamp(1.5rem, 6vw, 3rem); }
  .book-stage { width: calc(100% - 2rem); }
  .notebook::before { left: calc(var(--gutter) - .9rem); }
  .welcome { min-height: 35rem; padding-top: 4rem; }
  .welcome h1, .cover-title { font-size: clamp(4.2rem, 12vw, 6rem); }
  .letter-greeting { font-size: 2rem; }
  .letter-body { font-size: 1.2rem; line-height: 1.5; }
  .letter-body p+p { margin-top: .75rem; }
  .release-page-content { padding-top: 2.25rem; }
  .release-page h2 { font-size: 2.3rem; }
  .release-list { margin: 1.2rem 0; }
  .release-list>div { grid-template-columns: 3.75rem minmax(0, 1fr); gap: .75rem; padding: .75rem 0; }
  .release-list dd { font-size: .9375rem; }
  .credits-title-block h2 { font-size: 2.3rem; }
  .credits-title-block { margin-top: 2rem; }
  .credits-title-block { padding-bottom: 1.4rem; }
  .screen-pair { grid-template-columns: minmax(0, 1fr); }
  .details-body { padding-left: 0; }
  :lang(ko) .letter-body { font-size: 1rem; line-height: 1.7; }
  :lang(ko) .release-page h2 { font-size: 1.9rem; }
  :lang(ko) .credits-title-block h2 { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  .language-switch button { padding: .65rem .2rem; }
  .book-stage { width: calc(100% - 1rem); }
  .welcome { min-height: 32rem; padding: 3rem 1.25rem; }
  .welcome h1, .cover-title { font-size: 4.2rem; }
  .page-navigation { font-size: .6875rem; gap: .5rem; }
  .page-navigation a { gap: .35rem; }
  .release-page h2 { font-size: 2.15rem; }
  .release-page .chapter-intro { font-size: .9375rem; line-height: 1.65; }
  .credits-title-block .eyebrow { font-size: .6875rem; }
  :lang(ko) .welcome h1, :lang(ko) .cover-title { font-size: 3.1rem; }
}
@media (max-width: 360px) {
  .letter-body { font-size: 1.125rem; }
  .release-list>div { grid-template-columns: 3rem minmax(0, 1fr); gap: .5rem; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .letter-greeting { font-size: 2rem; margin-bottom: .8rem; }
  .letter-body p+p { margin-top: .65rem; }
  .release-page-content { padding-top: 1.35rem; padding-bottom: 1rem; }
  .release-page h2 { font-size: 2.75rem; }
  .release-list { margin: 1rem 0; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ink-running .ink-word { color: var(--ink); background: none; }
}
@media (forced-colors: active) { .notebook, .primary-link { border: 1px solid CanvasText; } }
@media print {
  body { background: white; color: black; }
  .language-gate, .language-switch, .page-navigation, .motion-toggle { display: none; }
  .book-stage { width: 100%; }
  .notebook { break-after: page; box-shadow: none; border: 0; }
  .notebook::before { display: none; }
  .ink-running .ink-word { background: none; color: black; }
}

@media (max-width: 760px) {
  .letter-body:has(.pen-ready) { font-size: 1.28rem; line-height: 1.5; }
  :lang(ko) .letter-body:has(.pen-ready) { font-size: 1.05rem; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .pen-original { position: static; color: inherit; pointer-events: auto; }
  .pen-content { display: none; }
}

/* French keeps its own cadence without oversized cover lines. */
:lang(fr) .welcome h1, :lang(fr) .cover-title { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.08; }
:lang(fr) .letter-greeting { font-size: 1.8rem; }
:lang(fr) .letter-body { font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 760px) {
  .release-page-content { padding-top: 1.2rem; padding-bottom: .6rem; }
  .release-page h2 { font-size: 1.8rem; }
  .release-page .chapter-intro { font-size: .875rem; line-height: 1.45; margin-top: .75rem; }
  .release-list { margin: .75rem 0; }
  .release-list>div { padding: .5rem 0; }
  .release-list dd { font-size: .8125rem; line-height: 1.45; }
  .release-list dd p { margin-top: .3rem; }
  .release-page .contact-line { margin-top: .5rem; }
  .is-stationary .letter-scene { padding-top: 1.5rem; }
  .letter-greeting { margin-bottom: .75rem; }
  .letter-body { font-size: 1rem; line-height: 1.45; }
  :lang(fr) .letter-body { font-size: 1rem; line-height: 1.45; }
}
@media (max-width: 760px) {
  .is-stationary .letter-body { font-size: .9375rem; line-height: 1.4; }
  .is-stationary .letter-greeting { font-size: 1.6rem; }
  .is-stationary .letter-body p+p { margin-top: .6rem; }
}

/* The scroll timeline owns positioning: browser anchoring must not counteract
   the sheet transforms or the final transition back to document flow. */
.story-scroll, .welcome { overflow-anchor: none; }
.is-stationary .book-stage { will-change: transform; }
.has-letter-stage .letter-body { font-size: clamp(1.125rem, calc(var(--stage-height) * .026), 1.375rem); }
.has-letter-stage .letter-body:has(.pen-ready) { font-size: clamp(1.35rem, calc(var(--stage-height) * .027), 1.6rem); }
@media (max-width: 760px) {
  .has-letter-stage .letter-body:has(.pen-ready) { font-size: .9375rem; }
  .has-letter-stage .letter-scene { padding-top: 1.5rem; }
}

/* Curl rendering needs overflow outside the book, but the long final page
   must never escape with it. Clip that page independently without changing
   its measured height, then release the clip at the end of the timeline. */
.is-stationary:not(.is-at-credits) .credits-page {
  clip-path: inset(0 0 max(0px, calc(100% - var(--stage-height))) 0);
}
.is-stationary:not(.is-at-credits):not(.is-revealing-credits) .credits-page {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
