/* ===================== INTRO ===================== */
.intro{display:none}
html.intro-on .intro{position:fixed;inset:0;z-index:140;display:grid;place-items:center;cursor:pointer;animation:introFail .8s 11s forwards}
html.intro-on .curtain{display:none}
html.intro-on:not(.intro-out) .nav{opacity:0;pointer-events:none}
html.intro-on .prog,html.intro-on .mbar{opacity:0}
@keyframes introFail{to{opacity:0;visibility:hidden}}
.i-bg{position:absolute;inset:0;background:radial-gradient(70% 60% at 50% 46%,#2a1424 0%,#170d16 55%,#0b060a 100%)}
.i-glow{position:absolute;left:50%;top:50%;width:min(110vw,1100px);aspect-ratio:2/1;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(201,164,106,.20),rgba(201,164,106,.06) 55%,transparent);opacity:0;pointer-events:none}
.i-stage{position:relative;width:min(86vw,820px);display:grid;place-items:center}
.i-stage>*{grid-area:1/1}
.i-l{transform:translateY(74px);opacity:0}
.i-cap{position:absolute;left:0;right:0;bottom:calc(38px + env(safe-area-inset-bottom));margin:0;display:flex;justify-content:center;gap:18px;color:var(--on-d3);opacity:0}
.i-msg{color:var(--gold)}
.i-skip{position:absolute;right:var(--pad);top:24px;height:40px;padding:0 16px;border:1px solid var(--line-d);border-radius:999px;font:400 10.5px var(--sans);letter-spacing:.24em;text-transform:uppercase;color:var(--on-d2);transition:border-color .3s,color .3s}
.i-skip:hover{border-color:var(--gold);color:var(--on-d)}

/* hero entrance (after the intro, or straight away on later visits) */
html.js .hero>*{opacity:0;transform:translate3d(0,26px,0);transition:opacity 1.1s var(--ease),transform 1.2s var(--ease);animation:heroFail 0s 8s forwards}
html.js.hero-in .hero>*{opacity:1;transform:none}
html.js .hero>*:nth-child(2){transition-delay:.1s}
html.js .hero>*:nth-child(3){transition-delay:.2s}
html.js .hero>*:nth-child(4){transition-delay:.3s}
html.js .hero>*:nth-child(5){transition-delay:.4s}
@keyframes heroFail{to{opacity:1;transform:none}}
html.no-motion .hero>*{opacity:1!important;transform:none!important;transition:none!important}

/* ===================== dot charts ===================== */
.dots{display:grid;grid-template-columns:repeat(19,minmax(0,1fr));gap:5px;max-width:300px;margin:16px 0 4px}
.dots.quiet{grid-template-columns:repeat(20,minmax(0,1fr))}
.dots i{aspect-ratio:1;border-radius:50%;background:rgba(241,234,226,.13);transition:background .5s,box-shadow .5s,transform .35s var(--ease)}
.dots i.on{background:var(--gold);box-shadow:0 0 8px rgba(201,164,106,.5)}
.dots i.q{background:transparent;box-shadow:inset 0 0 0 1px rgba(241,234,226,.55)}
.dots i:hover{transform:scale(1.7)}

/* ===================== lights on, wide screens: the room is light, so the hero copy turns to ink ===================== */
.hero{transition:color .9s var(--ease)}
html.js .hero>.kicker,html.js .hero>.hint{transition:opacity 1.1s var(--ease),transform 1.2s var(--ease),color .9s var(--ease)}
.ht em{transition:color .9s var(--ease)}
.hl p{transition:opacity .9s var(--ease) .15s,filter 1.2s var(--ease),color .9s var(--ease)}
.hero .tlink{transition:background-size .5s var(--ease),color .9s var(--ease)}
.hero .btn-gold{transition:color .45s var(--ease),background-color .9s var(--ease),transform .5s var(--ease)}
.sw-on,.sw-knob,.sw-fill{transition:transform .7s var(--ease),color .9s,background-color .9s,box-shadow .6s}
.story.flip .hero{color:var(--txt)}
.story.flip .hero .kicker{color:#7d5b29}
.story.flip .ht em{color:var(--p5)}
.story.flip .hero .lede{color:var(--txt2)}
.story.flip .switch{border-color:rgba(42,20,36,.55);background:rgba(245,238,228,.4)}
.story.flip .sw-on{color:var(--p5)}
.story.flip .sw-track::before{background:rgba(42,20,36,.35)}
.story.flip .sw-fill{background:var(--p5);box-shadow:none}
.story.flip .sw-knob{background:var(--p5);box-shadow:0 0 0 6px rgba(85,38,74,.14)}
.story.flip .hero .btn-gold{background:var(--p5);color:var(--on-d)}
.story.flip .hero .btn-gold::before{background:var(--p4)}
.story.flip .hero .tlink{color:var(--txt)}
.story.flip .hint{color:var(--mute)}
.stage-fallback{object-position:68% 28%}
/* a little shade under the nav where the scrim stays (portrait tablets) */
.scrim::after{content:"";position:absolute;inset:0 0 auto;height:130px;background:linear-gradient(180deg,rgba(17,10,16,.5),rgba(17,10,16,0))}

/* wide screens: the hero copy stays on the empty wall to her left */
@media (min-width:761px) and (min-aspect-ratio:20/23){
  .chap{width:min(470px,34vw)}
  .hero{width:min(640px,44vw)}
  .hero .lede{max-width:30em}
}
/* portrait tablets use the phone story layout: photo above, words below */
@media (min-width:761px) and (max-width:1099px) and (max-aspect-ratio:20/23){
  .hero{width:auto;right:var(--pad);bottom:calc(56px + env(safe-area-inset-bottom))}
  .hero .lede{font-size:19px;max-width:34em}
  .chap{bottom:calc(64px + env(safe-area-inset-bottom));max-width:620px}
  .chap p{font-size:17.5px}
  .timer{top:calc(var(--nav-h) + 14px)}
}

/* squarer landscape screens (iPad on its side): a slimmer text column, so words never run onto the phone or laptop screen */
@media (min-width:761px) and (min-aspect-ratio:20/23) and (max-aspect-ratio:16/10){
  .chap{width:min(400px,29vw)}
}

/* the chapter label steps aside while the stranger's bubble is up */
.hud.bub .rail button span{opacity:0!important;transition:opacity .2s}

/* ===================== footer: centred on every device ===================== */
.foot .wrap>a:first-child{display:block;width:min(680px,100%);margin:0 auto clamp(40px,5vw,66px)}
.foot .lock{margin:0 auto}
.foot-top{text-align:center;justify-items:center}
.foot-top>div:first-child .say,.foot-top>div:first-child .fine{margin-left:auto;margin-right:auto}
.foot-top .btn-row{justify-content:center}
.foot ul{justify-items:center}
.foot-bot{justify-content:center;text-align:center}
.prom-sec{padding-bottom:clamp(50px,6vw,90px)}

/* hero links: when the row runs short (iPad landscape), the second link drops below and keeps its label on one line */
.hero-cta{flex-wrap:wrap;row-gap:12px}
.hero-cta .tlink{white-space:nowrap}
