/* Benjiverse home: the scroll tour (chapters), the finale, the worlds dialog, and the flat state rules. */

.ch{--lm:#5eead4;--ch-h:240svh;position:relative;height:240vh;height:var(--ch-h);scroll-margin-top:calc((var(--ch-h) - 100svh) / -2)}
.ch[data-landmark="benjiroute"]{--lm:#60a5fa}
.ch[data-landmark="benjihealth"]{--lm:#7ee08a}
.ch[data-landmark="benjisnap"]{--lm:#e070c8}
.ch[data-landmark="benjigarage"]{--lm:#facc15}
.ch[data-landmark="benjiverse"]{--lm:#5eead4}
.ch-in{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;isolation:isolate;overflow:clip}
html:not(.city-ready) .ch-in{background:radial-gradient(48% 56% at 78% 46%,color-mix(in srgb,var(--lm) 22%,transparent),transparent 72%)}
.ch-still{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:70% 50%;display:none}
html.flat .ch-still[src]{display:block}
.ch-in>.wrap{display:block}
.ch-col{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem;max-width:30rem;text-shadow:0 0 2px rgba(3,8,24,.9),0 0 12px rgba(3,8,24,.85),0 0 30px rgba(3,8,24,.7)}
.ch-k{display:flex;align-items:center;gap:.65rem;color:var(--lm);color:color-mix(in srgb,var(--lm) 55%,#fff)}
.ch-k::before{content:"";width:1.75rem;height:1px;background:currentColor;opacity:.8}
.ch-h{text-wrap:balance;display:flex;flex-direction:column;gap:.45rem}
.ch-h .ln1{display:block;font-size:clamp(2.2rem,5.4vw,3.6rem);font-weight:500;line-height:1;letter-spacing:-.04em;color:var(--ink)}
.ch-h .ln2{display:block;font-size:clamp(1.1rem,2.2vw,1.4rem);font-weight:500;line-height:1.15;letter-spacing:-.02em;color:var(--lm);color:color-mix(in srgb,var(--lm) 75%,#fff)}
.ch-p{max-width:26rem;color:#f1f5fc;font-size:clamp(.98rem,1.5vw,1.08rem);line-height:1.5}
.ch-act{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin-top:.35rem}
.ch-act .badge{align-self:center}
@media (max-width:40rem){
  .ch-in{align-items:flex-end}
  .ch-in>.wrap{padding-bottom:max(1.75rem,calc(env(safe-area-inset-bottom) + 1rem))}
  .ch-col{gap:.7rem}
  .ch-h .ln1{font-size:clamp(1.9rem,8.6vw,2.6rem)}
  .ch-p{font-size:.95rem;line-height:1.45}
}

html.city-ready .ch{height:calc(var(--ch-h) + 200svh);margin:-100svh 0 -200svh;pointer-events:none;scroll-margin-top:calc(-100svh - (var(--ch-h) - 100svh) / 2)}
html.city-ready .ch[data-landmark="benjiverse"]{margin-bottom:-100svh}
html.city-ready .ch-in{align-items:flex-end;pointer-events:none;overflow:visible}
html.city-ready .ch-in>.wrap{padding-bottom:clamp(2.25rem,8.5svh,5.5rem)}
html.city-ready .ch-col{max-width:24rem;gap:.6rem}
html.city-ready .ch-h .ln1{font-size:clamp(1.9rem,3.1vw,2.75rem)}
html.city-ready .ch-h .ln2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html.city-ready .ch-p{font-size:.97rem;max-width:22rem}
html.city-ready .ch .btn{min-height:2.75rem;padding:.65rem 1.25rem;font-size:.93rem}
html.city-ready .ch .btn-enter{min-height:2.9rem;padding:.7rem 1.4rem}
html.city-ready .rs{
  --a:clamp(0,var(--in,0) * 1.6 - var(--i,0) * .15,1);--b:clamp(0,var(--out,0) * 1.6 - var(--i,0) * .15,1);
  opacity:calc(var(--a) * (1 - var(--b)));translate:0 calc((1 - var(--a)) * 1.15rem - var(--b) * .85rem)}
html.city-ready .ch.on .ch-act,html.city-ready .ch:focus-within .ch-act{pointer-events:auto}
html.city-ready .ch:focus-within{--in:1!important;--out:0!important}
html.city-calm .rs,html.city-calm .ch.vis .rs{translate:none;filter:none}
@media (max-width:40rem){
  html.city-ready .ch-in>.wrap{padding-bottom:max(1.5rem,calc(env(safe-area-inset-bottom) + .9rem))}
  html.city-ready .ch-col{gap:.5rem}
  html.city-ready .ch-h .ln1{font-size:clamp(1.7rem,7.6vw,2.2rem)}
  html.city-ready .ch-p{font-size:.92rem}
}
@media (max-height:34rem) and (min-width:40.01rem){.ch-p{display:none}.ch-col{gap:.6rem}}

.finale{position:relative;padding-block:clamp(5rem,12vw,9rem) clamp(3rem,6vw,5rem);text-shadow:0 0 22px rgba(3,8,24,.9),0 1px 3px rgba(3,8,24,.9)}
.finale .ch-k{color:var(--accent-soft);margin-bottom:1rem}
.fin-h{text-wrap:balance;font-size:clamp(1.9rem,4.4vw,3rem);font-weight:500;line-height:1.05;letter-spacing:-.035em;max-width:18ch}
.fin-p{margin-top:1rem;max-width:32rem;color:#e3eaf7;font-size:clamp(.98rem,1.5vw,1.1rem)}
.fin-act{margin-top:1.5rem}
.fin-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.75rem;margin-top:clamp(2rem,5vw,3rem);text-shadow:none}
.fin-list li{display:flex}
.fin-item{touch-action:manipulation;position:relative;display:flex;flex-direction:column;gap:.35rem;width:100%;min-height:2.75rem;padding:1.05rem 1.15rem;border-radius:1rem;border:1px solid rgba(94,234,212,.18);background:rgba(7,15,38,.62);text-decoration:none;transition:border-color .3s var(--ease),background-color .3s var(--ease)}
@media (hover:hover){a.fin-item:hover{border-color:rgba(94,234,212,.6);background:rgba(13,28,62,.75)}}
.fin-item h3{font-size:1.15rem;font-weight:500;letter-spacing:-.02em}
.fin-item p{color:#cdd8ee;font-size:.93rem;line-height:1.45}
.fin-item .badge{margin-top:.25rem;font-size:.7rem}
.fin-off{border-style:dashed;border-color:rgba(159,178,212,.28)}


.wd-open svg{width:1.2rem;height:1.2rem}
html.wd-lock{overflow:hidden;scrollbar-gutter:stable}
.wd{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:max(1rem,env(safe-area-inset-top)) var(--gutter) max(1rem,env(safe-area-inset-bottom));
  border:0;background:transparent;color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.wd[open]{display:grid;place-items:center}
.wd::backdrop{background:rgba(3,8,24,.74)}
.wd-panel{position:relative;isolation:isolate;display:flex;flex-direction:column;width:min(46rem,100%);max-height:min(46rem,calc(100svh - 2rem));overflow:hidden;
  border-radius:1.25rem;border:1px solid rgba(94,234,212,.45);background:linear-gradient(165deg,#102655 0%,#0b1a42 48%,#081433 100%);
  box-shadow:0 30px 90px -30px rgba(0,0,0,.9),0 0 0 1px rgba(94,234,212,.08) inset,0 0 60px -20px rgba(94,234,212,.35)}
.wd-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background:repeating-linear-gradient(180deg,rgba(94,234,212,.05) 0 1px,transparent 1px 4px),radial-gradient(circle at center,rgba(3,8,24,.35) 0 .8px,transparent 1.3px) 0 0/4px 4px}
.wd-scan{position:absolute;left:0;right:0;top:0;height:3.5rem;z-index:3;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(94,234,212,0),rgba(94,234,212,.22) 80%,rgba(223,252,246,.75))}
.wd-head{position:relative;padding:1.5rem 4rem 1rem 1.5rem;border-bottom:1px solid rgba(94,234,212,.22)}
.wd-k{color:var(--accent-soft);display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem}
.wd-k::before{content:"";width:1.75rem;height:1px;background:var(--accent-soft)}
.wd-head h2{font-size:clamp(1.6rem,3.4vw,2.2rem);letter-spacing:-.035em}
.wd-x{position:absolute;top:.75rem;right:.75rem;width:2.75rem;height:2.75rem;padding:0;display:grid;place-items:center;border-radius:50%;cursor:pointer;
  border:1px solid rgba(94,234,212,.45);background:rgba(7,15,38,.6);color:var(--ink);transition:background-color .2s,border-color .2s}
@media (hover:hover){.wd-x:hover{background:#1b2f5a;border-color:var(--accent-soft)}}
.wd-x svg{width:1.15rem;height:1.15rem}
.wd-list{overflow-y:auto;overscroll-behavior:contain;padding:.5rem .75rem .9rem}
.wd-item{display:grid;grid-template-columns:3.25rem minmax(0,1fr) auto;align-items:center;gap:.4rem 1rem;padding:.85rem .75rem;border-radius:.85rem;transition:background-color .2s}
.wd-item+.wd-item{border-top:1px solid rgba(159,178,212,.12)}
@media (hover:hover){.wd-item:hover{background:rgba(94,234,212,.06)}}
.wd-ico{width:3.25rem;height:3.25rem;border-radius:22%;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 10px 24px -10px rgba(0,0,0,.7)}
.wd-ico img{width:100%;height:100%;object-fit:cover}
.wd-uni .wd-ico{border-radius:50%;background:radial-gradient(circle at 50% 45%,#16306a 0,#0b1a3d 72%);box-shadow:0 0 0 1px rgba(94,234,212,.5),0 0 18px -4px rgba(94,234,212,.5)}
.wd-uni .wd-ico img{mix-blend-mode:screen;object-position:50% 20%;scale:1.25}
.wd-txt{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem}
.wd-txt h3{font-size:1.15rem;letter-spacing:-.03em}
.wd-txt .badge{font-size:.7rem;padding:.2rem .5rem}
.wd-txt p{flex-basis:100%;color:#c3d0ea;font-size:.92rem;line-height:1.45}
.wd-go{touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.75rem;min-width:6.5rem;padding:.5rem 1.1rem;border-radius:999px;cursor:pointer;
  border:1px solid rgba(94,234,212,.5);background:rgba(7,15,38,.55);color:var(--accent-soft);font:500 .95rem/1 "Poppins",sans-serif;text-decoration:none;white-space:nowrap;
  transition:background-color .2s,border-color .2s,color .2s}
@media (hover:hover){.wd-go:hover{background:rgba(27,47,90,.9);border-color:var(--accent-soft)}}
.wd-uni .wd-go{background:var(--accent-gradient);border-color:transparent;color:#06202b}
@media (hover:hover){.wd-uni .wd-go:hover{background:var(--accent-gradient);box-shadow:0 8px 26px -8px rgba(94,234,212,.6)}}
@media (hover:hover){.wd-go:hover .arrow{transform:translateY(3px)}}
.wd-off .wd-ico img{filter:grayscale(.55) brightness(.8)}
@media (max-width:40rem){
  .wd{padding:0}
  .wd[open]{place-items:end stretch}
  .wd-panel{width:100%;max-height:88svh;border-radius:1.25rem 1.25rem 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
  .wd-head{padding:1.25rem 4rem .9rem 1.25rem}
  .wd-item{grid-template-columns:3rem minmax(0,1fr);padding:.85rem .5rem}
  .wd-ico{width:3rem;height:3rem}
  .wd-go{grid-column:2;justify-self:start}
}
@media (prefers-reduced-motion:reduce){.wd-panel,.wd-item{animation:none!important;transition:none!important}}
/* the stills tool (?still=<id>): nothing of the DOM over the canvas */
html.city-still header.top,html.city-still main,html.city-still .site-foot,html.city-still .skip{display:none!important}

/* the city owns no scrolling: native wheel/trackpad/momentum only (the tour's own jumps pass behavior explicitly) */
html.city-ready{scroll-behavior:auto}

/* seasonal: the Christmas calendar link in the hero (removed again in January) */
.btn-festive{border:1px solid rgba(255,233,196,.55);background:rgba(7,15,38,.6);color:#ffe9c4;box-shadow:0 8px 30px -12px rgba(255,233,196,.35)}
@media (hover:hover){.btn-festive:hover{background:rgba(27,47,90,.9);border-color:#ffe9c4}}
