/* V23 layer for the Elsewhere reader (26 Oct 2026). Pairs with reader-v23.js. Stage units: 1920 × 1080. */
:root{--v23-ease:cubic-bezier(.16,1,.3,1);--v23-warm:#FFE6BC;--v23-amber:#E8A04A}

/* ---------- 1 · the spread ---------- */
.v23 #stage{background:#16100b}
.v23 #screens{background:var(--ivory);transform-origin:50% 50%;box-shadow:0 30px 80px rgba(0,0,0,.35)}
/* paper grain over every page, like uncoated stock under light */
.v23 #screens::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.07;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>")}
/* the gutter: where the two pages meet and the paper dips into the spine */
.v23-gutter{position:absolute;left:50%;width:150px;transform:translateX(-50%);z-index:5;pointer-events:none;mix-blend-mode:multiply;
  background:linear-gradient(90deg,rgba(70,48,26,0) 0,rgba(70,48,26,.07) 30%,rgba(40,26,12,.2) 47%,rgba(30,18,8,.3) 49.6%,rgba(255,250,240,.0) 50.4%,rgba(40,26,12,.16) 52%,rgba(70,48,26,.06) 70%,rgba(70,48,26,0) 100%)}
.v23-gutter::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(1px);background:rgba(255,252,244,.35);mix-blend-mode:screen}
/* page stacks at the fore-edges: thick on the side still to read, thin on the side already read */
.v23-edge{position:absolute;z-index:5;pointer-events:none;transition:width .9s var(--v23-ease);
  background:repeating-linear-gradient(90deg,#f3ecdc 0 1px,#c9bb9c 1px 2px)}
.v23-edge.l{left:0;box-shadow:2px 0 4px rgba(40,26,12,.18)}
.v23-edge.r{right:0;box-shadow:-2px 0 4px rgba(40,26,12,.18)}
.v23-front .v23-gutter,.portrait .v23-gutter,.portrait .v23-edge,.v23-front .v23-edge.l{display:none}

/* ---------- 2 · the page turn (the slide is kept for phones) ---------- */
.v23:not(.portrait) .scr.in,.v23:not(.portrait) .scr.inb{animation:none}
.v23-turn{position:absolute;left:0;top:0;z-index:4;pointer-events:none;perspective:3000px;perspective-origin:50% 45%}
.v23-half{position:absolute;top:0;overflow:hidden}
.v23-strip{position:absolute;top:0;transform-style:preserve-3d;will-change:transform}
.v23-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:var(--ivory)}
.v23-face.b{transform:rotateY(180deg)}
.v23-face>i{position:absolute;inset:0;z-index:2;opacity:0;background:linear-gradient(90deg,rgba(26,16,8,.85),rgba(26,16,8,.55))}
.v23-face.hinge-l::after,.v23-face.hinge-r::after{content:"";position:absolute;top:0;bottom:0;width:90px;z-index:3;pointer-events:none}
.v23-face.hinge-l::after{left:0;background:linear-gradient(90deg,rgba(30,18,8,.28),rgba(30,18,8,0))}
.v23-face.hinge-r::after{right:0;background:linear-gradient(270deg,rgba(30,18,8,.28),rgba(30,18,8,0))}
.v23-half.lift.r{background:linear-gradient(90deg,rgba(24,14,6,.5),rgba(24,14,6,.18) var(--w,50%),rgba(24,14,6,0) calc(var(--w,50%) + 140px))}
.v23-half.lift.l{background:linear-gradient(270deg,rgba(24,14,6,.5),rgba(24,14,6,.18) var(--w,50%),rgba(24,14,6,0) calc(var(--w,50%) + 140px))}
.v23-half.cast.l{background:linear-gradient(270deg,rgba(24,14,6,.32),rgba(24,14,6,0) 85%);z-index:1}
.v23-half.cast.r{background:linear-gradient(90deg,rgba(24,14,6,.32),rgba(24,14,6,0) 85%);z-index:1}
.v23-clone{position:absolute!important;top:0!important;width:var(--W)!important;height:var(--H)!important;right:auto!important;bottom:auto!important;transform:none!important;opacity:1!important}
.v23-clone,.v23-clone *{animation:none!important;transition:none!important}
.v23-clone .v22-c{opacity:1!important;transform:none!important;filter:none!important}
.v23-clone .v23-cta{display:none}

/* ---------- buttons on the photograph: the way into the 3D ---------- */
.v23-cta{position:absolute;left:56px;bottom:56px;z-index:4;display:inline-flex;align-items:center;gap:14px;height:66px;padding:0 32px 0 26px;border-radius:33px;
  font:700 21px var(--ui);letter-spacing:.04em;color:var(--v23-warm);background:rgba(22,13,6,.58);border:1.5px solid rgba(240,190,110,.9);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 0 0 1px rgba(255,220,160,.12) inset,0 0 26px rgba(232,150,60,.45),0 10px 30px rgba(0,0,0,.35);
  transition:transform .35s var(--v23-ease),box-shadow .35s var(--v23-ease)}
.v23-cta svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2}
.v23-cta .glow{position:absolute;inset:-2px;border-radius:inherit;box-shadow:0 0 34px 6px rgba(240,160,70,.55);opacity:.4;animation:v23pulse 2.8s ease-in-out infinite;pointer-events:none}
.v23-cta:hover,.v23-cta:focus-visible{transform:translateY(-2px) scale(1.02);box-shadow:0 0 0 1px rgba(255,220,160,.2) inset,0 0 40px rgba(240,160,70,.7),0 14px 34px rgba(0,0,0,.4)}
.kb .v23-cta:focus{outline:4px solid var(--v23-warm);outline-offset:6px}
@keyframes v23pulse{50%{opacity:1}}
.still .v23-cta .glow{animation:none}
/* the spread under an open layer */
.v23-under .tx,.v23-under .head{transition:opacity .6s var(--v23-ease),filter .6s var(--v23-ease)}
.v23-under .tx{opacity:.04;filter:blur(2px)}
.v23-lifted img{transition:filter .9s var(--v23-ease)!important;filter:brightness(.4) saturate(.8) blur(2px)}
.v23-lifted .v23-cta{opacity:0;pointer-events:none}

/* ---------- layers (share the reader's .overlay contract) ---------- */
.overlay.v23-layer{display:block;background:none;bottom:auto;animation:none;z-index:40}
.v23-layer .btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}

/* ---------- 3 · rise from the page ---------- */
.v23-rise>*{position:absolute}
.v23-rise .dim{inset:0;opacity:0;transition:opacity .8s var(--v23-ease);
  background:radial-gradient(ellipse 760px 640px at var(--px) 48%,rgba(30,16,6,.15),rgba(14,8,3,.84) 70%),linear-gradient(rgba(14,8,3,.25),rgba(14,8,3,.25))}
.v23-rise.on .dim{opacity:1}
.v23-rise .rays{width:1700px;height:1700px;transform:translate(-50%,-50%) scale(.6);opacity:0;mix-blend-mode:screen;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,rgba(255,196,120,.22) 0deg 3deg,rgba(255,196,120,0) 3deg 11deg);
  -webkit-mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 18%,transparent 52%);mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 18%,transparent 52%);
  transition:opacity 1.6s var(--v23-ease) .5s,transform 2.4s var(--v23-ease) .3s;animation:v23spin 90s linear infinite}
.v23-rise .rays::after{content:"";position:absolute;inset:30%;border-radius:50%;background:radial-gradient(circle,rgba(255,200,130,.38),rgba(255,170,90,0) 70%)}
.v23-rise.on .rays{opacity:1;transform:translate(-50%,-50%) scale(1)}
@keyframes v23spin{to{rotate:360deg}}
.still .v23-rise .rays{animation:none}
.v23-rise .gl canvas{display:block}
.v23-rise .lines{left:0;top:0;pointer-events:none;overflow:visible}
.v23-rise .lines path{fill:none;stroke:#F4DDB0;stroke-width:1.4;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.1s var(--v23-ease)}
.v23-rise .lines circle{fill:#FFE6BC;stroke:rgba(255,230,190,.35);stroke-width:7;opacity:0;transition:opacity .6s .5s}
.v23-rise.ready .lines path{stroke-dashoffset:0}.v23-rise.ready .lines circle{opacity:1}
.v23-rise .labels{left:0;top:0}
.v23-rise .lab{position:absolute;white-space:nowrap;display:flex;align-items:baseline;gap:10px;padding:10px 4px;background:none;border:0;cursor:pointer;
  font:700 17px var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--v23-warm);text-shadow:0 2px 12px rgba(0,0,0,.6);
  opacity:0;transform:translateY(-50%);transition:opacity .6s var(--v23-ease),color .3s}
.v23-rise .lab.l{transform:translate(-100%,-50%)}
.v23-rise .lab b{font:600 14px var(--ui);color:var(--v23-amber);letter-spacing:.1em}
.v23-rise.ready .lab{opacity:1}.v23-rise.ready .lab:nth-child(2){transition-delay:.1s}.v23-rise.ready .lab:nth-child(3){transition-delay:.2s}.v23-rise.ready .lab:nth-child(4){transition-delay:.3s}.v23-rise.ready .lab:nth-child(5){transition-delay:.4s}
.v23-rise .lab[aria-pressed=true]{color:#fff}.v23-rise .lab[aria-pressed=true]::after{content:"";position:absolute;left:4px;right:4px;bottom:4px;height:2px;background:var(--v23-amber)}
.kb .v23-rise .lab:focus{outline:3px solid var(--v23-warm);outline-offset:4px}
.v23-rise .cap,.v23-rise .info,.v23-rise .acts{left:var(--sx);width:var(--sw);opacity:0;transform:translateY(16px);transition:opacity .7s var(--v23-ease),transform .7s var(--v23-ease)}
.v23-rise .cap{top:110px}.v23-rise .cap .kicker{color:var(--v23-amber)}
.v23-rise .cap .t{font:400 64px/1.04 var(--serif);color:var(--ivory);margin-top:18px}
.v23-rise .cap .hint{display:flex;align-items:center;gap:10px;margin-top:22px;font:500 18px var(--ui);color:rgba(246,242,232,.6)}
.v23-rise .cap .hint svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.v23-rise .info{top:420px;padding:6px 0 6px 28px;border-left:3px solid var(--v23-amber)}
.v23-rise .info h3{font:400 38px var(--serif);color:var(--ivory)}
.v23-rise .info p{font:400 23px/1.5 var(--ui);color:rgba(246,242,232,.82);margin-top:12px}
.v23-rise .acts{bottom:70px;display:flex;flex-wrap:wrap;gap:16px}
.v23-rise.on .cap{opacity:1;transform:none;transition-delay:.5s}
.v23-rise.ready .info,.v23-rise.ready .acts{opacity:1;transform:none}.v23-rise.ready .acts{transition-delay:.15s}
.v23-rise.flat .acts,.v23-rise.flat .info{opacity:1;transform:none}
.v23-rise.closing .cap,.v23-rise.closing .info,.v23-rise.closing .acts,.v23-rise.closing .lab,.v23-rise.closing .lines{opacity:0!important;transition-delay:0s!important}
.v23-rise.closing .dim,.v23-rise.closing .rays{opacity:0;transition:opacity .9s var(--v23-ease) .35s}
/* origin map */
.v23-origin{inset:0;opacity:0;transition:opacity .45s var(--v23-ease);z-index:3}
.v23-origin.on{opacity:1}
.v23-origin>svg{position:absolute;inset:0;width:100%;height:100%}
.v23-origin .card{position:absolute;right:96px;bottom:80px;width:620px;padding:40px 44px;border-radius:24px;background:rgba(12,22,26,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(246,242,232,.14)}
.v23-origin .card .kicker{color:var(--v23-amber)}
.v23-origin .card h3{font:400 50px/1.05 var(--serif);color:var(--ivory);margin-top:14px}
.v23-origin .card p{font:400 22px/1.5 var(--ui);color:rgba(246,242,232,.82);margin:16px 0 28px}

/* ---------- 4 · the sambusa kitchen ---------- */
.v23-kitchen{overflow:hidden;display:grid!important;grid-template-columns:760px 1fr;opacity:0;transform:scale(.985);transition:opacity .55s var(--v23-ease),transform .7s var(--v23-ease)}
.v23-kitchen.on{opacity:1;transform:none}
.v23-kitchen .page{position:relative;min-height:0;background:var(--ivory);padding:84px 56px 60px 96px;display:flex;flex-direction:column;box-shadow:inset -40px 0 60px -40px rgba(40,26,12,.25)}
.v23-kitchen .kicker{color:var(--ch)}
.v23-kitchen .title{font-size:62px;margin-top:16px}
.v23-kitchen .chips{list-style:none;display:flex;gap:6px;margin-top:40px}
.v23-kitchen .chips li{display:flex;align-items:center}
.v23-kitchen .chips li+li::before{content:"→";margin:0 6px 0 2px;color:var(--muted);font:400 22px var(--ui)}
.v23-kitchen .chips button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 16px;border-radius:14px;border:2px solid var(--line);background:var(--paper);
  font:700 18px var(--ui);letter-spacing:.12em;text-transform:uppercase;color:var(--ink);transition:background .3s,border-color .3s,color .3s}
.v23-kitchen .chips b{font:600 13px var(--ui);color:var(--muted);letter-spacing:.1em}
.v23-kitchen .chips button.done{border-color:color-mix(in srgb,var(--ch) 45%,var(--line))}
.v23-kitchen .chips button[aria-pressed=true]{background:var(--ch);border-color:var(--ch);color:#1B1608}.v23-kitchen .chips button[aria-pressed=true] b{color:#1B1608}
.v23-kitchen .stepnum{font:400 140px/1 var(--serif);color:var(--ch);margin-top:36px;letter-spacing:-.03em}
.v23-kitchen .stepk{font:400 54px var(--serif);color:var(--forest);margin-top:4px}
.v23-kitchen .steptx{font:400 25px/1.55 var(--ui);color:var(--ink);margin-top:18px;max-width:560px}
.v23-kitchen .nav{margin-top:auto;display:flex;gap:16px}
.v23-kitchen .nav .btn[disabled]{opacity:.35}
.v23-kitchen .nav{flex-wrap:nowrap;gap:12px}.v23-kitchen .nav .btn{height:58px;padding:0 22px;font-size:19px}.v23-kitchen .nav .back{margin-left:auto}
.v23-kitchen .table{position:relative;overflow:hidden;background:radial-gradient(ellipse 70% 60% at 50% 42%,#4a2f1b,#1c120a 70%,#0e0905)}
.v23-kitchen .table .gl{position:absolute;inset:0;transition:opacity .25s}
.v23-kitchen.cut .table .gl{opacity:0}
.v23-kitchen .table .fallback{position:absolute;inset:0}
.v23-kitchen .table .fallback img{width:100%;height:100%;object-fit:cover}
.v23-kitchen.live .table .fallback{display:none}
.v23-kitchen .table .hint{position:absolute;left:32px;bottom:28px;display:flex;align-items:center;gap:10px;font:500 18px var(--ui);color:rgba(246,242,232,.6)}
.v23-kitchen .table .hint svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.v23-kitchen:not(.live) .table .hint{display:none}
.v23-kitchen .stepk,.v23-kitchen .steptx,.v23-kitchen .stepnum{animation:v23step .6s var(--v23-ease) both}
.v23-kitchen.s0 .stepnum,.v23-kitchen.s1 .stepnum,.v23-kitchen.s2 .stepnum,.v23-kitchen.s3 .stepnum{animation-name:v23step}
@keyframes v23step{from{opacity:0;transform:translateY(12px)}}
.v23-kitchen.closing{opacity:0;transform:scale(.985)}
.still .v23-layer,.still .v23-layer *{transition-duration:0s!important;animation:none!important}

/* rise without WebGL: photograph stays as it is; parts listed on the text page */
.v23-rise.flat .dim{background:linear-gradient(90deg,rgba(14,8,3,.88) 0,rgba(14,8,3,.88) 50%,rgba(14,8,3,0) 50%)}
.v23-rise.flat .rays,.v23-rise.flat .lines{display:none}
.v23-rise.flat .labels{left:var(--sx);top:300px;width:var(--sw);display:flex;flex-wrap:wrap;gap:6px 26px}
.v23-rise.flat .lab{position:static;transform:none;opacity:1}
.v23-rise.flat .info{top:420px}
/* phones: the photograph is the top of the page, the reading sits under it */
.portrait .v23-rise .dim{background:radial-gradient(ellipse 620px 560px at 50% var(--pyc),rgba(30,16,6,.15),rgba(14,8,3,.88) 72%)}
.portrait .v23-rise .rays{width:1300px;height:1300px}
.portrait .v23-rise .cap{top:calc(var(--py) + 60px)}
.portrait .v23-rise .info{top:calc(var(--py) + 330px)}
.portrait .v23-rise .acts{bottom:60px}
.portrait .v23-kitchen{grid-template-columns:1fr;grid-template-rows:880px 1fr}
.portrait .v23-kitchen .table{order:-1}
.portrait .v23-kitchen .page{padding:56px 64px 48px;box-shadow:inset 0 40px 60px -40px rgba(40,26,12,.25)}
.portrait .v23-kitchen .stepnum{font-size:96px;margin-top:22px}
.v23-rise.flat .cap .hint{display:none}
.v23-rise.flat .labels{top:330px}.v23-rise.flat .info{top:450px}
.v23-under .v23-cta{opacity:0;pointer-events:none}
