@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/chakra-petch/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --ink: #eef3ed; --muted: #b0bebd; --cyan: #89e5e7; --accent: var(--cyan); --edge: 38px; }
* { box-sizing: border-box; }
html { background: #070b0c; scroll-behavior: auto; scroll-padding-top: 0; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); z-index: 20; padding: 15px; background: #070b0c; }
.skip-link:focus { transform: none; }
.stage { position: fixed; inset: 0; overflow: hidden; background: #070b0c; pointer-events: none; }
.stage canvas, .still, .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.still { object-fit: cover; object-position: 50% 50%; opacity: 1; }
.still.previous { opacity: 0; transition: opacity 380ms ease; z-index: 1; }
.still.previous.fading { opacity: 1; transition: none; }
#film-canvas, #weather-canvas { visibility: hidden; }
#film-canvas { z-index: 2; } #weather-canvas { z-index: 3; }
body[data-render="webgl"] #film-canvas, body[data-render="webgl"] #weather-canvas { visibility: visible; }
body[data-render="webgl"] .still { visibility: hidden; }
.shade { z-index: 4; background: linear-gradient(90deg, rgba(2,7,9,.64), rgba(2,7,9,.08) 48%, transparent 78%), linear-gradient(0deg, rgba(2,7,9,.9), transparent 25%, transparent 82%, rgba(2,7,9,.6)); }
body[data-layout^="right"] .shade { transform: scaleX(-1); }
body[data-layout="bottom"] .shade { background: linear-gradient(0deg, rgba(2,7,9,.93), rgba(2,7,9,.8) 17%, rgba(2,7,9,.45) 31%, transparent 47%, transparent 84%, rgba(2,7,9,.55)); }
body[data-layout="caption"] .shade { background: linear-gradient(0deg, rgba(2,7,9,.9), rgba(2,7,9,.7) 13%, rgba(2,7,9,.3) 23%, transparent 33%, transparent 84%, rgba(2,7,9,.55)); }
body[data-alarm="yellow"] #film-canvas, body[data-alarm="yellow"] .still { filter: sepia(.85) saturate(1.5); }
.hud { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 91px; padding: 0 var(--edge); background: linear-gradient(#060b0dd9, #060b0d00); }
.wordmark { font-size: 24px; font-weight: 900; letter-spacing: -1.5px; white-space: nowrap; }
.wordmark span { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; margin-left: 8px; }
.wordmark i { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin: 0 0 3px 12px; }
.operation, .hud-cta, .telemetry, .eyebrow, .micro, .connection, .chapter-nav, .footer-hud, .scroll-cue, .components { font: 10px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .10em; }
.operation { color: var(--muted); }
.operation b { font-weight: 400; color: #718588; }
.hud-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0 8px 15px; border-left: 1px solid #536164; text-transform: uppercase; }
.hud-cta span { color: var(--accent); margin-left: 12px; }
.telemetry { position: fixed; z-index: 4; left: var(--edge); right: var(--edge); top: 102px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
#chapter-counter { color: var(--ink); margin-right: 17px; }
.signal { display: inline-block; height: 5px; width: 5px; background: var(--accent); margin: 0 10px 1px 0; }
#system-status { color: var(--accent); }
.chapter { position: relative; min-height: 215vh; min-height: 215svh; }
.chapter[data-chapter="02"] { min-height: 360svh; }
.chapter[data-chapter="03"] { min-height: 270svh; }
.chapter[data-chapter="05"] { min-height: 330svh; }
.chapter[data-chapter="06"] { min-height: 400svh; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; align-items: safe center; padding: 150px 7.5% 96px; }
.copy { width: min(630px, 44vw); position: relative; }
.chapter[data-layout^="right"] .panel { padding-left: 64%; padding-right: 6%; }
.chapter[data-layout^="right"] .copy { width: 100%; }
.chapter[data-layout="right"] h2 { font-size: clamp(48px, 5.4vw, 80px); }
.chapter[data-layout="right-small"] .panel { padding-left: 69%; }
.chapter[data-layout="left-small"] .copy { width: 30vw; }
.chapter[data-layout="left-small"] h2, .chapter[data-layout="right-small"] h2 { font-size: clamp(48px, 4.8vw, 72px); }
.chapter[data-layout="top"] .panel { align-items: flex-start; padding-top: 155px; }
.chapter[data-layout="top"] h2 { font-size: clamp(48px, 4.6vw, 68px); }
.chapter[data-layout="bottom"] .panel { align-items: flex-start; padding-top: 70vh; padding-top: 70svh; padding-bottom: 90px; }
.chapter[data-layout="bottom"] .copy { width: 88%; }
.chapter[data-layout="bottom"] .eyebrow { margin-bottom: 9px; }
.chapter[data-layout="bottom"] h2 { font-size: clamp(36px, 3.8vw, 56px); margin-bottom: 10px; line-height: 1; }
.chapter[data-layout="bottom"] h2 br { display: none; }
.chapter[data-layout="bottom"] .subline { display: inline; font-size: 18px; margin: 0; }
.chapter[data-layout="bottom"] .description { display: inline; font-size: 16px; }
.chapter[data-layout="bottom"] .micro { font-size: 9px; margin-top: 8px; max-width: 900px; }
.chapter[data-layout="bottom"] .micro br { display: none; }
.eyebrow { color: var(--accent); margin: 0 0 26px; }
h1, h2, .brand-title, .dossier-copy h3, .project-state h3, .door strong, #entry-step legend { font-family: "Chakra Petch", Arial, Helvetica, sans-serif; font-weight: 700; }
h1, h2 { font-size: clamp(58px, 6.7vw, 100px); line-height: .94; letter-spacing: -.02em; margin: 0 0 25px; text-wrap: balance; }
h1 { font-size: clamp(100px, 11vw, 166px); }
.opening h1 { font-size: clamp(72px, 8.5vw, 124px); }
.outline { color: transparent; -webkit-text-stroke: 1px #d9e6df; }
.title-dot { color: var(--accent); }
.brand-title { font-size: clamp(100px, 12vw, 190px); line-height: .75; }
.subline { font-size: clamp(18px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -.025em; max-width: 580px; margin: 20px 0; }
.micro { color: var(--muted); max-width: 550px; margin: 23px 0 0; letter-spacing: .06em; }
.connection { margin-top: 32px; }
progress { height: 2px; width: 255px; border: 0; background: #354144; accent-color: var(--cyan); }
progress::-webkit-progress-bar { background: #354144; } progress::-webkit-progress-value { background: var(--cyan); }
.scroll-cue { position: absolute; left: 7.5%; bottom: 80px; color: var(--muted); display: flex; align-items: center; gap: 30px; min-height: 44px; }
.scroll-cue span { font-size: 24px; color: var(--ink); }
.frame-corner { position: absolute; z-index: 6; width: 22px; height: 22px; border-color: #99b7b95e; border-style: solid; }
.top-left { top: 146px; left: var(--edge); border-width: 1px 0 0 1px; }.top-right { top: 146px; right: var(--edge); border-width: 1px 1px 0 0; }
.bottom-left { bottom: 40px; left: var(--edge); border-width: 0 0 1px 1px; }.bottom-right { bottom: 40px; right: var(--edge); border-width: 0 1px 1px 0; }
.scan-line { display: none; position: absolute; z-index: 5; top: 15%; left: 35%; width: 60%; height: 1px; background: var(--cyan); box-shadow: 0 0 15px #89e5e780; }
body[data-chapter="00"][data-render="webgl"] .scan-line { display: block; }
.components { list-style: none; padding: 0; color: var(--muted); display: grid; gap: 9px; }
.components li { border-left: 1px solid #89e5e750; padding-left: 12px; }
.components li.active { color: var(--cyan); border-left-color: var(--cyan); }
.description { color: #d4ddda; font-size: 18px; }
.join-paths { max-width: 570px; margin-top: 35px; }
.join-paths details { border-top: 1px solid #849c9c80; background: #050a0ca6; }
.join-paths details:last-child { border-bottom: 1px solid #849c9c80; }
summary { padding: 19px 12px; font-size: 19px; cursor: pointer; }
summary span { float: right; }.join-paths details p { color: #d1dcda; padding: 0 13px 12px; font-size: 14px; line-height: 1.6; max-width: 530px; }
.chapter-nav { position: fixed; z-index: 5; right: var(--edge); bottom: 70px; display: grid; justify-items: center; gap: 7px; }
.chapter-nav a { display: grid; place-content: center; width: 44px; height: 44px; border: 1px solid #69808480; background: #03090bd9; font-size: 19px; }
#nav-progress { display: none; }
.footer-hud { position: relative; z-index: 1; min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; padding: 10px var(--edge); border-top: 1px solid #7d959542; background: #070b0c; }
.footer-hud p { margin: 0; white-space: nowrap; }.disclosure { color: var(--muted); letter-spacing: 0; }.footer-hud button { border: 0; background: none; padding: 0; min-height: 44px; font: inherit; letter-spacing: 0; }
.noscript { position: fixed; bottom: 20px; background: #070b0c; padding: 15px; z-index: 6; }
.sr-only { position: absolute; top: 0; left: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body[data-alarm="red"] { --accent: #ff8e94; } body[data-alarm="yellow"] { --accent: #f4d77f; }
@media (max-width: 800px) {
  :root { --edge: 19px; }
  .hud { height: 74px; gap: 12px; }.operation { display: none; }.wordmark span { font-size: 9px; }
  .telemetry { top: 82px; font-size: 9px; gap: 10px; flex-wrap: wrap; }.fiction { display: none; }
  .top-left, .top-right { top: 119px; }.bottom-left, .bottom-right { bottom: 82px; }
  .chapter .panel, .chapter[data-layout] .panel { padding: 58svh 7.5% 100px; align-items: flex-start; }
  .chapter .copy, .chapter[data-layout] .copy { width: 100%; }
  .chapter h1, .chapter h2, .chapter[data-layout] h2 { font-size: clamp(32px, 9.5vw, 68px); line-height: 1; letter-spacing: -.02em; margin-bottom: 13px; }
  .chapter h2 br { display: none; }
  .chapter .eyebrow, .chapter[data-layout] .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .chapter .subline, .chapter[data-layout] .subline { display: block; font-size: 17px; max-width: 93%; margin: 10px 0; }
  .chapter .micro, .chapter[data-layout] .micro { font-size: 8px; line-height: 1.6; max-width: 90%; margin-top: 12px; }
  .shade, body[data-layout] .shade { transform: none; background: linear-gradient(0deg, #020709 40%, transparent 50%, transparent 85%, #02070977); }
  .chapter-nav { right: 12px; bottom: 16px; display: flex; gap: 6px; }
  body[data-chapter="00"] .chapter-nav { display: none; }.chapter-nav a { width: 44px; height: 44px; }
   .footer-hud { gap: 4px 16px; padding: 14px 19px; font-size: 9px; }
   .footer-hud p { white-space: normal; text-align: center; }.disclosure { font-size: 9px; line-height: 1.5; }
  .scroll-cue { bottom: 89px; font-size: 9px; }.connection { font-size: 9px; margin-top: 15px; }
  .join h2 { font-size: 12vw; }.join-paths { margin-top: 14px; max-width: calc(100% - 34px); } summary { font-size: 15px; padding: 13px 10px; }.join-paths details p { font-size: 12px; }
  .chapter:has(details[open]) .panel { height: auto; min-height: 100svh; padding-bottom: 150px; }
  .chapter .description, .chapter[data-layout] .description { font-size: 13px; }
  .components { gap: 3px; margin-top: 10px; }
  .expedition h2 { font-size: 11.7vw; }.description { font-size: 15px; }.components { font-size: 9px; }
}
@media (max-height: 720px) and (min-width: 801px) { .panel { padding-top: 135px; padding-bottom: 90px; } h1, h2 { font-size: clamp(45px, 9vh, 90px); } .eyebrow { margin-bottom: 16px; } .subline { margin: 12px 0; } .join-paths { margin-top: 15px; } .micro { margin-top: 13px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scan-line { display: none !important; } .still.previous { transition: opacity 220ms linear; } }

/* D-22: normal-flow dossier, then three briefing doors. No simulated 3D. */
[hidden] { display: none !important; }
body[data-zone="info"] .stage { visibility: hidden; opacity: 0; }
body[data-zone="info"] .telemetry, body[data-zone="info"] .chapter-nav { display: none; }
body[data-zone="info"] .hud { background: #070b0c; }
.dossier, .roles { position: relative; background: #070b0c; padding: 130px 7.5% 90px; }
.section-heading h2, .roles h2 { font-size: clamp(42px, 6vw, 88px); }
.section-heading { margin-bottom: 64px; }
.dossier-block { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 5%; margin: 0 0 100px; scroll-margin-top: 110px; }
.dossier-block picture, .dossier-block img { display: block; width: 100%; height: auto; }
.dossier-block figure { margin: 0; }
.dossier-copy h3, .project-state h3 { margin: 0 0 20px; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -.02em; }
.dossier-copy p, .project-state p { font-size: 20px; line-height: 1.6; }
.dossier-copy .eyebrow { font-size: 10px; }.dossier-copy .micro { font-size: 13px; }
.components { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 10px; }
.project-state { border-top: 1px solid #638184; padding-top: 38px; max-width: 900px; scroll-margin-top: 130px; }
.roles { min-height: 90svh; padding-bottom: 150px; scroll-margin-top: 91px; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.door { position: relative; isolation: isolate; overflow: hidden; height: 500px; min-width: 0; padding: 32px; text-align: left; border: 1px solid #65878a; background: #091316; display: flex; align-items: flex-end; transition: border-color 240ms ease; }
.door-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #091316; }
/* Wide originals: keep both photographed subjects above the reading gradient. */
.door-media img { display: block; width: 100%; height: 70%; object-fit: cover; object-position: 65% 45%; filter: brightness(.78) saturate(.65); transform: scale(1); transition: transform 1.2s ease, filter 400ms ease; }
.door-media img { height: 100%; }
.door[data-entry="operatore"] .door-media img { object-position: 42% 40%; }
.door[data-entry="tecnica"] .door-media img { object-position: 30% 55%; }
.door[data-entry="partner"] .door-media img { object-position: 48% 55%; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(circle 180px at var(--door-x, 50%) var(--door-y, 36%), #b4f5f52b, #89e5e70a 52%, transparent 100%); transition: opacity 240ms ease; }
.door.door-torch::before { opacity: 1; }
.door-copy { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; width: 100%; }
/* At every text pixel: at least 90% dark scrim, even over white + torch. */
.door-copy::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -36px -32px -32px; background: linear-gradient(180deg, transparent, rgba(2,7,9,.9) 28px, rgba(2,7,9,.98) 100%); }
.door strong { font-size: clamp(25px, 2.7vw, 39px); line-height: 1.1; letter-spacing: -.02em; }
.door-description { color: #c4d0cc; font-size: 17px; line-height: 1.5; }
.door .eyebrow { color: var(--cyan); margin: 0; }.door b { font-size: 30px; line-height: 1; align-self: flex-end; transition: transform 400ms ease; }
.door:focus-visible { border-color: var(--cyan); outline-color: var(--cyan); }
.door:focus-visible .door-media img { transform: scale(1.06); }
.door:focus-visible .door-media img { filter: brightness(1.08) saturate(.8); }
.door:focus-visible b { transform: translate(4px, -4px); }
@media (hover: hover) and (pointer: fine) {
  .door:hover { border-color: var(--cyan); }
  .door:hover .door-media img { transform: scale(1.06); }
  .door:hover .door-media img { filter: brightness(1.08) saturate(.8); }
  .door:hover b { transform: translate(4px, -4px); }
}
dialog { color: var(--ink); background: #0a1215; border: 1px solid #608184; width: min(800px, 90vw); max-height: calc(100svh - 120px); padding: 36px 48px; overscroll-behavior: contain; }
dialog::backdrop { background: #020709ed; }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { font-size: 38px; margin: 10px 0; }
.briefing-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.briefing-head .eyebrow { margin: 0; }
dialog button { background: #15282d; border: 1px solid #6d9398; padding: 12px 18px; min-height: 48px; }
#entry-note { margin: 15px 0; font-size: 11px; }
#entry-count { font: 11px ui-monospace, monospace; color: var(--cyan); margin-top: 28px; }
#entry-progress { width: 100%; height: 3px; margin: 0 0 25px; }
#entry-step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#entry-step legend { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.field-label { display: block; margin: 12px 0; line-height: 1.5; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { display: block; width: 100%; background: #050b0d; border: 1px solid #77969a; border-radius: 0; color: #edf3ef; font: 18px/1.4 Arial, sans-serif; padding: 14px; min-height: 54px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
textarea { resize: vertical; min-height: 100px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; margin: 8px 0; border: 1px solid #526a70; line-height: 1.4; }
.option.featured { border-color: #8cc8cd; background: #162a2f; }
.option input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #8be6e7; }
.step-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; }
#entry-next { background: #b5e5e1; color: #071012; font-weight: 700; }
.promise { font-size: 13px; line-height: 1.6; border-left: 2px solid var(--cyan); padding: 12px 16px; background: #132327; }
#entry-result { padding: 35px 14px; }#entry-message { font-size: 29px; line-height: 1.4; letter-spacing: -.03em; }
#entry-extra { color: #c4d0cc; line-height: 1.6; }#entry-result small { display: block; color: #b5c6c5; margin: 24px 0; }
#info-dialog p { line-height: 1.7; }#info-close { float: right; }
@media (max-width: 800px) {
  .dossier, .roles { padding: 105px 22px 75px; }
  .section-heading { margin-bottom: 38px; }
  .dossier-block { grid-template-columns: 1fr; gap: 25px; margin-bottom: 60px; }
  .dossier-copy p, .project-state p { font-size: 17px; }.dossier-copy .eyebrow { margin-bottom: 12px; }
  .components { font-size: 9px; gap: 10px; }
  .doors { grid-template-columns: 1fr; margin-top: 35px; }
  .door { height: 300px; padding: 22px; }.door strong { font-size: 30px; }
  .door-copy { gap: 10px; }.door-description { font-size: 15px; }.door b { position: absolute; right: 0; top: 0; font-size: 24px; }
  .door .eyebrow { padding-right: 32px; }
  .door-copy::before { inset: -36px -22px -22px; }
  .door-media img { height: 100%; }
  .roles { padding-bottom: 90px; scroll-margin-top: 74px; }
  dialog { position: fixed; inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; padding: 25px 22px; border: 0; }
  dialog h2 { font-size: 32px; }#entry-step legend { font-size: 26px; }
  #entry-note { line-height: 1.5; }.briefing-head { gap: 8px; }.briefing-head .eyebrow { font-size: 9px; }
  #entry-count { margin-top: 26px; }#entry-message { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .door .door-media img, .door:is(:hover, :focus-visible) .door-media img, .door:is(:hover, :focus-visible) b { transform: none; transition: none; }
  .door::before { display: none; }
}

/* v4 · War.Exe */
:root { --red: #ff4050; }
body[data-alarm="red"] .signal { background: var(--red); animation: p09-blink 1s steps(2, start) infinite; }
body[data-alarm="red"] #system-status { color: #ff8e94; }
@keyframes p09-blink { to { visibility: hidden; } }
.opening h1 { font-size: clamp(64px, 7.6vw, 116px); }
.title-dot { color: var(--red); }
.lede { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.55; color: #d4ddda; max-width: 820px; margin: 22px 0 0; }
.episode { position: relative; background: #070b0c; padding: 130px 7.5% 40px; }
.episode .section-heading { margin-bottom: 40px; }
.player { margin: 0; }
.player video { display: block; width: 100%; max-height: 78svh; aspect-ratio: 16 / 9; background: #000; border: 1px solid #65878a55; }
.player figcaption { margin-top: 14px; max-width: none; }
.dossier { padding-top: 90px; }
.door-media img { filter: brightness(.7) saturate(.7); }
.purpose { color: #c4d0cc; line-height: 1.6; margin: 6px 0 22px; }
#entry-error { color: #ffb4b9; border-left: 2px solid var(--red); padding: 8px 12px; background: #2a1215; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb8b9 50%), linear-gradient(135deg, #9fb8b9 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 6px; line-height: 1.5; }
.consent input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: #8be6e7; }
#entry-dialog .micro a, .footer-hud a, #info-text a { text-decoration: underline; text-underline-offset: 3px; }
.footer-hud a { min-height: 44px; display: inline-flex; align-items: center; }
#entry-send { background: #b5e5e1; color: #071012; font-weight: 700; }
#entry-send:disabled { opacity: .6; cursor: progress; }
#entry-dialog .step-actions { justify-content: flex-end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) {
  .hud-cta { font-size: 9px; padding-left: 10px; }
  .episode { padding: 105px 22px 20px; }
  .player video { max-height: none; }
  .lede { font-size: 17px; }
}
@media (max-height: 760px) and (min-width: 801px) { .opening .micro { display: none; } .scroll-cue { bottom: 44px; } }
@media (max-width: 800px) { .opening .micro { display: none; } .chapter[data-chapter="00"] .scroll-cue { bottom: 54px; } }

/* D-29 · immagini a tutto schermo, un testo per inquadratura, niente avvisi. */
.chapter .copy[data-shot]:not([hidden]) { animation: p09-copy-in 520ms ease both; }
@keyframes p09-copy-in { from { opacity: 0; transform: translateY(14px); } }
.chapter h1, .chapter h2, .chapter .subline { text-shadow: 0 2px 22px rgba(2,7,9,.75); }
.chapter .micro { text-shadow: 0 1px 8px rgba(2,7,9,.95); }
.inline-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--cyan); }
.inline-cta span { color: var(--cyan); margin-left: 12px; }
.dossier-copy p + p { margin-top: 14px; }
@media (min-width: 801px) {
  .chapter[data-layout="caption"] .panel { align-items: flex-end; padding-bottom: 52px; }
  .chapter[data-layout="caption"] .copy { width: 88%; }
  .chapter[data-layout="caption"] h2 { font-size: clamp(36px, 3.8vw, 56px); line-height: 1; margin-bottom: 6px; }
  .chapter[data-layout="caption"] h2 br { display: none; }
  .chapter[data-layout="caption"] .micro { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .chapter .copy[data-shot]:not([hidden]) { animation: none; } }

/* v5 · capitolo 05 «K-09»: sequenza a scroll, regia in k09.js. */
.chapter[data-chapter="05"] { min-height: 560svh; }
.k09-directed .copy { transition: opacity 220ms ease; }
.k09-directed:not(.is-live) .copy, .k09-directed.is-leaving .copy { opacity: 0; }
.k09-directed.is-leaving .copy { transition-duration: 360ms; }
.k09-directed h2 { text-shadow: none; margin-bottom: 18px; }
.k09-directed h2::after { content: ""; display: block; height: 1px; margin-top: .16em; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0s, background-color 160ms linear; }
.k09-directed.is-live h2::after { transform: scaleX(1); transition: transform 1100ms cubic-bezier(.2, .7, .15, 1) 380ms, background-color 160ms linear; }
.k09-char { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .07em 0 .09em; margin: -.07em 0 -.09em; }
.k09-char > span { display: inline-block; transform: translateY(108%); }
.k09-directed.is-live .k09-char > span { animation: k09-rise 860ms cubic-bezier(.16, .86, .22, 1) both; animation-delay: calc(160ms + var(--i) * var(--k09-step, 62ms)); }
@keyframes k09-rise { from { transform: translateY(108%); } to { transform: none; } }
.k09-directed .subline, .k09-directed .micro { opacity: 0; transform: translateY(12px); }
.k09-directed.is-live .subline, .k09-directed.is-live .micro { opacity: 1; transform: none; transition: opacity 560ms ease 620ms, transform 760ms cubic-bezier(.2, .7, .15, 1) 620ms; }
.k09-directed.is-live .micro { transition-delay: 860ms; }
.k09-directed .k09-lines { display: grid; }
.k09-directed .k09-lines > h2 { grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s 240ms; }
.k09-directed[data-line="pattuglia"] [data-k09="titolo"], .k09-directed[data-line="caccia"] [data-k09="caccia"], .k09-directed[data-line="scontro"] [data-k09="scontro"] { opacity: 1; visibility: visible; transition: opacity 380ms ease 160ms, visibility 0s; }
.k09-directed[data-line="caccia"] [data-k09="caccia"] { transition: opacity 80ms linear, visibility 0s; }
.k09-directed[data-phase="caccia"] h2::after { background: var(--red); }
.k09-directed.k09-hit h2 { animation: k09-jolt 460ms cubic-bezier(.2, .8, .2, 1); }
@keyframes k09-jolt { 0% { transform: translate3d(-9px, 0, 0); color: var(--red); } 22% { transform: translate3d(5px, 0, 0); color: var(--red); } 55% { transform: translate3d(-1px, 0, 0); } 100% { transform: none; } }
#system-status.k09-flip { animation: k09-status 640ms steps(1, end); }
@keyframes k09-status { 0%, 24%, 48% { opacity: 0; } 12%, 36%, 60% { opacity: 1; } }
.k09-lock { position: absolute; left: 0; top: 0; z-index: 5; width: 120px; height: 120px; color: var(--cyan); opacity: 0; transition: opacity 520ms ease, color 140ms linear; will-change: transform; }
.k09-lock.is-on { opacity: .82; }
.k09-lock i { position: absolute; width: 14%; height: 14%; min-width: 9px; min-height: 9px; max-width: 26px; max-height: 26px; border: 0 solid currentColor; }
.k09-lock i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.k09-lock i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.k09-lock i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.k09-lock i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.k09-lock::before, .k09-lock::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; opacity: .7; }
.k09-lock::before { width: 9px; height: 1px; margin: 0 0 0 -4.5px; }
.k09-lock::after { width: 1px; height: 9px; margin: -4.5px 0 0; }
body[data-alarm="red"] .k09-lock { color: var(--red); }
body[data-alarm="red"] .k09-lock i { border-width: 0; box-shadow: none; }
body[data-alarm="red"] .k09-lock i:nth-child(1) { border-width: 2px 0 0 2px; }
body[data-alarm="red"] .k09-lock i:nth-child(2) { border-width: 2px 2px 0 0; }
body[data-alarm="red"] .k09-lock i:nth-child(3) { border-width: 0 0 2px 2px; }
body[data-alarm="red"] .k09-lock i:nth-child(4) { border-width: 0 2px 2px 0; }
.k09-lock.is-hit { animation: k09-lock-hit 560ms cubic-bezier(.2, .8, .2, 1); }
@keyframes k09-lock-hit { from { scale: 1.42; } to { scale: 1; } }
@media (min-width: 801px) {
  .chapter[data-chapter="05"] .panel { padding-right: 5%; }
  .chapter[data-chapter="05"] h2 { font-size: clamp(34px, 3.3vw, 50px); line-height: 1.02; }
  .chapter[data-chapter="05"] .subline { font-size: clamp(17px, 1.55vw, 24px); line-height: 1.4; }
}
@media (max-width: 800px) {
  .chapter[data-chapter="05"] h2 { font-size: clamp(30px, 8.6vw, 44px); margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .k09-directed .copy, .k09-directed h2::after, .k09-directed.is-live h2::after, .k09-directed .subline, .k09-directed .micro, .k09-directed.is-live .subline, .k09-directed.is-live .micro, .k09-directed [data-k09] { transition: none; }
  .k09-char > span, .k09-directed.is-live .k09-char > span { transform: none; animation: none; }
  .k09-directed.k09-hit h2, #system-status.k09-flip, .k09-lock.is-hit { animation: none; }
  .k09-lock { display: none; }
}

/* Testi v5: sottotitolo dell'apertura e didascalia del branco. */
.opening .subline { font-size: clamp(17px, 1.6vw, 22px); margin: 0 0 22px; max-width: 520px; }
@media (min-width: 801px) {
  .chapter[data-layout="caption"] .subline { font-size: 18px; margin: 0; max-width: none; }
  .chapter[data-layout="caption"] h2 { margin-bottom: 8px; }
}
.k09-word { display: inline-block; white-space: nowrap; }
.nb { white-space: nowrap; }
@media (min-width: 801px) { .chapter[data-layout] h2.long { font-size: clamp(34px, 3.5vw, 52px); line-height: 1; } }
@media (min-width: 801px) {
  .chapter.k09-directed[data-layout="right-small"] .panel { padding-left: 66%; padding-right: 5%; }
  .chapter.k09-directed[data-layout="right-small"] h2 { font-size: clamp(34px, 3.3vw, 50px); line-height: 1.02; }
}
@media (max-width: 800px) {
  .chapter.k09-directed h2, .chapter.k09-directed[data-layout] h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .opening .subline, .chapter[data-layout] .opening .subline { margin: 6px 0 10px; }
  .opening .connection { margin-top: 6px; }
  .chapter[data-chapter="00"] .scroll-cue { bottom: 4px; }
}
