/* Lauren B. Pipari: the doors (home page only). v2, Nov 2026, iOLab Digital.
   Layers inside the opening, bottom to top: room (z1, the lit room), menu (z2), leaves (z3, cut from
   the scene itself), lockup (z4), the Step inside button (z5, covers the whole opening). */
:root{
  --night:#0F1F1C; --night-2:#14292A; --jade:#2C5A52;
  --brass:#C9A45C; --brass-lt:#EFD9A6; --brass-dk:#9C7A3C;
  --candle:#E3A94F; --limewash:#EDE3D0; --stone:#B7A587; --ink:#16120D;
  --name:#F3E6C8;
  --serif:'Newsreader','NR Georgia','NR Times','NR Noto','NR DejaVu',Georgia,'Times New Roman',serif;
  --script:'Pinyon Script',cursive;
  --swing:cubic-bezier(.62,.02,.18,1);
  --settle:cubic-bezier(.4,0,.2,1);
  --rise:cubic-bezier(.2,.7,.2,1);
  --legible:0 .06em .32em rgba(12,8,4,.88);
}
/* metric-matched local fallbacks for Newsreader (same faces as site.css), so the swap doesn't move the menu */
@font-face{font-family:'NR Georgia';src:local('Georgia');font-weight:200 800;size-adjust:95.56%;ascent-override:76.92%;descent-override:27.73%;line-gap-override:0%}
@font-face{font-family:'NR Georgia';font-style:italic;src:local('Georgia Italic'),local('Georgia-Italic');font-weight:200 800;size-adjust:88%;ascent-override:83.52%;descent-override:30.11%;line-gap-override:0%}
@font-face{font-family:'NR Times';src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('LiberationSerif');font-weight:200 800;size-adjust:104.86%;ascent-override:70.09%;descent-override:25.27%;line-gap-override:0%}
@font-face{font-family:'NR Times';font-style:italic;src:local('Times New Roman Italic'),local('TimesNewRomanPS-ItalicMT'),local('Liberation Serif Italic'),local('LiberationSerif-Italic');font-weight:200 800;size-adjust:98%;ascent-override:75%;descent-override:27.04%;line-gap-override:0%}
@font-face{font-family:'NR Noto';src:local('Noto Serif'),local('NotoSerif');font-weight:200 800;size-adjust:88.57%;ascent-override:82.99%;descent-override:29.92%;line-gap-override:0%}
@font-face{font-family:'NR DejaVu';src:local('DejaVu Serif'),local('DejaVuSerif');font-weight:200 800;size-adjust:83.27%;ascent-override:88.27%;descent-override:31.82%;line-gap-override:0%}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--night);color:var(--limewash);font-family:var(--serif);font-size:16px;line-height:1.4;overflow:hidden;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
h1,p,ul{margin:0;padding:0}
ul{list-style:none}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
[hidden],.enter[hidden],.menu .close[hidden]{display:none}

/* ---------- viewport + fixed-aspect stage ----------
   The stage keeps the scene's exact aspect ratio. It covers the viewport, but never grows so far that the
   door overflows (~92% of the viewport): past capH / capW it letterboxes on the night background. */
.vp{position:fixed;inset:0;overflow:hidden;container-type:size;background:radial-gradient(120% 90% at 50% 45%,#1B3532,var(--night) 70%)}
.stage{
  --ar:1.77778;--capH:1.27;--capW:3.5;
  --opL:37.8125%;--opT:16.6667%;--opW:26.276%;--opH:72.2685%;--seam:49.3558%;
  --finL:49.8698%;--finT:14.5833%;--finW:1.5625%;--finH:3.9352%;
  --lsx:771.0843%;--lsy:138.3728%;--lpx:.43447;--lpy:.601002;--rsx:751.4677%;--rsy:138.3728%;--rpx:.585761;--rpy:.601002;
  --glL:45.57%;--glT:-2.3%;--glW:10.16%;--glH:24.3%;
  position:absolute;left:50%;top:50%;translate:-50% -50%;
  width:min(max(100cqw,calc(100cqh * var(--ar))),calc(100cqh * var(--ar) * var(--capH)),calc(100cqw * var(--capW)));
  aspect-ratio:var(--ar);
  transform-origin:calc(var(--opL) + var(--opW) / 2) calc(var(--opT) + var(--opH) / 2);
  transition:scale .9s var(--settle)}
@media (orientation: portrait){
  .stage{
    --ar:0.5625;--capH:1.51;--capW:1.313;
    --opL:15.6481%;--opT:16.4063%;--opW:70.0463%;--opH:60.9635%;--seam:49.3721%;
    --finL:47.7315%;--finT:14.6354%;--finW:4.1667%;--finH:3.3333%;
    --lsx:289.1566%;--lsy:164.0325%;--lpx:.239207;--lpy:.42028;--rsx:281.9843%;--rsy:164.0325%;--rpx:.778336;--rpy:.42028;
    --glL:36.5%;--glT:-2%;--glW:27%;--glH:20%}
}
@supports not (width:1cqw){
  .stage{width:min(max(100vw,calc(100vh * var(--ar))),calc(100vh * var(--ar) * var(--capH)),calc(100vw * var(--capW)))}
}
.stage.open{scale:var(--dolly,1);transition:scale 1.1s cubic-bezier(.6,.02,.2,1) .15s}
.leaving .stage{opacity:0;transition:opacity .25s ease}
.plate,.plate img{position:absolute;inset:0;width:100%;height:100%;display:block}

/* ---------- the opening ---------- */
.opening{position:absolute;left:var(--opL);top:var(--opT);width:var(--opW);height:var(--opH);container:opening / size}

/* the room: CSS only. An opaque dark base that fills in at once (so the gap never shows the closed
   doors behind a swinging leaf), and its candle light, which rises during the swing. Quiet in the
   centre so the menu reads. */
.room{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.72),transparent 9%,transparent 68%,rgba(58,36,16,.45) 86%,rgba(96,62,30,.6)),#17120C;
  box-shadow:inset 3cqw 0 4cqw -1cqw rgba(0,0,0,.8),inset -3cqw 0 4cqw -1cqw rgba(0,0,0,.8);
  transition:opacity .3s ease .6s}
/* with the doors open, a pointer over the opening warms the room a few percent (opacity only, 200ms) */
.room::after{content:"";position:absolute;inset:0;opacity:0;transition:opacity .2s ease;
  background:radial-gradient(72% 48% at 50% 34%,rgba(227,169,79,.11),rgba(227,169,79,.04) 60%,transparent 85%)}
@media (hover:hover){.stage.open .opening:hover .room::after{opacity:1}}
.room::before{content:"";position:absolute;inset:0;opacity:0;transition:opacity .5s ease;
  background:
    radial-gradient(64% 34% at 50% 27%,rgba(227,169,79,.36),rgba(122,76,30,.15) 55%,transparent 80%),
    radial-gradient(70% 18% at 50% 100%,rgba(227,169,79,.22),transparent 70%)}
.open .room{opacity:1;transition:opacity .2s ease}
.open .room::before{opacity:1;transition:opacity .65s cubic-bezier(.3,0,.3,1) .26s}

/* the leaves: empty boxes that JS fills with a copy of the scene <img> (same currentSrc, so no extra
   download), offset so each shows exactly its own leaf. An <img> keeps the plate's sharpness; a
   background-image of the same file paints visibly softer in Chromium. */
.leaves{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none;perspective:150vh;perspective:230cqh}
/* no will-change / backface-visibility: a permanently promoted layer snaps to whole CSS px and shifts the
   closed leaves by up to 1px; the browser promotes them on its own while they animate. */
.leaf{position:absolute;top:0;bottom:0;overflow:hidden;
  transition:transform .9s var(--settle),filter .9s var(--settle)}
.leaf img{position:absolute;display:block;max-width:none}
.leaf.l{left:0;width:var(--seam);transform-origin:0 50%}
.leaf.r{left:var(--seam);right:0;transform-origin:100% 50%}
.leaf.l img{width:var(--lsx);height:var(--lsy);left:calc((100% - var(--lsx)) * var(--lpx));top:calc((100% - var(--lsy)) * var(--lpy))}
.leaf.r img{width:var(--rsx);height:var(--rsy);left:calc((100% - var(--rsx)) * var(--rpx));top:calc((100% - var(--rsy)) * var(--rpy))}
/* right leaf leads; the left follows 70 ms later and runs 5% longer */
.open .leaf.r{transform:rotateY(-80deg);filter:brightness(.45);transition:transform 1.3s var(--swing),filter 1.3s var(--swing)}
.open .leaf.l{transform:rotateY(80deg);filter:brightness(.45);transition:transform 1.365s var(--swing) .07s,filter 1.365s var(--swing) .07s}

/* ---------- closed state: lockup + affordance ---------- */
.lockup{position:absolute;left:-12%;right:-12%;top:9%;top:9cqh;z-index:4;text-align:center;pointer-events:none;
  transition:opacity .4s ease .45s,transform .4s var(--rise) .45s}
.lockup h1{font-weight:400}
.lockup .name{display:block;font-family:var(--script);font-weight:400;font-size:34px;font-size:max(30px,12.5cqw);line-height:1.12;color:var(--name);text-shadow:var(--legible);white-space:nowrap}
.lockup .trade{display:block;margin-top:.35em;font-family:var(--serif);font-weight:500;font-size:12px;font-size:clamp(11px,2.9cqw,15px);line-height:1.3;letter-spacing:.24em;text-transform:uppercase;color:var(--limewash);text-shadow:var(--legible);padding-left:.24em}
.open .lockup{opacity:0;transform:translateY(-6px);transition:opacity .3s ease,transform .3s ease}

.enter{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7%;padding-bottom:7cqh}
/* "Step inside": brass-lit italic on a soft dark backing so it reads on the lit door foot; it rises in once the
   scene has arrived (1.1 s), draws its rule, then breathes a slow glow. Hover/focus brighten it and the rule. */
.enter-label{position:relative;font-family:var(--serif);font-style:italic;font-weight:400;font-size:22px;font-size:clamp(21px,6.6cqw,31px);line-height:1.2;letter-spacing:.01em;color:#F7E9C8;
  text-shadow:0 0 .7em rgba(227,169,79,.55),0 1px 2px rgba(0,0,0,.95),0 .06em .32em rgba(12,8,4,.9);
  transition:opacity .4s ease .45s,transform .4s var(--rise) .45s,color .3s ease;
  animation:enter-in .9s var(--rise) 1.1s backwards,enter-breathe 3.8s ease-in-out 2.2s infinite}
.enter-label::before{content:"";position:absolute;z-index:-1;inset:-1.3em -3em -1.1em;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(10,7,3,.82),rgba(10,7,3,.45) 55%,transparent)}
.enter-label::after{content:"";position:absolute;left:0;right:0;bottom:-.14em;height:1px;background:var(--brass);opacity:.7;transform:scaleX(0);transform-origin:50% 50%;
  transition:transform .4s var(--rise),opacity .3s ease;animation:enter-rule .7s var(--rise) 1.8s forwards}
@keyframes enter-in{from{opacity:0;transform:translateY(12px)}}
@keyframes enter-rule{to{transform:scaleX(1)}}
@keyframes enter-breathe{
  0%,100%{opacity:.86;text-shadow:0 0 .5em rgba(227,169,79,.35),0 1px 2px rgba(0,0,0,.95),0 .06em .32em rgba(12,8,4,.9)}
  50%{opacity:1;text-shadow:0 0 .95em rgba(227,169,79,.8),0 1px 2px rgba(0,0,0,.95),0 .06em .32em rgba(12,8,4,.9)}}
.enter:focus{outline:none}
.enter:focus-visible{outline:1px solid var(--brass);outline-offset:-5px}
.enter:focus-visible .enter-label{color:#fff;animation-play-state:running,paused}
.enter:focus-visible .enter-label::after{transform:scaleX(1);opacity:1}
.doc-hidden .enter-label{animation-play-state:paused}
/* the button stays (invisibly) focusable until the Design link takes focus at 860 ms, so focus never drops to <body> */
.open .enter{visibility:hidden;pointer-events:none;transition:visibility 0s .9s}
.open .enter-label{opacity:0;transform:translateY(-6px);transition:opacity .3s ease,transform .3s ease;animation:none}
.open .enter-label::after{animation:none}

/* hover / focus: the leaves give 5 degrees and the room shows faintly behind them */
.stage:not(.open):not(.closing) .enter:focus-visible ~ .leaves .l{transform:rotateY(5deg);transition-duration:.5s}
.stage:not(.open):not(.closing) .enter:focus-visible ~ .leaves .r{transform:rotateY(-5deg);transition-duration:.5s}
.stage:not(.open):not(.closing) .enter:focus-visible ~ .room{opacity:1;transition:opacity .2s ease}
.stage:not(.open):not(.closing) .enter:focus-visible ~ .room::before{opacity:.4;transition-duration:.4s}
@media (hover:hover){
  .enter:hover .enter-label{color:#fff;animation-play-state:running,paused}
  .enter:hover .enter-label::after{transform:scaleX(1);opacity:1}
  .stage:not(.open):not(.closing) .enter:hover ~ .leaves .l{transform:rotateY(5deg);transition-duration:.5s}
  .stage:not(.open):not(.closing) .enter:hover ~ .leaves .r{transform:rotateY(-5deg);transition-duration:.5s}
  .stage:not(.open):not(.closing) .enter:hover ~ .room{opacity:1;transition:opacity .2s ease}
  .stage:not(.open):not(.closing) .enter:hover ~ .room::before{opacity:.4;transition-duration:.4s}
}

/* ---------- the menu, inside the lit opening ---------- */
.menu{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 10%;padding:0 10cqw}
.js .menu{visibility:hidden;transition:visibility 0s .3s}
.js .open .menu{visibility:visible;transition:visibility 0s}
.menu a{text-decoration:none;color:var(--limewash);text-shadow:0 1px 8px rgba(10,7,3,.9);text-decoration-thickness:1px;text-underline-offset:.24em}
/* hover only where there is a real pointer: on touch the tap that opens the doors lands on a menu item
   (Photography, on most phones) and a sticky :hover would leave it underlined */
.menu a:focus-visible,.menu .close:focus-visible{text-decoration:underline;text-decoration-color:var(--brass);text-decoration-thickness:1px;outline:none}
@media (hover:hover){.menu a:hover,.menu .close:hover{text-decoration:underline;text-decoration-color:var(--brass);text-decoration-thickness:1px}}
.menu a:focus,.menu .close:focus{outline:none}
.menu-main{display:flex;flex-direction:column;align-items:center;gap:12px;gap:2.2cqh}
.menu-main a{font-size:18px;font-size:max(17px,4.6cqh);line-height:1.15;font-weight:400}
.menu-contact{display:flex;flex-direction:column;align-items:center;gap:4px;gap:.8cqh;margin-top:20px;margin-top:4.2cqh}
.menu-contact a{font-size:13px;font-size:max(11px,2.3cqh);line-height:1.3;color:var(--stone);white-space:nowrap}
.menu-contact a:focus-visible{color:var(--limewash)}
@media (hover:hover){.menu-contact a:hover{color:var(--limewash)}}
.em-short{display:none}
/* the opened leaves leave 72.1% of the opening width clear; at the 11px floor the full address is
   ~162px wide, so it needs an opening of ~233px or more */
@container opening (max-width: 240px){
  .em-full{display:none}
  .em-short{display:inline}
}
.menu-close{margin-top:10px;margin-top:2.4cqh}
.menu .close{font-style:italic;font-size:13px;font-size:max(12px,2.2cqh);line-height:1.3;color:var(--stone);text-shadow:0 1px 8px rgba(10,7,3,.9);text-decoration-thickness:1px;text-underline-offset:.24em;padding:4px 6px}
.menu .close:focus-visible{color:var(--limewash)}
@media (hover:hover){.menu .close:hover{color:var(--limewash)}}

/* items rise in once the leaves are past ~70 degrees, 50 ms apart */
.js .menu li{opacity:0;transform:translateY(6px);transition:opacity .2s ease,transform .2s ease}
.js .open .menu li{opacity:1;transform:none;transition:opacity .28s ease var(--d,.78s),transform .28s var(--rise) var(--d,.78s)}
.menu-main li:nth-child(2){--d:.83s}
.menu-main li:nth-child(3){--d:.88s}
.menu-main li:nth-child(4){--d:.93s}
.menu-contact li:nth-child(1){--d:.98s}
.menu-contact li:nth-child(2){--d:1.03s}
.menu-contact li:nth-child(3){--d:1.08s}

/* ---------- lantern glow + finial ---------- */
.glow{position:absolute;left:var(--glL);top:var(--glT);width:var(--glW);height:var(--glH);pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(closest-side,rgba(227,169,79,.3),rgba(227,169,79,.11) 48%,transparent);
  animation:flicker 4.3s linear infinite}
.doc-hidden .glow{animation-play-state:paused}
@keyframes flicker{
  0%{opacity:1}7%{opacity:.93}11%{opacity:.98}23%{opacity:.9}29%{opacity:1}38%{opacity:.95}
  51%{opacity:.88}55%{opacity:.97}64%{opacity:.92}78%{opacity:1}84%{opacity:.94}92%{opacity:.99}100%{opacity:1}}
.finial{position:absolute;left:var(--finL);top:var(--finT);width:var(--finW);height:var(--finH);pointer-events:none}
.finial img{width:100%;height:100%;display:block}

/* ---------- life in the scene (Nov 2026) ----------
   Nothing new is drawn: every moving thing is a copy of the plate (same file as the leaves), shown through a
   window on its own part of the scene and feathered into the still plate around it.
   .sway   the two plants: a slow noise field warps the copy (#breeze-* in index.html); a leaf-colour matte
           inside the filter scales the warp, so the fronds stir and the plaster behind stays put. doors.js
           breathes the displacement at ~25 fps, pauses it while the doors swing or the tab is hidden.
   .swing  the lantern on a long, slow pendulum (half a degree, 5.6 s there and back), pivot at its chain.
   .cast   the lamp's light on the arch above the door, drifting in step with the lantern.
   .candle the floor lantern's flame, a quicker, rougher flicker, and .pool, its breath on the tiles.
   All of it stops under prefers-reduced-motion and while the tab is hidden. */
.life{position:absolute;inset:0;pointer-events:none}
.life > *{position:absolute;overflow:hidden}
.sway img,.swing img{position:absolute;display:block;max-width:none}
.sway-l{left:0;top:21.41%;width:28.97%;height:41.09%;filter:url(#breeze-l)}
.sway-l img{width:345.17%;height:243.38%;left:0;top:-52.11%}
.sway-r{left:71.61%;top:30.79%;width:28.39%;height:63.66%;filter:url(#breeze-r)}
.sway-r img{width:352.29%;height:157.09%;left:-252.29%;top:-48.36%}
.sway{-webkit-mask-image:linear-gradient(90deg,transparent,#000 10% 90%,transparent),linear-gradient(180deg,transparent,#000 6% 84%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 10% 90%,transparent),linear-gradient(180deg,transparent,#000 6% 84%,transparent);mask-composite:intersect}
.swing{left:46.35%;top:0;width:8.72%;height:17.36%;transform-origin:50% 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 24% 76%,transparent),linear-gradient(180deg,#000 82%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 24% 76%,transparent),linear-gradient(180deg,#000 82%,transparent);mask-composite:intersect;
  animation:lamp-swing 2.8s ease-in-out infinite alternate}
.swing img{width:1146.27%;height:576%;left:-531.34%;top:0}
.cast{left:33%;top:-2%;width:34%;height:18.7%;mix-blend-mode:screen;
  background:radial-gradient(60% 70% at 50% 86%,rgba(227,169,79,.16),rgba(227,169,79,.06) 50%,transparent 80%);
  -webkit-mask-image:linear-gradient(180deg,#000 72%,transparent);mask-image:linear-gradient(180deg,#000 72%,transparent);
  animation:flicker 4.3s linear infinite,lamp-cast 2.8s ease-in-out infinite alternate}
.glow{animation:flicker 4.3s linear infinite,lamp-cast 2.8s ease-in-out infinite alternate}
.candle{left:16.8%;top:78.24%;width:5.86%;height:13.89%;mix-blend-mode:screen;transform-origin:50% 70%;
  background:radial-gradient(closest-side at 50% 50%,rgba(255,196,96,.42),rgba(227,150,60,.16) 45%,transparent);
  animation:candle 1.9s linear infinite}
.pool{left:14.52%;top:92.13%;width:10.42%;height:6.94%;mix-blend-mode:screen;
  background:radial-gradient(closest-side,rgba(227,169,79,.22),transparent);animation:candle-pool 1.9s linear infinite}
@keyframes lamp-swing{from{rotate:-.5deg}to{rotate:.5deg}}
@keyframes lamp-cast{from{translate:-1.2% 0}to{translate:1.2% 0}}
@keyframes candle{
  0%{opacity:1;scale:1}9%{opacity:.78;scale:.97 1.03}17%{opacity:.95;scale:1.02 .98}26%{opacity:.7;scale:.96}
  34%{opacity:.92;scale:1}47%{opacity:.82;scale:1.03 .97}56%{opacity:1;scale:.98 1.02}68%{opacity:.74;scale:.97}
  79%{opacity:.9;scale:1.01}88%{opacity:.8;scale:.99 1.03}100%{opacity:1;scale:1}}
@keyframes candle-pool{0%{opacity:1}9%{opacity:.8}26%{opacity:.72}34%{opacity:.92}47%{opacity:.84}68%{opacity:.76}79%{opacity:.9}100%{opacity:1}}
@media (orientation: portrait){
  /* the phone plate is the middle of the scene: doors and lantern only (no plants, no floor candle) */
  .sway,.candle,.pool{display:none}
  .swing{left:38.37%;top:0;width:22.92%;height:18.07%}
  .swing img{width:436.36%;height:553.51%;left:-167.42%;top:0}
  .cast{left:24%;top:-2%;width:52%;height:18.4%;background:radial-gradient(55% 60% at 50% 86%,rgba(227,169,79,.14),rgba(227,169,79,.05) 50%,transparent 80%)}
}
.doc-hidden .life > *,.doc-hidden .glow{animation-play-state:paused}
html:not(.js) .sway,html:not(.js) .swing{display:none}

/* ---------- credit ---------- */
.credit{position:fixed;left:16px;right:16px;bottom:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:10;text-align:center;font-size:12px;line-height:1.5;color:rgba(237,227,208,.62);text-shadow:0 1px 3px rgba(0,0,0,.85)}
.credit .by{white-space:nowrap}
.credit a{color:var(--limewash);text-decoration:none}
.credit a:focus-visible{text-decoration:underline;text-decoration-color:var(--brass);text-decoration-thickness:1px;text-underline-offset:.2em;outline:none}
@media (hover:hover){.credit a:hover{text-decoration:underline;text-decoration-color:var(--brass);text-decoration-thickness:1px;text-underline-offset:.2em}}

/* ---------- arrival: the entrance comes up out of night (300ms), like every inner page ----------
   A CSS animation that ends by itself. doors.js swaps .again on a back/forward-cache return so it plays
   once more. Leaving stays the stage's own 250ms fade (.leaving .stage), so nothing fades twice. */
html.js body::after{content:"";position:fixed;inset:0;z-index:20;background:var(--night);pointer-events:none;opacity:0;
  animation:arrive .3s var(--settle) backwards}
html.js.again body::after{animation-name:arrive-again}
@keyframes arrive{from{opacity:1}}
@keyframes arrive-again{from{opacity:1}}
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.3s;animation-timing-function:var(--settle)}
}

/* ---------- instant reset (back/forward cache, first load): no close animation ---------- */
.stage.no-anim,.no-anim .leaf,.no-anim .room,.no-anim .room::before,.no-anim .menu li,.no-anim .lockup,.no-anim .enter-label,.no-anim .enter,.js .no-anim .menu{transition:none}

/* ---------- no JS: the doors stand open with the menu visible ---------- */
html:not(.js) .leaves{display:none}
html:not(.js) .room,html:not(.js) .room::before{opacity:1}
html:not(.js) .lockup{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- reduced motion: no swing, a short crossfade to the open state ---------- */
@media (prefers-reduced-motion: reduce){
  .stage,.stage.open{transition:none !important}
  .leaf,.room,.room::before,.lockup,.enter-label,.menu li,.enter,.open .leaf.l,.open .leaf.r,.open .room,.open .room::before,.open .lockup,.open .enter-label,.js .open .menu li{transition-duration:.15s !important;transition-delay:0s !important}
  .leaf{transition-property:opacity !important;transform:none !important;filter:none !important}
  .open .leaf{opacity:0}
  .open .lockup,.open .enter-label,.js .menu li{transform:none !important}
  .glow{animation:none}
  .life{display:none}
  .enter-label,.enter-label::after{animation:none}
  .enter-label::after{transform:scaleX(1)}
  html.js body::after{display:none}
  .room::after{transition:none}
}
