/* =====================================================================
   Côte de Nuits · intro   (welcome = Porten · names = Gæstebog · prolog = Skråningen + Klassificering)
   Owner: U2 — prefix "in-". Lanterne tokens and components from css/base.css; stage px (1180×820).
   The world behind is the picture: text straight on it carries var(--halo) and sits on a soft shade; light is
   drawn, never text-coloured (Monogram, FEEDBACK-30-10 §22: a numeral always means a glass; only the lamp bead on a
   ring and the world's lanterns glow). Only transform/opacity animate; the few filters here sit on elements that never animate.
   Entrances are transitions (stills show their end state); keyframes only for lamps lighting and loops.
   C14 GATE (FEEDBACK-30-10 §60): .in-g-leaves … .in-opening are only used with ?film=1 (the gate's closed leaves).
   ===================================================================== */

/* words that rise on the world (js words()): no clipping box, so the halo stays round */
.in-rv{display:inline-block;opacity:0;transform:translateY(.3em);
  transition:opacity 1s var(--ease-out) var(--d,0ms),transform 1.3s var(--ease-out) var(--d,0ms)}
.is-shown .in-rv{opacity:1;transform:none}
/* a soft dusk under the words on the world (never a panel: the world still shows through) */
.in-shade{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.4s var(--ease-out)}

/* ================================================================ WELCOME — Porten */
.scr-welcome{--out:0}
/* the gate group: the dusk until the world is there, the arch's shade, the painted wall, its lanterns, fireflies */
.in-gate{position:absolute;inset:0;pointer-events:none}
.in-gate-s{position:absolute;inset:0;transform-origin:var(--g-ox,590px) var(--g-oy,233px);will-change:transform}
/* before the world's first frame: the same evening painted in a few strokes (js duskArt: the sun in the crown,
   the ridge, the land); the wall covers everything outside the opening. Crossfades out when the world is live. */
.in-g-dusk{position:absolute;inset:0;transition:opacity 1.8s var(--ease-in-out)}
.in-g-art{position:absolute;left:0;top:0;width:1180px;height:820px;display:block}
/* the dusk as a late fallback (no painting by the opening's cap): it comes out of the dark like the painting would */
.in-g-art.is-late{opacity:0;transition:opacity .9s var(--ease-out)}
.in-g-art.is-late.is-in{opacity:1}
.in-gate.is-world .in-g-dusk{opacity:0}
/* the gate's painting (img/plates/gate.jpg, FEEDBACK-30-10 §38g) in place of the dusk (.is-painted): the same frame
   the world holds at the welcome, so it gives way to the world's own plate without a visible change. It is there at
   once when known at mount; one found later fades in over the dusk (before the wall comes) */
.in-g-paint{position:absolute;left:0;top:0;width:1180px;height:820px;display:block;opacity:0;transition:opacity .9s var(--ease-out)}
.in-g-paint.is-in{opacity:1}
/* Begynd before the world held the painting: the arch's picture goes with the push-in, as the plate does (1.1 s) */
.in-gate.is-porten .in-g-dusk{transition-duration:1.1s}
/* the opening's own shape (gate.json): a rectangle under a half-ellipse, 14 px larger all round (the painted
   opening is a little wider than its measure, and the wall covers the rest). Inside it: a soft dark rim (the arch's
   depth) and the land darkening toward the threshold, where the words stand; the crown and its sun stay clear. */
.in-g-shade{position:absolute;left:calc(var(--g-left,319.5px) - 14px);top:calc(var(--g-top,96px) - 14px);width:calc(var(--g-w,540.5px) + 28px);
  height:calc(var(--g-bottom,751px) - var(--g-top,96px) + 32px);
  border-radius:calc(var(--g-r,270px) + 14px) calc(var(--g-r,270px) + 14px) 0 0/calc(var(--g-rise,274px) + 14px) calc(var(--g-rise,274px) + 14px) 0 0;
  background:
    radial-gradient(62% 30% at 50% 70%,rgba(12,5,8,.30),rgba(12,5,8,0) 72%),
    linear-gradient(180deg,rgba(14,6,10,.18) 0%,rgba(14,6,10,0) 16%,rgba(12,5,8,0) 40%,rgba(12,5,8,.28) 52%,rgba(12,5,8,.46) 68%,
      rgba(10,4,6,.62) 86%,rgba(10,4,6,.74) 100%)}
.in-g-rim{position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 46px 22px rgba(12,5,8,.46),inset 0 0 130px 40px rgba(12,5,8,.16)}
/* the shade comes with the arch's picture (.is-view), never before it as an empty dark hole */
.in-g-shade{opacity:0;transition:opacity .9s var(--ease-out)}
.in-gate.is-view .in-g-shade{opacity:1}
/* the picture is only ever seen through the opening (js viewMask, 14 px larger): the wall comes out of the dark */
.in-g-dusk{-webkit-mask-size:1180px 820px;mask-size:1180px 820px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.in-g-wall{position:absolute;inset:0;opacity:0;transition:opacity 1.6s var(--ease-out)}
.in-gate.is-wall .in-g-wall{opacity:1}
.in-g-img{position:absolute;left:0;top:0;width:1180px;height:820px;display:block;-webkit-mask-size:1180px 820px;mask-size:1180px 820px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
/* no painting at all: a warm stone wall, the arch cut out by the same mask as the jpg (set in JS) */
.in-gate.is-stone .in-g-wall{
  background:radial-gradient(26% 32% at 9% 37%,rgba(255,176,96,.40),transparent 70%),radial-gradient(26% 32% at 91% 37%,rgba(255,176,96,.38),transparent 70%),
    repeating-linear-gradient(0deg,rgba(40,22,14,.5) 0 1px,transparent 1px 46px),
    linear-gradient(180deg,#6a4a34,#4a3020 60%,#2a1810);
  -webkit-mask-size:1180px 820px;mask-size:1180px 820px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
/* the wall lanterns: the painted flames get a living glow (opacity/scale only) */
.in-g-lamp{position:absolute;width:0;height:0;opacity:0;transition:opacity 1.2s var(--ease-lamp)}
.in-gate.is-lamps .in-g-lamp{opacity:1}
.in-g-lamp i{position:absolute;border-radius:50%;pointer-events:none}
.in-g-wash{left:-260px;top:-230px;width:520px;height:520px;background:radial-gradient(closest-side,rgba(255,170,90,.20),rgba(255,150,80,.07) 55%,rgba(255,150,80,0));
  animation:in-wash 5.3s ease-in-out infinite}
.in-g-halo{left:-64px;top:-64px;width:128px;height:128px;background:radial-gradient(closest-side,rgba(255,226,170,.55),rgba(255,184,104,.20) 45%,rgba(255,170,90,0));
  animation:in-flame 2.9s ease-in-out infinite}
.in-g-core{left:-9px;top:-13px;width:18px;height:26px;border-radius:50% 50% 50% 50%/62% 62% 38% 38%;
  background:radial-gradient(circle at 50% 70%,rgba(255,250,236,.9),rgba(255,214,150,.35) 55%,rgba(255,190,120,0) 75%);animation:op-flicker 2.7s ease-in-out infinite}
.in-g-lamp.is-r .in-g-wash{animation-delay:-2.1s}.in-g-lamp.is-r .in-g-halo{animation-delay:-1.3s}.in-g-lamp.is-r .in-g-core{animation-delay:-.9s}
@keyframes in-flame{0%,100%{opacity:1;transform:scale(1)}23%{opacity:.86;transform:scale(.97)}41%{opacity:.97;transform:scale(1.02)}67%{opacity:.82;transform:scale(.96)}84%{opacity:.95;transform:scale(1.01)}}
@keyframes in-wash{0%,100%{opacity:1}50%{opacity:.8}}
.in-g-flies{position:absolute;left:0;top:0;width:1180px;height:820px;opacity:0;transition:opacity 2.4s var(--ease-out) .8s}
.in-gate.is-lamps .in-g-flies{opacity:1}
/* at rest the shade and the lamps' washes and haloes are canvases (js bakeGlow, the same gradients and shadows as
   above: keep the two in step): their own painting goes and the canvas carries it, so Porten's push only scales
   textures (no raster as the gate grows). The wall and the fireflies are canvases already; the flame cores stay
   painted (18 × 26 px) */
.in-g-baked{position:absolute;left:0;top:0;display:block;pointer-events:none;will-change:transform}
.in-g-shade.is-baked,.in-g-lamp i.is-baked{background:none}
.in-g-shade.is-baked>.in-g-rim{display:none}
/* (only once the gate is lifted for Porten: everywhere else, stills included, the wall is rastered as before — VL1
   C7b: always on, it moved the lamp-washed stone by up to 3/255) */
.in-porten .in-g-img,.in-porten .in-g-flies{will-change:transform}

/* the gate lifted onto the stage for Porten (between the world and the screens) */
.in-porten{position:absolute;inset:0;pointer-events:none;z-index:0;transition:opacity .45s var(--ease-out)}
/* (lifted at rest: a welcome left without Porten takes its gate with it, as fast as the screen itself goes) */
.in-porten.is-leaving{opacity:0}
.in-porten .in-gate{will-change:opacity}

/* inside the arch, under the sun: the place, the title, the subtitle — one block standing on the darkened land,
   anchored to the threshold (gate.json bottom), centred on the arch's axis */
.in-w-head{position:absolute;left:0;top:0;width:1180px;height:820px;pointer-events:none;
  transition:opacity .7s var(--ease-in-out),transform .7s var(--ease-in-out)}
.in-w-kick{position:absolute;left:var(--g-cx,590px);top:calc(var(--g-bottom,751px) - 342px);   /* C25 GUESTUI: 12 px up with the title, so BOURGOGNE keeps clear of the Ô (was − 330px) */transform:translateX(-50%);
  display:flex;align-items:center;gap:16px;white-space:nowrap;font:400 12.5px/1 var(--sans);letter-spacing:.32em;text-transform:uppercase;color:var(--brass-hi);
  text-shadow:var(--halo);opacity:0;transition:opacity 1.2s var(--ease-out)}
.in-w-kick span{margin-right:-.32em}
.in-w-kick i{display:block;width:40px;height:1px;background:linear-gradient(90deg,rgba(226,192,148,0),rgba(226,192,148,.75));transform:scaleX(0);transform-origin:100% 50%;
  transition:transform 1.3s var(--ease-out) .25s}
.in-w-kick i:last-child{background:linear-gradient(270deg,rgba(226,192,148,0),rgba(226,192,148,.75));transform-origin:0 50%}
.scr-welcome.is-kick .in-w-kick{opacity:1}
.scr-welcome.is-kick .in-w-kick i{transform:none}
.in-w-title{position:absolute;left:var(--g-cx,590px);top:calc(var(--g-bottom,751px) - 333px);   /* C25 GUESTUI (DESIGN-7): 25 px up, the knockers free (was − 308px) */transform:translateX(-50%);margin:0;white-space:nowrap;
  font:400 88px/1 var(--serif);letter-spacing:.005em;color:var(--cream-hi);text-shadow:var(--halo)}
.in-w-title i{font-style:italic;font-size:.62em;letter-spacing:0;margin:0 .06em 0 .02em}
.in-w-title .in-word{display:inline-block;white-space:nowrap}
.in-ch{display:inline-block;opacity:0;transform:translateY(.32em);transition:opacity 1.2s var(--ease-out),transform 1.5s var(--ease-out);transition-delay:var(--d,0ms)}
.scr-welcome.is-title .in-ch{opacity:1;transform:none}
.in-w-sub{position:absolute;left:var(--g-cx,590px);top:calc(var(--g-bottom,751px) - 198px);transform:translateX(-50%);margin:0;white-space:nowrap;
  font:italic 400 23px/1.2 var(--serif);color:var(--cream-hi);text-shadow:var(--halo)}
/* at the threshold: Begynd (or, hosted, Magnus' small lit lamp: OP.ui.hosted, item 39b) */
.in-w-foot{position:absolute;left:0;width:1180px;top:calc(var(--g-bottom,751px) - 128px);display:flex;flex-direction:column;align-items:center;
  opacity:0;transform:translateY(14px);transition:opacity 1.2s var(--ease-out),transform 1.4s var(--ease-out)}
.scr-welcome.is-foot .in-w-foot{opacity:1;transform:none}
.in-w-go{position:relative;height:68px;display:flex;align-items:center;justify-content:center}
.in-w-go .op-hosted{display:none}
.scr-welcome.is-hosted .in-w-go .op-cta{display:none}
.scr-welcome.is-hosted .in-w-go .op-hosted{display:inline-flex}
.scr-welcome .op-cta{box-shadow:inset 0 1px 0 rgba(255,220,172,.22),inset 0 0 0 1px rgba(201,156,110,.36),0 18px 40px -18px rgba(0,0,0,.95),0 0 60px -12px rgba(234,164,92,.55)}
/* at rest (js lift) the words get a layer of their own, rastered while nothing moves: at Begynd their rise out only
   composites it (the title block, 1180 × 820 with its halo shadows, was rastered whole as it began: 69–237 ms). Begynd
   keeps its own (a 0.3 ms raster; a layer of its own moved its rim's anti-aliasing) */
.scr-welcome.is-rest .in-w-head{will-change:opacity,transform}
/* Porten: the words rise out while the gate opens (core fades the screen too) */
.scr-welcome.is-going .in-w-head{opacity:0;transform:translateY(-34px)}
.scr-welcome.is-going .in-w-foot{opacity:0;transform:translateY(10px);transition-duration:.5s}
.scr-welcome.is-frozen .in-w-head{opacity:calc(1 - var(--out));transform:translateY(calc(var(--out) * -34px));transition:none}
.scr-welcome.is-frozen .in-w-foot{opacity:calc(1 - var(--out) * 1.6);transition:none}
/* Magnus 09.11: the guest book comes before Porten. A quiet way back to it (bottom left, with Begynd's line), and
   the welcome arriving by the way to the gate (js/screens/to-gate.js): composed at once, no transition, while held */
.in-w-back{opacity:0;transition:opacity 1s var(--ease-out)}
.in-w-back .op-ghost{text-shadow:var(--halo)}
.scr-welcome.is-foot .in-w-back{opacity:1}
.scr-welcome.is-hosted .in-w-back{display:none}
.scr-welcome.is-going .in-w-back{opacity:0;pointer-events:none;transition-duration:.5s}
.scr-welcome.in-arriving .in-g-wall,.scr-welcome.in-arriving .in-g-lamp,.scr-welcome.in-arriving .in-g-shade,
.scr-welcome.in-arriving .in-g-paint,.scr-welcome.in-arriving .in-g-flies{transition:none}
/* C14 GATE (?film=1, FEEDBACK-30-10 §60; js gateLeaves): the gate closed by its two painted oak leaves, over the wall
   with the wall's own front pixels over them (img/gate-front.webp), so closed it is the wall over the leaves. They come
   with the wall; on Begynd a warm line at the seam, then they swing toward the viewer about their hinges (3D, the
   perspective set in js), their oak edges turning into view, their faces darkening. Transform/opacity only; each
   leaf is a layer from the start (will-change), so the swing rasters nothing */
.in-g-leaves{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.6s var(--ease-out)}
.in-gate.is-wall .in-g-leaves{opacity:1}
.scr-welcome.in-arriving .in-g-leaves{transition:none}
.in-g-leaf{position:absolute;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;will-change:transform}
.in-g-leaf-face{position:absolute;inset:0}
.in-g-leaf-img,.in-g-front-img{position:absolute;left:0;top:0;width:100%;height:100%;display:block;-webkit-user-drag:none;pointer-events:none}
.in-g-leaf-dim{position:absolute;inset:0;background:rgba(14,7,5,.42);opacity:0;will-change:opacity}
.in-g-leaf-edge{position:absolute;transform-origin:0 50%;transform:rotateY(90deg)}
.in-g-leaf-edge.is-r{transform-origin:100% 50%;transform:rotateY(-90deg)}
.in-g-front{position:absolute;will-change:opacity}
.in-g-seam{position:absolute;width:44px;opacity:0;will-change:opacity;
  background:linear-gradient(90deg,rgba(255,170,90,0),rgba(255,176,98,.16) 30%,rgba(255,214,150,.62) 45%,rgba(255,246,222,.98) 50%,rgba(255,214,150,.62) 55%,rgba(255,176,98,.16) 70%,rgba(255,170,90,0));
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 9%,#000 90%,transparent);mask-image:linear-gradient(180deg,transparent,#000 9%,#000 90%,transparent)}
/* Begynd opens the gate: its words and Begynd leave first, as the walk's own first 0.7 s would */
.scr-welcome.in-opening .in-w-head{opacity:0;transform:translateY(-34px)}
.scr-welcome.in-opening .in-w-foot{opacity:0;transform:translateY(10px);transition-duration:.5s}
.scr-welcome.in-opening .in-w-back{opacity:0;pointer-events:none;transition-duration:.5s}

/* ================================================================ NAMES — Gæstebog */
.in-n-shade{background:radial-gradient(60% 30% at 50% 6%,rgba(9,2,4,.62),rgba(9,2,4,.28) 58%,transparent 86%)}
.scr-names.is-in .in-n-shade{opacity:1}
.in-n-title{position:absolute;left:0;right:0;top:40px;margin:0;text-align:center;font:400 52px/1.05 var(--serif);color:var(--cream-hi);text-shadow:var(--halo)}
.in-n-lede{position:absolute;left:0;right:0;top:110px;margin:0;text-align:center;font:italic 400 21px/1.3 var(--serif);color:var(--cream-hi);text-shadow:var(--halo);
  opacity:0;transition:opacity 1.2s var(--ease-out) .9s}
.scr-names.is-in .in-n-lede{opacity:.92}
.in-n-card.op-card{top:176px;opacity:0;transform:translateY(22px);transition:opacity 1.1s var(--ease-out),transform 1.4s var(--ease-out)}
.in-n-card.is-a{left:168px}
.in-n-card.is-b{left:632px}
.in-n-card.is-up{opacity:1;transform:none}
/* the guest's mark (Monogram): a ring of fine dots until the guest writes; the first letter fills it (the disc), sets
   the initial in it and lights the lamp on the ring. Nothing else on the card glows. */
.in-n-win{position:absolute;left:50%;top:46px;transform:translateX(-50%)}
.in-n-win .op-arch{display:block}
.in-n-win .op-arch.is-off .op-arch-in{opacity:0}
.in-n-win .op-arch.is-off .op-mono-ring{opacity:.9;transition:opacity .6s}
.in-n-card.is-invite .in-n-win .op-arch.is-off .op-mono-ring{animation:in-invite 2.8s ease-in-out infinite}
.in-n-card.is-focus .in-n-win .op-arch.is-off .op-mono-ring{opacity:1}
@keyframes in-invite{0%,100%{opacity:.7}50%{opacity:1}}
.in-n-label{position:absolute;left:0;right:0;top:150px;display:flex;align-items:center;justify-content:center;gap:14px;
  font:400 11px/1 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--brass)}
.in-n-label span{margin-right:-.28em}
.in-n-label i{display:block;width:34px;height:1px;background:var(--line)}
/* the field: typing in Cormorant on one brass line; at rest the name is a signature written over it */
.in-n-field{position:absolute;left:40px;right:40px;top:172px;height:72px;display:block;cursor:text}
.in-n-input{position:absolute;left:0;right:0;top:12px;height:52px;width:100%;margin:0;padding:0;border:0;outline:0;background:transparent;text-align:center;
  font:400 40px/52px var(--serif);color:var(--cream-hi);caret-color:var(--lamp);border-radius:0;-webkit-appearance:none;appearance:none;transition:opacity .35s}
.in-n-input::placeholder{color:var(--mute);font-style:italic;font-size:28px;opacity:.85}
.in-n-rule{position:absolute;left:10px;right:10px;bottom:4px;height:1px;background:var(--brass-lo);transition:background .4s}
.in-n-rule::after{content:"";position:absolute;left:50%;right:50%;top:-1px;height:3px;border-radius:2px;opacity:0;
  background:radial-gradient(closest-side,rgba(255,215,156,.9),rgba(255,215,156,0));transition:left .6s var(--ease-out),right .6s var(--ease-out),opacity .4s}
.in-n-card.is-focus .in-n-rule{background:rgba(201,156,110,.55)}
.in-n-card.is-focus .in-n-rule::after{left:18%;right:18%;opacity:1}
.in-n-card.is-invite .in-n-rule{animation:in-rule 2.8s ease-in-out infinite}
@keyframes in-rule{0%,100%{background:var(--brass-lo)}50%{background:rgba(226,192,148,.6)}}
.in-n-sign{position:absolute;left:-30px;right:-30px;top:-6px;height:84px;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 55%,transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 55%,transparent 100%);
  -webkit-mask-size:230% 100%;mask-size:230% 100%;-webkit-mask-position:0 0;mask-position:0 0}
.in-n-sign .op-hand{font-size:58px;line-height:1.3;color:var(--cream-hi);white-space:nowrap;text-shadow:0 1px 2px rgba(9,2,4,.5),0 0 18px rgba(255,190,120,.10)}
.in-n-card.is-sealed:not(.is-focus) .in-n-sign{opacity:1}
.in-n-card.is-sealed:not(.is-focus) .in-n-input{opacity:0}
.in-n-sign.is-writing{animation:in-write 1.2s cubic-bezier(.45,.05,.35,1) both}
@keyframes in-write{from{-webkit-mask-position:100% 0;mask-position:100% 0}to{-webkit-mask-position:0 0;mask-position:0 0}}
/* the seat: a small iPad with this guest's half lit */
.in-n-seat{position:absolute;left:0;right:0;top:292px;display:flex;flex-direction:column;align-items:center;gap:16px}
.in-n-pad{position:relative;width:96px;height:66px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(201,156,110,.34)}
.in-n-pad-half{position:absolute;top:6px;bottom:6px;width:39px;border-radius:3px;opacity:.35;transition:opacity 1.2s var(--ease-lamp);
  background:radial-gradient(130% 90% at 50% 38%,rgba(255,220,168,.46),rgba(234,164,92,.16) 72%,rgba(234,164,92,.10));box-shadow:inset 0 0 0 1px rgba(255,214,160,.14)}
.in-n-pad.is-l .in-n-pad-half{left:7px}
.in-n-pad.is-r .in-n-pad-half{right:7px}
.in-n-pad-mid{position:absolute;left:50%;top:10px;bottom:10px;width:1px;background:var(--line)}
.in-n-card.is-named .in-n-pad-half{opacity:1}
.in-n-seat-t{font:400 11px/1 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--brass);margin-right:-.28em}
.in-n-dock .op-cta{transition:transform .25s var(--ease-out),box-shadow .4s,opacity .6s var(--ease-out)}
.in-n-dock.is-nudge .op-cta{animation:in-nudge .9s var(--ease-out)}
@keyframes in-nudge{0%,100%{transform:none}35%{transform:translateY(-5px)}}
.in-n-back,.in-n-dock,.in-n-hosted{opacity:0;transition:opacity 1s var(--ease-out) 1.2s}
.scr-names.is-in .in-n-back,.scr-names.is-in .in-n-dock{opacity:1}
.in-n-back .op-ghost{text-shadow:var(--halo)}
.in-n-hosted{position:absolute;right:56px;bottom:52px;display:none}
.scr-names.is-hosted .in-n-back,.scr-names.is-hosted .in-n-dock{display:none}
.scr-names.is-hosted .in-n-hosted{display:block}
.scr-names.is-in .in-n-hosted{opacity:1}
/* (C13 FIX) Magnus' console has moved on while this pair still writes their names (js names _holdGo): the guest book
   is theirs again, and their Videre comes up calmly where his lamp was */
.scr-names.in-n-behind .in-n-dock{animation:in-n-behind 1s var(--ease-out) .3s both}
@keyframes in-n-behind{from{opacity:0}}
/* the names wait, hidden, while Porten opens over them */
.scr-names.in-held{opacity:0!important;transition:none!important;transform:none!important}
.scr-names{transition:opacity .9s var(--ease-out),transform .9s var(--ease-out)}
/* over the cellar (Magnus 09.11, css/screens/kode.css .pk-cellar is the screen's first child): its ground never
   slides with the settle or the lift-away, it only fades */
.scr-names.is-cellar.is-entering,.scr-names.is-cellar.is-leaving{transform:none}

/* ================================================================ PROLOG */
/* the head stands where the air view is pale haze: an umber dusk behind kicker, title and lede (reaching past the
   lede's last line), a breath of it across the top, and the corner under the nav */
.in-p-shade{opacity:1;background:radial-gradient(80% 64% at 0% 0%,rgba(9,2,4,.74),rgba(9,2,4,.40) 48%,rgba(9,2,4,.12) 72%,transparent 88%),
  linear-gradient(180deg,rgba(9,2,4,.30) 0,rgba(9,2,4,.12) 220px,rgba(9,2,4,0) 330px),
  radial-gradient(40% 32% at 100% 100%,rgba(9,2,4,.38),transparent 74%)}
.in-p-head{position:absolute;left:56px;top:44px;width:540px;z-index:2;pointer-events:none}
.in-p-kick{text-shadow:var(--halo)}
.in-p-headbox{position:relative;margin-top:16px;height:250px}
.in-p-hb{position:absolute;left:0;top:0;width:100%;transition:opacity .55s var(--ease-in-out),transform .55s var(--ease-in-out)}
.in-p-hb.is-out{opacity:0;transform:translateY(-12px)}
.in-p-title{margin:0;font:400 64px/1 var(--serif);color:var(--cream-hi);text-shadow:var(--halo);letter-spacing:.005em}
.in-p-lede{margin:18px 0 0;max-width:470px;font:400 22px/1.45 var(--serif);color:var(--cream-hi);text-shadow:var(--halo)}
.in-p-lede .in-rv{transform:translateY(.2em)}
.in-p-beat{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .8s var(--ease-out)}
.in-p-beat.is-in{opacity:1}
.in-p-beat.is-out{opacity:0;transition:opacity .6s var(--ease-in-out)}
/* nav */
.in-p-dock{opacity:1}
.in-p-hosted{position:absolute;right:56px;bottom:52px;display:none}
/* opened by Porten (Magnus 09.11): hidden until its release, then it comes in as the names did */
.scr-prolog.in-held{opacity:0!important;transition:none!important;transform:none!important}
.scr-prolog.in-porten-in{transition:opacity .9s var(--ease-out),transform .9s var(--ease-out)}
.scr-prolog.is-hosted .in-p-dock{display:none}
.scr-prolog.is-hosted .in-p-hosted{display:block}
.in-p-dock .op-ghost{text-shadow:var(--halo)}

/* ---------------- beat 1 · Skråningen ---------------- */
/* the facts: one evening card, three columns */
/* C25 GUESTUI (DESIGN-13c): 704 wide (was 720), so Tilbage beside the long "Klassificering" stands ~24 px from it */
.in-p1-card.op-card{left:48px;top:640px;width:704px;height:132px;padding:22px 0 0;opacity:0;transform:translateY(16px);
  transition:opacity 1.1s var(--ease-out),transform 1.3s var(--ease-out)}
.in-p1.is-in .in-p1-card{opacity:1;transform:none}
.in-p1-facts{display:flex;height:100%}
.in-p1-fact{flex:1;padding:0 26px;position:relative}
.in-p1-fact+.in-p1-fact::before{content:"";position:absolute;left:0;top:2px;bottom:26px;width:1px;background:var(--line)}
.in-p1-fact .op-cardlabel{gap:10px}
.in-p1-fact .op-cardlabel::after{display:none}
.in-p1-v{margin-top:10px;height:46px;display:flex;align-items:baseline;gap:8px;color:var(--cream-hi);white-space:nowrap}
.in-p1-v.is-num .op-fig{font-size:44px;line-height:1}
.in-p1-v .in-p1-approx{font-size:30px;color:var(--brass-hi);margin-right:-2px}
.in-p1-unit{font:italic 400 24px/1 var(--serif);color:var(--cream)}
.in-p1-v.is-word{font:400 38px/1.1 var(--serif);align-items:flex-end}
.in-p1-note{margin-top:4px;font:italic 400 17px/1.25 var(--serif);color:var(--cream);opacity:.82;white-space:nowrap}
/* the glass's mark on the land (Monogram, js glassMark): OP.ui.arch's numeral in its hairline ring, centred on a 0×0
   point, with a soft dark edge so the hairline holds on the sunlit map. is-on shows it; is-ping sends one hairline
   out as it lights; the roll call moves the ring's lamp (OP.ui.arch 'now', its own .6 s fade). */
.in-num{position:absolute;left:0;top:0;width:0;height:0;opacity:0;transition:opacity .8s var(--ease-lamp)}
.in-num.is-on{opacity:1}
.in-num.is-hidden,.in-num.is-off{opacity:0!important}
.in-num>.op-arch{position:absolute;left:calc(var(--ms,30px) / -2);top:calc(var(--ms,30px) / -2);box-shadow:0 0 0 3px rgba(9,2,4,.26),0 4px 12px -4px rgba(0,0,0,.85)}
.in-num-r{position:absolute;left:calc(var(--ms,30px) / -2);top:calc(var(--ms,30px) / -2);width:var(--ms,30px);height:var(--ms,30px);border-radius:50%;
  opacity:0;pointer-events:none;box-shadow:0 0 0 1px rgba(255,228,190,.85)}
.in-num.is-ping .in-num-r{animation:in-ping 1.3s var(--ease-out) both}
.in-num.is-ping>.op-arch{animation:op-lighton .9s var(--ease-lamp) both}
@keyframes in-ping{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(2.4)}}

/* on the land: only tonight's places (their numbers over the 3D lanterns) and their villages' names. The land's words
   wait for the camera to rest (.is-land); each lights as the light on the road reaches it. */
.in-p1-land{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s var(--ease-out)}
.in-p1.is-land .in-p1-land{opacity:1}
.in-vil{position:absolute;left:0;top:0;width:0;height:0;opacity:0;transition:opacity .5s var(--ease-out)}
.in-vil.is-on{opacity:1}
.in-vil.is-off,.in-vil.is-hidden{opacity:0!important}
/* the village writes its name in, left to right (the Gæstebog's signature mask) */
.in-vil b{position:absolute;left:0;top:0;transform:translateX(-50%);white-space:nowrap;font:italic 400 21px/24px var(--serif);color:var(--cream-hi);text-shadow:var(--halo);
  padding:0 10px;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 55%,transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 55%,transparent 100%);
  -webkit-mask-size:230% 100%;mask-size:230% 100%;-webkit-mask-position:0 0;mask-position:0 0}
.in-vil b span{display:inline-block}
.in-vil.is-writing b{animation:in-write 1s cubic-bezier(.45,.05,.35,1) both}

/* the legend (as Rækkerne's): the road, the numbers, the scale and north. It comes on with the run, row by row. */
.in-p1-key.op-card{padding:18px 22px 14px;opacity:0;transform:translateY(-8px);transition:opacity .9s var(--ease-out),transform 1.1s var(--ease-out)}
.in-p1-key.is-route{opacity:1;transform:none}
.in-p1-key .op-cardlabel{margin:0 0 10px}
.in-key-row{display:flex;align-items:center;gap:12px;height:32px;font:400 20px/1 var(--serif);color:var(--cream);white-space:nowrap;
  opacity:.25;transition:opacity .9s var(--ease-lamp)}
.in-key-sw{position:relative;flex:none;width:36px;height:28px}
.in-key-line{position:absolute;left:0;right:0;top:11px;height:6px;
  background:radial-gradient(circle,rgba(255,236,196,.98) 0 1.15px,rgba(255,196,118,.38) 1.7px,rgba(255,196,118,0) 2.9px) 0 50%/7px 6px repeat-x}
.in-key-sw .in-num{left:18px;top:14px}
.in-key-note{margin:-2px 0 0 48px;font:italic 400 17px/1.25 var(--serif);color:var(--cream);opacity:0;transition:opacity .9s var(--ease-lamp);white-space:nowrap}
.in-p1-key.is-route .in-key-row.is-route,.in-p1-key.is-num .in-key-row.is-num{opacity:1}
.in-p1-key.is-num .in-key-note{opacity:.8}
.in-key-foot{display:flex;align-items:flex-end;justify-content:space-between;margin:12px 0 0 2px;height:54px}
.in-key-foot .op-scale{position:relative;height:24px}
.in-key-foot .op-compass{position:relative;left:auto;top:auto;right:auto;flex:none;transform:scale(.82);transform-origin:100% 100%}

/* ---------------- beat 2 · Klassificering (design/v3-motif-2 stage D3) ----------------
   The lit line on the real section; over each level its share as a big Fraunces numeral, the level's name under it;
   hairlines down to tonight's glasses' rings, ticks from the rings to the line. As the light passes under a level:
   the share comes up, the hairline runs down (and parts over a pair), the rings light, the ticks touch the line. */
.in-p2-svg{position:absolute;left:0;top:0;overflow:visible}
/* dash 1000 · gap 1001: no zero-length dash (a round-cap dot) at the line's end while it is still dark */
.in-p2-glow{fill:none;stroke:rgba(255,190,110,.32);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1000 1001;stroke-dashoffset:1000}
.in-p2-line{fill:none;stroke:#ffe2b0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1000 1001;stroke-dashoffset:1000}
.in-p2-col{position:absolute;transform:translate(-50%,10px);text-align:center;white-space:nowrap;text-shadow:var(--halo);opacity:0;
  transition:opacity 1s var(--ease-out),transform 1.3s var(--ease-out)}
.in-p2-col.is-on{opacity:1;transform:translate(-50%,0)}
.in-p2-share{display:block;font-weight:300;color:var(--cream-hi)}
.in-p2-share .op-fig{font-size:66px;line-height:1;font-variant-numeric:lining-nums proportional-nums}
.in-p2-share em{font:400 26px/1 var(--serif);font-style:normal;color:var(--cream);margin-right:6px;vertical-align:.7em;opacity:.8}
.in-p2-share i{font:italic 400 24px/1 var(--serif);color:var(--cream);margin-left:3px;vertical-align:.95em}
.in-p2-name{display:block;margin-top:12px;font:400 12px/1 var(--sans);letter-spacing:.3em;text-indent:.3em;text-transform:uppercase;color:var(--brass)}
/* the hairlines draw (pathLength 1, dash 1 · gap 2): the rule down from the name, the bracket's two arms out from its
   middle, then the ticks from the rings to the line */
.in-p2-rule{fill:none;stroke:rgba(232,215,190,.42);stroke-width:1;stroke-dasharray:1 2;stroke-dashoffset:1;transition:stroke-dashoffset .7s var(--ease-out) .25s}
.in-p2-rule.is-arm{transition-duration:.5s;transition-delay:.9s}
.in-p2-tick{fill:none;stroke:rgba(255,232,196,.75);stroke-width:1;stroke-dasharray:1 2;stroke-dashoffset:1;transition:stroke-dashoffset .45s var(--ease-out) 1.5s}
.in-p2-rule.is-on,.in-p2-tick.is-on{stroke-dashoffset:0}
/* tonight's glasses: the evening's marks (OP.ui.arch, 36 px), standing a little above the line */
.in-p2-ring{position:absolute;width:36px;height:36px;opacity:0;transition:opacity .3s linear calc(1.2s + var(--k,0) * .18s)}
.in-p2-ring .op-arch{display:block;box-shadow:0 0 0 3px rgba(9,2,4,.22)}
.in-p2-ring.is-on{opacity:1}
.in-p2-ring.is-on .op-arch{animation:op-lighton .9s var(--ease-lamp) calc(1.2s + var(--k,0) * .18s) both}
/* two heights on the line, quiet */
.in-p2-alt{position:absolute;width:0;height:0;opacity:0;transition:opacity 1.2s var(--ease-out)}
.in-p2.is-done .in-p2-alt{opacity:1}
.in-p2-alt span{position:absolute;left:10px;top:14px;font:italic 400 15px/1 var(--serif);color:var(--brass);opacity:.72;text-shadow:var(--halo);white-space:nowrap}
.in-p2-alt span i{font-size:11px;margin-left:5px}
/* C26 FIX-GUEST (K11): tracked .18em (was .24em) so it ends well before Tilbage, and 19 px up (bottom 46 → 65) so its
   centre is level with Tilbage and Første glas */
.in-p2-foot{position:absolute;left:56px;bottom:65px;display:flex;align-items:center;gap:16px;font:400 10.5px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;
  color:var(--brass);text-shadow:var(--halo);opacity:0;transition:opacity 1.2s var(--ease-out)}
.in-p2-foot i{display:block;width:4px;height:4px;border-radius:50%;background:var(--brass);opacity:.6}
.in-p2.is-done .in-p2-foot{opacity:.82}

/* ---------------- stills + reduced motion ---------------- */
/* stills (?shot=1) freeze every animation at its first frame: show the end states instead */
.op-shot .scr-welcome *,.op-shot .scr-names *,.op-shot .scr-prolog *{animation:none!important}
@media (prefers-reduced-motion:reduce){
  .in-g-wash,.in-g-halo,.in-g-core,.in-n-card.is-invite .in-n-win .op-mono-ring,.in-n-card.is-invite .in-n-rule,.in-n-sign.is-writing,
  .in-num *,.in-vil b,.in-p2-ring .op-arch{animation:none!important}
  .in-ch,.in-rv,.in-w-head,.in-w-foot,.in-w-kick,.in-n-card,.in-p-beat,.in-p1-card,.in-p1-key,.in-key-row,.in-key-note,.in-num,.in-vil,
  .in-p2-col,.in-p2-rule,.in-p2-tick,.in-p2-ring,.in-shade{transition:none!important}
}

/* the loading festoon (js loadFestoon, Magnus 07.11): seven bulbs on a wire. Until C21 it hung where Begynd would be and
   Begynd waited under it, unseen; now Begynd stands from the start (below), so the festoon hangs higher in the arch,
   above the place line (--load-top, from the foot's top) */
.in-w-load{position:absolute;left:50%;top:var(--load-top,-288px);width:470px;height:70px;margin-left:-235px;pointer-events:none;transition:opacity .65s var(--ease-out),transform .8s var(--ease-out)}
.in-w-load svg{position:absolute;left:0;top:0;overflow:visible}
.in-w-load .op-bulb{position:absolute;width:0;height:0}
.in-w-load .op-bulb-hang{position:absolute;left:0;top:0}
.in-w-load-n{position:absolute;left:0;top:34px;transform:translateX(-50%);font:500 9px/1 var(--sans);letter-spacing:.22em;color:var(--brass,#c9a06c);opacity:.55;transition:opacity .6s var(--ease-out),color .6s var(--ease-out);text-shadow:var(--halo)}
.in-w-load .op-bulb.is-now .in-w-load-n{opacity:1;color:var(--lamp,#ffcf8a)}
.in-w-go{transition:opacity .9s var(--ease-out),transform 1s var(--ease-out)}
.scr-welcome.is-loaded .in-w-load{opacity:0;transform:translateY(-8px)}
/* C21 ENTRY (FEEDBACK-30-10 §68; Magnus 10.11: "ikke helt tydeligt at det er en load screen"): the wait at the gate,
   only while something is still loading on arrival (.is-loading). Begynd stands dimmed, its lamp unlit (.op-cta[disabled],
   base.css); under it the small line "Aftenen gøres klar" and a gold hairline that fills with the evening's real
   progress (js: scaleX). Full (.is-full): the hairline glows once and fades, the line fades; then the lamp in Begynd
   lights (js). Hosted: the same under Magnus' lamp, which waits low until this iPad is ready. No percent figures */
.scr-welcome .in-w-go .op-cta{transition:transform .25s var(--ease-out),box-shadow .4s,opacity .9s var(--ease-out)}
.scr-welcome.is-loading .in-w-go .op-cta[disabled]{opacity:.5}
.in-w-go .op-hosted{transition:opacity .9s var(--ease-out)}
.scr-welcome.is-hosted.is-loading .in-w-go .op-hosted{opacity:.42}
.in-w-wait{position:absolute;left:0;right:0;top:80px;display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:none;
  opacity:0;transition:opacity .9s var(--ease-out)}
.scr-welcome.is-loading .in-w-wait{opacity:1;transition-delay:.45s}
.in-w-wait-t{font:400 10.5px/1 var(--sans);letter-spacing:.3em;margin-right:-.3em;text-transform:uppercase;white-space:nowrap;color:var(--brass-hi);
  text-shadow:var(--halo);transition:opacity .8s var(--ease-out)}
.in-w-wait-line{position:relative;display:block;width:164px;height:1px;border-radius:1px;background:rgba(226,192,148,.26);
  box-shadow:0 0 0 .5px rgba(9,2,4,.28),0 1px 6px rgba(9,2,4,.5);transition:background .8s var(--ease-out),box-shadow .8s var(--ease-out)}
.in-w-wait-fill{position:absolute;left:0;top:-.5px;width:100%;height:2px;border-radius:1px;transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--brass),var(--lamp) 70%,var(--wick));transition:transform 1s var(--ease-out)}   /* C26 FIX-GUEST (K13): 1 s (was .7) */
/* the glint: a soft light travelling the hairline every few seconds while the wait lasts, so a share that stands still
   for a while (the world's last builds) still reads as under way. Transform and opacity only; none with reduced motion */
.in-w-wait-glint{position:absolute;left:0;top:-.5px;width:46px;height:2px;border-radius:1px;opacity:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,243,220,0),rgba(255,243,220,.8) 50%,rgba(255,243,220,0))}
.scr-welcome.is-loading .in-w-wait-glint{animation:in-w-glint 3.2s var(--ease-in-out) 1.4s infinite}
@keyframes in-w-glint{0%{transform:translateX(-14px);opacity:0}14%{opacity:.85}62%{opacity:.85}76%,100%{transform:translateX(132px);opacity:0}}
.scr-welcome.is-full .in-w-wait-glint{animation:none;opacity:0}
.scr-welcome.is-full .in-w-wait-t{opacity:0}
.scr-welcome.is-full .in-w-wait-line{background:rgba(226,192,148,0);box-shadow:none}
.scr-welcome.is-full .in-w-wait-fill{animation:in-w-full 1.1s var(--ease-lamp) both}
@keyframes in-w-full{0%{opacity:1;box-shadow:0 0 0 0 rgba(255,215,156,0)}
  32%{opacity:1;box-shadow:0 0 9px 1px rgba(255,215,156,.85),0 0 26px 4px rgba(234,164,92,.5)}
  100%{opacity:0;box-shadow:0 0 14px 2px rgba(255,215,156,0)}}
.scr-welcome.is-going .in-w-wait,.scr-welcome.in-opening .in-w-wait{opacity:0}
.op-shot .in-w-wait{display:none}
@media (prefers-reduced-motion:reduce){
  .in-w-wait,.in-w-wait-t,.in-w-wait-line,.in-w-wait-fill,.in-w-wait-glint,.scr-welcome .in-w-go .op-cta,.in-w-go .op-hosted{transition:none!important;animation:none!important}
}

/* ================================================================ ENDING — the gate closes (C25 ENDING, FEEDBACK-30-10 §84)
   Porten backwards (js 'ending'): the gate group comes back about the arch's heart as the camera comes down (js writes
   its scale and opacity per frame from the flight), the leaves swing shut, the closed gate stands at night. The wall
   carries the night's veil baked into one canvas (js nightWall), the leaves and the wall's front pixels too (js tint);
   where that cannot be made, the veil is drawn here, masked by their own images so only their pixels darken. The lanterns are lit and still: no flicker, no breathing */
.scr-ending .in-gate{opacity:0}
.scr-ending .in-g-wall,.scr-ending .in-g-leaves,.scr-ending .in-g-lamp,.scr-ending .in-g-shade{opacity:1;transition:none}
.scr-ending .in-g-lamp i{animation:none!important}
/* (as Porten lifted: the gate and the wall on layers of their own, so the per-frame scale and opacity only composite) */
.scr-ending .in-gate{will-change:opacity}
.scr-ending .in-g-img{will-change:transform}
.in-e-night{position:absolute;inset:0;pointer-events:none}
.in-e-veil{position:absolute;left:0;top:0;width:1180px;height:820px;display:block;pointer-events:none}
.scr-ending:not(.in-e-tinted) .in-g-leaf-face::after,.scr-ending:not(.in-e-tinted) .in-g-leaf-edge::after,.scr-ending:not(.in-e-tinted) .in-g-front::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:rgba(8,9,22,.64);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.scr-ending .in-g-leaf.is-l .in-g-leaf-face::after{-webkit-mask-image:url(../../img/gate-leaf-l.webp);mask-image:url(../../img/gate-leaf-l.webp)}
.scr-ending .in-g-leaf.is-r .in-g-leaf-face::after{-webkit-mask-image:url(../../img/gate-leaf-r.webp);mask-image:url(../../img/gate-leaf-r.webp)}
.scr-ending .in-g-leaf-edge::after{-webkit-mask-image:url(../../img/gate-leaf-edge.webp);mask-image:url(../../img/gate-leaf-edge.webp)}
.scr-ending .in-g-front::after{-webkit-mask-image:url(../../img/gate-front.webp);mask-image:url(../../img/gate-front.webp)}
/* reduced motion, a reload: the closed gate comes out of the night (js lifts this cover in 1.4 s) */
.in-e-cover{position:absolute;inset:0;background:#07080f;pointer-events:none}
.op-shot .in-e-cover{display:none}
