:root {
  color-scheme: dark;
  --page: #101210;
  --surface: #181b17;
  --ink: #f4f3e8;
  --muted: #b7bbae;
  --quiet: #a0a698;
  --line: #353a31;
  --lime: #d7fd61;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 290px;
  color: var(--ink);
  font-family: var(--font);
  background: radial-gradient(ellipse at 75% 15%, #20251a 0%, transparent 48%), var(--page);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
button:disabled { opacity: .48; }
.shell { width: min(100% - clamp(40px, 9.5vw, 144px), 1360px); margin-inline: auto; }
.top { min-height: 89px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .38em; font-size: 25px; font-weight: 750; letter-spacing: -.075em; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--lime); color: #141b0c; font-size: 18px; letter-spacing: 0; }
.dot { color: var(--lime); margin-left: -.37em; }
.portal-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.portal-link span { color: var(--lime); }
.portal-link:hover { color: var(--ink); }

.cover { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(32px, 5vw, 84px); padding-block: clamp(36px, 5vw, 72px) 44px; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 25px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { flex: 0 0 8px; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 17px #d7fd6180; }
.eyebrow b { font-weight: inherit; }
.cover h1, .scene-copy h1 { margin: 0; font-size: clamp(44px, 6.35vw, 104px); line-height: .96; letter-spacing: -.062em; font-weight: 760; text-wrap: balance; }
.cover h1 em { font-style: normal; color: var(--lime); }
.intro { max-width: 34ch; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); margin: 26px 0 31px; }
.cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 21px; }
.primary, .soft { min-height: 52px; border-radius: 8px; padding: 0 20px; font-size: 15px; font-weight: 750; display: inline-flex; justify-content: center; align-items: center; gap: 11px; transition: background .2s, color .2s, border-color .2s; }
.primary { border: 1px solid var(--lime); background: var(--lime); color: #161c0d; }
.primary:hover:not(:disabled) { background: #e9ffad; border-color: #e9ffad; }
.soft { border: 1px solid #838c76; background: #20251dcc; }
.soft:hover { border-color: var(--lime); color: var(--lime); }
.play-triangle, [data-icon="play"] { border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; width: 0; height: 0; }
.length { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--quiet); font-size: 13px; }
.length > span { font-size: 17px; }
.cover-art { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1.31; border-radius: 16px; border: 1px solid #444d39; background: #252d20; }
.cover-art::after { content: ""; position: absolute; inset: 56% 0 0; background: linear-gradient(transparent, #090b09c9); pointer-events: none; }
.cover-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 55% 48%); }
.frame-caption { position: absolute; z-index: 1; bottom: 23px; left: 25px; display: grid; gap: 4px; }
.frame-caption span:first-child { font-size: 17px; font-weight: 750; }
.frame-caption span + span { font-size: 13px; color: #d6dacd; }
.load-error { color: #f1c6a9; }
.load-error a { text-decoration: underline; }

.chapters { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chapters ol { display: grid; grid-template-columns: 35fr 45fr 110fr 75fr 35fr; min-width: 0; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chapters li { min-width: 0; }
.chapters button, .chapters li > span { display: block; width: 100%; min-height: 45px; text-align: left; padding: 10px 0 0; color: var(--quiet); border: 0; border-top: 2px solid var(--line); background: transparent; border-radius: 0; font-size: 13px; }
.chapters button:disabled { opacity: 1; cursor: default; }
.chapters button:not(:disabled):hover { color: var(--ink); border-color: var(--muted); }
.chapters button[aria-current="step"], .chapters li:first-child > span { color: var(--lime); border-color: var(--lime); }

.screening { padding-block: 34px 26px; }
.stage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(20px, 4vw, 58px); min-height: clamp(490px, 63vh, 720px); background: var(--surface); border: 1px solid #47503f; border-radius: 16px; }
.stage-media, .still, .stage-shade, .lamp-light { position: absolute; inset: 0; pointer-events: none; }
.stage-media { z-index: -1; overflow: hidden; }
.still { background-size: cover; background-position: center; }
.stage[data-art="aprelica"] .still { background-position: var(--portrait-position, 55% 48%); }
.scene-shot { animation: camera 48s ease-out both; }
.stage[data-paused="true"] .scene-shot { animation-play-state: paused; }
@keyframes camera { from { transform: scale(1.015); opacity: .55; } 3% { opacity: 1; } to { transform: scale(1.12); opacity: 1; } }
.stage-shade { background: linear-gradient(90deg, #0d110eed, #0b100eb5 40%, #0c100d22 74%), linear-gradient(0deg, #090d0bd9, #10181000 43%); }
.lamp-light { opacity: 0; background: radial-gradient(ellipse at 61% 53%, var(--lamp-color, #d7fd61) 0%, transparent 36%); mix-blend-mode: screen; transition: opacity .65s ease; }
.stage[data-lit="true"] .lamp-light { opacity: .45; }
.stage[data-window] .stage-media::after { content: ""; position: absolute; top: var(--window-y); left: var(--window-x); width: 15px; height: 15px; border: 2px solid #222818; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 8px #d7fd6144, 0 0 28px 8px #d7fd61a0; transform: translate(-50%, -50%); transition: top .5s ease, left .5s ease; }
.stage[data-window="idea"] { --window-x: 63%; --window-y: 55%; }
.stage[data-window="maker"] { --window-x: 64%; --window-y: 37%; }
.stage[data-window="seller"] { --window-x: 80%; --window-y: 62%; }
.stage[data-window="buyer"] { --window-x: 82%; --window-y: 44%; }
.scene-copy { max-width: 710px; }
.scene-copy .eyebrow { margin-bottom: 16px; color: #e1e9d7; }
.scene-copy h1 { font-size: clamp(34px, 5.2vw, 80px); max-width: 13ch; letter-spacing: -.054em; }
.scene-copy h1:focus { outline: none; }
.interaction { display: grid; gap: 11px; margin-top: 25px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 525px); }
.option { text-align: left; background: #161a15e8; display: grid; align-content: center; gap: 3px; min-height: 62px; padding: 9px 13px; border-radius: 8px; border: 1px solid #79866b; color: var(--ink); transition: background .2s, border-color .2s; }
.option span { font-size: 14px; font-weight: 700; }
.option small { color: #c9d0c3; font-size: 12px; }
.option:hover, .option[aria-pressed="true"] { background: #293522f2; border-color: var(--lime); }
.option[aria-pressed="true"] span { color: var(--lime); }
.node-detail { color: #e4eddd; line-height: 1.45; font-size: 14px; max-width: 52ch; margin: 0; background: #141b15de; border-left: 2px solid var(--lime); border-radius: 0 6px 6px 0; padding: 8px 11px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.subtitle-wrap { position: relative; align-self: center; display: flex; min-height: 68px; width: min(100%, 810px); align-items: end; justify-content: center; }
.subtitle { margin: 0; color: #fff; background: #111512eb; border-radius: 7px; padding: 10px 15px; font-size: clamp(13px, 1.3vw, 18px); line-height: 1.45; text-align: center; text-wrap: pretty; }
.subtitle:empty { visibility: hidden; }

.controls { padding-top: 11px; }
.control-row { display: flex; align-items: center; gap: 5px; }
.control, .skip { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 5px; min-height: 42px; min-width: 42px; font-size: 15px; }
.control:hover:not(:disabled), .skip:hover:not(:disabled) { background: #262c22; }
.control[aria-pressed="true"] { color: var(--lime); }
.control[data-unavailable="true"] { opacity: .48; }
[data-icon="pause"] { height: 12px; width: 11px; border-inline: 3px solid currentColor; }
[data-icon="captions"] { display: block; border: 1px solid currentColor; padding: 1px 3px; border-radius: 3px; font-size: 10px; font-weight: 700; }
[data-icon="sound"] { font-size: 21px; }
.time { margin-left: 8px; font-size: 13px; color: var(--quiet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { color: var(--lime); margin-left: auto; gap: 9px; padding-inline: 11px; }
.progress { height: 3px; margin-block: 7px 0; background: #333b2e; border-radius: 3px; overflow: hidden; }
.progress > span { display: block; width: 100%; height: 100%; transform: scaleX(var(--progress, 0)); transform-origin: left center; background: var(--lime); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 930px) {
  .top { min-height: 70px; }
  .cover { gap: 26px; }
  .cover h1 { font-size: clamp(42px, 6.6vw, 66px); }
  .cover-art { aspect-ratio: 1.05; }
  .chapters ol { grid-template-columns: .78fr 1fr 1.23fr .8fr .68fr; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .top { min-height: 59px; }
  .wordmark { font-size: 23px; }
  .brand-mark { width: 28px; height: 28px; }
  .portal-link { font-size: 13px; }
  .cover { grid-template-columns: 1fr; gap: 21px; padding-block: 17px 26px; }
  .cover-art { grid-row: 1; aspect-ratio: 1.56; border-radius: 11px; }
  .frame-caption { inset: auto auto 12px 13px; gap: 2px; }
  .frame-caption span:first-child { font-size: 14px; }
  .frame-caption span + span { font-size: 11px; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; }
  .cover h1 { font-size: clamp(40px, 10.1vw, 65px); }
  .intro { margin: 15px 0 20px; }
  .primary, .soft { min-height: 45px; padding-inline: 14px; }
  .chapters { padding-bottom: 7px; }
  .chapters ol { gap: 4px; }
  .chapters button, .chapters li > span { font-size: 11px; }
  .screening { padding-block: 14px 20px; }
  .stage { min-height: 506px; padding: 18px 13px 15px; gap: 12px; border-radius: 11px; }
  .stage-shade { background: linear-gradient(180deg, #0c100ded, #0c100d51 58%, #0a0c0af0), linear-gradient(90deg, #10151050, transparent 90%); }
  .still { background-position: 55% 52%; }
  .stage[data-art="aprelica"] .still { background-position: 63% 46%; }
  .scene-copy .eyebrow { margin-bottom: 10px; }
  .scene-copy h1 { font-size: clamp(31px, 8.5vw, 46px); }
  .interaction { margin-top: 16px; gap: 7px; }
  .choices { gap: 5px; }
  .option { min-height: 59px; padding: 7px; }
  .option span { font-size: 13px; }
  .option small, .node-detail { font-size: 11px; }
  .subtitle { padding: 7px 9px; }
  .control-row { gap: 2px; }
  .time { margin-left: 2px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
