:root{color-scheme:dark;--canvas:#0c1711;--ivory:#f5efde;--gold:#dcc082;--quiet:#d5d3c1}
body{background:radial-gradient(ellipse 100% 56% at 85% 32%,#203524 0%,#122319 53%,var(--canvas) 100%);color:var(--ivory)}
header{background:#0c1711ee;border-color:#dbc28235}
.hero h1 span,.eyebrow,.beat .label{color:var(--gold)}
.hero .note,.close .note,.beat p{color:var(--quiet)}
.hero::after{inset:-10% 0 0 15%;background:radial-gradient(ellipse at 74% 34%,#a4824052,transparent 60%);transform:translate3d(0,var(--hero-depth,0px),0)}
.cta{background:#e6ca8b;color:#18271b;border-color:#e6ca8b}
.breadth,.story,.close{background:transparent}
.needs div{border-color:#c0a66b66}
.needs strong{color:var(--ivory)}
.storyGrid{grid-template-columns:minmax(260px,.79fr) minmax(0,1.75fr);gap:clamp(12px,3vw,40px)}
.steps{position:relative;z-index:2}
.beat{min-height:85svh}
.beat:last-child{min-height:120svh;align-content:start;padding-top:23svh}
.stage{height:min(77svh,760px);top:84px;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;mask-image:radial-gradient(ellipse farthest-side at 52% 50%,black 69%,transparent 100%)}
.room{background:radial-gradient(ellipse at 45% 45%,#806745 0%,#393a26 44%,#15261b 76%)}
.window{inset:-38% -9% 3% -30%;background:repeating-linear-gradient(113deg,transparent 0 12%,#ffcd7c40 13% 23%,transparent 25% 33%);transform:translate3d(var(--light,0px),var(--lift,0px),0) rotate(-7deg) scale(1.46)}
.floor{background:repeating-linear-gradient(96deg,#594632 0 40px,#493a2a 41px 44px,#624d35 45px 100px)}
.parcel{background:linear-gradient(156deg,#e1b47f,#a16e40 61%,#6f4227);transform:translate3d(0,var(--parcelY,0px),0) scale(var(--zoom,1));transform-origin:52% 66%}
.paper{top:21%;left:16%;right:14%}
.table{background:radial-gradient(ellipse at 37% 30%,#d6aa70,#75523a 79%)}
.phone{transform:translateX(var(--phoneShift,0%)) rotate(19deg)}
.stage .caption{bottom:12%;left:17%}
.close{position:relative}
:focus-visible{outline-color:#efd48d}
html.still .beat,html:not(.animated) .beat{padding:30px 0}
@media(max-width:690px){
  .stage{top:68px;height:41svh;min-height:176px;max-height:350px;width:100%;mask-image:radial-gradient(ellipse farthest-side at 49% 48%,black 82%,transparent 100%)}
  .beat{min-height:69svh;padding:22px 0;align-content:start}
  .beat:last-child{min-height:92svh;padding-top:17svh}
  .paper{top:12%;left:15%;right:15%}
  .stage .caption{bottom:7%;left:15%}
  .steps{z-index:auto}
}
@media(max-width:690px){
  html.animated:not(.still) .storyGrid{--stage-height:clamp(140px,39svh,328px);--stage-top:68px;--reading-top:calc(var(--stage-top) + var(--stage-height) + 12px)}
  html.animated:not(.still) .stage{height:var(--stage-height);min-height:0;top:var(--stage-top)}
  html.animated:not(.still) .beat{display:block;padding:12px 0 24px;scroll-margin-top:var(--reading-top)}
  html.animated:not(.still) .beatCopy{position:sticky;top:var(--reading-top);background:#102018;box-shadow:0 0 18px 12px #102018;border-radius:8px}
  html.animated:not(.still) .beat h2{font-size:clamp(35px,9vw,60px)}
}
@media(max-width:690px){
  html.animated:not(.still) .stage{z-index:3;mask-image:none;background:#102018}
  html.animated:not(.still) .stage .scene{mask-image:radial-gradient(ellipse farthest-side at 49% 48%,black 82%,transparent 100%)}
  html.animated:not(.still) .stage .caption{z-index:2;bottom:10px;left:12px}
  html.animated:not(.still) .stage .phone{right:19%;width:14%}
}
