/* World Engine, 2026-11 "simulate the world" layer. Loads after studio.css; studio.css is unchanged so index_prev.html still renders as before. */

/* ---------- hero: engine footage behind the type ---------- */
.hero-sim{background:#000}
.hero-film{position:absolute;inset:0;z-index:0;overflow:hidden;background:#000}
.hero-film video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;opacity:.9}
.hero-film::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.35) 9%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 50%,rgba(0,0,0,.6) 78%,#000 100%),
    linear-gradient(90deg,rgba(0,0,0,.45) 0%,transparent 45%)}
.hero-sim h1{position:relative;z-index:2}
.hero-sim .hero-foot{z-index:4}
.hero-foot .lede{max-width:none;font-size:clamp(17px,1.45vw,22px);color:var(--silver-bright);text-shadow:0 2px 18px rgba(0,0,0,.8)}
.hero-foot .lede strong{display:block;font-weight:900;font-variation-settings:"wdth" 125;text-transform:uppercase;letter-spacing:-.01em;line-height:.95;
  font-size:clamp(30px,3.6vw,58px);margin-bottom:16px;background:linear-gradient(145deg,#fff6cf 0%,#f2ce7c 55%,#e4ba4d 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-note{position:absolute;z-index:4;right:var(--gutter);bottom:14px;margin:0;font-size:12px;color:rgba(219,225,227,.7)}
@media(max-width:720px){
  .hero-sim{justify-content:space-between}
  .hero-sim .hero-foot{margin-top:auto;flex-direction:column;align-items:flex-start;padding-right:0}
  .hero-sim .sticker{position:absolute;right:0;top:-130px}
  .hero-note{left:var(--gutter);right:auto}
}

/* ticker thumbnails are photographs here, so frame them */
.ticker img{border:2px solid var(--ink);aspect-ratio:16/9;object-fit:cover;width:auto}

/* ---------- simulation ---------- */
.sim{padding:16vh var(--gutter) 12vh;position:relative}
.sim-head{max-width:1440px;margin:0 auto 7vh;display:flex;justify-content:space-between;align-items:flex-end;gap:28px 48px;flex-wrap:wrap}
.sim-head .big{margin:0;background:var(--silver-metal);-webkit-background-clip:text;background-clip:text;color:transparent}
.sim-head .big em{font-style:normal;background:var(--gold-metal);-webkit-background-clip:text;background-clip:text;color:transparent}
.sim-head p{max-width:36ch;margin:0;font-size:clamp(16px,1.3vw,19px);line-height:1.4;color:var(--silver-bright)}
.frame{position:relative;background:#0b0c0b;overflow:hidden;border:1px solid rgba(212,175,55,.45)}
.frame video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0b0c0b}
.feature{max-width:1440px;margin:0 auto;position:relative}
.feature .frame{box-shadow:16px 16px 0 var(--gold-deep)}
.feature figcaption{position:absolute;left:clamp(18px,3vw,44px);bottom:clamp(18px,3vw,44px);max-width:min(560px,60%);z-index:2}
.feature .frame::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.25) 45%,transparent 70%)}
.feature h3{font-size:clamp(30px,4.4vw,76px);margin:8px 0 12px;color:var(--text)}
.feature figcaption p{margin:0 0 10px;font-size:clamp(15px,1.2vw,18px);line-height:1.35;color:var(--silver-bright)}
.kick{color:var(--gold-bright)}
.check{color:var(--gold-bright);font-size:14px;letter-spacing:.05em;padding-top:10px;border-top:1px solid rgba(212,175,55,.5);max-width:52ch}
.feature .check{margin-top:14px}
.tiles{max-width:1440px;margin:clamp(40px,8vh,96px) auto 0;display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(36px,6vh,72px) clamp(18px,3vw,44px)}
.tile{margin:0}
.tile:nth-child(even){margin-top:clamp(0px,9vh,110px)}
.tile .frame{transition:border-color .3s}
.tile:hover .frame{border-color:var(--gold-bright)}
.tile figcaption{margin-top:18px}
.tile h3{font-size:clamp(22px,2.4vw,38px);margin:6px 0 12px}
.tile .check{margin:0}
.sim-cta{max-width:1440px;margin:12vh auto 0;display:flex;align-items:center;gap:20px 34px;flex-wrap:wrap}
.sim-cta .label{color:var(--muted);margin:0}
@media(max-width:820px){
  .tiles{grid-template-columns:1fr}
  .tile:nth-child(even){margin-top:0}
  .feature figcaption{position:static;max-width:none;margin-top:22px}
  .feature .frame::after{display:none}
}

/* ---------- numbers ---------- */
.facts{background:var(--gold-metal);color:var(--ink);padding:12vh var(--gutter) 13vh}
.facts h2{max-width:1440px;margin:0 auto 6vh;font-size:15px;color:var(--ink)}
.nums{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(24px,3vw,48px)}
.nums div{border-top:2px solid var(--ink);padding-top:18px}
.nums dt{font-size:clamp(54px,7.4vw,128px);line-height:.9}
.nums dt small{font-size:.38em;margin-left:.08em;letter-spacing:0;text-transform:none}
.nums dd{margin:16px 0 0;font-size:clamp(15px,1.15vw,18px);line-height:1.35;font-weight:500;max-width:28ch}
@media(max-width:900px){.nums{grid-template-columns:repeat(2,1fr);row-gap:7vh}}
@media(max-width:420px){.nums dt{font-size:15vw}}

/* ---------- on the bench ---------- */
.bench{padding:14vh var(--gutter) 14vh}
.bench-head{max-width:1440px;margin:0 auto 6vh;display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.bench-head .label{color:var(--gold);margin:0}
.mid{font-size:clamp(38px,6.2vw,110px);margin:0;background:var(--silver-metal);-webkit-background-clip:text;background-clip:text;color:transparent}
.slots{list-style:none;padding:0;margin:0 auto;max-width:1440px;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,28px)}
.slots a{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;min-height:clamp(220px,30vh,320px);padding:28px;text-decoration:none;
  border:1px solid rgba(154,163,166,.28);background:
    repeating-linear-gradient(135deg,rgba(212,175,55,.06) 0 1px,transparent 1px 14px),#070807;transition:border-color .3s,transform .3s}
.slots a::before,.slots a::after{content:"";position:absolute;width:26px;height:26px;border:2px solid var(--gold);transition:inset .3s}
.slots a::before{top:12px;left:12px;border-right:0;border-bottom:0}
.slots a::after{right:12px;bottom:12px;border-left:0;border-top:0}
.slots a:hover{border-color:rgba(212,175,55,.6);transform:translateY(-4px)}
.slots .label{color:var(--gold-bright);font-size:13px}
.slots b{font-size:clamp(26px,2.6vw,42px);line-height:.9}
.slots i{font-style:normal;color:var(--silver);font-size:15px;line-height:1.4;max-width:30ch}
@media(max-width:820px){.slots{grid-template-columns:1fr}.slots a{min-height:180px}}

/* ---------- games (paper) ---------- */
.games-intro{max-width:1440px;margin:-4vh auto 12vh;display:flex;justify-content:space-between;align-items:flex-end;gap:32px 60px;flex-wrap:wrap}
.games-intro>p{max-width:40ch;margin:0;font-size:clamp(17px,1.4vw,21px);line-height:1.4;font-weight:500}
.mini{display:flex;gap:clamp(24px,4vw,64px);margin:0}
.mini div{border-top:2px solid var(--carbon);padding-top:14px;max-width:22ch}
.mini dt{font-size:clamp(48px,6vw,96px);line-height:.9;color:var(--gold-deep)}
.mini dt small{font-size:.4em;color:var(--carbon)}
.mini dd{margin:12px 0 0;font-size:14px;color:var(--carbon)}
.work .fine{opacity:.75}

/* the film now sits between the games and the research */
.film{padding:14vh var(--gutter) 12vh}

/* footer art: one floating world, one ship */
.e-kitchen{width:clamp(160px,22vw,340px)}

.hero-foot .lede span{display:block;max-width:34ch}
.mini dt small{text-transform:none}
.hero-foot .lede strong{text-shadow:none;filter:drop-shadow(0 2px 14px rgba(0,0,0,.6))}

/* ---------- what it powers ---------- */
.powers{padding:14vh var(--gutter) 16vh;border-top:1px solid rgba(212,175,55,.25)}
.powers-head{max-width:1440px;margin:0 auto 6vh;display:flex;justify-content:space-between;align-items:flex-end;gap:20px 48px;flex-wrap:wrap}
.powers-head p{max-width:38ch;margin:0;font-size:clamp(16px,1.3vw,19px);line-height:1.4;color:var(--silver-bright)}
.uses{list-style:none;margin:0 auto;padding:0;max-width:1440px;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,2vw,28px)}
.uses li{position:relative;overflow:hidden;border:1px solid rgba(154,163,166,.28);aspect-ratio:4/3;background:#070807}
.uses img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;transition:transform .6s cubic-bezier(.2,.7,.2,1),opacity .4s}
.uses li::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.85))}
.uses li:hover img{transform:scale(1.05);opacity:.8}
.uses b{position:absolute;z-index:1;left:18px;right:18px;bottom:16px;font-size:clamp(20px,1.9vw,32px);line-height:.95;color:var(--text)}
@media(max-width:820px){.uses{grid-template-columns:repeat(2,1fr)}.uses b{font-size:clamp(15px,4.3vw,22px);left:12px;right:10px;bottom:12px}}
