/* Slavic Affirmations, "Panel Block Dusk", drawn in code. Mobile first (390 x 844), then up to 1920.
   No picture is loaded anywhere: the only url() in this file is the font. Only transform and opacity are animated. */
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
}
:root {
  --violet: #3B3557; --amber: #F0A43A; --concrete: #8A8C8E; --teal: #1F3438; --mauve: #9C6B8E;
  --night: #1d1a30; --ink: #15131f; --cream: #f6e2bd; --pale: #cfc3d6; --wall: #675b7a;
  --pad: clamp(16px, 5vw, 40px);
  --font: "Rubik", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* concrete, as a print would make it: two screens of dots */
  --dots: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.6px) 0 0 / 7px 7px, radial-gradient(rgba(21, 19, 31, .13) 1px, transparent 1.7px) 3px 4px / 11px 11px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--cream); background: #141226;
  font-size: 17px; line-height: 1.45; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* the sky behind everything: three gradients, faded by the scroll position (opacity only) */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #141226; }
.sky-l { position: absolute; inset: 0; will-change: opacity; }
.sky-night { background: linear-gradient(#131124 0, #191c30 45%, #1c2c36 100%); }
.sky-dusk { background: linear-gradient(#2e2850 0, #4a3d72 30%, #7d588f 58%, #a86f93 80%, #bf7f8e 100%); }
.sky-dawn { background: linear-gradient(#4b4273 0, #8a6490 34%, #c98a80 62%, #eeae66 84%, #f6cf8a 100%); opacity: 0; }
.sky-sun { position: absolute; left: 50%; bottom: -30vmax; width: 90vmax; height: 90vmax; margin-left: -45vmax; border-radius: 50%; opacity: 0; will-change: opacity, transform;
  background: radial-gradient(closest-side, rgba(255, 226, 160, .8), rgba(246, 190, 110, .35) 40%, rgba(240, 164, 58, 0)); }
main, .foot { position: relative; z-index: 1; }

/* film grain: one small canvas filled once by world.js, stretched, moved in steps */
.grain {
  position: fixed; left: -130px; top: -130px; width: calc(100vw + 260px); height: calc(100vh + 260px); z-index: 50;
  pointer-events: none; opacity: .1; animation: grain .9s steps(1) infinite; will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-37px, 51px); } 25% { transform: translate(64px, -22px); }
  37% { transform: translate(-90px, -73px); } 50% { transform: translate(23px, 88px); } 62% { transform: translate(-58px, 14px); }
  75% { transform: translate(101px, 60px); } 87% { transform: translate(-12px, -99px); }
}

/* thin bar */
.bar {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 10px var(--pad); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--cream); background: linear-gradient(rgba(29, 26, 48, .92), rgba(29, 26, 48, 0)); opacity: 0;
  pointer-events: none; transition: opacity .3s;
}
.bar.on { opacity: 1; }
.bar-soon { color: var(--amber); }
/* while the music is on: a small lantern in the bar that stops it from anywhere on the page */
.bar-music { position: relative; width: 44px; height: 44px; margin: -6px 10px -24px auto; pointer-events: auto; border-radius: 50%; }
.bar-music[hidden] { display: none; }
.bar-music svg { position: absolute; left: 7px; top: 1px; width: 30px; height: 43px; overflow: visible; }
.bar-music::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 190, 110, .7), rgba(240, 164, 58, .3) 60%, rgba(240, 164, 58, 0)); }
.bar-music::after { content: ""; position: absolute; left: 7px; right: 7px; top: 21px; height: 2px; background: var(--cream); transform: rotate(-38deg); box-shadow: 0 0 0 1px rgba(29, 26, 48, .8); }
.bar:not(.on):not(.music) .bar-music { visibility: hidden; pointer-events: none; }
/* while the music is on the bar is there on the first screen too, and carries the tune's name plate:
   an enamel plate like the street name on the wall of a block, with the previous and the next tune beside it */
.bar.music { opacity: 1; }
.bar-tune { display: flex; align-items: center; margin: -6px 0 -24px auto; pointer-events: auto; }
.bar-tune[hidden] { display: none; }
/* only beside a shown switcher: with one tune the switcher stays hidden and the stop lantern keeps its own
   place at the right end of the bar (lead, 2026-11-19) */
.bar-tune:not([hidden]) + .bar-music { margin-left: 2px; }
.tune-prev, .tune-next { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; }
.tune-prev::before, .tune-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -6px 0 0 -3px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(45deg); }
.tune-next::before { margin-left: -9px; transform: rotate(-135deg); }
.tune-name { width: 132px; padding: 7px 6px 6px; text-align: center; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--cream); background: #1F3438; border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgba(246, 226, 189, .85), 0 0 0 2px #1F3438, 0 2px 8px rgba(0, 0, 0, .45); }
.bar-tune.busy .tune-name { animation: busy .7s ease-in-out infinite alternate; }
@media (max-width: 699px) {
  .bar.music { padding-left: 6px; padding-right: 6px; }
  .bar.music .bar-name, .bar.music .bar-soon { display: none; }
  .bar.music .bar-tune { margin-left: 0; margin-right: auto; }
}
@media (min-width: 700px) { .bar-tune { margin-right: 6px; } .bar-tune:not([hidden]) + .bar-music { margin-left: 0; } }
.bar-music + .bar-soon { margin-left: 0; }

/* ---------- 1. hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.scene, .yard { position: absolute; inset: 0; overflow: hidden; }
.ly { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.ly > svg { position: absolute; left: 0; top: 0; }
svg.ly { width: 100%; height: 100%; pointer-events: none; }   /* the far and the front plane lie over the block: a press must fall through them to the lantern */
.momwin { position: absolute; overflow: hidden; }
.momrise { position: absolute; inset: 0; will-change: transform; }
.momrise .fig { position: absolute; left: 50%; bottom: 0; width: 74%; height: auto; margin-left: -37%; transform-origin: 50% 100%; }
.wash { position: absolute; will-change: transform; overflow: visible; }
.passer { position: absolute; overflow: hidden; pointer-events: none; }
.passer i { position: absolute; left: 0; bottom: 0; width: 34%; height: 74%; border-radius: 46% 46% 0 0 / 30% 30% 0 0; background: rgba(120, 66, 22, .5); will-change: transform; transform: translateX(-120%); }
.passer i::before { content: ""; position: absolute; left: 22%; top: -30%; width: 56%; height: 36%; border-radius: 50%; background: inherit; }
.lampglow {
  position: absolute; left: -50px; top: -50px; width: 100px; height: 100px; opacity: 0; pointer-events: none; will-change: opacity, transform; transform-origin: 50% 50%;
  background: radial-gradient(closest-side, rgba(250, 196, 104, .62), rgba(240, 164, 58, .22) 42%, rgba(240, 164, 58, 0));
}
/* the lantern on its arm: a real button on the block plane; its halo and its cone of light are separate layers
   whose opacity the script moves with the notes of the tune */
.lantern { position: absolute; display: block; z-index: 2; border-radius: 6px; }
.lantern .lantern-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lantern-ring { position: absolute; left: 66.7%; top: 52%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; pointer-events: none; }
.lantern.hint .lantern-ring { animation: ring 2.4s ease-out 1.2s infinite; }
.lantern-note { position: absolute; left: 92%; top: 30%; width: 11px; height: 14px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.lantern.hint .lantern-note { opacity: .95; animation: bob 2.4s ease-in-out infinite; }
.lantern.busy .lantern-svg { animation: busy .7s ease-in-out infinite alternate; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes busy { from { opacity: 1; } to { opacity: .55; } }
.lanternhalo { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0; will-change: opacity, transform;
  background: radial-gradient(closest-side, rgba(255, 220, 150, .72), rgba(240, 164, 58, .26) 46%, rgba(240, 164, 58, 0)); }
.lantern-light { position: absolute; pointer-events: none; opacity: 0; will-change: opacity; }
.moth { position: absolute; left: 66.7%; top: 50%; width: 6px; height: 4px; margin: -2px 0 0 -3px; opacity: 0; pointer-events: none; transition: opacity .8s; }
.moth::before, .moth::after { content: ""; position: absolute; top: 0; width: 55%; height: 100%; background: #f6e2bd; border-radius: 70% 30% 60% 40%; animation: flap .13s linear infinite alternate; }
.moth::before { left: 0; transform-origin: 100% 50%; } .moth::after { right: 0; transform-origin: 0 50%; border-radius: 30% 70% 40% 60%; }
.lantern.on .moth { opacity: .9; animation: moth 3.3s linear infinite; }
.lantern.on .moth1 { animation-duration: 4.7s; animation-direction: reverse; animation-delay: -1.3s; }
@keyframes moth { 0% { transform: rotate(0) translate(17px, 0) rotate(90deg); } 25% { transform: rotate(90deg) translate(24px, -6px) rotate(90deg); } 50% { transform: rotate(180deg) translate(15px, 3px) rotate(90deg); } 75% { transform: rotate(270deg) translate(26px, -3px) rotate(90deg); } 100% { transform: rotate(360deg) translate(17px, 0) rotate(90deg); } }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.3); } }
.scrim { position: absolute; left: 0; right: 0; pointer-events: none; }
.scrim-top { top: 0; height: 42%; background: linear-gradient(rgba(34, 29, 56, .84), rgba(34, 29, 56, .5) 48%, rgba(34, 29, 56, 0)); }
.scrim-bottom { bottom: 0; height: 40%; background: linear-gradient(rgba(21, 19, 31, 0), rgba(21, 19, 31, .7) 55%, rgba(21, 19, 31, .92)); }
.nightfall { position: absolute; inset: 0; background: #121024; opacity: 0; pointer-events: none; will-change: opacity; }
.cat-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tail 7s ease-in-out infinite; }
@keyframes tail { 0%, 78%, 100% { transform: rotate(0); } 83% { transform: rotate(-16deg); } 88% { transform: rotate(5deg); } 93% { transform: rotate(-9deg); } }
.bn-head { transform-box: fill-box; transform-origin: 50% 100%; }
.bn-on .bn-head { animation: judge 13s ease-in-out infinite; }
.bn-on g:nth-of-type(2) > .bn-head, .bn-on .bn-head.b2 { animation-delay: -5s; animation-duration: 17s; }
@keyframes judge { 0%, 70%, 100% { transform: rotate(0); } 75%, 88% { transform: rotate(9deg); } 93% { transform: rotate(-3deg); } }

.hero-ui { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: max(22px, 5.2svh); }
.title {
  font-weight: 900; text-transform: uppercase; color: var(--amber); letter-spacing: -.01em; line-height: .9;
  font-size: clamp(40px, 13.4vw, 60px); text-shadow: 0 2px 22px rgba(21, 19, 31, .55);
}
.title span { display: block; }
.title .t2 { font-size: .775em; letter-spacing: 0; margin-top: .08em; }
.tagline { margin-top: 12px; max-width: 19em; font-size: clamp(15px, 4.3vw, 19px); font-weight: 500; color: var(--pale); text-shadow: 0 1px 10px rgba(21, 19, 31, .8); }
.stamp {
  display: inline-block; margin-top: 14px; padding: 5px 11px 4px; border: 2px solid var(--amber); border-radius: 3px;
  color: var(--amber); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transform: rotate(-3deg); transform-origin: 0 50%; background: rgba(29, 26, 48, .45);
}
.hero-line {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: max(58px, 8.5svh);
  display: flex; align-items: center; gap: 14px;
}
.say {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}
.say-ic {
  position: relative; display: block; flex: none; width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--amber); background: rgba(29, 26, 48, .55);
}
.say-ic::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -10px 0 0 -6px;
  border-left: 17px solid var(--amber); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.playing .say-ic::before, .playing > .say-ic::before { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 0; background: var(--amber); border-radius: 2px; }
.say-ic::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.say.hint .say-ic::after { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.82); opacity: .7; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
.cap { font-weight: 600; color: var(--amber); font-size: clamp(18px, 5.2vw, 24px); line-height: 1.22; text-wrap: balance; text-shadow: 0 1px 12px rgba(21, 19, 31, .9); }
.down {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: max(14px, 2.2svh); text-align: center; color: var(--pale);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 600; padding: 6px;
}
.down::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); }

/* ---------- figures ---------- */
.fig { display: block; }
.momrise .fig { overflow: visible; }
.peep .fig { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(44px, 8vw, 96px) var(--pad); max-width: 1180px; margin: 0 auto; }
h2 { font-weight: 900; text-transform: uppercase; color: var(--amber); line-height: .98; letter-spacing: -.005em; font-size: clamp(31px, 9vw, 58px); text-wrap: balance; text-shadow: 0 2px 18px rgba(21, 19, 31, .45); }
.lead { margin-top: 14px; color: var(--pale); font-size: clamp(17px, 4.5vw, 21px); max-width: 34em; }
.small { margin-top: 18px; color: var(--pale); font-size: 14px; max-width: 36em; opacity: .9; }
.tab {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--amber); padding: 3px 7px 2px; border-radius: 2px;
}
.tab:empty { display: none; }

/* 2. family: a wall of three windows */
.wall { margin: 28px calc(var(--pad) * -1) 0; padding: 22px var(--pad) 26px; display: grid; gap: 30px; background: var(--dots), var(--wall); position: relative; }
.wall::before, .wall::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; background: rgba(21, 19, 31, .35); }
.wall::before { top: 0; } .wall::after { bottom: 0; }
.flat { position: relative; }
.win { position: relative; display: block; width: 100%; aspect-ratio: 360 / 300; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 4px rgba(21, 19, 31, .28); background: #4a475c; }
.win .bw { position: absolute; inset: 0; width: 100%; height: 100%; }
.win::after { content: ""; position: absolute; inset: 0; background: #1d1a30; opacity: .12; transition: opacity .35s; pointer-events: none; }
.flat.on .win::after, .flat.talk .win::after { opacity: 0; }
.plate { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; color: var(--cream); }
.plate h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--cream); }
.plate .trait { grid-column: 1; font-size: 15px; font-weight: 500; color: #e6dbe6; }
.plate .cap { grid-column: 1 / -1; min-height: 2.5em; margin-top: 8px; color: var(--amber); font-size: clamp(18px, 5vw, 22px); text-shadow: 0 1px 0 rgba(21, 19, 31, .6); }
.more { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); max-width: 76px; text-align: center; }
.more .say-ic { width: 50px; height: 50px; border-color: #1d1a30; background: var(--amber); }
.more .say-ic::before { border-left-color: #1d1a30; }
.more.playing .say-ic::before { background: #1d1a30; }
.more .say-ic::after { border-color: #1d1a30; }
.draft { margin-top: 14px; font-size: 13px; color: var(--pale); opacity: .8; }

/* 3. how: four floors */
.floors { margin-top: 30px; display: grid; gap: 18px; }
.floor { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 0 12px; padding: 18px 16px 20px 10px; background: var(--dots), #4f4d63; border-radius: 3px; box-shadow: inset 0 -5px 0 rgba(21, 19, 31, .28), inset 0 3px 0 rgba(255, 255, 255, .05); }
.num { font-weight: 900; font-size: 58px; line-height: .86; color: var(--amber); text-align: center; text-shadow: 0 0 18px rgba(240, 164, 58, .35); }
.floor h3 { font-size: 23px; font-weight: 900; text-transform: uppercase; line-height: 1.05; color: var(--cream); }
.floor p { margin-top: 6px; color: #e0d6e2; font-size: 16px; }
.peep { position: relative; display: block; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 3px; background: radial-gradient(circle at 50% 40%, #f7bd62, #d98a2c 70%, #a9631f); box-shadow: 0 0 0 3px #2a2740, 0 0 18px rgba(240, 164, 58, .35); }
.peep.big { width: 116px; height: 97px; }
.peep.veil { background: #4a475c; }
.peep.veil .bw { position: absolute; inset: 0; width: 100%; height: 100%; }
.veil-shade { transform-box: view-box; animation: pace 9s ease-in-out infinite; }
[data-multi="done"] .veil-shade { animation-duration: 12s; animation-delay: -4s; }
@keyframes pace { 0%, 100% { transform: translateX(96px); } 50% { transform: translateX(204px); } }
.peep-row { display: flex; gap: 14px; margin-top: 14px; }
.dial { display: flex; margin-top: 14px; border: 2px solid var(--amber); border-radius: 4px; overflow: hidden; max-width: 330px; }
.dial button { flex: 1; padding: 11px 4px 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); text-align: center; min-height: 44px; }
.dial button + button { border-left: 2px solid var(--amber); }
.dial button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.note { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 10px; border-radius: 12px; background: rgba(21, 19, 31, .62); box-shadow: 0 0 0 1px rgba(240, 164, 58, .35); }
.note .peep { width: 56px; height: 56px; border-radius: 10px; }
.note-txt { flex: 1; display: block; }
.note .cap { display: block; margin-top: 3px; font-size: 16px; color: var(--cream); text-shadow: none; }
.note .say-ic { width: 44px; height: 44px; }
.note .say-ic::before { margin: -8px 0 0 -4px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.demo { display: flex; gap: 14px; align-items: center; margin-top: 14px; min-height: 100px; }
.demo-txt { flex: 1; }
.demo .cap { margin-top: 5px; font-size: clamp(17px, 4.7vw, 21px); text-shadow: none; }
.demo .cap:empty::before { content: attr(data-idle); color: #cfc3d6; font-weight: 500; font-size: 15px; }
.act { margin-top: 14px; width: 100%; max-width: 330px; min-height: 54px; padding: 14px 18px 13px; border-radius: 4px; background: var(--amber); color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; text-align: center; box-shadow: 0 5px 0 #a9631f; }
.act:active { transform: translateY(3px); }
.act.done { background: var(--cream); box-shadow: 0 5px 0 #b59a6a; }
.streak { font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--amber) !important; margin-top: 14px !important; }
.streak b { font-size: 20px; font-weight: 900; }

/* 4. warm: the concrete slab lifts off a lit room */
.shutter { position: relative; display: block; width: 100%; max-width: 520px; aspect-ratio: 5 / 3; margin-top: 26px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 5px #2a2740, 0 0 40px rgba(240, 164, 58, .18); }
.room { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: #e3922f; }
.room svg, .slab svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-txt { position: relative; margin-top: 12%; color: #2b1c10; font-weight: 800; font-size: clamp(22px, 6.4vw, 34px); line-height: 1.1; text-align: center; text-wrap: balance; }
.slab { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #77767f; will-change: transform; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.shutter[aria-pressed="true"] .slab { transform: translateY(-84%); }
.slab-txt { position: relative; font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 10.5vw, 62px); letter-spacing: .01em; color: #23202f; border: 5px solid #23202f; padding: 6px 16px 2px; transform: rotate(-4deg); opacity: .88; }
.slab-hint { position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #23202f; opacity: .7; }
.slab-hint::before { content: ""; position: absolute; left: 9px; top: 11px; width: 8px; height: 8px; border-left: 2px solid #23202f; border-top: 2px solid #23202f; transform: rotate(45deg); }

/* 5. lines: six lit windows above the bench */
.grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid li { min-width: 0; }
.lw { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 8px 9px; width: 100%; height: 100%; min-height: 190px; padding: 12px 12px 50px; border-radius: 3px; background: radial-gradient(circle at 30% 20%, rgba(250, 196, 104, .96), rgba(224, 143, 46, .96) 70%, rgba(176, 104, 34, .96)); color: #2b1c10; box-shadow: 0 0 0 4px #2a2740, 0 0 26px rgba(240, 164, 58, .22); opacity: .9; }
.lw.playing { opacity: 1; box-shadow: 0 0 0 4px #2a2740, 0 0 44px rgba(240, 164, 58, .6); }
.lw .peep { width: 58px; height: 58px; box-shadow: 0 0 0 3px rgba(43, 28, 16, .5); }
.lw .tab { background: #2b1c10; color: var(--amber); align-self: center; justify-self: start; font-size: 10px; letter-spacing: .1em; padding: 3px 5px 2px; }
.lw-txt { display: block; grid-column: 1 / -1; font-weight: 700; font-size: clamp(15px, 4.2vw, 19px); line-height: 1.2; }
.lw .say-ic { position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; border-color: #2b1c10; border-width: 2px; background: transparent; }
.lw .say-ic::before { margin: -6px 0 0 -3px; border-left: 10px solid #2b1c10; border-top-width: 6px; border-bottom-width: 6px; }
.lw.playing .say-ic::before { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #2b1c10; }
.bench { margin: 26px calc(var(--pad) * -1) calc(clamp(44px, 8vw, 96px) * -1); position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.bench svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 6. soon */
.soon { padding-left: 0; padding-right: 0; padding-bottom: 0; max-width: none; }
.dawn { position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto; aspect-ratio: 3 / 2; }
.dawn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.soon-txt { padding: 26px var(--pad) 46px; text-align: center; background: linear-gradient(rgba(201, 138, 104, .0), #e2a25e 60%); color: #2b1c10; }
.stamp.big { font-size: clamp(30px, 9vw, 54px); letter-spacing: .1em; border: 5px solid #2b1c10; color: #2b1c10; background: none; padding: 8px 18px 3px; transform-origin: 50% 50%; margin: 0; text-shadow: none; }
.soon .lead { color: #2b1c10; font-weight: 600; margin: 22px auto 0; }
.soon .small { color: #3a2716; margin: 12px auto 0; opacity: 1; }
.foot { background: #2b1c10; color: #d9b98c; font-size: 13px; padding: 22px var(--pad) 30px; text-align: center; display: grid; gap: 5px; }

/* before the opening runs (class set by the inline script in the head, removed by dusk.js) */
.js-open .title span, .js-open .tagline, .js-open .stamp, .js-open .hero-line, .js-open .down { opacity: 0; }

/* reveal on scroll (only when motion is allowed and the script is running) */
.js-motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js-motion .rv.in { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-left: 0; margin-right: 0; padding: 26px 22px 30px; border-radius: 3px; }
  .plate { grid-template-columns: 1fr; }
  .more { grid-column: 1; grid-row: auto; flex-direction: row; max-width: none; justify-self: start; margin-top: 8px; font-size: 12px; }
  .plate .cap { min-height: 3.7em; }
  .floors { grid-template-columns: 1fr 1fr; gap: 22px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .lw { min-height: 210px; padding: 16px 16px 54px; }
  .bench { margin-left: 0; margin-right: 0; aspect-ratio: 5 / 2; }
  .dawn { aspect-ratio: 2 / 1; }
}
@media (min-aspect-ratio: 4/5) and (min-width: 700px) {
  .hero-ui { right: auto; width: min(52vw, 760px); top: 13svh; left: 5vw; }
  .title { font-size: clamp(54px, 7.4vw, 132px); }
  .tagline { font-size: clamp(18px, 1.7vw, 28px); margin-top: 18px; }
  .stamp { font-size: 15px; margin-top: 22px; }
  .hero-line { left: 5vw; right: auto; width: min(46vw, 640px); bottom: 12svh; }
  .cap { font-size: clamp(20px, 2vw, 30px); }
  .hero-line .cap { font-size: clamp(22px, 2.2vw, 34px); }
  .scrim-top { background: linear-gradient(90deg, rgba(34, 29, 56, .7), rgba(34, 29, 56, 0) 62%); height: 100%; }
  .scrim-bottom { height: 26%; }
  .down { text-align: left; left: 5vw; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .cat-tail, .bn-on .bn-head, .veil-shade, .lantern.hint .lantern-ring, .lantern.hint .lantern-note, .lantern.busy .lantern-svg { animation: none; }
  .lantern.hint .lantern-ring { opacity: .6; }
  .lantern .moth { display: none; }
  .bar-tune.busy .tune-name { animation: none; }
  .lantern-note, .moth { transition: none; }
  .veil-shade { transform: translateX(150px); }
  .say.hint .say-ic::after { animation: none; }
  .win::after, .bar, .slab { transition: none; }
}

@media (max-width: 349px) {
  .lw { grid-template-columns: 46px minmax(0, 1fr); padding: 10px 9px 46px; }
  .lw .peep { width: 46px; height: 46px; }
  .lw .tab { font-size: 9px; letter-spacing: .04em; padding: 3px 4px 2px; }
  .floor { grid-template-columns: 38px 1fr; padding-right: 12px; }
  .num { font-size: 48px; }
  .dial button { font-size: 11px; letter-spacing: .02em; }
  .peep.big { width: 96px; height: 80px; }
}
