:root {
  color-scheme:dark;
  --background:#10100f;
  --surface:#191917;
  --panel:#232320;
  --ink:#f7f5ef;
  --muted:#bbb9b0;
  --line:#43413a;
  --light:#e8e5dc;
  --on-light:#141413;
  --light-soft:#4b473e;
  --light-line:#c2beb3;
  --accent:#ff6255;
  --on-accent:#210d09;
  --cue:#ffd07c;
  --radius:6px;
  --gutter:clamp(20px,5.2vw,84px);
  --fast:200ms cubic-bezier(.16,1,.3,1);
  --cut:340ms cubic-bezier(.16,1,.3,1);
  --mono:"Cascadia Mono",Consolas,monospace;
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:18px}
body {margin:0;color:var(--ink);background:var(--background);font:400 16px/1.65 system-ui,"Microsoft YaHei","PingFang SC",sans-serif}
body:has(dialog[open]) {overflow:hidden}
::selection {background:var(--accent);color:var(--on-accent)}
h1,h2,h3,p,ol,figure {margin:0}
h1,h2,h3 {font-weight:850;line-height:1.1;letter-spacing:-.035em}
.keep {white-space:nowrap}
img,video {display:block;max-width:100%}
a {text-decoration:none;color:inherit}
button {font:inherit;color:inherit;cursor:pointer}
:focus-visible {outline:2px solid var(--cue);outline-offset:4px}
.shell {width:min(calc(100% - var(--gutter)*2),1360px);margin-inline:auto}
.skip {position:absolute;top:10px;left:10px;z-index:10;padding:8px 16px;background:var(--light);color:var(--on-light);transform:translateY(-160%)}
.skip:focus {transform:none}

.bar {height:70px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand {display:inline-flex;align-items:center;gap:9px;font-size:26px;line-height:1;font-weight:850;letter-spacing:-.035em}
.brand img {border-radius:var(--radius)}
nav {display:flex;gap:30px;font-size:14px;color:var(--muted)}
nav a,.footer a {display:inline-flex;align-items:center;min-height:44px}
nav a:hover,.footer a:hover {color:var(--accent)}
.button {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 15px;border:1px solid transparent;border-radius:var(--radius);font-weight:700;font-size:14px;white-space:nowrap;touch-action:manipulation}
.primary {background:var(--accent);color:var(--on-accent)}
.primary:hover {background:var(--cue)}
.outline {border-color:var(--line);background:var(--background);color:var(--ink)}
.outline:hover {border-color:var(--ink)}
.button:active {transform:translateY(1px)}
.download-icon {width:11px;height:13px;border-bottom:1.5px solid currentColor;position:relative;margin-left:3px}
.download-icon::before,.download-icon::after {content:"";position:absolute;left:50%;top:0;background:currentColor}
.download-icon::before {width:1.5px;height:8px;transform:translateX(-50%)}
.download-icon::after {top:3px;width:6px;height:6px;transform:translateX(-50%) rotate(45deg);background:none;border-right:1.5px solid;border-bottom:1.5px solid}
.triangle {display:inline-block;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:10px solid currentColor}
.close-icon {width:14px;height:14px;position:relative}
.close-icon::before,.close-icon::after {content:"";position:absolute;inset:6px 0;height:1.5px;background:currentColor;transform:rotate(45deg)}
.close-icon::after {transform:rotate(-45deg)}

.hero {isolation:isolate;position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:var(--background)}
.hero-media {position:absolute;inset:0 0 0 auto;width:79%;height:100%;object-fit:cover;object-position:62% 50%;z-index:-3}
.hero-motion {opacity:0;z-index:-2;pointer-events:none;transition:opacity var(--cut)}
.hero-motion[data-started] {opacity:1}
.hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#10100f 8%,#10100f 21%,#10100fed 33%,#10100f8f 50%,#10100f16 76%),linear-gradient(0deg,#10100f 1%,transparent 36%,transparent 87%,#10100f86 100%)}
.hero-inner {min-height:clamp(610px,71vh,780px);display:grid;align-content:center;position:relative;padding-block:80px 126px}
.hero h1 {display:grid;font-size:clamp(52px,7vw,96px);letter-spacing:-.035em}
.hero h1>span {white-space:nowrap}
.hero h1 em {color:var(--cue);font-style:normal}
.hero-copy {max-width:570px}
.hero-copy>p:not(.version) {max-width:353px;margin-top:20px;color:var(--ink);line-height:1.8}
.hero-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.hero-actions .button {min-height:48px}
.version {margin-top:14px;font:12px/1.65 var(--mono);color:var(--muted)}
.version span {color:var(--accent);padding-inline:4px}
.hero-caption {position:absolute;right:0;bottom:22px;font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px}
.hero-caption span {width:7px;height:7px;border-radius:50%;background:var(--cue)}
.hero-playback {display:grid;place-items:center;width:44px;height:44px;margin-left:4px;border:1px solid var(--line);border-radius:var(--radius);background:var(--background)}
.hero-playback:hover {border-color:var(--ink)}
.hero-playback[data-playing] .triangle {width:11px;height:12px;border:0;border-left:3px solid;border-right:3px solid}

.story {padding-block:clamp(66px,8vw,116px) clamp(64px,7vw,100px)}
.section-header {display:flex;align-items:flex-end;justify-content:space-between;gap:16px 48px;margin-bottom:clamp(25px,4vw,54px)}
.section-header h2,.release h2 {font-size:clamp(36px,5.25vw,76px)}
.section-header p {max-width:320px;color:var(--muted);line-height:1.65}
.story-layout {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(265px,.9fr);gap:clamp(32px,7vw,104px);align-items:start}
.deck {position:sticky;top:clamp(24px,16vh,150px);min-width:0;perspective:1150px;--tilt-x:3deg;--tilt-y:6deg;--playhead:12%;--drift:0px}
.depth-room {position:relative;transform-style:preserve-3d}
.deck-window {position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));overflow:hidden;transform-style:preserve-3d}
.deck-header {display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:41px;padding:7px 13px;color:var(--muted);font-size:13px}
.deck-header strong {color:var(--ink);font-weight:650}
.deck-header span {color:var(--cue)}
.deck-picture {position:relative;aspect-ratio:16/9;background:var(--surface)}
.deck-picture img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity var(--cut)}
.deck[data-scene="0"] [data-frame="0"],.deck[data-scene="1"] [data-frame="1"],.deck[data-scene="2"] [data-frame="2"] {opacity:1}
.depth-mark {position:absolute;right:-43px;bottom:-22px;width:clamp(102px,15vw,212px);height:auto;pointer-events:none;transform:translate3d(var(--drift),-6px,92px) rotateY(var(--tilt-y));}
.deck-timeline {display:flex;min-height:76px;padding:11px 16px;gap:8px}
.track-caption,.tracks {display:grid;grid-template-rows:22px 22px;gap:5px}
.track-caption {align-items:center;color:var(--muted);font:11px var(--mono)}
.tracks {position:relative;flex:1}
.track-video {display:grid;grid-template-columns:26fr 38fr 36fr;gap:4px}
.track-video span {background:#4d392b;border:1px solid #99714e;border-radius:2px;position:relative}
.track-video span::before {content:"";position:absolute;width:6px;height:6px;top:6px;left:50%;background:var(--cue);transform:rotate(45deg)}
.track-audio {border-radius:2px;background:#35332d url("./media/reel-waveform.png") center / calc(100% - 16px) 16px no-repeat}
.timeline-cursor {position:absolute;top:-5px;bottom:-1px;left:0;width:2px;background:var(--cue);transform:translateX(var(--cursor-x,0px))}
.timeline-cursor::before {content:"";position:absolute;top:0;left:-3px;width:8px;height:6px;background:var(--cue);clip-path:polygon(0 0,100% 0,50% 100%)}
.deck figcaption {margin:13px 0 0 1px;color:var(--muted);font-size:12px}
.chapters {list-style:none;padding:0;min-width:0;border-top:1px solid var(--line)}
.chapter {min-height:clamp(190px,27vh,270px);border-bottom:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;padding:12px 0 24px;scroll-margin-block:20px}
.chapter-trigger {display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:14px;text-align:left;min-height:44px;width:100%;border:0;background:transparent;padding:6px 0;font-size:clamp(22px,2.3vw,38px);letter-spacing:-.035em}
.chapter-index {font:650 13px var(--mono);color:var(--muted)}
.chapter-trigger:hover .chapter-index,.chapter-trigger[aria-pressed="true"] .chapter-index {color:var(--cue)}
.chapter-indicator {width:15px;height:1px;background:var(--muted);transition:transform var(--fast)}
.chapter-trigger[aria-pressed="true"] .chapter-indicator {background:var(--cue);transform:scaleX(1.6)}
.chapter p {padding-left:30px;max-width:340px;margin-top:7px;color:var(--muted);font-size:15px;line-height:1.7}

.effects {background:var(--light);color:var(--on-light);padding-block:clamp(60px,8vw,108px)}
.effects .section-header p {color:var(--light-soft)}
.effects :focus-visible {outline-color:#a53222}
.theatre {display:grid;grid-template-columns:minmax(218px,.74fr) minmax(0,1.5fr);gap:clamp(17px,5vw,72px);align-items:start}
.preset-list {display:grid;gap:3px}
.preset {display:flex;align-items:center;gap:12px;width:100%;min-height:70px;text-align:left;padding:10px 11px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--on-light)}
.preset img {width:88px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:3px}
.preset strong,.preset small {display:block}
.preset strong {font-size:15px}
.preset small {color:var(--light-soft);font-size:12px;margin-top:3px}
.preset:hover {background:#dad7cf}
.preset[aria-selected="true"] {background:var(--on-light);color:var(--ink);border-color:var(--on-light)}
.preset[aria-selected="true"] small {color:var(--muted)}
.theatre-view {overflow:hidden;border-radius:var(--radius);background:var(--on-light);color:var(--ink)}
.theatre-picture {position:relative;aspect-ratio:16/9}
.theatre-picture video {width:100%;height:100%;object-fit:cover}
.play-toggle {position:absolute;bottom:12px;left:12px;border:1px solid var(--muted);border-radius:50%;background:var(--background);color:var(--ink);width:47px;height:47px;display:grid;place-items:center}
.play-toggle:hover {color:var(--on-accent);background:var(--accent);border-color:var(--accent)}
.play-toggle[aria-pressed="true"] .triangle {width:12px;height:13px;border:0;border-left:4px solid;border-right:4px solid}
.film-caption {min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 13px;font-size:13px}
.film-caption span {color:var(--muted)}

.release {overflow:hidden;border-bottom:1px solid var(--line)}
.release-inner {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.5fr);align-items:center;gap:12px;padding-block:clamp(54px,7vw,100px)}
.release h2 span {color:var(--cue);white-space:nowrap}
.release p:not(.version) {margin-top:14px;color:var(--muted)}
.release .primary {margin-top:20px}
.release-mark {width:min(100%,350px);aspect-ratio:760/620;justify-self:end;border:0;background:transparent}
.footer {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;color:var(--muted);font-size:13px}

#reel-dialog {width:min(930px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink)}
#reel-dialog::backdrop {background:#000d}
.reel-head,.reel-chapters {display:flex;align-items:center;gap:8px;padding:12px}
.reel-head {justify-content:space-between;padding-inline:15px}
.reel-head h2 {font-size:19px}
.reel-head p {color:var(--muted);font-size:13px;margin-top:4px}
.close-reel {width:44px;padding:0}
#showreel {width:100%;height:auto;max-height:calc(100dvh - 160px);aspect-ratio:16/9;background:var(--background)}
.reel-chapters {flex-wrap:wrap}
.reel-chapters span {font-size:12px;color:var(--muted)}

@media (max-width:900px) {
  .hero-inner {min-height:560px}
  .story-layout {gap:26px;grid-template-columns:minmax(0,1.28fr) minmax(224px,.9fr)}
  .depth-mark {right:-18px;width:clamp(100px,17vw,185px)}
}
@media (max-width:720px) {
  .bar {height:62px}
  nav {display:none}
  .brand {font-size:23px}
  .hero-inner {min-height:0;padding-block:clamp(207px,48vw,310px) 34px}
  .hero-media {width:100%;height:65%;object-position:62% top}
  .hero::before {background:linear-gradient(0deg,var(--background) 28%,#10100fd9 43%,#10100f1a 73%,#10100f05 100%)}
  .hero h1 {font-size:clamp(42px,10vw,67px)}
  .hero-copy>p:not(.version) {margin-top:15px}
  .hero-caption {position:static;margin-top:20px;color:var(--muted);font-size:12px}
  .section-header {display:block}
  .section-header p {margin-top:12px}
  .story-layout {display:block}
  .deck {position:static}
  .deck-window {transform:none}
  .depth-mark {display:none}
  .chapters {margin-top:22px}
  .chapter {min-height:0;padding:8px 0 12px}
  .chapter p {font-size:14px}
  .chapter-trigger {font-size:23px}
  .theatre {display:flex;flex-direction:column-reverse;gap:12px}
  .theatre>div {width:100%}
  .preset-list {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .preset {flex-direction:column;align-items:flex-start;line-height:1.45;gap:6px;padding:6px}
  .preset img {width:100%}
  .preset small {display:none}
  .release-inner {grid-template-columns:minmax(0,1fr) minmax(90px,.35fr)}
}
@media (max-width:390px) {
  .button {padding-inline:10px;gap:7px;font-size:13px}
  .hero h1 {font-size:clamp(35px,11vw,46px)}
  .preset strong {font-size:12px}
  .release h2 {font-size:34px}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  *,*::before,*::after {transition:none!important;animation:none!important}
  .deck-window,.depth-mark {transform:none}
  .depth-mark {opacity:.85}
}
