/* The homepage in the Night look (docs/548 §4, ST-59). Builds on `night.css` (the tokens and
   the shared `night-*` classes) and never redefines them. Every rule sits under `.nh`, the
   root of the homepage's content and of the Promote section the Events & tickets page shares,
   with two classes so the homepage family's element rules (`body.homepage h2`, `svg`) lose.
   Every picture is rendered finished: a loop runs only under `html.nh-live`, which
   `night-home.js` sets when motion is allowed. */
.nh{color:var(--night-fg);font-family:Archivo,"Helvetica Neue",Arial,sans-serif;font-size:1rem;line-height:1.55}
.nh *,.nh *::before,.nh *::after{box-sizing:border-box}
.nh :is(h1,h2,h3,p,ol,ul,figure,small,em,i,b){margin:0}
.nh :is(ol,ul){padding:0;list-style:none}
.nh :is(i,em){font-style:normal}
.nh .night-h1,.nh .night-h2{font-weight:700}
.nh .night-h3{font-weight:500;line-height:1.3}
.nh .night-band,.nh .nh-hero{overflow:hidden;overflow:clip}
.nh .night-band[id],.nh .nh-close{scroll-margin-top:24px}
.nh .night-wrap{position:relative;z-index:1}
.nh .night-sm b{color:var(--night-fg)}
.nh .night-btn,.nh .night-btn:hover{color:var(--night-ink)}
.nh .night-btn.is-glass,.nh .night-btn.is-glass:hover{color:var(--night-fg)}
.nh .nh-cap{text-align:right;margin-bottom:10px}
.nh .nh-head{display:grid;gap:12px;margin-bottom:28px;max-width:44em}
.nh .nh-split{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:center}
.nh .nh-split>div{min-width:0}
.nh .nh-col{display:grid;gap:14px;align-content:start}
.nh .nh-orb-hero{width:520px;height:420px;right:4%;top:60px}
.nh .nh-orb-how{width:700px;height:260px;left:22%;bottom:-60px}
.nh .nh-orb-classes{width:520px;height:420px;right:4%;top:80px}
.nh .nh-orb-stack{width:900px;height:240px;left:12%;bottom:0}
.nh .nh-orb-design{width:620px;height:300px;left:26%;top:60px}

/* The covers: static drawings, one for a night and one for a class; a second night is the
   same drawing in another hue. */
.nh .nh-cov svg{display:block;width:100%;height:auto;border-radius:12px;font-family:Archivo,system-ui,sans-serif}
.nh .nh-hue-magenta svg{filter:hue-rotate(30deg)}
.nh .nh-hue-pink svg{filter:hue-rotate(66deg) saturate(1.1)}
.nh .nh-hue-wine svg{filter:hue-rotate(74deg) saturate(.8) brightness(.9)}

/* 1 · the first screen */
.nh .nh-hero{position:relative;border-bottom:1px solid var(--night-line)}
.nh .nh-hgrid{display:grid;grid-template-columns:1fr 1.05fr;gap:56px;align-items:center;padding-block:54px 70px}
.nh .nh-hgrid>div{min-width:0}
.nh .nh-hero .night-h1{margin:16px 0 18px}
.nh .nh-lead{font-size:1.125rem;color:var(--night-muted);max-width:34em}
.nh ul.nh-pay.night-pay.payment-methods{max-width:30rem;margin:22px 0}
@media (max-width:26rem){.nh ul.nh-pay.night-pay.payment-methods{max-width:16rem}}
.nh .nh-under{display:grid;gap:6px;margin-top:16px}
.nh .nh-stage{position:relative;padding-bottom:136px}
.nh .nh-tab{position:absolute;left:0;bottom:40px;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
/* The three views share one cell, so the stage is as tall as the tallest and the selector never moves. */
.nh .nh-views{display:grid}
.nh .nh-view{grid-area:1/1;display:grid;min-width:0;visibility:hidden;opacity:0}
.nh #nh-t-night:checked~.nh-views .nh-view--night,.nh #nh-t-shop:checked~.nh-views .nh-view--shop,.nh #nh-t-class:checked~.nh-views .nh-view--class{visibility:visible;opacity:1}
@media (prefers-reduced-motion:no-preference){
  .nh .nh-view{transition:opacity .22s ease,visibility 0s .22s}
  .nh .nh-view .nh-card{transform:scale(.975);transition:transform .22s ease}
  .nh .nh-view .nh-ticket{opacity:0;transform:translateY(14px) rotate(-2deg);transition:opacity .2s ease,transform .2s ease}
  .nh #nh-t-night:checked~.nh-views .nh-view--night,.nh #nh-t-shop:checked~.nh-views .nh-view--shop,.nh #nh-t-class:checked~.nh-views .nh-view--class{transition:opacity .34s ease .08s,visibility 0s}
  .nh #nh-t-night:checked~.nh-views .nh-view--night .nh-card,.nh #nh-t-shop:checked~.nh-views .nh-view--shop .nh-card,.nh #nh-t-class:checked~.nh-views .nh-view--class .nh-card{transform:none;transition:transform .5s cubic-bezier(.2,.9,.25,1.12) .08s}
  .nh #nh-t-night:checked~.nh-views .nh-view--night .nh-ticket,.nh #nh-t-shop:checked~.nh-views .nh-view--shop .nh-ticket,.nh #nh-t-class:checked~.nh-views .nh-view--class .nh-ticket{opacity:1;transform:rotate(3deg);transition:opacity .3s ease .26s,transform .55s cubic-bezier(.2,.9,.25,1.25) .26s}
  .nh .nh-seg label{transition:background-color .25s ease,color .25s ease}
}
.nh .nh-card{border-radius:24px;padding:16px;display:grid;grid-template-columns:44% 1fr;gap:16px}
.nh .nh-card>div{min-width:0}
.nh .nh-card-title{font-size:1.3125rem;font-weight:700;line-height:1.25;margin:8px 0 6px;color:var(--night-fg)}
.nh .nh-ln{font-size:.875rem;border-top:1px solid var(--night-line);padding:7px 0;color:var(--night-muted)}
.nh .nh-ln b{color:var(--night-fg)}
.nh .nh-tk{border-radius:14px;padding:10px;margin-top:8px;font-size:.875rem;background:rgba(6,5,12,.42);box-shadow:inset 0 1px 2px rgba(0,0,0,.6),inset 0 -1px 0 rgba(255,255,255,.08)}
.nh .nh-tk.is-bare{padding:0;background:none;box-shadow:none}
.nh .nh-opt{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--night-fg);border-radius:9px;padding:8px 11px;margin:6px 0}
.nh .nh-opt.is-quiet{border-color:var(--night-line);color:var(--night-muted)}
.nh .nh-go{display:block;text-align:center;font-weight:700;border-radius:9px;padding:10px;margin-top:6px;background:var(--night-hot);color:var(--night-ink)}
.nh .nh-ticket{position:absolute;right:-4px;bottom:2px;width:196px;background:var(--night-fg);color:var(--night-ink);border-radius:14px;padding:13px;font-size:.8125rem;line-height:1.45;transform:rotate(3deg);box-shadow:0 18px 50px rgba(0,0,0,.8)}
.nh .nh-ticket-ok{display:block;font-weight:700;color:#6a1fd0}
.nh .nh-ticket-code{float:right;width:52px;height:52px;margin-left:8px}
.nh .nh-ticket-code svg,.nh .nh-code svg{display:block;width:100%;height:100%}
.nh .nh-ticket-note{color:#55506a}
.nh .nh-seg{position:absolute;left:0;bottom:40px;display:flex;gap:2px;border-radius:99px;padding:4px}
.nh .nh-seg label{display:inline-flex;align-items:center;font:600 .8125rem Archivo,"Helvetica Neue",Arial,sans-serif;color:var(--night-muted);border-radius:99px;min-height:36px;padding:0 14px;cursor:pointer;white-space:nowrap}
.nh #nh-t-night:checked~.nh-seg label[for="nh-t-night"],.nh #nh-t-shop:checked~.nh-seg label[for="nh-t-shop"],.nh #nh-t-class:checked~.nh-seg label[for="nh-t-class"]{background:var(--night-fg);color:var(--night-ink)}
.nh #nh-t-night:focus~.nh-seg label[for="nh-t-night"],.nh #nh-t-shop:focus~.nh-seg label[for="nh-t-shop"],.nh #nh-t-class:focus~.nh-seg label[for="nh-t-class"]{outline:2px solid var(--night-amber);outline-offset:3px}

/* 2 · the two real customers */
.nh .nh-proof-band{padding-block:34px}
.nh .nh-proof{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.nh .nh-proof-card{display:grid;grid-template-columns:104px 1fr;gap:16px;align-items:center;border-radius:18px;padding:14px;color:var(--night-fg);text-decoration:none}
.nh .nh-proof-card img{width:104px;height:76px;border-radius:10px;object-fit:cover;object-position:top}
.nh .nh-proof-card>span{display:grid;gap:2px;min-width:0}
.nh .nh-proof-card:hover .night-h3{text-decoration:underline;text-underline-offset:4px}

/* 3 · a poster becomes a page */
.nh .nh-p2p{display:grid;grid-template-columns:.7fr auto 1fr;gap:18px;align-items:center}
.nh .nh-p2p>div{min-width:0}
.nh .nh-flyer{aspect-ratio:4/5;border-radius:6px;padding:14px;display:grid;align-content:space-between;transform:rotate(-4deg);background:linear-gradient(160deg,#ffb454,#ff4fa3 60%,#6a1fd0);color:#14091f;box-shadow:0 18px 40px rgba(0,0,0,.6)}
.nh .nh-flyer small{font-size:.625rem;letter-spacing:.1em;text-transform:uppercase}
.nh .nh-flyer b{font-family:Unbounded,"Arial Black",Arial,sans-serif;font-size:clamp(1.0625rem,2.2vw,1.625rem);line-height:1}
.nh .nh-flyer span{font-family:var(--night-mono);font-size:.6875rem;display:block}
.nh .nh-flyer em{font-family:Unbounded,"Arial Black",Arial,sans-serif;font-size:1.375rem;justify-self:end}
.nh .nh-arrow{display:grid;gap:6px}
.nh .nh-arrow i{width:7px;height:7px;border-radius:50%;background:var(--night-fg);opacity:.6}
.nh .nh-built{border-radius:20px;padding:14px;display:grid;gap:2px}
.nh .nh-built .nh-card-title{font-size:1.125rem;margin:10px 0 4px}

/* 4 · how it works: each step shows the thing itself */
.nh .nh-three{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.nh .nh-step{border-radius:18px;padding:22px;display:grid;gap:6px;align-content:start}
.nh .nh-n{font-family:var(--night-mono);font-size:.75rem;color:var(--night-amber)}
.nh .nh-vis{height:268px;border-radius:14px;margin-bottom:14px;display:grid;place-items:center;background:rgba(6,5,12,.45);box-shadow:inset 0 1px 2px rgba(0,0,0,.6);overflow:hidden;position:relative}
.nh .nh-sheet,.nh .nh-door{width:min(250px,86%);background:rgba(255,255,255,.07);border-radius:14px;padding:14px;font-size:.84375rem;display:grid;gap:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.nh .nh-row,.nh .nh-drow,.nh .nh-qr-foot{display:flex;justify-content:space-between;gap:10px;align-items:center}
.nh .nh-paid{display:flex;align-items:center;gap:8px;color:var(--night-ok);font-family:var(--night-mono);font-size:.78125rem}
.nh .nh-paid i{width:18px;height:18px;border-radius:50%;background:var(--night-ok);display:inline-block;position:relative}
.nh .nh-paid i::after{content:"";position:absolute;left:6.5px;top:3.5px;width:5px;height:9px;border:solid var(--night-ink);border-width:0 2px 2px 0;transform:rotate(42deg)}
.nh .nh-qr-ticket{width:150px;background:var(--night-fg);color:var(--night-ink);border-radius:14px;padding:12px;display:grid;gap:8px;transform:rotate(-3deg);box-shadow:0 18px 40px rgba(0,0,0,.6),0 0 60px rgba(155,92,255,.35)}
.nh .nh-qr-head b{display:block;font-size:.8125rem;line-height:1.2}
.nh .nh-qr-head span,.nh .nh-qr-foot{font-family:var(--night-mono);font-size:.65625rem;color:#55506a}
.nh .nh-qr-foot{border-top:1.5px dashed #b9b3cc;padding-top:7px}
.nh .nh-code{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;isolation:isolate}
.nh .nh-beam{display:none;position:absolute;left:-4%;right:-4%;height:26%;top:-26%;background:linear-gradient(180deg,rgba(155,92,255,0),rgba(255,79,163,.55) 70%,#ffb454);mix-blend-mode:multiply}
.nh .nh-door-count{font-family:var(--night-mono);font-size:.71875rem;color:var(--night-muted)}
.nh .nh-drow{border-top:1px solid var(--night-line);padding-top:8px;border-radius:4px}
.nh .nh-drow i{font-family:var(--night-mono);font-size:.71875rem;color:var(--night-muted);border-radius:99px;padding:1px 9px}
.nh .nh-drow .is-in{background:rgba(99,224,164,.13);color:var(--night-ok)}
.nh .nh-foot-cap{margin-top:16px}

/* 5 · Promote */
.nh .nh-seq{display:flex;gap:8px;flex-wrap:wrap}
.nh .nh-ptab{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.nh .nh-seq label{display:inline-flex;align-items:center;min-height:44px;font-family:var(--night-mono);font-size:.78125rem;color:var(--night-muted);border:1px solid var(--night-line);border-radius:99px;padding:0 15px;cursor:pointer;transition:border-color .25s ease,color .25s ease,background-color .25s ease}
.nh .nh-seq label:hover{color:var(--night-fg)}
.nh #nh-p-1:checked~.nh-col label[for="nh-p-1"],.nh #nh-p-2:checked~.nh-col label[for="nh-p-2"],.nh #nh-p-3:checked~.nh-col label[for="nh-p-3"]{border-color:var(--night-fg);color:var(--night-fg);background:rgba(255,255,255,.08)}
.nh #nh-p-1:focus-visible~.nh-col label[for="nh-p-1"],.nh #nh-p-2:focus-visible~.nh-col label[for="nh-p-2"],.nh #nh-p-3:focus-visible~.nh-col label[for="nh-p-3"]{outline:2px solid var(--night-amber);outline-offset:3px}
.nh .nh-kit{border-radius:18px;padding:18px;display:grid;gap:6px}
.nh .nh-kit .night-offer{line-height:1.45}
.nh .nh-fill{display:grid;grid-template-columns:.95fr 1fr;gap:26px;align-items:center}
.nh .nh-fill>div{min-width:0}
.nh .nh-evt{border-radius:18px;padding:16px;display:grid;gap:2px}
.nh .nh-frow{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--night-line);padding:9px 8px;margin:0 -8px;border-radius:8px;font-size:.875rem;transition:background .35s,box-shadow .35s}
.nh .nh-frow span{color:var(--night-muted)}
.nh .nh-frow b{text-align:right}
.nh .nh-frow.is-hit{background:rgba(255,255,255,.1);box-shadow:inset 2px 0 0 var(--night-amber)}
.nh .nh-wire{position:absolute;right:-27px;top:50%;width:26px;height:2px;background:linear-gradient(90deg,rgba(255,255,255,.1),var(--night-amber));opacity:0;transition:opacity .3s}
.nh .nh-evt.is-send .nh-wire{opacity:1}
.nh .nh-made{display:grid;gap:10px}
.nh .nh-posts{display:grid}
.nh .nh-post{grid-area:1/1;opacity:0;transition:opacity .45s}
.nh #nh-p-1:checked~div .nh-post--1,.nh #nh-p-2:checked~div .nh-post--2,.nh #nh-p-3:checked~div .nh-post--3{opacity:1}
.nh .nh-count{font-family:var(--night-mono);font-size:.78125rem;color:var(--night-muted)}
.nh .nh-count b{color:var(--night-ok);font-weight:500;font-size:.9375rem}

/* 6 · classes */
.nh .nh-cg{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.nh .nh-cg>div{min-width:0}
/* The class example can be tried: radios choose the option, a checkbox books it. */
.nh .nh-cg{position:relative}
.nh .nh-try label{cursor:pointer}
.nh .nh-try .nh-opt{border-color:var(--night-line);color:var(--night-muted);min-height:44px;align-items:center}
.nh #nh-c-single:checked~.nh-try label[for="nh-c-single"],.nh #nh-c-month:checked~.nh-try label[for="nh-c-month"]{border-color:var(--night-fg);color:var(--night-fg);background:rgba(255,255,255,.06)}
.nh #nh-c-single:focus-visible~.nh-try label[for="nh-c-single"],.nh #nh-c-month:focus-visible~.nh-try label[for="nh-c-month"],.nh #nh-c-book:focus-visible~.nh-try label[for="nh-c-book"]{outline:2px solid var(--night-amber);outline-offset:3px}
.nh .nh-try .nh-go{min-height:46px;display:grid;place-items:center}
.nh .nh-go-month,.nh .nh-go-done,.nh .nh-try-note,.nh .nh-reg .nh-you,.nh .nh-count-after{display:none}
.nh #nh-c-month:checked~.nh-try .nh-go-month{display:inline}
.nh #nh-c-month:checked~.nh-try .nh-go-single{display:none}
.nh #nh-c-book:checked~.nh-try .nh-go-single,.nh #nh-c-book:checked~.nh-try .nh-go-month{display:none}
.nh #nh-c-book:checked~.nh-try .nh-go-done{display:inline-flex;align-items:center;gap:8px}
.nh #nh-c-book:checked~.nh-try .nh-go{background:rgba(99,224,164,.14);color:var(--night-ok);box-shadow:inset 0 0 0 1px rgba(99,224,164,.55)}
.nh .nh-go-done i{width:18px;height:18px;border-radius:50%;background:var(--night-ok);position:relative;flex:none}
.nh .nh-go-done i::after{content:"";position:absolute;left:6.5px;top:3.5px;width:5px;height:9px;border:solid var(--night-ink);border-width:0 2px 2px 0;transform:rotate(42deg)}
.nh #nh-c-book:checked~.nh-try .nh-try-note{display:block;margin-top:8px}
.nh #nh-c-book:checked~div .nh-reg .nh-you{display:flex}
.nh #nh-c-book:checked~div .nh-count-after{display:inline}
.nh .nh-mem .nh-mrow--you{display:none;background:rgba(99,224,164,.1);margin:0 -8px;padding:8px;border-radius:8px;border-top-color:transparent}
.nh #nh-c-month:checked~#nh-c-book:checked~div .nh-mem .nh-mrow--you{display:flex}
.nh .nh-mem .nh-sum-joined{display:none}
.nh #nh-c-month:checked~#nh-c-book:checked~div .nh-mem .nh-sum-joined{display:inline}
.nh #nh-c-month:checked~#nh-c-book:checked~div .nh-mem [data-nh-sum]{display:none}
.nh #nh-c-book:checked~div .nh-count-before{display:none}
.nh .nh-reg .nh-you{background:rgba(99,224,164,.1);margin:0 -8px;padding:7px 8px;border-radius:8px;border-top-color:transparent}
.nh .nh-try .nh-opt,.nh .nh-try .nh-go{transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .25s ease,transform .2s cubic-bezier(.2,.9,.25,1.25),filter .15s ease}
.nh .nh-try .nh-opt:active,.nh .nh-try .nh-go:active{filter:brightness(.88)}
@media (hover:hover){.nh .nh-try .nh-opt:hover{border-color:var(--night-lilac);color:var(--night-fg)}.nh .nh-try .nh-go:hover{box-shadow:0 10px 28px -8px rgba(255,79,163,.7)}.nh #nh-c-book:checked~.nh-try .nh-go:hover{box-shadow:inset 0 0 0 1px rgba(99,224,164,.9)}}
@media (prefers-reduced-motion:no-preference){
  .nh .nh-try .nh-opt:active,.nh .nh-try .nh-go:active{transform:scale(.97)}
  .nh #nh-c-book:checked~.nh-try .nh-go-done i{animation:nh-pop .45s cubic-bezier(.2,.9,.25,1.6)}
  .nh #nh-c-book:checked~div .nh-you{animation:nh-join .7s ease-out}
  .nh #nh-c-month:checked~#nh-c-book:checked~div .nh-mem .nh-mrow--you{animation:nh-join .7s ease-out .15s both}
}
@keyframes nh-pop{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes nh-join{0%{opacity:0;transform:translateY(-8px);box-shadow:0 0 0 0 rgba(99,224,164,.6)}60%{opacity:1;transform:none}100%{box-shadow:0 0 0 12px rgba(99,224,164,0)}}
.nh .nh-cls{border-radius:22px;padding:14px}
.nh .nh-cls-title{margin:12px 0 2px}
.nh .nh-reg div{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--night-line);padding:7px 0;font-size:.875rem}
.nh .nh-reg .night-sm{margin-bottom:8px}
.nh .nh-reg i{color:var(--night-ok);font-family:var(--night-mono);font-size:.78125rem}
.nh .nh-reg i.is-quiet{color:var(--night-muted)}
.nh .nh-mem{border-radius:16px;padding:14px;font-size:.875rem;margin-top:12px}
.nh .nh-mhead,.nh .nh-mrow,.nh .nh-msum{display:flex;justify-content:space-between;align-items:center;gap:10px}
.nh .nh-mhead{padding-bottom:8px}
.nh .nh-day{font-family:var(--night-mono);font-size:.75rem;border:1px solid var(--night-line);border-radius:8px;padding:3px 9px;transition:background .3s,color .3s}
.nh .nh-day.is-flip{background:var(--night-fg);color:var(--night-ink);border-color:var(--night-fg)}
.nh .nh-mrow{border-top:1px solid var(--night-line);padding:8px 0}
.nh .nh-mrow i{font-family:var(--night-mono);font-size:.71875rem;color:var(--night-muted);border-radius:99px;padding:1px 9px;transition:background .3s,color .3s;white-space:nowrap}
.nh .nh-mrow.is-done i{background:rgba(99,224,164,.13);color:var(--night-ok)}
.nh .nh-msum{border-top:1px solid var(--night-line);padding-top:10px;color:var(--night-muted)}
.nh .nh-msum b{color:var(--night-fg);font-size:1.125rem;font-variant-numeric:tabular-nums;text-align:right}

/* 7 · the sum and what comes with it */
.nh .nh-calc{border-radius:22px;padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:34px;margin-bottom:14px}
.nh .nh-calc>div{min-width:0}
.nh .nh-knobs{display:grid;gap:10px;align-content:center}
.nh .nh-knobs label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;color:var(--night-muted);font-size:.875rem}
.nh .nh-knobs output{color:var(--night-fg);font-size:1.125rem;font-weight:700;font-variant-numeric:tabular-nums}
/* The two sliders, drawn: a filled track, a thumb that grows under the pointer and while held. */
.nh .nh-knobs input{-webkit-appearance:none;appearance:none;width:100%;height:32px;margin:0 0 10px;background:transparent;accent-color:var(--night-pink);cursor:grab;--p:.13;touch-action:pan-y}
.nh .nh-knobs #nh-sold{--p:.224}
.nh .nh-knobs input:active{cursor:grabbing}
.nh .nh-knobs input::-webkit-slider-runnable-track{height:8px;border-radius:99px;background:linear-gradient(90deg,var(--night-purple),var(--night-pink)) 0 0/calc(11px + (100% - 22px) * var(--p)) 100% no-repeat,rgba(255,255,255,.14)}
.nh .nh-knobs input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-7px;border:0;border-radius:50%;background:var(--night-fg);box-shadow:0 0 0 0 rgba(255,79,163,0),0 4px 12px rgba(0,0,0,.55);transition:transform .2s cubic-bezier(.2,.9,.25,1.4),box-shadow .2s ease}
.nh .nh-knobs input::-moz-range-track{height:8px;border-radius:99px;background:rgba(255,255,255,.14)}
.nh .nh-knobs input::-moz-range-progress{height:8px;border-radius:99px;background:linear-gradient(90deg,var(--night-purple),var(--night-pink))}
.nh .nh-knobs input::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:var(--night-fg);box-shadow:0 0 0 0 rgba(255,79,163,0),0 4px 12px rgba(0,0,0,.55);transition:transform .2s cubic-bezier(.2,.9,.25,1.4),box-shadow .2s ease}
.nh .nh-knobs input:hover::-webkit-slider-thumb{transform:scale(1.14);box-shadow:0 0 0 7px rgba(255,79,163,.2),0 4px 12px rgba(0,0,0,.55)}
.nh .nh-knobs input:hover::-moz-range-thumb{transform:scale(1.14);box-shadow:0 0 0 7px rgba(255,79,163,.2),0 4px 12px rgba(0,0,0,.55)}
.nh .nh-knobs input:active::-webkit-slider-thumb{transform:scale(1.3);box-shadow:0 0 0 11px rgba(255,79,163,.26),0 6px 16px rgba(0,0,0,.6)}
.nh .nh-knobs input:active::-moz-range-thumb{transform:scale(1.3);box-shadow:0 0 0 11px rgba(255,79,163,.26),0 6px 16px rgba(0,0,0,.6)}
.nh .nh-knobs output{transition:color .2s ease,transform .2s cubic-bezier(.2,.9,.25,1.4);transform-origin:right center}
.nh .nh-knobs output.is-live{color:var(--night-amber);transform:scale(1.12)}
.nh .nh-sums b{font-variant-numeric:tabular-nums}
.nh .nh-sums .is-you b{transition:transform .2s cubic-bezier(.2,.9,.25,1.4);transform-origin:right center;display:inline-block}
.nh .nh-sums.is-live .is-you b{transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){.nh .nh-knobs input::-webkit-slider-thumb,.nh .nh-knobs input::-moz-range-thumb,.nh .nh-knobs output,.nh .nh-sums .is-you b{transition:none}.nh .nh-knobs output.is-live,.nh .nh-sums.is-live .is-you b{transform:none}}
.nh .nh-knobs input:focus-visible{outline:2px solid var(--night-amber);outline-offset:3px;border-radius:6px}
.nh .nh-sums{display:grid;gap:8px}
.nh .nh-bar{display:flex;height:14px;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.08)}
.nh .nh-bar-you{flex:95;background:var(--night-fg)}
.nh .nh-bar-us{flex:5;background:var(--night-hot)}
.nh .nh-srow{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:.9375rem;color:var(--night-muted)}
.nh .nh-srow b{font-variant-numeric:tabular-nums;color:var(--night-fg)}
.nh .nh-srow.is-you b{font-size:1.625rem;font-family:Unbounded,"Arial Black",Arial,sans-serif}
.nh .nh-srow.is-us b{color:var(--night-amber)}
.nh .nh-stack{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.nh .nh-stack li{padding:18px;border-radius:18px;font-weight:600;min-width:0}
.nh .nh-stack small{display:block;font-weight:400;color:var(--night-muted);font-size:.84375rem;margin-top:2px}

/* 8 · the design service: two pages of one event at one size, and a handle between them */
.nh .nh-design{border-radius:26px;padding:32px;display:grid;grid-template-columns:1fr 1.15fr;gap:30px;align-items:center}
.nh .nh-design>div{min-width:0}
.nh .nh-cmp{--pos:50%;position:relative;aspect-ratio:16/11;border-radius:16px;overflow:hidden;container-type:inline-size;box-shadow:0 20px 50px -18px rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.14);touch-action:pan-y}
.nh .nh-pg{position:absolute;inset:0;padding:4.5cqw;display:grid;align-content:start;gap:3cqw;font-size:2.9cqw;line-height:1.3;overflow:hidden}
.nh .nh-pbar{display:flex;justify-content:space-between;align-items:center;position:relative}
.nh .nh-plain{background:#f3f2ee;color:#191822;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.nh .nh-plain .nh-pbar{background:#fff;margin:-4.5cqw -4.5cqw 0;padding:2.6cqw 4.5cqw;border-bottom:1px solid #dcdad3}
.nh .nh-plain .nh-pbar b{display:flex;align-items:center;gap:1.6cqw}
.nh .nh-plain .nh-pbar i{font-size:2cqw;width:5cqw;height:5cqw;border-radius:50%;background:#9e1f55;color:#fff;display:grid;place-items:center}
.nh .nh-plain .nh-pbar span,.nh .nh-plain p,.nh .nh-plain small,.nh .nh-plain em{color:#5b5966}
.nh .nh-plain small{font-size:2cqw;letter-spacing:.1em}
.nh .nh-plead{display:grid;grid-template-columns:38% 1fr;gap:4cqw;align-items:center}
.nh .nh-plead>div{min-width:0}
.nh .nh-plead svg{border-radius:1.6cqw}
.nh .nh-plain .nh-ptitle{margin:.6cqw 0;font-size:5.2cqw;font-weight:700;line-height:1.1;color:#191822}
.nh .nh-plain p{margin:0 0 2cqw}
.nh .nh-pcta{display:inline-block;background:#9e1f55;color:#fff;font-weight:700;border-radius:1.2cqw;padding:1.4cqw 3cqw}
.nh .nh-prows div{display:flex;gap:3cqw;align-items:center;border-top:1px solid #dcdad3;padding:1.8cqw 0}
.nh .nh-prows b{font-size:2.2cqw;border:1px solid #dcdad3;background:#fff;border-radius:1cqw;padding:.6cqw 1.4cqw}
.nh .nh-prows span{flex:1;font-weight:600}
.nh .nh-made-for{background:#0e3b3c;color:#fdf3d7;font-family:Unbounded,"Arial Black",Arial,sans-serif}
.nh .nh-burst{position:absolute;right:-13cqw;top:-17cqw;width:44cqw;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(#ffcf3a 0 9deg,#ff7a3d 9deg 18deg);opacity:.95}
.nh .nh-burst::after{content:"";position:absolute;inset:27%;border-radius:50%;background:#0e3b3c}
.nh .nh-made-for .nh-pbar b{font-size:3cqw;line-height:1;letter-spacing:.02em}
.nh .nh-made-for .nh-pbar span{font-family:var(--night-mono);font-size:1.9cqw;background:#0e3b3c;padding:.6cqw 1.4cqw;border-radius:99px;border:1px solid rgba(253,243,215,.4)}
.nh .nh-big{font-size:11.5cqw;line-height:.86;letter-spacing:-.04em;color:#ffcf3a;transform:rotate(-4deg);transform-origin:left;margin:3cqw 0 1cqw;position:relative;text-shadow:.5cqw .5cqw 0 #c8352b}
.nh .nh-strip{display:flex;gap:1.4cqw;flex-wrap:wrap;position:relative}
.nh .nh-strip span{font-family:var(--night-mono);font-size:2.3cqw;background:#fdf3d7;color:#0e3b3c;padding:.7cqw 1.8cqw;border-radius:.6cqw}
.nh .nh-mcta{justify-self:start;background:#c8352b;color:#fdf3d7;font-size:3.1cqw;padding:1.6cqw 3.4cqw;border-radius:99px;box-shadow:.5cqw .5cqw 0 #ffcf3a;position:relative}
.nh .nh-next{display:flex;gap:2.4cqw;font-family:var(--night-mono);font-size:2cqw;opacity:.85;border-top:1px dashed rgba(253,243,215,.4);padding-top:1.8cqw;position:relative}
.nh .nh-tag{position:absolute;bottom:10px;font-family:var(--night-mono);font-size:.71875rem;padding:4px 10px;border-radius:99px;background:rgba(10,9,16,.86);color:var(--night-fg);pointer-events:none}
.nh .nh-tag.is-left{left:10px}
.nh .nh-tag.is-right{right:10px}
.nh .nh-knob{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:var(--night-fg);box-shadow:0 0 0 1px rgba(10,9,16,.35);pointer-events:none}
.nh .nh-knob::after{content:"‹ ›";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:var(--night-fg);color:var(--night-ink);display:grid;place-items:center;font:700 .9375rem Archivo,Arial,sans-serif;letter-spacing:2px;box-shadow:0 6px 20px rgba(0,0,0,.6)}
.nh .nh-cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.nh .nh-cmp-range:focus-visible{outline:none}
.nh .nh-cmp:has(.nh-cmp-range:focus-visible){outline:2px solid var(--night-amber);outline-offset:3px}
.nh .nh-cmp-cap{margin-top:10px}

/* 9 · the close. Still: the words, with the base page's skyline under them. Live: one canvas
   of moving dots behind the words, and the base's two still pictures step aside. */
.nh .nh-close{position:relative;padding:64px 20px 28px}
.nh .nh-over{display:grid;justify-items:center;gap:22px;text-align:center;position:relative;z-index:1}
.nh .nh-close-title{font-size:clamp(1.75rem,4.6vw,3.375rem);max-width:16em}
.nh .nh-close-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
body.night-home .night-close{border-top:0}
.nh .nh-close.is-live{padding:0;height:600px}
.nh .nh-close.is-live .nh-over{position:absolute;inset:0;align-content:start;padding:64px 20px 0;pointer-events:none}
.nh .nh-close.is-live .nh-over>*{pointer-events:auto}
canvas.nh-field{display:block;pointer-events:none}
/* The canvases are made by night-home.js (`'nh-field nh-field--' + kind`), so no template
   names these classes. Their box must be fixed here: the script sizes the bitmap from the
   box times the pixel ratio, and an unsized canvas grows with every resize until the page
   is 16,777,216 px tall (2026-11-21). tests/test_night_home_canvas.py guards them. */
canvas.nh-field--sky{position:absolute;inset:0 0 auto 0;width:100%;z-index:0}
.nh canvas.nh-field--close{width:100%;height:600px}
/* Folded away, not `display:none`: a browser that has begun fetching the still skyline would cancel it. */
html.nh-sky-live .night-sky{display:none}
html.nh-close-live .night-close{height:0;border:0;visibility:hidden}

@media (max-width:860px){
  .nh .nh-hgrid,.nh .nh-split,.nh .nh-design,.nh .nh-proof,.nh .nh-cg,.nh .nh-fill,.nh .nh-calc{grid-template-columns:1fr;gap:28px}
  .nh .nh-proof{gap:14px}
  .nh .nh-hgrid{padding-block:28px 40px}
  .nh .nh-three{grid-template-columns:1fr}
  .nh .nh-stack{grid-template-columns:1fr 1fr}
  .nh .nh-card{grid-template-columns:1fr}
  .nh .nh-stage{padding-bottom:210px}
  .nh .nh-ticket{right:6px;bottom:74px}
  .nh .nh-seg,.nh .nh-tab{bottom:4px}
  .nh .nh-seg label{min-height:44px;padding:0 12px}
  .nh .nh-wire{display:none}
  .nh .nh-p2p{grid-template-columns:.8fr auto 1fr;gap:10px}
  .nh .nh-design{padding:20px}
  .nh .nh-knobs input{height:44px;margin-bottom:0}
  .nh .nh-cap{text-align:left}
  .nh .nh-close{padding-top:40px}
  .nh .nh-close.is-live,.nh canvas.nh-field--close{height:560px}
  .nh .nh-close.is-live .nh-over{padding-top:40px}
}
@media (max-width:420px){
  .nh .nh-stack li{padding:14px}
  .nh .nh-proof-card{grid-template-columns:84px 1fr}
  .nh .nh-proof-card img{width:84px;height:64px}
}

/* The loops. Each rests in the state the server rendered when the script is off or motion is
   reduced: nothing below applies without `html.nh-live`. */
@media (prefers-reduced-motion:no-preference){
  html.nh-live .nh .nh-built>*{animation:nh-build 7s infinite both}
  html.nh-live .nh .nh-built .nh-b1{animation-delay:.2s}
  html.nh-live .nh .nh-built .nh-b2{animation-delay:.9s}
  html.nh-live .nh .nh-built .nh-b3{animation-delay:1.5s}
  html.nh-live .nh .nh-built .nh-b4{animation-delay:2.1s}
  html.nh-live .nh .nh-built .nh-b5{animation-delay:2.7s}
  html.nh-live .nh .nh-arrow i{opacity:.15;animation:nh-dot 1.5s infinite}
  html.nh-live .nh .nh-arrow i:nth-child(2){animation-delay:.2s}
  html.nh-live .nh .nh-arrow i:nth-child(3){animation-delay:.4s}
  html.nh-live .nh .nh-beam{display:block;animation:nh-scan 2.8s cubic-bezier(.5,0,.5,1) infinite}
  html.nh-live .nh .nh-scan{animation:nh-hit 2.8s ease-out infinite}
}
@keyframes nh-build{0%{opacity:0;transform:translateY(8px)}7%,88%{opacity:1;transform:none}96%,100%{opacity:0;transform:none}}
@keyframes nh-dot{0%,100%{opacity:.15}40%{opacity:1}}
@keyframes nh-scan{0%{transform:translateY(0)}55%,100%{transform:translateY(500%)}}
@keyframes nh-hit{0%,52%{background:transparent;box-shadow:none}60%{background:rgba(99,224,164,.18);box-shadow:0 0 0 6px rgba(99,224,164,.18)}100%{background:transparent;box-shadow:0 0 0 6px transparent}}
@media (prefers-reduced-motion:reduce){.nh *,.nh *::before,.nh *::after{animation:none!important;transition:none!important}}
