@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&family=Kalam:wght@300;400;700&family=Ma+Shan+Zheng&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

@font-face {
  font-family: 'Denia Content';
  src: url('assets/fonts/denia-hand-subset.woff2') format('woff2'),
    url('assets/fonts/denia-hand-subset.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #131210;
  --paper: #e9e5dc;
  --cream: #000;
  --night: #000;
  --muted: #9d988e;
  --dim: #6f6a61;
  --line: rgba(232, 227, 215, .18);
  --accent: #f1ba78;
  --max: 1240px;
  --content-font: 'Denia Content', serif;
  --serif: 'Playfair Display', Georgia, serif;
  --hand: var(--content-font);
  --hand-alt: var(--content-font);
  --cjk-hand: var(--content-font);
  --ui-hand: 'Kalam', 'KaiTi', 'STKaiti', cursive;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--content-font); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body.is-locked { height: 100vh; overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
img, video { display: block; width: 100%; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: 0; }
.pointer-glow { position: fixed; z-index: 21; top: var(--pointer-y, 50%); left: var(--pointer-x, 50%); width: 190px; height: 190px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: .12; background: radial-gradient(circle, rgba(241, 186, 120, .48), transparent 68%); mix-blend-mode: screen; transition: top .25s ease-out, left .25s ease-out; }

/* Shared language */
.section-shell { width: min(calc(100% - 96px), var(--max)); margin: 0 auto; }
.eyebrow, .section-number, .vertical-note, .video-overlay, .chapter__meta, .film-strip, .header-index, .site-footer, figcaption, .gate__footnote { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.eyebrow { color: var(--muted); margin: 0; }
.eyebrow span { color: var(--accent); margin: 0 .55em; }
.section-number { color: var(--accent); margin: 0 0 29px; }
.section-number span { color: var(--dim); margin: 0 .65em; }
h1, h2, p { margin-top: 0; }
h2 { font-weight: 500; font-size: clamp(50px, 7.6vw, 120px); line-height: .93; letter-spacing: -.065em; margin-bottom: 0; }
h2 em { font-family: var(--serif); font-weight: 500; letter-spacing: -.075em; }
.arrow-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: gap .3s, border-color .3s; }
.arrow-link span { color: var(--accent); font-size: 18px; line-height: .5; }
.arrow-link:hover { gap: 28px; border-color: var(--accent); }
.arrow-link--dark { color: var(--ink); border-color: rgba(19, 18, 16, .28); }
.arrow-link--dark span { color: #825637; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal--delay { transition-delay: .16s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Gate */
.gate { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #000; display: grid; place-items: center; transition: opacity 1s cubic-bezier(.7, 0, .2, 1), visibility 1s; }
.gate.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.gate__wash { position: absolute; inset: 0; background: radial-gradient(circle at 54% 49%, transparent 0 12%, rgba(15, 14, 13, .08) 34%, rgba(8, 8, 7, .76) 100%), linear-gradient(90deg, rgba(10, 9, 8, .76), transparent 52%, rgba(10, 9, 8, .38)); }
.gate__memory { position: absolute; overflow: hidden; opacity: .26; filter: saturate(.7); mix-blend-mode: screen; transform: rotate(var(--rotation)); animation: memoryFloat 14s ease-in-out infinite; }
.gate__memory img { height: 100%; object-fit: cover; }
.gate__memory--one { width: 22vw; height: 30vw; right: 8%; top: 7%; --rotation: 7deg; animation-delay: -2s; }
.gate__memory--two { width: 17vw; height: 23vw; left: 7%; bottom: 7%; --rotation: -9deg; animation-delay: -7s; }
.gate__memory--three { width: 13vw; height: 19vw; right: 22%; bottom: -3%; --rotation: -3deg; animation-delay: -4s; opacity: .13; }
@keyframes memoryFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }
.gate__content { position: relative; z-index: 1; width: min(90%, 670px); text-align: center; transform: translateY(-1vh); }
.gate__content .eyebrow { margin-bottom: 14px; }
.gate__mark { color: rgba(241, 186, 120, .75); font-family: var(--serif); font-size: 22px; line-height: 1; margin: 0 0 11px; }
.gate h1 { font-family: var(--hand); font-size: clamp(90px, 15vw, 212px); font-weight: 600; line-height: .68; letter-spacing: -.07em; margin: 0 0 25px; }
.gate h1 small { display: inline-block; margin-left: .06em; font-family: var(--cjk-hand); font-size: .27em; font-weight: 400; letter-spacing: .04em; vertical-align: .55em; color: var(--accent); }
.gate__subtitle { font-family: var(--hand-alt); font-size: clamp(19px, 2.4vw, 29px); color: #c7c0b4; margin: 0 0 26px; }
.gate__intro { color: #959086; font-size: 13px; line-height: 1.7; margin-bottom: 37px; }
.enter-button { position: relative; display: inline-flex; align-items: center; gap: 20px; background: none; border: 0; padding: 12px 0; color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.enter-button::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: rgba(232, 227, 215, .35); transform-origin: left; transition: transform .35s, background .35s; }
.enter-button:hover::after { transform: scaleX(.45); background: var(--accent); }
.enter-button > span:last-child { color: var(--accent); font-size: 18px; margin-left: -5px; }
.enter-button__orbit { position: absolute; width: 33px; height: 33px; border: 1px solid rgba(241, 186, 120, .55); border-radius: 50%; right: -10px; top: 4px; animation: orbit 5s linear infinite; }
@keyframes orbit { to { rotate: 360deg; } }
.gate-scroll-link { position: relative; display: inline-flex; align-items: center; gap: 24px; padding: 12px 0; color: var(--paper); font-family: var(--ui-hand); font-size: 19px; letter-spacing: .03em; }
.gate-scroll-link::after { content: ''; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: rgba(232, 227, 215, .52); transform-origin: left; transition: transform .35s, background .35s; }
.gate-scroll-link:hover::after { transform: scaleX(.42); background: var(--accent); }
.gate-scroll-link > span:last-child { color: var(--accent); font-family: var(--mono); font-size: 16px; animation: linkArrowFloat 1.7s ease-in-out infinite; }
@keyframes linkArrowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.gate__footnote { position: absolute; z-index: 1; bottom: 34px; left: 50%; transform: translateX(-50%); width: max-content; color: #77746e; }
.gate__footnote span { margin: 0 10px; color: var(--accent); }

/* Header */
.site-header { position: fixed; z-index: 15; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 86px; padding: 0 48px; border-bottom: 0; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .8s .3s, transform .8s .3s, background .35s; overflow: hidden; isolation: isolate; }
body.is-open .site-header { opacity: 1; transform: none; pointer-events: auto; }
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(17, 16, 15, .9) 0%, rgba(17, 16, 15, .67) 38%, rgba(17, 16, 15, .24) 73%, rgba(17, 16, 15, 0) 100%);
  border-color: transparent;
}
.wordmark { font-family: var(--sans); font-size: 18px; letter-spacing: -.05em; }
.wordmark span { font-family: var(--serif); font-size: 26px; font-style: italic; margin-right: 1px; }
.site-nav { display: flex; gap: 35px; margin-left: 8vw; }
.site-nav a, .text-button, .header-index { color: #9e9990; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; transition: color .25s; }
.site-nav a:hover, .text-button:hover { color: var(--paper); }
.header-tools { display: flex; gap: 28px; align-items: center; }
.text-button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(241, 186, 120, .12); }
.text-button[aria-pressed='true'] .status-dot { background: #6d6a65; box-shadow: none; }
.text-button#autoToggle[aria-pressed='true'] .status-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(241, 186, 120, .12); }
.header-index { color: var(--paper); }
.header-index i { color: var(--dim); font-style: normal; margin: 0 4px; }

/* Hero */
.hero { min-height: 100vh; position: relative; display: grid; grid-template-columns: minmax(360px, .9fr) 1.1fr; align-items: center; gap: 7vw; padding-top: 100px; padding-bottom: 80px; }
.hero__copy { position: relative; z-index: 1; }
.hero__copy .eyebrow { margin-bottom: 39px; }
.hero h2 { max-width: 620px; margin-bottom: 39px; }
.hero__lede { max-width: 390px; color: #c5beb2; font-family: var(--hand-alt); font-size: 22px; line-height: 1.35; margin-bottom: 36px; }
.hero__visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero__halo { position: absolute; width: min(38vw, 510px); aspect-ratio: 1; border: 1px solid rgba(241, 186, 120, .24); border-radius: 50%; box-shadow: 0 0 0 28px rgba(241, 186, 120, .025), 0 0 0 90px rgba(241, 186, 120, .014); }
.hero__halo::after { content: ''; position: absolute; inset: 8%; border: 1px dashed rgba(241, 186, 120, .25); border-radius: 50%; animation: orbit 35s linear infinite; }
.hero__portrait { position: relative; width: min(29vw, 390px); aspect-ratio: .75; overflow: hidden; clip-path: polygon(9% 0, 94% 8%, 100% 91%, 0 100%); }
.hero__portrait img { height: 100%; object-fit: cover; filter: saturate(.84) contrast(1.07); }
.hero__portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 12, 11, .52)); }
.vertical-note { position: absolute; right: -31px; top: 21%; color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__stamp { position: absolute; right: 13%; bottom: 17%; color: var(--accent); font-family: var(--serif); font-size: 43px; font-style: italic; line-height: .6; }
.hero__stamp small { display: block; font-family: var(--mono); font-size: 8px; font-style: normal; letter-spacing: .1em; margin-top: 15px; margin-left: 7px; }
.scroll-cue { position: absolute; bottom: 45px; left: 0; color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; display: flex; align-items: center; gap: 13px; }
.scroll-cue span { width: 1px; height: 43px; background: var(--accent); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Dark archive section */
.chapter--dark { position: relative; overflow: hidden; background: #000; }
.chapter__grid { min-height: 810px; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 9vw; padding: 120px 0 150px; }
.chapter__intro { max-width: 390px; }
.chapter__intro h2 { font-size: clamp(52px, 6.3vw, 95px); margin-bottom: 39px; }
.chapter__intro > p:not(.section-number):not(.eyebrow) { color: var(--muted); font-family: var(--hand-alt); font-size: 21px; line-height: 1.45; max-width: 390px; }
.chapter__meta { display: flex; justify-content: space-between; max-width: 340px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 13px; margin-top: 55px; }
.memory-deck { position: relative; height: min(49vw, 570px); min-height: 460px; }
.memory-card { position: absolute; margin: 0; width: 59%; height: 82%; padding: 8px 8px 28px; background: #000; box-shadow: 0 22px 45px rgba(0, 0, 0, .24); }
.memory-card img { height: 100%; object-fit: cover; filter: saturate(.79); }
.memory-card figcaption { position: absolute; bottom: 8px; left: 10px; color: #8f8980; font-size: 8px; }
.memory-card--back { top: 9%; right: 3%; rotate: 7deg; opacity: .6; }
.memory-card--mid { top: 4%; left: 14%; rotate: -7deg; opacity: .85; }
.memory-card--front { z-index: 2; top: 12%; left: 23%; rotate: 2deg; }
.deck-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(241, 186, 120, .23); pointer-events: none; }
.deck-orbit--one { width: 75%; aspect-ratio: 1; right: -7%; top: -1%; }
.deck-orbit--two { width: 47%; aspect-ratio: 1; left: -2%; bottom: 1%; border-style: dashed; }
.film-strip { position: absolute; display: flex; justify-content: space-around; align-items: center; gap: 50px; white-space: nowrap; bottom: 28px; left: -3%; width: 106%; color: #625e57; rotate: -2.5deg; border-top: 1px solid rgba(232, 227, 215, .08); border-bottom: 1px solid rgba(232, 227, 215, .08); padding: 10px 0; }
.film-strip span:nth-child(even) { color: var(--accent); }

/* Video studies */
.signal-section { padding-top: 150px; padding-bottom: 155px; }
.signal-section__heading { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-items: end; margin-bottom: 63px; }
.signal-section__heading .section-number { grid-column: 1; grid-row: 1; }
.signal-section__heading .eyebrow { grid-column: 2; grid-row: 1; padding-bottom: 4px; }
.signal-section__heading h2 { grid-column: 1 / -1; grid-row: 2; font-size: clamp(55px, 8.2vw, 120px); }
.video-frame { position: relative; aspect-ratio: 1.87; overflow: hidden; background: #000; }
.video-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9, 8, 7, .3), transparent 40%, transparent 65%, rgba(9, 8, 7, .23)); }
.archive-media { height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.video-overlay { position: absolute; z-index: 1; right: 20px; bottom: 17px; left: 20px; display: flex; justify-content: space-between; color: #dfd2bc; font-size: 9px; }
.video-crosshair { position: absolute; z-index: 2; top: 50%; left: 50%; color: rgba(240, 220, 192, .66); font-family: var(--mono); font-size: 23px; transform: translate(-50%, -50%); }
.signal-section__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; border-bottom: 1px solid var(--line); padding: 25px 0 16px; }
.signal-section__caption p { max-width: 720px; font-family: var(--hand-alt); font-size: 25px; color: #d3c9bb; margin: 0; }
.signal-section__caption span { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.signal-section--final { padding-top: 144px; padding-bottom: 155px; }
.video-frame--wide { aspect-ratio: 2.16; }

/* Cream threshold */
.chapter--cream { background: #000; color: var(--paper); overflow: hidden; }
.becoming__grid { min-height: 790px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 10vw; padding: 120px 0; }
.becoming__copy { max-width: 405px; }
.becoming__copy .section-number { color: #825637; }
.becoming__copy .section-number span { color: #9b8c7b; }
.becoming__copy .eyebrow { color: #756b5f; }
.becoming__copy h2 { font-size: clamp(51px, 6.3vw, 95px); margin: 26px 0 38px; }
.becoming__copy > p:not(.section-number):not(.eyebrow) { color: #6f665c; font-family: var(--hand-alt); font-size: 22px; line-height: 1.45; margin-bottom: 38px; }
.transformation-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 21px; align-items: end; }
.transformation-pair figure { position: relative; margin: 0; }
.transformation-pair figure:first-child { margin-bottom: 66px; }
.transformation-pair figure:last-of-type { margin-top: 66px; }
.transformation-pair figure::before { content: ''; position: absolute; inset: -11px; border: 1px solid rgba(90, 70, 54, .23); z-index: 0; }
.transformation-pair img { position: relative; z-index: 1; aspect-ratio: .75; object-fit: cover; filter: sepia(.12) saturate(.78); }
.transformation-pair figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-top: 13px; color: #756b5f; font-size: 8px; }
.pair-line { position: absolute; z-index: 2; top: 50%; left: 50%; width: 13%; border-top: 1px solid #825637; }

/* Notes / footer */
.notes { min-height: 710px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; align-items: center; padding-top: 120px; padding-bottom: 130px; }
.notes__head h2 { font-size: clamp(58px, 7.5vw, 110px); }
.notes__lead { max-width: 560px; font-family: var(--cjk-hand); font-size: clamp(28px, 3.8vw, 52px); line-height: 1.22; letter-spacing: .01em; color: #cfc7ba; margin-bottom: 68px; }
.note-list { border-top: 1px solid var(--line); }
.note-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.note-list span { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.note-list p { color: var(--muted); margin: 0; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 34px 48px 40px; color: var(--dim); border-top: 1px solid var(--line); font-size: 9px; }
.site-footer .wordmark { display: block; color: var(--paper); font-family: var(--sans); font-size: 16px; text-transform: none; letter-spacing: -.05em; margin-bottom: 14px; }
.site-footer p { margin: 0; }
.footer-right { display: flex; gap: 40px; align-items: center; }
.footer-right a { color: var(--paper); }
.scroll-progress { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; height: 2px; background: rgba(232, 227, 215, .07); pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .1s linear; }

@media (max-width: 820px) {
  .section-shell { width: min(calc(100% - 40px), var(--max)); }
  .site-header { height: 70px; padding: 0 20px; }
  .site-nav { gap: 16px; margin-left: 0; }
  .header-tools { gap: 12px; }
  .header-index { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 18px; padding-top: 120px; }
  .hero__copy .eyebrow { margin-bottom: 26px; }
  .hero h2 { font-size: clamp(54px, 15vw, 88px); margin-bottom: 28px; }
  .hero__visual { min-height: 430px; margin-top: -12px; }
  .hero__halo { width: min(75vw, 400px); }
  .hero__portrait { width: min(57vw, 280px); }
  .vertical-note { right: 2%; top: 18%; }
  .hero__stamp { right: 14%; bottom: 13%; }
  .scroll-cue { display: none; }
  .gate__memory--one { width: 34vw; height: 48vw; right: -2%; top: 12%; }
  .gate__memory--two { width: 27vw; height: 39vw; left: -6%; bottom: 12%; }
  .gate__memory--three { display: none; }
  .gate__footnote { text-align: center; bottom: 20px; font-size: 8px; }
  .chapter__grid, .becoming__grid, .notes { grid-template-columns: 1fr; gap: 58px; }
  .chapter__grid { padding: 95px 0 140px; }
  .chapter__intro { max-width: 500px; }
  .memory-deck { height: 106vw; min-height: 400px; max-height: 550px; }
  .memory-card { width: 64%; height: 80%; }
  .memory-card--back { right: 1%; }
  .memory-card--mid { left: 12%; }
  .memory-card--front { left: 20%; }
  .signal-section, .signal-section--final { padding-top: 100px; padding-bottom: 110px; }
  .signal-section__heading { display: block; margin-bottom: 40px; }
  .signal-section__heading .eyebrow { margin-bottom: 28px; }
  .signal-section__heading h2 { font-size: clamp(55px, 15vw, 88px); }
  .video-frame, .video-frame--wide { aspect-ratio: .98; }
  .video-frame--wide { aspect-ratio: 1.15; }
  .archive-media { object-position: center; }
  .signal-section__caption { display: block; }
  .signal-section__caption p { margin-bottom: 13px; }
  .becoming__grid { padding: 95px 0 110px; }
  .becoming__copy h2 { font-size: clamp(53px, 14vw, 83px); }
  .transformation-pair { gap: 13px; }
  .transformation-pair figure:first-child { margin-bottom: 38px; }
  .transformation-pair figure:last-of-type { margin-top: 38px; }
  .notes { min-height: 0; padding-top: 100px; padding-bottom: 100px; }
  .notes__lead { margin-bottom: 50px; }
  .site-footer { display: block; padding: 28px 20px; }
  .footer-right { display: flex; justify-content: space-between; margin-top: 34px; gap: 15px; }
}

@media (max-width: 480px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .gate h1 { font-size: 24vw; }
  .gate__intro br { display: none; }
  .gate__intro { padding: 0 28px; }
  .chapter__intro h2, .notes__head h2 { font-size: 19vw; }
  .video-overlay { right: 13px; bottom: 12px; left: 13px; font-size: 7px; }
  .site-footer { font-size: 8px; }
  .footer-right { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Clean media rule: when a scene owns a video, decorative stills do not sit
   underneath it and compete for attention. The opening and dual-state scene
   are the only intentional image/video combinations. */
.hero__portrait, .hero__halo, .chapter--dark .memory-deck { visibility: hidden; opacity: 0; pointer-events: none; }
.hero { display: block; }
.hero__copy { max-width: 570px; padding-top: 18vh; }
.hero__visual { display: none; }
.chapter__grid::before { background: linear-gradient(90deg, rgba(20, 19, 18, .86), rgba(20, 19, 18, .2) 72%, rgba(20, 19, 18, .38)); }
.becoming__grid::after { background: none; }
.becoming__copy { z-index: 6 !important; }
.transformation-pair { z-index: 3 !important; isolation: isolate; overflow: visible; }
.transformation-pair::before { content: ''; position: absolute; z-index: -1; inset: 10% 7%; border: 1px solid rgba(255, 236, 207, .66); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255, 236, 207, .05), 0 0 80px rgba(142, 88, 56, .2); animation: formOrbitPulse 6.5s ease-in-out infinite; pointer-events: none; }
.transformation-pair::after { content: ''; position: absolute; z-index: 5; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 247, 232, .08) 5px, transparent 6px); mix-blend-mode: screen; pointer-events: none; animation: formScan 4.8s linear infinite; }
@keyframes formOrbitPulse { 0%, 100% { transform: rotate(0) scale(.97); opacity: .38; } 50% { transform: rotate(7deg) scale(1.02); opacity: .9; } }
@keyframes formScan { from { transform: translateY(-10%); } to { transform: translateY(10%); } }
.form-orbit { position: absolute; z-index: 6; border: 1px solid rgba(255, 225, 190, .7); border-radius: 50%; pointer-events: none; }
.form-orbit--outer { width: 20vw; height: 20vw; min-width: 190px; min-height: 190px; left: 40%; top: 18%; animation: orbitCounter 18s linear infinite; }
.form-orbit--inner { width: 8vw; height: 8vw; min-width: 82px; min-height: 82px; left: 46%; top: 43%; border-style: dashed; animation: orbitClock 8s linear infinite; }
.form-scanline { position: absolute; z-index: 6; top: 14%; bottom: 14%; left: 50%; width: 1px; background: linear-gradient(transparent, #fff3dc 25%, #b46655 50%, #fff3dc 75%, transparent); box-shadow: 0 0 16px rgba(255, 232, 194, .8); animation: formScanline 3.3s ease-in-out infinite; pointer-events: none; }
@keyframes orbitCounter { to { transform: rotate(-360deg); } }
@keyframes orbitClock { to { transform: rotate(360deg); } }
@keyframes formScanline { 0%, 100% { opacity: .28; transform: scaleY(.35); } 50% { opacity: 1; transform: scaleY(1); } }
.form-index { position: absolute; z-index: 6; top: 5%; left: 6%; color: #fff0d7; font: 12px/1 var(--mono); letter-spacing: .18em; text-shadow: 0 2px 9px rgba(0, 0, 0, .75); animation: formIndexBlink 2.8s steps(2, end) infinite; }
.transformation-pair figure:nth-of-type(2) .form-index { right: 6%; left: auto; }
@keyframes formIndexBlink { 0%, 100% { opacity: .5; } 40%, 55% { opacity: 1; } }
.form-live-state { position: absolute; z-index: 7; top: 9%; left: 50%; color: #fff0d7; font: 10px/1 var(--mono); letter-spacing: .14em; transform: translateX(-50%); text-shadow: 0 2px 9px rgba(0, 0, 0, .75); transition: color .4s, letter-spacing .4s; white-space: nowrap; }
.transformation-pair.is-release .form-live-state { color: #ffb8a6; letter-spacing: .22em; }
.transformation-pair figure { transition: filter .8s ease, opacity .8s ease, transform .8s ease; }
.transformation-pair.is-release figure:first-of-type { opacity: .68; filter: saturate(.6); transform: translate3d(-1.5%, 1%, 0); }
.transformation-pair.is-release figure:last-of-type { filter: saturate(1.35) contrast(1.12); transform: translate3d(1.5%, -1%, 0); }
.transformation-pair figure::after { content: ''; position: absolute; z-index: 2; inset: 8%; border: 1px solid rgba(255, 242, 219, .48); clip-path: polygon(0 0, 82% 0, 100% 15%, 100% 100%, 13% 100%, 0 84%); animation: formFrameBlink 3.6s ease-in-out infinite; pointer-events: none; }
.transformation-pair figure:nth-of-type(2)::after { animation-delay: -1.6s; }
@keyframes formFrameBlink { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(.97); } }
.transformation-pair figcaption { font-family: var(--hand-alt); font-size: 22px; letter-spacing: .02em; }
.source-note { margin: 24px 0 0; color: #8d857b; font: 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
h2 { font-family: var(--hand-alt); font-weight: 700; letter-spacing: -.035em; }
h2 em { font-family: var(--cjk-hand); font-style: normal; font-weight: 400; letter-spacing: .02em; }

@media (max-width: 820px) {
  .hero__portrait, .hero__halo, .chapter--dark .memory-deck { display: none; }
  .transformation-pair::before { inset: 17% 5%; }
  .form-orbit--outer { width: 44vw; height: 44vw; left: 28%; top: 24%; }
  .form-orbit--inner { width: 19vw; height: 19vw; left: 40%; top: 46%; }
  .form-scanline { top: 18%; bottom: 18%; }
  .transformation-pair figcaption { font-size: 17px; }
  .source-note { font-size: 8px; }
  .form-live-state { top: 7%; font-size: 8px; }
}

@media (min-width: 981px) and (hover: hover) {
  html { scroll-snap-type: y mandatory; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-scroll-link > span:last-child, .transformation-pair::before, .transformation-pair::after, .form-orbit, .form-scanline, .form-index, .transformation-pair figure::after { animation: none !important; }
  .transformation-pair.is-release figure { transform: none; }
}

/* Immersive full-bleed pass: the media is the frame, the interface floats on top. */
body { background: #000; }
.gate { position: relative; height: 100svh; min-height: 680px; }
.gate.has-entered .gate__content { animation: gateSettle 1.2s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes gateSettle { from { transform: translateY(-1vh) scale(1); } 45% { transform: translateY(1vh) scale(1.015); } to { transform: translateY(0) scale(1); } }
.gate__content::after { content: ''; position: absolute; width: 1px; height: 22vh; left: 50%; bottom: -31vh; background: linear-gradient(var(--accent), transparent); opacity: .28; }

.hero { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 14vh 7vw 10vh; position: relative; overflow: hidden; grid-template-columns: minmax(350px, .82fr) 1.18fr; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 10, 9, .97) 0%, rgba(11, 10, 9, .83) 27%, rgba(11, 10, 9, .18) 66%, rgba(11, 10, 9, .48) 100%); opacity: .8; filter: saturate(.76); transform: scale(1.06); animation: heroBreathe 14s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 49%, rgba(241, 186, 120, .13), transparent 28%), linear-gradient(0deg, rgba(10, 9, 8, .78), transparent 35%); pointer-events: none; }
@keyframes heroBreathe { from { transform: scale(1.06); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } }
.hero > * { position: relative; z-index: 1; }
.hero__copy { align-self: center; }
.hero__visual { min-height: 78vh; }
.hero__visual[data-parallax], .memory-deck[data-parallax], .transformation-pair[data-parallax] { translate: 0 var(--parallax-offset, 0); }
.hero__portrait { width: min(43vw, 560px); height: min(77vh, 720px); aspect-ratio: auto; box-shadow: 0 35px 100px rgba(0, 0, 0, .42); animation: portraitFloat 9s ease-in-out infinite; }
@keyframes portraitFloat { 0%, 100% { transform: translateY(0) rotate(-.2deg); } 50% { transform: translateY(-12px) rotate(.35deg); } }
.hero__halo { width: min(56vw, 770px); }
.hero__visual::after { content: ''; position: absolute; inset: 9% 3%; border: 1px solid rgba(232, 227, 215, .08); clip-path: polygon(3% 0, 98% 6%, 100% 92%, 0 100%); pointer-events: none; animation: framePulse 7s ease-in-out infinite; }
@keyframes framePulse { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }

.chapter--dark { min-height: 100svh; background: #000; }
.chapter__grid { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 14vh 7vw 16vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.chapter__grid::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 18, .98) 0%, rgba(20, 19, 18, .77) 33%, rgba(20, 19, 18, .12) 76%); opacity: .9; transform: scale(1.04); animation: archiveDrift 19s ease-in-out infinite alternate; }
@keyframes archiveDrift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
.chapter__intro { position: relative; z-index: 3; max-width: 480px; }
.chapter__intro h2 { font-size: clamp(58px, 7.5vw, 120px); text-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.chapter__intro > p:not(.section-number):not(.eyebrow) { color: #beb7ac; }
.memory-deck { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.memory-card { pointer-events: auto; width: min(36vw, 530px); height: 72vh; padding: 10px 10px 31px; background: rgba(35, 33, 31, .77); backdrop-filter: blur(4px); box-shadow: 0 35px 85px rgba(0, 0, 0, .48); }
.memory-card--back { top: 13vh; right: 10vw; }
.memory-card--mid { top: 12vh; left: auto; right: 27vw; }
.memory-card--front { top: 15vh; left: auto; right: 19vw; }
.deck-orbit--one { width: min(52vw, 760px); right: -8%; top: 1%; }
.deck-orbit--two { width: min(34vw, 500px); left: 48%; bottom: 0; }
.film-strip { z-index: 4; animation: stripDrift 24s linear infinite; }
@keyframes stripDrift { to { transform: translateX(-18%) rotate(-2.5deg); } }

.signal-section.section-shell, .signal-section--final.section-shell { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 0; position: relative; overflow: hidden; display: block; }
.signal-section::before { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(9, 8, 7, .75) 0%, rgba(9, 8, 7, .1) 28%, transparent 55%, rgba(9, 8, 7, .86) 100%), linear-gradient(90deg, rgba(9, 8, 7, .3), transparent 36%); }
.signal-section__heading { position: absolute; z-index: 4; top: 14vh; right: 7vw; left: 7vw; display: block; margin: 0; pointer-events: none; }
.signal-section__heading .section-number { margin-bottom: 25px; }
.signal-section__heading .eyebrow { margin-bottom: 27px; }
.signal-section__heading h2 { max-width: 900px; font-size: clamp(58px, 8.8vw, 145px); text-shadow: 0 10px 35px rgba(0, 0, 0, .52); }
.video-frame, .video-frame--wide { width: 100%; height: 100svh; min-height: 680px; aspect-ratio: auto; margin: 0; overflow: hidden; background: #000; }
.video-frame::after { background: linear-gradient(180deg, transparent 55%, rgba(9, 8, 7, .3)), linear-gradient(90deg, rgba(9, 8, 7, .16), transparent 60%); }
.archive-media { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.82) contrast(1.1); animation: videoBreathe 15s ease-in-out infinite alternate; }
@keyframes videoBreathe { from { transform: scale(1.06); } to { transform: scale(1.13) translate3d(-.8%, -.5%, 0); } }
.video-overlay { right: 7vw; bottom: 8vh; left: 7vw; color: #eadbc3; }
.video-crosshair { top: 50%; }
.signal-section__caption { position: absolute; z-index: 4; right: 7vw; bottom: 13vh; left: 7vw; border: 0; padding: 0; align-items: end; pointer-events: none; }
.signal-section__caption p { color: #f0e4d5; text-shadow: 0 5px 20px rgba(0, 0, 0, .6); }
.signal-section__caption span { color: #aaa095; }
.signal-section--final .signal-section__heading h2 { max-width: 760px; }

.becoming { min-height: 100svh; position: relative; overflow: hidden; }
.becoming__grid { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 14vh 7vw 10vh; position: relative; display: block; }
.becoming__grid::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: none; }
.becoming__copy { position: relative; z-index: 4; max-width: 485px; padding-top: 4vh; }
.becoming__copy h2 { font-size: clamp(58px, 7.5vw, 120px); }
.transformation-pair { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.transformation-pair figure, .transformation-pair figure:first-child, .transformation-pair figure:last-of-type { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; }
.transformation-pair figure::before { display: none; }
.transformation-pair img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: sepia(.12) saturate(.8) contrast(1.05); animation: transformationFloat 17s ease-in-out infinite alternate; }
.transformation-pair figure:last-of-type img { animation-delay: -8s; }
@keyframes transformationFloat { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1%, -1%, 0); } }
.transformation-pair figcaption { position: absolute; z-index: 3; right: 4vw; bottom: 7vh; left: 4vw; color: #f0e3d3; text-shadow: 0 3px 15px rgba(0, 0, 0, .6); }
.pair-line { z-index: 4; top: 0; left: 50%; width: 1px; height: 100%; border: 0; background: rgba(255, 246, 230, .46); }

.notes.section-shell { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 15vh 7vw 12vh; position: relative; overflow: hidden; background: #000; }
.notes::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 79% 42%, rgba(241, 186, 120, .2), transparent 25%); animation: notesGlow 8s ease-in-out infinite alternate; }
@keyframes notesGlow { from { opacity: .4; transform: scale(.9); } to { opacity: 1; transform: scale(1.18); } }
.notes__head, .notes__body { position: relative; z-index: 1; }
.notes__head h2 { font-size: clamp(62px, 8.2vw, 130px); }
.notes__body { max-width: 590px; margin-left: auto; }
.notes__lead { font-size: clamp(28px, 3.4vw, 52px); }

@media (max-width: 820px) {
  .gate { min-height: 100svh; }
  .hero { min-height: 100svh; padding: 13vh 6vw 8vh; display: flex; }
  .hero__visual { min-height: 47vh; }
  .hero__portrait { width: min(62vw, 360px); height: 52vh; }
  .hero__halo { width: min(90vw, 550px); }
  .chapter__grid { min-height: 100svh; padding: 14vh 6vw 15vh; }
  .chapter__grid::before { background: linear-gradient(90deg, rgba(20, 19, 18, .94), rgba(20, 19, 18, .28)); }
  .memory-card { width: 53vw; height: 61vh; }
  .memory-card--back { top: 23vh; right: 2vw; }
  .memory-card--mid { top: 20vh; right: 16vw; }
  .memory-card--front { top: 25vh; right: 8vw; }
  .signal-section.section-shell, .signal-section--final.section-shell, .video-frame, .video-frame--wide { min-height: 100svh; height: 100svh; }
  .signal-section__heading { top: 12vh; right: 6vw; left: 6vw; }
  .signal-section__heading h2 { font-size: clamp(54px, 14vw, 96px); }
  .signal-section__caption { right: 6vw; bottom: 11vh; left: 6vw; display: block; }
  .signal-section__caption p { margin-bottom: 12px; }
  .becoming__grid { min-height: 100svh; padding: 13vh 6vw 9vh; }
  .becoming__copy h2 { font-size: clamp(54px, 14vw, 96px); }
  .transformation-pair { grid-template-columns: 1fr 1fr; }
  .notes.section-shell { min-height: 100svh; padding: 14vh 6vw 10vh; }
  .notes__body { margin-left: 0; margin-top: 8vh; }
}

/* Scene media and overlay choreography. These follow the reference site's
   full-screen scene model: media stays in the stage, the interface performs
   over it, and each scene only animates while visible. */
.gate__video { position: absolute; inset: 0; }
.gate__video { z-index: 0; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.9) contrast(1.12) brightness(.72); transform: scale(1.08); animation: gateVideoDrift 18s ease-in-out infinite alternate; }
@keyframes gateVideoDrift { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.2%, -1%, 0); } }
.gate__wash { z-index: 1; background: radial-gradient(circle at 52% 48%, transparent 0 11%, rgba(15, 14, 13, .12) 33%, rgba(8, 8, 7, .8) 100%), linear-gradient(90deg, rgba(10, 9, 8, .86), transparent 56%, rgba(10, 9, 8, .34)); }
.gate::before { content: ''; position: absolute; z-index: 3; inset: 9vh 5vw; border: 1px solid rgba(232, 227, 215, .12); pointer-events: none; clip-path: polygon(0 0, 100% 0, 100% 82%, 93% 100%, 0 100%); animation: borderBreath 6s ease-in-out infinite; }
.gate::after { content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent 5%, rgba(241, 186, 120, .3) 50%, transparent 95%); opacity: .42; pointer-events: none; animation: scanLine 5s ease-in-out infinite; }
@keyframes borderBreath { 0%, 100% { opacity: .34; transform: scale(1); } 50% { opacity: .75; transform: scale(.995); } }
@keyframes scanLine { 0%, 100% { transform: scaleY(.2); opacity: .14; } 50% { transform: scaleY(1); opacity: .58; } }
.gate__content { z-index: 5; }
.gate__content .eyebrow { animation: labelBlink 4.6s ease-in-out infinite; }
@keyframes labelBlink { 0%, 100% { opacity: .54; } 45%, 58% { opacity: 1; } }
.gate__footnote { z-index: 5; animation: footnoteFloat 3.2s ease-in-out infinite; }
@keyframes footnoteFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.section-video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; filter: saturate(.82) contrast(1.08); transform: scale(1.035); animation: sectionVideoFloat 16s ease-in-out infinite alternate; }
.section-video:not(.is-scene-visible) { animation-play-state: paused; }
@keyframes sectionVideoFloat { from { transform: scale(1.035) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-.7%, -.45%, 0); } }
.hero .section-video { opacity: .48; }
.chapter--dark > .section-video { opacity: .55; mix-blend-mode: screen; filter: saturate(.78) contrast(1.18) brightness(.72); }
.chapter--cream > .section-video { opacity: .5; mix-blend-mode: multiply; filter: saturate(.82) contrast(1.08) brightness(1.06); }
.notes > .section-video { opacity: .54; filter: saturate(.9) contrast(1.1) brightness(.72); }
.hero::before, .chapter__grid::before, .notes { background-image: none; }
.hero::before { z-index: 1; background: linear-gradient(90deg, rgba(11, 10, 9, .78), rgba(11, 10, 9, .18) 62%, rgba(11, 10, 9, .42)); opacity: 1; animation: none; transform: none; }
.chapter__grid::before { z-index: 1; background: linear-gradient(90deg, rgba(20, 19, 18, .78), rgba(20, 19, 18, .18) 70%, rgba(20, 19, 18, .38)); opacity: 1; animation: none; transform: none; }
.hero::after, .becoming__grid::after, .notes::before { z-index: 2; }
.chapter__grid, .becoming__grid, .notes { isolation: isolate; }
.hero > .hero__copy, .hero > .hero__visual, .chapter__grid > *, .becoming__grid > *, .notes > *:not(.section-video) { z-index: 4; }
.hero__visual { transform: translate3d(0, var(--parallax-offset, 0), 0); }
.memory-card { animation: memoryCardFloat 9s ease-in-out infinite; }
.memory-card--mid { animation-delay: -3.2s; }
.memory-card--back { animation-delay: -6s; }
@keyframes memoryCardFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -13px; } }
.video-frame { border: 0; }
.video-frame::before { content: ''; position: absolute; z-index: 2; inset: 10% 4%; border: 1px solid rgba(241, 186, 120, .3); pointer-events: none; clip-path: polygon(0 0, 96% 0, 100% 14%, 100% 100%, 4% 100%, 0 84%); animation: videoFramePulse 5.4s ease-in-out infinite; }
@keyframes videoFramePulse { 0%, 100% { opacity: .26; transform: scale(1); } 50% { opacity: .72; transform: scale(.987); } }
.video-overlay::before { content: ''; display: inline-block; width: 58px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--accent); animation: overlayTrace 2.8s ease-in-out infinite; }
@keyframes overlayTrace { 0%, 100% { transform: scaleX(.35); transform-origin: left; opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
.video-crosshair { animation: crosshairSpin 8s linear infinite; }
@keyframes crosshairSpin { to { rotate: 360deg; } }
.section-number { animation: folioPulse 4.4s ease-in-out infinite; }
@keyframes folioPulse { 0%, 100% { letter-spacing: .12em; } 50% { letter-spacing: .23em; } }
.site-header::before,
.site-header::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.site-header::before {
  background: linear-gradient(105deg, transparent 20%, rgba(241, 186, 120, .1) 46%, transparent 70%);
  background-size: 220% 100%;
  opacity: .46;
  animation: headerAtmosphere 8s ease-in-out infinite;
}
.site-header::after {
  background: radial-gradient(circle at 18% 0%, rgba(241, 186, 120, .12), transparent 34%);
  opacity: .5;
  transform-origin: 18% 0;
  animation: headerGlow 5.5s ease-in-out infinite alternate;
}
.site-header > * { position: relative; z-index: 1; }
@keyframes headerAtmosphere { 0%, 100% { background-position: 140% 0; opacity: .18; } 50% { background-position: -40% 0; opacity: .54; } }
@keyframes headerGlow { from { transform: scaleX(.86); opacity: .24; } to { transform: scaleX(1.14); opacity: .58; } }
.scroll-progress span { box-shadow: 0 0 12px rgba(241, 186, 120, .7); }

@media (min-width: 981px) and (hover: hover) {
  html { scroll-snap-type: y proximity; }
  .gate, main > section, .site-footer { scroll-snap-align: start; }
}

@media (max-width: 820px) {
  .gate::before { inset: 7vh 20px; }
  .section-video { transform: scale(1.09); }
  .hero .section-video, .chapter--dark > .section-video, .chapter--cream > .section-video, .notes > .section-video { opacity: .42; }
  .video-frame::before { inset: 7% 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .gate__video, .gate__content .eyebrow, .gate__footnote, .section-video, .memory-card, .video-frame::before, .video-crosshair, .section-number, .site-header::before, .site-header::after { animation: none !important; }
  html { scroll-snap-type: none; }
}

/* Final composition pass: every moving image lives on one centered 16:9
   stage, while the scene itself remains a full-height reading surface. */
.gate,
.hero,
.chapter--dark,
.signal-section.section-shell,
.signal-section--final.section-shell,
.becoming,
.notes.section-shell { height: 100svh; min-height: 0; }

.gate { background: #191918; }
.gate__video,
.section-video {
  inset: auto;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.04);
}
.gate__video { object-fit: cover; opacity: .58; }
@keyframes gateVideoDrift {
  from { transform: translate(-50%, -50%) scale(1.08); }
  to { transform: translate(-50%, -50%) scale(1.16) translate3d(-1.2%, -1%, 0); }
}

.hero,
.chapter--dark,
.becoming,
.notes.section-shell { overflow: hidden; }
.chapter__grid,
.becoming__grid { height: 100%; min-height: 0; }
.section-video { object-fit: cover; }
@keyframes sectionVideoFloat {
  from { transform: translate(-50%, -50%) scale(1.035); }
  to { transform: translate(-50%, -50%) scale(1.1) translate3d(-.7%, -.45%, 0); }
}

.signal-section.section-shell,
.signal-section--final.section-shell { display: block; }
.video-frame,
.video-frame--wide {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  transform: translate(-50%, calc(-50% + 28px));
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.video-frame.is-visible,
.video-frame--wide.is-visible { opacity: 1; transform: translate(-50%, -50%); }
.video-frame > .archive-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes videoBreathe {
  from { transform: scale(1.06); }
  to { transform: scale(1.13) translate3d(-.8%, -.5%, 0); }
}

.site-header { height: 58px; padding: 0 34px; }
.site-header {
  background: linear-gradient(180deg, rgba(17, 16, 15, .9) 0%, rgba(17, 16, 15, .67) 38%, rgba(17, 16, 15, .24) 73%, rgba(17, 16, 15, 0) 100%);
  border-bottom: 0;
  border-color: transparent;
}
main > section { scroll-margin-top: 76px; }

/* Keep the fixed chrome out of the reading column on short viewports. */
.hero { padding-top: max(14vh, 94px); }
.hero__copy { padding-top: max(18vh, 92px); }
.chapter__grid { padding-top: max(14vh, 94px); }
.signal-section__heading { top: max(14vh, 92px); }
.becoming__copy { padding-top: max(4vh, 78px); }
.notes.section-shell { padding-top: max(15vh, 96px); }

h1, h2 { overflow: visible; }
h2,
.gate h1 { text-shadow: 0 8px 26px rgba(0, 0, 0, .28), 0 0 1px rgba(241, 186, 120, .45); }
h2 { line-height: 1.02; padding: .06em 0 .14em; }
h2 em { display: inline-block; line-height: 1.08; padding: .03em 0 .1em; }
h2 em { text-shadow: 0 3px 18px rgba(241, 186, 120, .16); }
h2 small {
  display: block;
  margin-top: 20px;
  color: var(--accent);
  font: 500 clamp(9px, 1vw, 13px)/1.35 var(--mono);
  letter-spacing: .25em;
  text-transform: uppercase;
  text-shadow: none;
  white-space: normal;
}
.gate h1 { line-height: .82; padding: .08em 0 .17em; }
.gate h1 small { line-height: 1.3; }
.reveal.is-visible h2 { animation: inkWrite 1.25s cubic-bezier(.2, .75, .2, 1) both; }
.gate h1 { animation: inkWrite 1.5s cubic-bezier(.2, .75, .2, 1) .12s both; }
@keyframes inkWrite {
  from { opacity: 0; transform: translateX(-24px); }
  58% { opacity: 1; transform: translateX(2px); }
  to { opacity: 1; transform: translateX(0); }
}

/* The local hand is reserved for reading content. These marked Chinese
   phrases use the same left-to-right ink reveal as the main titles. */
.theme-cjk,
.eyebrow .theme-cjk,
.signal-section__caption .theme-cjk {
  display: inline-block;
  font-family: var(--content-font);
  overflow: visible;
  transform-origin: left center;
}
.eyebrow .theme-cjk {
  color: inherit;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}
.signal-section__caption .theme-cjk,
.note-list p .theme-cjk {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.gate__content .theme-cjk,
.reveal.is-visible .theme-cjk {
  animation: inkWrite 1.25s cubic-bezier(.2, .75, .2, 1) both;
}

@media (max-width: 820px) {
  .site-header { height: 52px; padding: 0 20px; }
  main > section { scroll-margin-top: 68px; }
  .hero { padding-top: max(13vh, 82px); }
  .hero__copy { padding-top: max(16vh, 82px); }
  .chapter__grid { padding-top: max(14vh, 84px); }
  .signal-section__heading { top: max(12vh, 80px); }
  .becoming__copy { padding-top: max(4vh, 68px); }
  .notes.section-shell { padding-top: max(14vh, 84px); }
  h2 small { margin-top: 14px; font-size: 8px; letter-spacing: .18em; line-height: 1.45; }
}

@media (min-width: 981px) and (hover: hover) {
  html { scroll-snap-type: y mandatory; }
}

@media (prefers-reduced-motion: reduce) {
  h2, .gate h1, .reveal.is-visible h2 { animation: none !important; }
}

/* The following rules are the normal Kisara player skin copied from the
   reference theme. Only the colors/assets remain Denia-specific. */
.kisara-audio-player {
  position: fixed;
  z-index: 45;
  font-family: var(--sans);
  right: auto;
  bottom: 24px;
  left: 24px;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 48px);
}
.kisara-audio-player > audio { display: none; }
.kisara-audio-control {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 42px;
  padding: 5px 8px 5px 2px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #f8f5ff;
  text-align: left;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(3, 6, 22, .72));
  cursor: pointer;
  transform: translateZ(0);
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.kisara-audio-control::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px -14px -7px -10px;
  width: auto;
  height: auto;
  border: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 28% 50%, rgba(12, 17, 48, .66), rgba(12, 17, 48, .2) 48%, transparent 76%);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 180ms ease;
}
.kisara-audio-control::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 7px;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  opacity: .28;
  background: radial-gradient(circle, rgba(145, 177, 255, .24), transparent 68%);
  filter: blur(5px);
  transform: translate(-50%, -50%) scale(.82);
  pointer-events: none;
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.kisara-audio-control:hover,
.kisara-audio-control:focus-visible {
  outline: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 4px 11px rgba(3, 6, 22, .82));
  transform: translateX(2px);
}
.kisara-audio-control:hover::before,
.kisara-audio-control:focus-visible::before { opacity: .9; }
.kisara-audio-control:active { transform: translateX(1px) scale(.98); }
.kisara-audio-control[data-state='playing'] {
  filter: drop-shadow(0 3px 9px rgba(3, 6, 22, .72)) drop-shadow(0 0 7px rgba(255, 73, 105, .2));
}
.kisara-audio-control[data-state='blocked'],
.kisara-audio-control[data-state='paused'] { opacity: .72; }
.kisara-audio-nav {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
  opacity: .38;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.kisara-audio-player:hover .kisara-audio-nav,
.kisara-audio-player:focus-within .kisara-audio-nav { opacity: .92; transform: translateX(0); }
.kisara-audio-nav button {
  position: relative;
  display: grid;
  width: 22px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(211, 224, 255, .82);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, filter 160ms ease, transform 160ms ease;
}
.kisara-audio-nav button::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #ff7891, transparent);
  box-shadow: 0 0 5px rgba(255, 73, 105, .5);
  transform: scaleX(.35);
  transition: opacity 160ms ease, transform 160ms ease;
}
.kisara-audio-nav button:hover,
.kisara-audio-nav button:focus-visible {
  color: #fff5f8;
  filter: drop-shadow(0 0 5px rgba(255, 73, 105, .68));
  outline: none;
  transform: translateY(-1px);
}
.kisara-audio-nav button:hover::after,
.kisara-audio-nav button:focus-visible::after { opacity: .9; transform: scaleX(1); }
.kisara-audio-nav button:active { transform: translateY(0) scale(.9); }
.kisara-audio-nav svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(.55px 0 rgba(0, 0, 0, .92)) drop-shadow(-.55px 0 rgba(0, 0, 0, .92)) drop-shadow(0 .55px rgba(0, 0, 0, .92)) drop-shadow(0 -.55px rgba(0, 0, 0, .92));
}
.kisara-audio-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
}
.kisara-audio-memory-image { display: none; }
.kisara-audio-emblem::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 1px;
  height: 21px;
  border: 0;
  background: linear-gradient(to bottom, transparent, rgba(145, 177, 255, .92) 24% 76%, transparent);
  box-shadow: 0 0 7px rgba(145, 177, 255, .5);
  transform: rotate(12deg);
  transform-origin: center;
  transition: background 180ms ease, box-shadow 180ms ease;
}
.kisara-audio-emblem::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  opacity: .26;
  background: rgba(145, 177, 255, .2);
  filter: blur(5px);
  transition: background 180ms ease, opacity 180ms ease;
}
.kisara-audio-control[data-state='playing'] .kisara-audio-emblem::before {
  background: linear-gradient(to bottom, transparent, rgba(255, 120, 145, .96) 24% 76%, transparent);
  box-shadow: 0 0 8px rgba(255, 73, 105, .68);
}
.kisara-audio-control[data-state='playing'] .kisara-audio-emblem::after { opacity: .54; background: rgba(255, 73, 105, .34); }
.kisara-audio-icon {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 7px;
  display: block;
  width: 15px;
  height: 15px;
  color: #dfe8ff;
  transition: opacity 120ms ease, color 180ms ease, transform 180ms ease;
}
.kisara-audio-icon::before,
.kisara-audio-icon-pause::after { content: ''; position: absolute; display: block; }
.kisara-audio-icon-play::before {
  top: 2px;
  left: 4px;
  width: 0;
  height: 0;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 8px solid currentColor;
  filter: drop-shadow(0 0 3px currentColor);
}
.kisara-audio-icon-pause::before,
.kisara-audio-icon-pause::after {
  top: 2px;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 3px currentColor;
}
.kisara-audio-icon-pause::before { left: 3px; }
.kisara-audio-icon-pause::after { right: 3px; }
.kisara-audio-icon-pause { opacity: 0; transform: scale(.72); }
.kisara-audio-control[data-state='playing'] .kisara-audio-icon-play { opacity: 0; transform: scale(.72); }
.kisara-audio-control[data-state='playing'] .kisara-audio-icon-pause { color: #fff7fb; opacity: 1; transform: scale(1); }
.kisara-audio-bars {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  width: 20px;
  height: 6px;
}
.kisara-audio-bars i {
  flex: 1 1 0;
  min-width: 1px;
  width: auto;
  height: 100%;
  border: 0;
  border-radius: 1px;
  background: #91b1ff;
  opacity: .72;
  box-shadow: none;
  transform: scaleY(.24);
  transform-origin: bottom;
}
.kisara-audio-control[data-state='playing'] .kisara-audio-bars i {
  background: #ff7891;
  animation: kisara-audio-bar 720ms ease-in-out infinite alternate;
}
.kisara-audio-control[data-state='playing'] .kisara-audio-bars i:nth-child(2) { animation-delay: -420ms; animation-duration: 560ms; }
.kisara-audio-control[data-state='playing'] .kisara-audio-bars i:nth-child(3) { animation-delay: -180ms; animation-duration: 860ms; }
.kisara-audio-control[data-state='playing'] .kisara-audio-bars i:nth-child(4) { animation-delay: -620ms; animation-duration: 660ms; }
.kisara-audio-control[data-state='playing'] .kisara-audio-bars i:nth-child(5) { animation-delay: -80ms; animation-duration: 940ms; }
.kisara-audio-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  width: 126px;
  gap: 2px;
  padding: 0 0 7px;
  font-family: inherit;
}
.kisara-audio-copy strong,
.kisara-audio-copy small { overflow: hidden; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.kisara-audio-copy strong { font-family: inherit; font-size: .72rem; font-weight: 700; line-height: 1.1; text-shadow: 0 1px 5px rgba(4, 7, 25, .86); }
.kisara-audio-copy small { color: #91b1ff; font-family: inherit; font-size: .47rem; font-weight: 700; line-height: 1.2; opacity: .72; text-shadow: 0 1px 5px rgba(4, 7, 25, .9); transition: color 180ms ease, opacity 180ms ease; }
.kisara-audio-control[data-state='playing'] .kisara-audio-copy small { color: #ff8ea3; opacity: .9; }
.kisara-audio-trace {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  overflow: visible;
  background: linear-gradient(90deg, rgba(145, 177, 255, .88), rgba(145, 177, 255, .3) 48%, transparent);
  box-shadow: 0 0 5px rgba(145, 177, 255, .22);
  transform-origin: left;
  transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.kisara-audio-trace::before,
.kisara-audio-trace::after,
.kisara-audio-trace i {
  content: '';
  position: absolute;
  top: 50%;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: #91b1ff;
  box-shadow: 0 0 6px rgba(145, 177, 255, .58);
  transform: translateY(-50%);
}
.kisara-audio-trace::before { left: 0; width: 3px; }
.kisara-audio-trace::after { right: 24%; width: 2px; opacity: .42; }
.kisara-audio-trace i { left: 0; width: 18px; opacity: 0; background: linear-gradient(90deg, transparent, #ff7891 58%, transparent); }
.kisara-audio-control[data-state='playing'] .kisara-audio-trace {
  background: linear-gradient(90deg, rgba(255, 73, 105, .96), rgba(255, 120, 145, .38) 54%, transparent);
  box-shadow: 0 0 7px rgba(255, 73, 105, .34);
}
.kisara-audio-control[data-state='playing'] .kisara-audio-trace::before,
.kisara-audio-control[data-state='playing'] .kisara-audio-trace::after { background: #ff7891; box-shadow: 0 0 7px rgba(255, 73, 105, .68); }
.kisara-audio-control[data-state='playing'] .kisara-audio-trace i { animation: kisara-audio-trace 2.2s ease-in-out infinite; }
.kisara-audio-secret-hearts {
  position: absolute;
  z-index: 3;
  top: 21px;
  left: 17px;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.kisara-audio-secret-hearts i {
  --heart-rotation: 14deg;
  --heart-scale: .9;
  --heart-delay: 0s;
  --heart-duration: 2.7s;
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 10px;
  border: 0;
  border-radius: 0;
  opacity: 0;
  background: linear-gradient(135deg, #fff4fa, #ff58a6 58%, #b90967);
  clip-path: polygon(50% 96%, 42% 88%, 12% 60%, 5% 43%, 6% 27%, 15% 12%, 30% 6%, 42% 10%, 50% 22%, 58% 10%, 70% 6%, 85% 12%, 94% 27%, 95% 43%, 88% 60%, 58% 88%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath fill='%23000' d='M12 21C10.8 19.9 1 12.2 1 6.4 1 2.9 3.7.5 7 .5c2 0 3.8 1 5 2.6C13.2 1.5 15 .5 17 .5c3.3 0 6 2.4 6 5.9 0 5.8-9.8 13.5-11 14.6Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath fill='%23000' d='M12 21C10.8 19.9 1 12.2 1 6.4 1 2.9 3.7.5 7 .5c2 0 3.8 1 5 2.6C13.2 1.5 15 .5 17 .5c3.3 0 6 2.4 6 5.9 0 5.8-9.8 13.5-11 14.6Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  offset-path: path("M 0 0 C 8 -18 27 -34 46 -61");
  offset-distance: 0%;
  offset-rotate: 0deg;
  filter: drop-shadow(0 0 4px rgba(255, 50, 145, .8));
  transform: rotate(-8deg) scale(.3);
  will-change: offset-distance, opacity, transform;
}
.kisara-audio-player.is-playing .kisara-audio-secret-hearts i { animation: kisara-audio-secret-heart var(--heart-duration) cubic-bezier(.2, .62, .24, 1) var(--heart-delay) infinite; }
.kisara-audio-secret-hearts i:nth-child(1) { --heart-delay: -.3s; offset-path: path("M 0 0 C 4 -20 16 -38 29 -62"); }
.kisara-audio-secret-hearts i:nth-child(2) { --heart-delay: -1.55s; --heart-scale: .72; offset-path: path("M 0 0 C 17 -9 39 -13 65 -31"); }
.kisara-audio-secret-hearts i:nth-child(3) { --heart-delay: -.92s; --heart-duration: 3s; offset-path: path("M 0 0 C 19 -20 45 -35 77 -66"); }
.kisara-audio-secret-hearts i:nth-child(4) { --heart-delay: -2.18s; --heart-scale: .68; offset-path: path("M 0 0 C -3 -24 2 -50 11 -82"); }
.kisara-audio-secret-hearts i:nth-child(5) { --heart-delay: -1.2s; --heart-rotation: -22deg; offset-path: path("M 0 0 C -15 -15 -25 -35 -32 -61"); }
.kisara-audio-secret-hearts i:nth-child(6) { --heart-delay: -2.52s; --heart-duration: 3.2s; --heart-scale: .8; offset-path: path("M 0 0 C 7 -25 27 -54 50 -91"); }
.kisara-audio-secret-hearts i:nth-child(7) { --heart-delay: -1.88s; --heart-scale: .6; offset-path: path("M 0 0 C 29 -11 61 -20 94 -43"); }
.kisara-audio-secret-hearts i:nth-child(8) { --heart-delay: -.62s; --heart-duration: 2.9s; --heart-rotation: -30deg; --heart-scale: .66; offset-path: path("M 0 0 C -18 -8 -34 -21 -45 -40"); }
.kisara-audio-secret-hearts i:nth-child(9) { --heart-delay: -2.82s; --heart-duration: 3.35s; --heart-scale: .84; offset-path: path("M 0 0 C 16 -27 43 -56 70 -89"); }
.kisara-audio-control[data-state='playing']::after { opacity: .62; background: radial-gradient(circle, rgba(255, 73, 105, .36), transparent 68%); transform: translate(-50%, -50%) scale(1.08); animation: kisara-audio-core 1.8s ease-in-out infinite; }

@keyframes kisara-audio-core {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.9); }
  50% { opacity: .72; transform: translate(-50%, -50%) scale(1.14); }
}
@keyframes kisara-audio-bar {
  0% { transform: scaleY(.22); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(.46); }
}
@keyframes kisara-audio-trace {
  0%, 12% { opacity: 0; transform: translateX(0) scaleX(.45); }
  32% { opacity: .9; }
  72%, 100% { opacity: 0; transform: translateX(108px) scaleX(1); }
}
@keyframes kisara-audio-secret-heart {
  0%, 12% { opacity: 0; offset-distance: 0%; transform: rotate(-8deg) scale(.26); }
  23% { opacity: .94; }
  50% { opacity: .78; offset-distance: 48%; transform: rotate(4deg) scale(var(--heart-scale)); }
  76% { opacity: .44; }
  100% { opacity: 0; offset-distance: 100%; transform: rotate(var(--heart-rotation)) scale(.42); }
}
@media (max-width: 900px) {
  .kisara-audio-player { bottom: 72px; }
  .kisara-audio-secret-hearts { display: block; }
}
@media (max-width: 600px) {
  .kisara-audio-player { bottom: 70px; left: 14px; gap: 2px; max-width: calc(100vw - 36px); }
  .kisara-audio-control { gap: 8px; min-height: 40px; padding: 4px 6px 4px 2px; }
  .kisara-audio-emblem { width: 24px; height: 30px; }
  .kisara-audio-icon { left: 6px; }
  .kisara-audio-copy strong { font-size: .68rem; }
  .kisara-audio-copy small { font-size: .44rem; }
  .kisara-audio-copy { width: 116px; }
  .kisara-audio-nav { opacity: .68; transform: none; }
  .kisara-audio-nav button { width: 20px; height: 28px; }
  .kisara-audio-secret-hearts i:nth-child(n + 7) { display: none; }
}

/* Balanced scene choreography: the reading weight alternates left and right
   so the full-bleed scenes do not all pull toward the same edge. */
@media (min-width: 821px) {
  .hero__copy { justify-self: start; max-width: min(46vw, 590px); text-align: left; }

  .chapter__grid { display: flex; justify-content: flex-start; }
  .chapter__grid::before {
    background: linear-gradient(270deg, rgba(20, 19, 18, .98) 0%, rgba(20, 19, 18, .77) 33%, rgba(20, 19, 18, .12) 76%);
  }
  .chapter__intro { max-width: min(38vw, 520px); margin-left: auto; text-align: right; }
  .chapter__intro > p:not(.section-number):not(.eyebrow),
  .chapter__meta { margin-left: auto; }
  .memory-card--back { right: auto; left: 10vw; }
  .memory-card--mid { right: auto; left: 27vw; }
  .memory-card--front { right: auto; left: 19vw; }
  .deck-orbit--one { right: auto; left: -8%; }

  .signal-section__heading,
  .signal-section--final .signal-section__heading { text-align: left; }

  .becoming__grid::after {
    background: none;
  }
  .becoming__copy { max-width: min(38vw, 520px); margin-left: auto; text-align: right; }
  .becoming__copy .arrow-link { margin-left: auto; }

  .notes.section-shell { display: block; }
  .notes__head { max-width: min(48vw, 640px); margin-left: auto; text-align: right; }
  .notes__body { max-width: min(48vw, 590px); margin: 7vh 0 0 auto; text-align: right; }
  .note-list > div { grid-template-columns: 1fr 70px; }
  .note-list > div > span { grid-column: 2; grid-row: 1; text-align: left; }
  .note-list > div > p { grid-column: 1; grid-row: 1; text-align: right; }
}

/* Final override: scene 05 has no pale wash at any viewport. */
.becoming__grid::after { display: none !important; background: none !important; }

/* Keep scene 03 readable while leaving the film itself visible on phones. */
@media (max-width: 820px) {
  .chapter__grid::before {
    background: linear-gradient(270deg, rgba(20, 19, 18, .48) 0%, rgba(20, 19, 18, .25) 42%, rgba(20, 19, 18, .04) 82%, rgba(20, 19, 18, .12) 100%);
  }
}

/* Scene 03 is a film scene: keep its arcade video in front as the primary
   visual instead of covering it with the old full-frame still pair. */
.becoming > .section-video {
  z-index: 1;
  opacity: .86;
  mix-blend-mode: normal;
  filter: saturate(.98) contrast(1.06) brightness(.82);
}
.becoming__grid { z-index: 2; }
.becoming .transformation-pair { display: none; }

/* The third scene is driven by its moving film, not the recovered still. */
.chapter--dark > .section-video {
  z-index: 1;
  opacity: .82;
  mix-blend-mode: normal;
  filter: saturate(.9) contrast(1.08) brightness(.76);
}
.chapter__grid { z-index: 2; }
.chapter__grid::before {
  background: linear-gradient(270deg, rgba(20, 19, 18, .58) 0%, rgba(20, 19, 18, .3) 38%, rgba(20, 19, 18, .04) 76%, rgba(20, 19, 18, .16) 100%);
}

/* Scene 05 should stay fully photographic; the former pale wash is removed. */
.becoming__grid::after { display: none; }

/* Text enters with a small directional slide and a clean, unmasked settle. */
@keyframes textEnterFromLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes textEnterFromRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
.gate__content > *,
.hero__copy.reveal.is-visible > *,
.signal-section__heading.reveal.is-visible > *,
.signal-section__caption.reveal.is-visible > * {
  animation: textEnterFromLeft .85s cubic-bezier(.2, .72, .2, 1) both;
}
.chapter__intro.reveal.is-visible > *,
.becoming__copy.reveal.is-visible > *,
.notes__head.reveal.is-visible > *,
.notes__body.reveal.is-visible > * {
  animation: textEnterFromRight .85s cubic-bezier(.2, .72, .2, 1) both;
}
.gate__content > *:nth-child(2),
.hero__copy.reveal.is-visible > *:nth-child(2),
.signal-section__heading.reveal.is-visible > *:nth-child(2),
.signal-section__caption.reveal.is-visible > *:nth-child(2),
.chapter__intro.reveal.is-visible > *:nth-child(2),
.becoming__copy.reveal.is-visible > *:nth-child(2),
.notes__head.reveal.is-visible > *:nth-child(2),
.notes__body.reveal.is-visible > *:nth-child(2) { animation-delay: .09s; }
.gate__content > *:nth-child(3),
.hero__copy.reveal.is-visible > *:nth-child(3),
.signal-section__heading.reveal.is-visible > *:nth-child(3),
.signal-section__caption.reveal.is-visible > *:nth-child(3),
.chapter__intro.reveal.is-visible > *:nth-child(3),
.becoming__copy.reveal.is-visible > *:nth-child(3),
.notes__head.reveal.is-visible > *:nth-child(3),
.notes__body.reveal.is-visible > *:nth-child(3) { animation-delay: .18s; }
.gate__content > *:nth-child(4),
.hero__copy.reveal.is-visible > *:nth-child(4),
.signal-section__heading.reveal.is-visible > *:nth-child(4),
.signal-section__caption.reveal.is-visible > *:nth-child(4),
.chapter__intro.reveal.is-visible > *:nth-child(4),
.becoming__copy.reveal.is-visible > *:nth-child(4),
.notes__head.reveal.is-visible > *:nth-child(4),
.notes__body.reveal.is-visible > *:nth-child(4) { animation-delay: .27s; }
.gate__content > *:nth-child(5),
.hero__copy.reveal.is-visible > *:nth-child(5),
.signal-section__heading.reveal.is-visible > *:nth-child(5),
.signal-section__caption.reveal.is-visible > *:nth-child(5),
.chapter__intro.reveal.is-visible > *:nth-child(5),
.becoming__copy.reveal.is-visible > *:nth-child(5),
.notes__head.reveal.is-visible > *:nth-child(5),
.notes__body.reveal.is-visible > *:nth-child(5) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .gate__content > *, .reveal.is-visible > * { animation: none !important; }
}

/* Keep the arcade film visible beneath the dual-state treatment in scene 03. */
.becoming > .section-video {
  opacity: .78;
  mix-blend-mode: normal;
  filter: saturate(.96) contrast(1.06) brightness(.78);
}
.becoming__grid::after {
  background: none;
}
.becoming .transformation-pair { opacity: .32; }

@media (max-width: 820px) {
  .becoming__grid::after {
    background: none;
  }
  .becoming .transformation-pair { opacity: .26; }
}

/* Portrait phones need a portrait-filling media stage rather than a small
   centered 16:9 strip, while the alternating text alignment remains intact. */
@media (max-width: 820px) {
  .gate__video,
  .section-video {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.04);
  }

  .video-frame,
  .video-frame--wide {
    width: 100vw;
    height: 100svh;
    min-height: 0;
  }
  .video-frame > .archive-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero { display: flex; align-items: stretch; justify-content: flex-end; padding: 16vh 8vw 11vh; }
  .hero__copy { max-width: 86vw; margin-top: auto; padding-top: 0; text-align: left; }
  .hero h2 { font-size: clamp(48px, 13vw, 78px); }

  .chapter__grid { display: flex; align-items: flex-end; padding: 13vh 8vw 11vh; }
  .chapter__grid::before {
    background: linear-gradient(270deg, rgba(20, 19, 18, .96) 0%, rgba(20, 19, 18, .7) 40%, rgba(20, 19, 18, .2) 82%, rgba(20, 19, 18, .34) 100%);
  }
  .chapter__intro { max-width: 86vw; margin-left: auto; text-align: right; }
  .chapter__intro h2 { font-size: clamp(48px, 13vw, 80px); }
  .chapter__intro > p:not(.section-number):not(.eyebrow),
  .chapter__meta { margin-left: auto; }
  .chapter__meta { justify-content: flex-end; gap: 16px; }

  .signal-section__heading,
  .signal-section--final .signal-section__heading { right: 8vw; left: 8vw; text-align: left; }
  .signal-section__heading h2 { max-width: 86vw; font-size: clamp(44px, 12vw, 78px); }
  .signal-section__caption { right: 8vw; left: 8vw; }
  .signal-section__caption p { max-width: 82vw; }

  .becoming__grid { padding: 14vh 8vw 10vh; }
  .becoming__grid::after {
    background: none;
  }
  .becoming__copy { max-width: 86vw; margin-left: auto; padding-top: 0; text-align: right; }
  .becoming__copy h2 { font-size: clamp(48px, 13vw, 80px); }
  .becoming__copy .arrow-link { margin-left: auto; }

  .notes.section-shell { display: block; padding: 14vh 8vw 10vh; }
  .notes__head { max-width: 86vw; margin-left: auto; text-align: right; }
  .notes__head h2 { font-size: clamp(48px, 13vw, 80px); }
  .notes__body { max-width: 86vw; margin: 6vh 0 0 auto; text-align: right; }
  .note-list > div { grid-template-columns: 1fr 40px; gap: 12px; }
  .note-list > div > span { grid-column: 2; grid-row: 1; text-align: left; }
  .note-list > div > p { grid-column: 1; grid-row: 1; text-align: right; }
}

/* Final override: scene 05 has no pale wash at any viewport. */
.becoming__grid::after { display: none !important; background: none !important; }

/* Final black background enforcement. */
html,
body,
main,
main > section,
.site-footer,
.site-header,
.gate,
.hero,
.chapter,
.chapter--dark,
.chapter--cream,
.signal-section,
.becoming,
.notes,
.video-frame,
.video-frame--wide,
.memory-card {
  background-color: #000;
}
.gate,
.notes {
  background-image: none;
}
.site-header,
.site-header.is-scrolled,
.memory-card {
  background: #000;
}
.memory-card {
  backdrop-filter: none;
}
.notes::before,
.hero::after {
  background: none;
  animation: none;
  opacity: 0;
}
.chapter--cream {
  color: var(--paper);
}
.becoming__copy .eyebrow,
.becoming__copy > p:not(.section-number):not(.eyebrow) {
  color: var(--muted);
}
.becoming__copy .section-number {
  color: var(--accent);
}
.becoming__copy .section-number span {
  color: var(--dim);
}
.arrow-link--dark {
  color: var(--paper);
  border-color: var(--line);
}
.arrow-link--dark span {
  color: var(--accent);
}

/* The closing film should stay at its natural exposure. Its shared scene
   wash is useful elsewhere, but it reads as a black mask on the final frame. */
.signal-section--final::before {
  display: none;
}
.signal-section--final .video-frame::after {
  background: none;
}
.signal-section--final .archive-media {
  filter: none;
}

/* Keep the footer in normal document flow, after a complete final scene. */
.signal-section--final.section-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  height: 100svh;
  margin-bottom: 0;
}
.site-footer {
  position: static;
  z-index: auto;
  clear: none;
  min-height: 220px;
  margin: 0;
}

/* Notes is a text layer over the closing film. Keep every row inside the
   viewport so the source line cannot fall below the 16:9 stage. */
.notes.section-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 30px);
  height: 100svh;
  min-height: 100svh;
  padding: clamp(84px, 11vh, 120px) 7vw clamp(58px, 8vh, 88px);
}
.notes::before {
  display: none !important;
}
.notes > .section-video {
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
}
.notes__head,
.notes__body {
  flex: 0 0 auto;
}
.notes__head {
  width: min(48vw, 640px);
  margin-left: auto;
  text-align: right;
}
.notes__head h2 {
  font-size: clamp(52px, 6vw, 96px);
}
.notes__body {
  width: min(48vw, 590px);
  margin: 0 0 0 auto;
  text-align: right;
}
.notes__lead {
  font-size: clamp(22px, 3vw, 42px);
  margin-bottom: clamp(22px, 3vh, 34px);
}
.note-list > div {
  padding: clamp(10px, 1.5vh, 16px) 0;
}
.source-note {
  margin-top: clamp(12px, 2vh, 20px);
}

@media (max-width: 820px) {
  .site-footer {
    min-height: 240px;
  }
  .notes.section-shell {
    gap: 22px;
    padding: 78px 8vw 42px;
  }
  .notes__head {
    width: 86vw;
  }
  .notes__head h2 {
    font-size: clamp(46px, 13vw, 68px);
  }
  .notes__body {
    width: 86vw;
  }
  .notes__lead {
    font-size: clamp(21px, 6vw, 28px);
    margin-bottom: 24px;
  }
  .note-list > div {
    padding: 8px 0;
  }
  .source-note {
    margin-top: 12px;
  }
}

@media (max-width: 820px) and (max-height: 700px) {
  .notes.section-shell {
    gap: 14px;
    padding-top: 70px;
    padding-bottom: 24px;
  }
  .notes__head h2 {
    font-size: clamp(42px, 11vw, 58px);
  }
  .notes__lead {
    font-size: clamp(19px, 5.5vw, 24px);
    margin-bottom: 16px;
  }
  .note-list > div {
    padding: 6px 0;
  }
  .source-note {
    margin-top: 8px;
  }
}

/* Restore the dual-state composition: the two forms are the visual subject,
   while the scene film remains a quiet moving layer behind them. */
.becoming > .section-video {
  z-index: 1;
  opacity: .2;
  mix-blend-mode: normal;
  filter: saturate(.86) contrast(1.08) brightness(.72);
}
.becoming__grid::after {
  display: block !important;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 7, 7, .42), transparent 38%, transparent 63%, rgba(8, 7, 7, .3)),
    linear-gradient(180deg, rgba(8, 7, 7, .18), transparent 38%, rgba(8, 7, 7, .38));
}
.becoming .transformation-pair {
  display: grid !important;
  z-index: 3 !important;
  opacity: 1;
}
.transformation-pair figure {
  opacity: .9;
}
.transformation-pair img {
  filter: sepia(.08) saturate(.96) contrast(1.08);
}
.transformation-pair figure::after {
  border-color: rgba(255, 242, 219, .62);
}
.pair-line {
  background: linear-gradient(180deg, transparent, rgba(255, 246, 230, .72) 22%, rgba(241, 186, 120, .85) 50%, rgba(255, 246, 230, .72) 78%, transparent);
  box-shadow: 0 0 18px rgba(241, 186, 120, .42);
}

/* Give the archive a warm, low-contrast outro instead of an abrupt black
   rectangle, while keeping the footer in normal document flow. */
.site-footer {
  position: relative;
  z-index: auto;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  background:
    radial-gradient(circle at 16% 0%, rgba(241, 186, 120, .14), transparent 28%),
    linear-gradient(180deg, rgba(28, 23, 19, .96) 0%, rgba(13, 12, 11, .98) 56%, #070706 100%);
  border-top-color: rgba(241, 186, 120, .28);
}
.site-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 244, 225, .025) 6px, transparent 7px);
  opacity: .5;
  pointer-events: none;
}
.site-footer::after {
  content: 'END OF FILE / STILL OPEN';
  position: absolute;
  top: 30px;
  right: 48px;
  color: rgba(241, 186, 120, .42);
  font: 9px/1 var(--mono);
  letter-spacing: .2em;
  pointer-events: none;
}
.site-footer > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .becoming > .section-video {
    opacity: .14;
  }
  .transformation-pair {
    opacity: 1 !important;
  }
  .site-footer {
    min-height: 240px;
  }
  .site-footer::after {
    top: 22px;
    right: 20px;
    font-size: 8px;
  }
}

/* Restore the translucent top chrome after the global black-background pass. */
.site-header,
.site-header.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(17, 16, 15, .9) 0%,
    rgba(17, 16, 15, .67) 38%,
    rgba(17, 16, 15, .24) 73%,
    rgba(17, 16, 15, 0) 100%
  );
  border-bottom-color: transparent;
}

/* Reserve the lower-left interaction zone for the fixed music player. */
:root {
  --audio-safe-bottom: clamp(96px, 12vh, 148px);
  --audio-safe-left: clamp(220px, 20vw, 320px);
}
.hero {
  padding-top: clamp(92px, 10vh, 128px);
  padding-bottom: clamp(132px, 15vh, 176px);
}
.hero__copy {
  padding-top: clamp(18px, 3vh, 36px);
}
.hero__copy .section-number {
  margin-bottom: 20px;
}
.hero__copy .eyebrow {
  margin-bottom: 28px;
}
.hero h2 {
  margin-bottom: 28px;
}
.hero__lede {
  margin-bottom: 28px;
}
.scroll-cue,
.film-strip {
  bottom: var(--audio-safe-bottom);
}
.film-strip {
  bottom: calc(var(--audio-safe-bottom) + 64px);
}
.video-overlay,
.signal-section__caption {
  left: var(--audio-safe-left);
}
.video-overlay {
  bottom: var(--audio-safe-bottom);
}
.transformation-pair figcaption {
  bottom: calc(var(--audio-safe-bottom) + 96px);
}
.site-footer > div:first-child {
  align-self: flex-start;
}

@media (max-width: 820px) {
  :root {
    --audio-safe-bottom: 112px;
    --audio-safe-left: 8vw;
  }
  .hero {
    justify-content: flex-start;
    padding: 86px 8vw 132px;
  }
  .hero__copy {
    align-self: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 22px;
  }
  .hero__copy .section-number {
    margin-bottom: 18px;
  }
  .hero__copy .eyebrow {
    margin-bottom: 22px;
  }
  .hero h2 {
    margin-bottom: 24px;
  }
  .hero__lede {
    margin-bottom: 24px;
  }
  .video-overlay,
  .signal-section__caption {
    left: 8vw;
  }
  .signal-section__caption {
    bottom: var(--audio-safe-bottom);
  }
  .transformation-pair figcaption {
    bottom: calc(var(--audio-safe-bottom) + 72px);
  }
}

@media (max-width: 820px) and (max-height: 700px) {
  /* Keep the second scene's reading block inside short landscape viewports. */
  .hero {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .hero__copy {
    padding-top: 0;
  }
  .hero__copy .section-number {
    margin-bottom: 8px;
  }
  .hero__copy .eyebrow {
    margin-bottom: 8px;
  }
  .hero h2 {
    font-size: clamp(30px, 6.8vw, 40px);
    margin-bottom: 10px;
  }
  .hero h2 small {
    margin-top: 6px;
  }
  .hero__lede {
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .chapter__grid {
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .chapter__intro .section-number {
    margin-bottom: 8px;
  }
  .chapter__intro h2 {
    font-size: clamp(30px, 6.8vw, 40px);
    margin-bottom: 12px;
  }
  .chapter__intro > p:not(.section-number):not(.eyebrow) {
    font-size: 17px;
    line-height: 1.25;
  }
  .chapter__meta {
    margin-top: 14px;
    padding-top: 8px;
    font-size: 8px;
  }
  .becoming__grid {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .becoming__copy .section-number {
    margin-bottom: 8px;
  }
  .becoming__copy h2 {
    font-size: clamp(30px, 6.8vw, 40px);
    margin-top: 12px;
    margin-bottom: 14px;
  }
  .becoming__copy > p:not(.section-number):not(.eyebrow) {
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .signal-section__caption,
  .video-overlay {
    bottom: calc(var(--audio-safe-bottom) + 12px);
  }
  .notes.section-shell {
    gap: 10px;
    padding-top: 40px;
    padding-bottom: 16px;
  }
  .notes__head h2 {
    font-size: clamp(36px, 9vw, 48px);
  }
  .notes__lead {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .note-list > div {
    padding: 4px 0;
  }
  .note-list p {
    font-size: 11px;
  }
  .source-note {
    margin-top: 4px;
  }
}

@media (max-width: 820px) and (max-height: 700px) and (orientation: landscape) {
  /* On short landscape screens, keep the dense Notes copy to the right of
     the fixed player instead of letting its empty box claim the lower-left. */
  .notes__body {
    width: calc(100% - 220px);
  }
}

/* Restore the designed reading edges on the full-bleed signal scenes. The
   fixed player occupies only the lower-left corner, so scenes 04 and 06 keep
   their original wide left alignment. Scene 05 keeps its labels near the
   bottom edge instead of lifting them into the composition. */
@media (min-width: 821px) {
  .signal-section__caption,
  .video-overlay {
    left: 7vw;
  }

  .transformation-pair figcaption {
    bottom: 7vh;
  }
}
