.landing { --page-width: 1400px; background: var(--paper); color: var(--paper-ink); }
.masthead, main, .footer { max-width: var(--page-width); margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 24px; }
.wordmark { font-size: 18px; font-weight: 800; text-decoration: none; }
.masthead nav, .footer div { display: flex; flex-wrap: wrap; gap: 28px; }
.masthead nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); min-height: 760px; border-top: 1px solid var(--line-strong); align-items: start; }
.hero__copy { padding-top: 100px; z-index: 1; }
.hero h1 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 0; }
.hero__lede { font-size: clamp(20px, 2vw, 27px); margin: 16px 0 32px; line-height: 1.3; }
.button { display: inline-flex; min-height: 48px; gap: 28px; align-items: center; padding: 12px 22px; background: var(--accent); color: var(--on-accent); font-weight: 650; border-radius: 2px; text-decoration: none; }
.button:hover { background: var(--accent-hi); }
.hero__note { margin: 28px 0 0; color: var(--ivory-3); font-size: 14px; line-height: 1.7; }
.book-viewer { min-width: 0; }
.book-stage { position: relative; height: clamp(510px, 49vw, 690px); touch-action: pan-y; }
.book-stage canvas { width: 100%; height: 100%; opacity: 0; }
.book-stage canvas[data-ready="true"] { opacity: 1; }
.book-poster { position: absolute; top: 9%; left: 22%; width: 56%; height: 78%; object-fit: contain; transform: rotate(9deg); filter: drop-shadow(12px 18px 12px rgba(37, 40, 43, .18)); }
.hero[data-mode="book"] .book-poster { display: none; }
.book-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; font-size: 13px; }
.book-controls[hidden] { display: none; }
.book-controls button { border: 0; border-radius: 2px; background: transparent; min-width: 44px; min-height: 44px; padding: 8px 10px; cursor: pointer; }
.book-controls button:hover { text-decoration: underline; text-underline-offset: 4px; }
.book-controls button:disabled { opacity: .4; cursor: default; text-decoration: none; }
.book-controls__play { color: var(--accent-text); }
.book-controls span { min-width: 70px; text-align: center; }
.book-caption { text-align: center; color: var(--ivory-3); font-size: 12px; line-height: 1.6; margin: 12px 0 30px; }
.book-caption a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.making { border-top: 1px solid var(--line-strong); padding-top: 42px; }
h2 { margin: 0 0 40px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.step-label { color: var(--accent-text); font-size: 14px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; margin: 0 0 26px; }
.script-spread { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.script { font: 13px/1.8 ui-monospace, Consolas, monospace; white-space: pre-wrap; margin: 0; }
.section-note { font-size: 14px; line-height: 1.7; color: var(--ivory-3); max-width: 34ch; margin-top: 24px; }
figure { margin: 0; }
.wide-panel img { width: 100%; height: auto; aspect-ratio: 1.64; object-fit: cover; border: 1px solid var(--line-strong); }
figcaption { font-size: 12px; color: var(--ivory-3); margin-top: 12px; }
.page-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 56px; }
.finished-page { padding: 12px; background: #fcfaf5; border: 1px solid var(--line); }
.finished-page img { width: 100%; height: auto; }
.finished-page figcaption { text-align: center; padding-bottom: 4px; }
.page-spread__copy { display: grid; gap: 60px; padding-top: 20px; }
.page-spread__copy p { font-size: 16px; max-width: 42ch; line-height: 1.75; margin: 0 0 24px; }
.detail-panel { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; object-position: 50% 38%; border: 1px solid var(--line-strong); }
.text-link { display: inline-flex; min-height: 44px; gap: 20px; align-items: center; text-underline-offset: 5px; }
.layouts-section { margin-top: 72px; padding-block: 38px; border-block: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.8fr); gap: 40px; align-items: center; }
.layouts-section h2 { font-size: 28px; margin-bottom: 14px; }
.layouts-section p { margin: 0; color: var(--ivory-3); font-size: 14px; }
.layouts__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.layout svg { width: 100%; height: auto; }
.layout__frame { fill: #fcfaf5; stroke: var(--control-edge); stroke-width: 12; }
.layout__panel { fill: #e7e1d6; stroke: var(--paper-ink); stroke-width: 12; }
.layout figcaption { font-size: 11px; text-align: center; }
.local { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); gap: 80px; padding-block: 48px; align-items: center; }
.local h2 { font-size: 28px; margin-bottom: 20px; }
.local p { max-width: 60ch; line-height: 1.7; font-size: 15px; }
.local__note { color: var(--ivory-3); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 96px; font-size: 13px; border-top: 1px solid var(--line-strong); }
@media (min-width: 1600px) { .hero { min-height: 820px; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); min-height: 660px; }
  .hero__copy { padding-top: 76px; }
  .book-stage { height: 530px; }
  .book-controls { gap: 4px; }
  .layouts-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .masthead { min-height: 68px; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  .wordmark { font-size: 15px; }
  .masthead nav { gap: 16px; font-size: 12px; }
  .masthead nav a:first-child { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding-top: 36px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 52px); }
  .hero__lede { font-size: 21px; margin: 14px 0 22px; }
  .hero__note { margin-top: 18px; }
  .book-stage { height: clamp(340px, 96vw, 520px); margin-top: 10px; }
  .book-caption { margin-bottom: 28px; }
  .book-controls { gap: 2px; }
  .making { padding-top: 30px; }
  h2 { font-size: 30px; margin-bottom: 30px; }
  .script-spread, .page-spread { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section-note { max-width: none; }
  .page-spread { margin-top: 36px; }
  .page-spread__copy { padding-top: 10px; gap: 32px; }
  .step-label { margin-bottom: 18px; }
  .layouts-section { margin-top: 38px; padding-block: 30px; }
  .layouts__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .local { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 30px; }
  .footer { flex-wrap: wrap; gap: 4px; padding-block: 16px; }
  .footer div { gap: 20px; }
}
