/* ==========================================================================
   PARADIDOMI
   A late night jazz club in warm brown, oxblood and brass.
   ========================================================================== */

:root {
  --ink: #0c0603;
  --night: #120a06;
  --espresso: #1a0e08;
  --walnut: #26140b;
  --mahogany: #3a1c10;
  --leather: #4c2715;
  --oxblood: #5c1613;
  --wine: #8b2a1e;
  --ember: #c4692d;
  --amber: #e29b50;
  --brass: #c9a56b;
  --brass-hi: #ead096;
  --brass-lo: #84663f;
  --cream: #f0e3ca;
  --paper: #ebdcbc;
  --smoke: #b49d81;
  --line: rgba(201, 165, 107, .26);
  --line-soft: rgba(201, 165, 107, .13);
  --red-ink: #a3261c;
  --paper-ink: #2a1a10;
  --paper-muted: #76573b;

  --f-display: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --f-read: 'EB Garamond', Garamond, Georgia, serif;
  --f-deco: 'Josefin Sans', Futura, 'Century Gothic', 'Trebuchet MS', sans-serif;
  --f-type: 'Special Elite', 'American Typewriter', 'Courier New', monospace;
  --f-vhs: 'VT323', 'Lucida Console', monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-door: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 40px);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-read);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brass-hi); text-underline-offset: .22em; text-decoration-color: rgba(234, 208, 150, .35); }
[hidden] { display: none !important; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- atmosphere ---------- */

.atmo { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.atmo__glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 26%, rgba(196, 105, 45, .26), transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 95%, rgba(139, 42, 30, .24), transparent 70%),
    radial-gradient(ellipse 45% 40% at 94% 72%, rgba(92, 22, 19, .3), transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}

.atmo__smoke {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 206, 170, .075), transparent 62%);
  filter: blur(30px);
  will-change: transform;
}
.atmo__smoke.s1 { left: 40%; top: 5%; animation: drift1 38s ease-in-out infinite alternate; }
.atmo__smoke.s2 { left: -25%; top: 45%; animation: drift2 52s ease-in-out infinite alternate; }
.atmo__smoke.s3 { right: -30%; top: -25%; animation: drift3 46s ease-in-out infinite alternate; }

.atmo__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 85% 78% at 50% 45%, transparent 52%, rgba(0, 0, 0, .7));
}

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: var(--noise);
  background-size: 220px;
  opacity: .065;
  animation: grain 1.1s steps(6) infinite;
}

@keyframes breathe { from { opacity: .8; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }
@keyframes drift1 { to { transform: translate(-20vw, -10vh) scale(1.25); } }
@keyframes drift2 { to { transform: translate(24vw, -22vh) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-16vw, 20vh) scale(1.3); } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(-2%, 6%); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }

.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 250ms);
}

/* ---------- shared pieces ---------- */

.wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1320px; }

.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  margin: 0;
  font-family: var(--f-deco); font-weight: 400; font-size: .7rem;
  letter-spacing: .42em; padding-left: .42em; text-transform: uppercase;
  color: var(--brass);
}

.dot {
  display: inline-block; width: 4px; height: 4px; margin: 0 .9em;
  background: currentColor; transform: rotate(45deg); vertical-align: middle;
}

.rule { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 280px; margin: 0 auto 26px; }
.rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-lo)); }
.rule span:last-child { background: linear-gradient(270deg, transparent, var(--brass-lo)); }
.rule i { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); box-shadow: 0 0 12px rgba(226, 155, 80, .6); }

.btn {
  --b: var(--brass);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--b); border-radius: 0;
  background: transparent; color: var(--brass-hi);
  font-family: var(--f-deco); font-weight: 600; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .15s;
}
.btn > span { padding-left: .3em; }
.btn::before {
  content: ''; position: absolute; inset: 3px; pointer-events: none;
  border: 1px solid rgba(201, 165, 107, .3);
  transition: inset .35s var(--ease-out);
}
.btn:hover::before { inset: 5px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }

.btn--brass {
  background: linear-gradient(180deg, #ecd39e, #c9a56b 48%, #a8844d);
  color: #1d0f07; border-color: #e7cd96;
  box-shadow: 0 10px 30px -10px rgba(226, 155, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--brass::before { border-color: rgba(60, 35, 15, .32); }
.btn--brass:hover {
  background: linear-gradient(180deg, #f5e0b3, #d6b57b 48%, #b48f56);
  box-shadow: 0 14px 40px -10px rgba(226, 155, 80, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn--ghost { --b: var(--line); color: var(--cream); }
.btn--ghost:hover { --b: var(--brass); color: var(--brass-hi); background: rgba(201, 165, 107, .06); }

.link {
  display: inline-block; padding: 6px 0;
  background: none; border: 0;
  color: var(--smoke);
  font-family: var(--f-deco); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: rgba(180, 157, 129, .35); text-underline-offset: .55em;
  cursor: pointer; transition: color .25s, text-decoration-color .25s;
}
.link:hover { color: var(--brass-hi); text-decoration-color: var(--brass); }

.form-error {
  min-height: 1.5em; margin: 12px 0 0;
  font-family: var(--f-display); font-style: italic; font-size: 1rem; color: #f2a58e;
}

.caps { font-style: normal; letter-spacing: .14em; font-size: .6em; vertical-align: .14em; text-transform: uppercase; }

/* ==========================================================================
   I. The door
   ========================================================================== */

.screen {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
  overflow-x: clip;
  padding: clamp(28px, 6vh, 64px) var(--gutter) clamp(120px, 22vh, 230px);
}

.door::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from -90deg at 50% 44%, rgba(201, 165, 107, .075) 0 .7deg, transparent .7deg 7.5deg);
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 44%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 44%, #000 18%, transparent 74%);
}

.door__frame {
  position: relative; z-index: 2;
  width: min(100%, 720px);
  padding: clamp(46px, 7vw, 76px) clamp(20px, 6vw, 64px) clamp(36px, 5vw, 54px);
  text-align: center;
  background: linear-gradient(180deg, rgba(28, 15, 9, .8), rgba(14, 7, 4, .9));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(14, 7, 4, .55), 0 0 0 7px var(--line-soft), 0 60px 120px -30px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.corner { position: absolute; width: 58px; height: 58px; color: var(--brass); opacity: .9; }
.corner--tl { top: 10px; left: 10px; }
.corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner--br { bottom: 10px; right: 10px; transform: scale(-1); }

.wordmark {
  position: relative;
  overflow: clip; overflow-clip-margin: 24px;
  margin: .4em 0 .2em;
  font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(1.2rem, 6.9vw, 5.4rem); line-height: 1;
  letter-spacing: .16em; padding-left: .16em; white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 0 34px rgba(226, 155, 80, .35);
}
.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute; inset: 0; padding-left: inherit; z-index: -1; pointer-events: none;
}
.wordmark::before { color: var(--amber); opacity: .34; filter: blur(3px); animation: smearA 7s ease-in-out infinite; }
.wordmark::after { color: var(--wine); opacity: .42; filter: blur(7px); animation: smearB 11s ease-in-out infinite; }
@keyframes smearA { 0%, 100% { transform: translateX(-.07em); } 50% { transform: translateX(.1em); } }
@keyframes smearB { 0%, 100% { transform: translateX(.15em); } 50% { transform: translateX(-.11em); } }

.greek { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 26px; }
.greek__word { font-family: var(--f-read); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.65rem); color: var(--brass-hi); }
.greek__def {
  font-family: var(--f-deco); font-size: .66rem; letter-spacing: .34em; padding-left: .34em;
  text-transform: uppercase; color: var(--smoke);
}

.door__lede {
  max-width: 25em; margin: 0 auto 26px;
  font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5;
  color: rgba(240, 227, 202, .9);
}

.door__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.door__form input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0 18px; min-height: 52px;
  background: rgba(8, 4, 2, .55);
  border: 1px solid var(--line); border-bottom-color: var(--brass-lo); border-radius: 0;
  color: var(--cream);
  font-family: var(--f-display); font-style: italic; font-size: 1.15rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.door__form input[type="email"]::placeholder { color: rgba(180, 157, 129, .55); }
.door__form input[type="email"]:focus {
  outline: none; border-color: var(--brass); background: rgba(8, 4, 2, .75);
  box-shadow: 0 0 0 3px rgba(201, 165, 107, .16), 0 0 34px rgba(226, 155, 80, .14);
}
.door__form input[aria-invalid="true"] { border-color: #b8442f; }

.door__fine { max-width: 30em; margin: 18px auto 0; font-size: .95rem; line-height: 1.55; color: var(--smoke); }

.sky {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(140px, 25vh, 280px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
.sky svg { display: block; width: 100%; height: 100%; }
.sky .b1 { fill: #1f110a; }
.sky .b2 { fill: #0b0503; }
.sky .win { fill: #eaa75c; }
.sky .win.f { animation: flick 9s steps(1) infinite; }
.sky .crown { fill: none; stroke: #eaa75c; stroke-width: 1.1; opacity: .75; }
.sky .glow { fill: #e29b50; opacity: .16; }
.sky .beacon { fill: #ff4a2e; animation: beacon 2.6s ease-in-out infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 46% { opacity: .12; } 51% { opacity: 1; } 79% { opacity: .25; } 82% { opacity: 1; } }
@keyframes beacon { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ==========================================================================
   II. The coat check
   ========================================================================== */

.ask::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(139, 42, 30, .22), transparent 70%);
}
.ask { padding-bottom: clamp(48px, 8vh, 90px); }
.ask__inner { position: relative; width: min(100%, 640px); text-align: center; }

.ask__q {
  min-height: 2.25em; margin: 18px 0 14px;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 6.4vw, 3.9rem); line-height: 1.1;
  color: var(--cream); text-wrap: balance;
}
.caret {
  display: inline-block; width: 2px; height: .85em; margin-left: 5px;
  background: var(--brass); vertical-align: -.06em;
  animation: blink 1s steps(1) infinite;
}
.ask.is-ready .caret { display: none; }

.ask__sub { max-width: 30em; margin: 0 auto 34px; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--smoke); }
.ask__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ask__fine { margin: 18px 0 6px; font-size: .98rem; font-style: italic; color: var(--smoke); }

.ask__inner > .ask__sub,
.ask__inner > .ticket-wrap,
.ask__inner > .form-error,
.ask__inner > .ask__actions,
.ask__inner > .ask__fine,
.ask__inner > .link {
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.ask.is-ready .ask__inner > * { opacity: 1; transform: none; }
.ask.is-ready .ticket-wrap { transition-delay: .12s; }
.ask.is-ready .ask__actions { transition-delay: .24s; }
.ask.is-ready .ask__fine, .ask.is-ready .ask__inner > .link { transition-delay: .36s; }

/* the coat check ticket */

.ticket-wrap {
  max-width: 520px; margin: 0 auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)) drop-shadow(0 3px 4px rgba(0, 0, 0, .4));
}
.ask .ticket-wrap .ticket { transform: rotate(-1.2deg); }

.ticket {
  position: relative;
  padding: 24px clamp(18px, 4vw, 30px) 20px;
  text-align: left; color: var(--paper-ink);
  background-color: #ecdfc2;
  background-image:
    linear-gradient(172deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%),
    radial-gradient(110% 70% at 90% 100%, rgba(130, 78, 35, .22), transparent 60%),
    var(--noise-soft);
  background-blend-mode: normal, normal, multiply;
  -webkit-mask:
    radial-gradient(circle 5px at 50% 0, transparent 98%, #000) top / 16px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 16px 51% repeat-x;
  mask:
    radial-gradient(circle 5px at 50% 0, transparent 98%, #000) top / 16px 51% repeat-x,
    radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 16px 51% repeat-x;
}

.ticket__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1.5px dashed rgba(70, 42, 22, .35);
  font-family: var(--f-deco); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-muted);
}
.ticket__head .dot { margin: 0 .6em; }
.ticket__no { font-family: var(--f-type); font-size: .9rem; letter-spacing: .06em; text-transform: none; color: var(--red-ink); white-space: nowrap; }

.ticket__label {
  display: block; margin-bottom: 6px;
  font-family: var(--f-deco); font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper-muted);
}
.ticket__label--soft { margin-top: 18px; font-weight: 400; }

.ticket__field {
  display: block; width: 100%; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 0; resize: none;
  font-family: var(--f-type); font-size: 1.25rem; line-height: 1.6; color: #22140b;
  background-image: repeating-linear-gradient(transparent 0, transparent calc(1.6em - 1px), rgba(95, 62, 34, .28) calc(1.6em - 1px), rgba(95, 62, 34, .28) 1.6em);
  background-attachment: local;
  caret-color: var(--red-ink);
  text-shadow: 0 0 .6px rgba(34, 20, 11, .55);
}
.ticket__field::placeholder { color: rgba(70, 45, 25, .34); text-shadow: none; opacity: 1; }
.ticket__field:focus { outline: none; }
.ticket__field:focus-visible { outline: 1.5px dashed rgba(163, 38, 28, .55); outline-offset: 5px; }
.ticket__field--story { font-size: 1.02rem; }

.ticket__more { margin-top: 14px; }
.ticket__more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-family: var(--f-deco); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--paper-muted);
}
.ticket__more summary::-webkit-details-marker { display: none; }
.ticket__more summary::before { content: '+'; font-family: var(--f-type); font-size: 1rem; letter-spacing: 0; color: var(--red-ink); }
.ticket__more[open] summary::before { content: '\2212'; }
.ticket__more[open] .ticket__field { margin-top: 10px; }

.ticket__foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1.5px dashed rgba(70, 42, 22, .35);
  font-family: var(--f-deco); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-muted);
}

.ticket-wrap.is-pinned { animation: fly 1s var(--ease-door) forwards; }
.ticket-wrap.is-burning { animation: burn 1.5s ease-in forwards; }
@keyframes fly {
  25% { transform: translateY(14px) rotate(-2deg); }
  100% { transform: translateY(-75vh) rotate(9deg) scale(.55); opacity: 0; }
}
@keyframes burn {
  0% { transform: none; }
  35% { filter: drop-shadow(0 0 26px rgba(226, 155, 80, .95)) sepia(.6) brightness(1.05); }
  100% { opacity: 0; transform: translateY(-50px) scale(.95); filter: drop-shadow(0 0 40px rgba(196, 105, 45, .4)) sepia(1) brightness(.35) blur(14px); }
}

/* ==========================================================================
   III. The club
   ========================================================================== */

.club { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; }
.rooms { flex: 1; padding: clamp(36px, 6vw, 72px) 0 0; outline: none; }

.bar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(rgba(16, 9, 5, .94), rgba(16, 9, 5, .82));
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 3px 0 -2px rgba(201, 165, 107, .08);
}
.bar__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  min-height: 74px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.bar__mark {
  justify-self: start;
  font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: .34em;
  color: var(--cream); text-decoration: none;
  text-shadow: -.06em 0 3px rgba(226, 155, 80, .35), .1em 0 6px rgba(139, 42, 30, .5);
}

.tabs { display: flex; gap: clamp(2px, 1.6vw, 24px); }
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 10px 14px;
  color: var(--smoke); text-decoration: none;
  transition: color .25s;
}
.tab i { font-style: normal; font-family: var(--f-display); font-size: .78rem; letter-spacing: .1em; color: var(--brass-lo); transition: color .25s; }
.tab span {
  font-family: var(--f-deco); font-size: .72rem; letter-spacing: .28em; padding-left: .28em;
  text-transform: uppercase; white-space: nowrap;
}
.tab::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 6px; height: 6px; background: var(--brass);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .35s var(--ease-out);
  box-shadow: 0 0 10px rgba(226, 155, 80, .7);
}
.tab:hover { color: var(--cream); }
.tab[aria-current="page"] { color: var(--cream); }
.tab[aria-current="page"] i { color: var(--brass); }
.tab[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }

.needle {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 6px 14px 6px 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--smoke); cursor: pointer;
  font-family: var(--f-deco); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  transition: color .25s, border-color .25s, background .25s;
}
.needle:hover { color: var(--cream); border-color: var(--brass-lo); }
.needle__disc { width: 24px; height: 24px; }
.needle[aria-pressed="true"] { color: var(--brass-hi); border-color: var(--brass); background: rgba(201, 165, 107, .08); }
.needle[aria-pressed="true"] .needle__disc { animation: spin 1.8s linear infinite; }

.readbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.readbar i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--wine), var(--amber), var(--brass-hi));
}

/* room headers */

.view { animation: viewIn .7s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }

.room-head { max-width: 800px; text-align: center; margin-bottom: clamp(30px, 4vw, 44px); }
.room-title {
  margin: .3em 0 .32em;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.005em;
  color: var(--cream); text-wrap: balance;
}
.room-lede { max-width: 33em; margin: 0 auto; font-size: clamp(1.06rem, 2.2vw, 1.22rem); color: var(--smoke); }
.room-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  min-height: 40px; padding: 0 16px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-deco); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--smoke);
  transition: background .25s, color .25s;
}
.seg button:hover { color: var(--cream); }
.seg button[aria-pressed="true"] { background: rgba(201, 165, 107, .17); color: var(--brass-hi); }

/* ==========================================================================
   Room I. The Wall, seen through a camcorder
   ========================================================================== */

.cam {
  position: relative;
  padding: 12px; border-radius: 22px;
  background: linear-gradient(#1d120b, #0d0805);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .08), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 80px -20px rgba(0, 0, 0, .85);
}
.cam::after {
  content: ''; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border-radius: 14px;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .085) 0, rgba(0, 0, 0, .085) 1px, transparent 1px, transparent 3px);
  box-shadow: inset 0 0 110px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.cam__screen {
  position: relative;
  height: min(78svh, 900px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 84px clamp(20px, 4vw, 54px) 70px;
  border-radius: 14px;
  background-color: #2b180d;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(226, 155, 80, .26), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 100%, rgba(139, 42, 30, .25), transparent 70%),
    var(--noise-soft);
  background-attachment: local, local, local;
  scrollbar-width: thin; scrollbar-color: var(--brass-lo) transparent;
}
.cam__screen::-webkit-scrollbar { width: 8px; }
.cam__screen::-webkit-scrollbar-thumb { background: var(--brass-lo); border-radius: 8px; }

.cam__hud {
  position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  font-family: var(--f-vhs); font-size: 1.4rem; line-height: 1; letter-spacing: .04em;
  color: #f6ecd9;
  text-shadow: 1px 0 rgba(255, 60, 40, .45), -1px 0 rgba(60, 180, 255, .35), 0 0 8px rgba(255, 220, 180, .45);
}
.cam__corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(246, 236, 217, .75); }
.cam__corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.cam__corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.cam__corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.cam__corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.cam__rec { position: absolute; top: 24px; left: 50px; display: flex; align-items: center; gap: 8px; }
.cam__rec b { width: 12px; height: 12px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; animation: blink 1.2s steps(1) infinite; }
.cam__tc { position: absolute; top: 24px; right: 50px; }
.cam__tc small { font-size: .8em; opacity: .85; }
.cam__date { position: absolute; bottom: 22px; left: 50px; white-space: pre; line-height: 1.05; }
.cam__batt {
  position: absolute; bottom: 24px; right: 54px;
  display: flex; gap: 2px; width: 36px; height: 17px; padding: 2px;
  border: 2px solid currentColor;
}
.cam__batt::after { content: ''; position: absolute; right: -6px; top: 3px; width: 3px; height: 7px; background: currentColor; }
.cam__batt i { flex: 1; background: currentColor; }
.cam__batt i:last-child { animation: blink 2.4s steps(1) infinite; }

.cam__count {
  margin: -46px 0 26px; text-align: center;
  font-family: var(--f-vhs); font-size: 1.2rem; letter-spacing: .08em; color: rgba(246, 236, 217, .7);
}

.wall { columns: 240px 4; column-gap: 30px; }

.wall__empty { padding: 12vh 0; text-align: center; color: var(--smoke); }
.wall__empty-title { margin: 0 0 4px; font-family: var(--f-display); font-style: italic; font-size: 1.8rem; color: var(--cream); }
.wall__more { display: flex; justify-content: center; margin-top: 10px; }

/* slips */

.slip {
  --tone: #efe3c8;
  position: relative;
  display: inline-block; width: 100%;
  break-inside: avoid;
  margin: 0 0 32px;
  padding: 0 18px 14px;
  color: var(--paper-ink);
  background-color: var(--tone);
  background-image:
    linear-gradient(172deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 38%),
    radial-gradient(120% 80% at 85% 100%, rgba(120, 70, 30, .2), transparent 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(120, 70, 30, .1), transparent 70%),
    var(--noise-soft);
  background-blend-mode: normal, normal, normal, multiply;
  font-family: var(--f-type);
  transform: rotate(var(--r, 0deg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 24px -8px rgba(0, 0, 0, .7), 0 3px 6px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.slip:hover, .slip:focus-within {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 26px 40px -10px rgba(0, 0, 0, .8), 0 0 40px rgba(226, 155, 80, .14);
}

.tape {
  position: absolute; top: -12px; left: var(--tape-x, 50%);
  width: 80px; height: 24px;
  transform: translateX(-50%) rotate(var(--tape-r, -4deg));
  background: linear-gradient(rgba(242, 231, 205, .66), rgba(226, 210, 174, .58));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  clip-path: polygon(2% 0, 98% 0, 100% 22%, 97% 42%, 100% 62%, 97% 82%, 99% 100%, 1% 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
}

.slip__stub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 16px 0 9px; margin-bottom: 12px;
  border-bottom: 1.5px dashed rgba(60, 35, 20, .32);
  font-family: var(--f-deco); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--paper-muted);
}
.slip__no { font-family: var(--f-type); font-size: .82rem; letter-spacing: .05em; text-transform: none; color: var(--red-ink); }
.slip__lead {
  margin: 0 0 4px;
  font-family: var(--f-deco); font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--paper-muted);
}
.slip__text {
  margin: 0 0 9px;
  font-family: var(--f-type); font-weight: 400; font-size: 1.12rem; line-height: 1.4;
  overflow-wrap: anywhere;
  text-shadow: 0 0 .6px rgba(34, 20, 11, .6);
}
.slip__story {
  margin: 0 0 10px;
  font-size: .86rem; line-height: 1.55; color: #5a4030;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.slip__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--f-deco); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-muted);
}
.slip__lit { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-type); font-size: .82rem; letter-spacing: 0; }
.slip__lit .ico { width: 14px; height: 14px; color: #9a7a5c; }
.slip__lit.is-lit .ico { color: var(--ember); filter: drop-shadow(0 0 4px rgba(226, 155, 80, .8)); }
.slip__open { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; }
.slip__open:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.slip.is-fresh { animation: pinIn 1s var(--ease-out) both; }
.slip.is-glow { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 24px -8px rgba(0, 0, 0, .7), 0 0 0 3px rgba(226, 155, 80, .55), 0 0 50px rgba(226, 155, 80, .45); }
@keyframes pinIn {
  from { opacity: 0; transform: translateY(-46px) rotate(calc(var(--r, 0deg) - 9deg)) scale(1.08); }
}

/* ---------- sheets (dialogs) ---------- */

.sheet {
  width: min(560px, calc(100vw - 32px));
  max-width: none; max-height: calc(100svh - 32px);
  padding: 0; margin: auto;
  border: 0; background: transparent; color: inherit;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet::backdrop { background: rgba(8, 4, 2, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { padding: 22px 6px 10px; }
.sheet[open] .sheet__inner { animation: sheetIn .55s var(--ease-out) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }

.slip--big { --r: -.6deg; padding: 0 clamp(20px, 5vw, 34px) 22px; display: block; margin: 0; }
.slip--big:hover { transform: rotate(var(--r)); }
.slip--big .slip__stub { padding-top: 20px; }
.slip--big .slip__text { font-size: clamp(1.3rem, 4.2vw, 1.65rem); margin-bottom: 14px; }
.slip--big .slip__story { display: block; -webkit-line-clamp: unset; white-space: pre-line; font-size: 1rem; line-height: 1.65; color: #4a3122; }
.slip__time { margin: 14px 0 0; font-family: var(--f-deco); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-muted); }

.sheet__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; text-align: center; }
.sheet__actions--row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.sheet__hint { margin: 0; font-style: italic; color: var(--smoke); }
.sheet__row { display: flex; gap: 28px; }

.match .ico { width: 18px; height: 18px; }
.match b { font-family: var(--f-type); font-weight: 400; font-size: .9rem; letter-spacing: 0; }
.match.is-lit { background: linear-gradient(180deg, #8f2f20, #5c1613); color: var(--brass-hi); border-color: #c4692d; cursor: default; }
.match.is-lit::before { border-color: rgba(234, 208, 150, .3); }
.match.is-lit .ico { color: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 170, 80, .9)); animation: flame 1.4s ease-in-out infinite alternate; }
.match.is-striking .ico { animation: strike .7s var(--ease-out); }
@keyframes flame { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.12) rotate(3deg); } }
@keyframes strike { 0% { transform: scale(.4); opacity: .2; } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }

.ticket--compose { transform: rotate(-.6deg); }

/* ==========================================================================
   Room II. The Archives
   ========================================================================== */

.tv {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 24px;
  padding: clamp(14px, 2.4vw, 26px);
  border-radius: 26px;
  background-color: #3b1e10;
  background-image:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, .1) 2px, transparent 2px, transparent 9px, rgba(255, 200, 150, .04) 9px, rgba(255, 200, 150, .04) 10px, transparent 10px, transparent 17px),
    linear-gradient(160deg, #5c2f17, #2b150b 72%);
  box-shadow: inset 0 2px 0 rgba(255, 214, 170, .18), inset 0 -4px 0 rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .4), 0 50px 90px -30px rgba(0, 0, 0, .9);
}
.tv__screen {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px / 24px;
  background: #070403;
  box-shadow: 0 0 0 7px #140a05, 0 0 0 9px rgba(201, 165, 107, .45), 0 0 0 10px rgba(0, 0, 0, .6);
}
.tv__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv__screen.is-idle::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, .22) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .13), transparent 45%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .85);
}
.tv__screen.is-static::before {
  content: ''; position: absolute; inset: -50%; z-index: 4; pointer-events: none;
  background-image: var(--noise); background-size: 160px;
  animation: grain .22s steps(4) infinite;
}
.tv__nosignal {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0;
  font-family: var(--f-vhs); font-size: 1.6rem; letter-spacing: .12em; color: rgba(246, 236, 217, .7);
}
.tv__cue { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.tv__cue img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.45) saturate(.8) brightness(.7) contrast(1.08); transition: filter .6s, transform 1.4s var(--ease-out); }
.tv__cue:hover img { filter: sepia(.15) saturate(.95) brightness(.84); transform: scale(1.03); }
.tv__play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  display: grid; place-items: center;
  width: 86px; height: 86px; border-radius: 50%;
  transform: translate(-50%, -50%);
  color: var(--brass-hi);
  background: rgba(12, 6, 3, .45);
  border: 1px solid rgba(234, 208, 150, .75);
  box-shadow: 0 0 0 7px rgba(234, 208, 150, .12), 0 10px 30px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: transform .35s var(--ease-out), background .35s;
}
.tv__play svg { width: 34px; height: 34px; margin-left: 4px; }
.tv__cue:hover .tv__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(92, 22, 19, .55); }
.tv__cue-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 40px 24px 18px; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  font-family: var(--f-vhs); font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: .06em; color: #f6ecd9;
}

.tv__panel { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0; }
.tv__label {
  width: 100%; padding: 5px 8px; border-radius: 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center;
  font-family: var(--f-vhs); font-size: 1.1rem; color: #ffb36b;
  background: #120804; border: 1px solid rgba(0, 0, 0, .6);
  box-shadow: inset 0 0 12px rgba(255, 140, 60, .25);
  text-shadow: 0 0 6px rgba(255, 150, 70, .8);
}
.tv__knobs { display: flex; flex-direction: column; gap: 18px; }
.tv__knobs i {
  position: relative; display: block; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3dcae, #c9a56b 35%, #7a5a33 70%, #3d2a14);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .4);
}
.tv__knobs i::after {
  content: ''; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px;
  background: #3b2610; transform-origin: 50% 23px; transform: rotate(-35deg);
}
.tv__knobs i + i::after { transform: rotate(60deg); }
.tv__grille { width: 100%; height: 72px; border-radius: 6px; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, .55) 3px, transparent 3px, transparent 6px); }
.tv__brand { font-family: var(--f-display); font-size: .58rem; letter-spacing: .3em; color: var(--brass); }

.tv__now {
  min-height: 1.5em; margin: 20px 0 0; text-align: center;
  font-family: var(--f-deco); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--smoke);
}

.tapes { display: grid; gap: clamp(40px, 5vw, 60px); margin-top: clamp(40px, 6vw, 70px); }
.shelf__title {
  display: flex; align-items: center; gap: 18px; margin: 0 0 8px;
  font-family: var(--f-deco); font-weight: 400; font-size: .76rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--brass);
}
.shelf__title::before, .shelf__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.shelf__note { margin: 0 0 24px; text-align: center; font-style: italic; color: var(--smoke); }
.shelf__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 30px 22px; }

.tape-card {
  --edge: var(--wine);
  position: relative; display: block; width: 100%;
  padding: 10px 10px 16px;
  text-align: left; color: var(--cream);
  background: linear-gradient(#1f150e, #140c08);
  border: 1px solid rgba(201, 165, 107, .14); border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .85);
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.tape-card:hover { transform: translateY(-5px); border-color: rgba(201, 165, 107, .42); box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .9), 0 0 30px rgba(226, 155, 80, .1); }
.tape-card--music { --edge: var(--brass); }
.tape-card--session { --edge: var(--ember); }
.tape-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #000; }
.tape-card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.6) saturate(.7) brightness(.8) contrast(1.06); transition: filter .5s; }
.tape-card:hover .tape-card__thumb img, .tape-card.is-on .tape-card__thumb img { filter: none; }
.tape-card__label {
  position: relative; display: block;
  margin: -16px 8px 0; padding: 10px 12px 11px 14px;
  color: var(--paper-ink);
  background-color: #ece0c5;
  background-image: var(--noise-soft);
  background-blend-mode: multiply;
  border-left: 8px solid var(--edge);
  transform: rotate(-.8deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .45);
  font-family: var(--f-type);
}
.tape-card__name { display: block; font-size: 1.02rem; line-height: 1.28; overflow-wrap: anywhere; }
.tape-card--archive .tape-card__name { font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.tape-card__sub { display: block; margin-top: 3px; font-family: var(--f-deco); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-ink); }
.tape-card__meta { display: block; margin-top: 6px; font-family: var(--f-deco); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.tape-card__on {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: none; align-items: center; gap: 6px; padding: 1px 8px;
  font-family: var(--f-vhs); font-size: 1.05rem; color: #fff; background: rgba(163, 38, 28, .9);
}
.tape-card__on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(1) infinite; }
.tape-card.is-on .tape-card__on { display: inline-flex; }

.archives__more { margin: clamp(40px, 5vw, 60px) 0 0; text-align: center; }
.archives__more a { font-family: var(--f-deco); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; }

.notice { padding: 40px 0; text-align: center; font-style: italic; color: var(--smoke); }

/* ==========================================================================
   Room III. The Book
   ========================================================================== */

.book { max-width: 800px; text-align: center; }
.book__blurb { max-width: 30em; margin: 0 auto 30px; font-style: italic; font-size: clamp(1.08rem, 2.2vw, 1.22rem); color: var(--smoke); }
.book__contents { margin: 0 0 14px; font-family: var(--f-deco); font-size: .7rem; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--brass); }
.book__empty { max-width: 28em; margin: 28px auto 0; font-style: italic; font-size: 1.12rem; color: var(--smoke); }

.toc { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid var(--line-soft); }
.toc li { border-bottom: 1px solid var(--line-soft); }
.toc__row {
  display: grid; grid-template-columns: 3.6rem 1fr auto; align-items: baseline; gap: 16px;
  padding: 20px 8px;
  color: var(--cream); text-decoration: none;
  transition: background .3s, padding .35s var(--ease-out);
}
a.toc__row:hover { background: rgba(201, 165, 107, .06); padding-left: 16px; }
.toc__num { font-family: var(--f-display); font-size: 1.15rem; color: var(--brass); }
.toc__title { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.2; }
.toc__meta { font-family: var(--f-deco); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); white-space: nowrap; }
.toc__next .toc__row { opacity: .6; }
.toc__next .toc__title { font-size: clamp(1.05rem, 2.4vw, 1.3rem); }

.reader { max-width: 860px; }
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }

.page {
  position: relative;
  padding: clamp(40px, 7vw, 90px) clamp(22px, 8vw, 100px) clamp(44px, 6vw, 76px);
  color: var(--paper-ink);
  background-color: #ede1c7;
  background-image:
    linear-gradient(90deg, rgba(90, 55, 25, .16), transparent 7%, transparent 93%, rgba(90, 55, 25, .12)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .35), transparent 60%),
    var(--noise-soft);
  background-blend-mode: normal, normal, multiply;
  border-radius: 2px;
  box-shadow: 0 2px 0 #d8c8a6, 0 4px 0 #cdbb97, 0 6px 0 #c2ae88, 0 8px 0 #b7a27b, 0 50px 80px -30px rgba(0, 0, 0, .9);
}
.page__head { margin-bottom: clamp(32px, 5vw, 54px); text-align: center; }
.page__num { margin: 0 0 14px; font-family: var(--f-deco); font-size: .72rem; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--wine); }
.page__title { margin: 0 0 14px; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2rem, 5.4vw, 3.2rem); line-height: 1.08; color: #1e120a; text-wrap: balance; }
.page__date { margin: 0; font-style: italic; color: var(--paper-muted); }

.page__body {
  max-width: 34em; margin: 0 auto;
  font-family: var(--f-read); font-size: clamp(1.14rem, 1.7vw, 1.27rem); line-height: 1.72;
  hyphens: auto; -webkit-hyphens: auto;
  font-variant-numeric: oldstyle-nums;
}
.page__body p { margin: 0; text-indent: 1.6em; }
.page__body > p:first-child,
.page__body hr + p,
.page__body h3 + p,
.page__body blockquote + p { text-indent: 0; }
.page__body > p:first-child::first-letter {
  float: left; margin: .07em .1em 0 0;
  font-family: var(--f-display); font-size: 4.4em; line-height: .8; color: var(--wine);
}
.page__body > p:first-child::first-line,
.page__body hr + p::first-line { font-variant: small-caps; letter-spacing: .04em; }
.page__body hr {
  height: 10px; margin: 1.7em 0; border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='10'%3E%3Cg fill='%2384663f'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3Cpath d='M32 0l5 5-5 5-5-5z'/%3E%3Cpath d='M59 0l5 5-5 5-5-5z'/%3E%3C/g%3E%3C/svg%3E") center / 64px 10px no-repeat;
}
.page__body h3 { margin: 1.5em 0 .8em; text-align: center; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.4em; }
.page__body blockquote { margin: 1.2em 1.4em; font-style: italic; color: #4a3020; }
.page__body .reader__loading { text-align: center; font-style: italic; color: var(--paper-muted); }
.page__end { margin: 50px 0 0; text-align: center; line-height: 0; }
.page__end i { display: inline-block; width: 6px; height: 6px; margin: 0 9px; background: var(--brass-lo); transform: rotate(45deg); }

.reader__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; }
.reader__nav .btn[aria-disabled="true"] { visibility: hidden; }

/* ==========================================================================
   Room IV. The Shop
   ========================================================================== */

.shop { max-width: 720px; text-align: center; }
.shopfront { width: min(330px, 78vw); margin: 0 auto 44px; }
.shopfront__arch {
  aspect-ratio: 3 / 4; padding: 14px;
  border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px;
  background: linear-gradient(160deg, #6a3a1e, #2c160b);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 107, .4), inset 0 0 0 8px #24120a, inset 0 0 0 9px rgba(201, 165, 107, .28), 0 40px 60px -20px rgba(0, 0, 0, .85);
}
.shopfront__glass {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 50% 50% 3px 3px / 32% 32% 3px 3px;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(226, 155, 80, .24), transparent 62%),
    linear-gradient(115deg, rgba(255, 255, 255, .07) 0 18%, transparent 18% 30%, rgba(255, 255, 255, .04) 30% 34%, transparent 34%),
    #120905;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .8);
}
.shopfront__glass::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(201, 165, 107, .16) 0 .6deg, transparent .6deg 10deg);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%);
  mask-image: linear-gradient(to top, #000, transparent 70%);
}
.sign {
  position: absolute; top: 30%; left: 50%;
  transform-origin: 50% 0;
  transform: translateX(-50%);
  animation: swing 5.5s ease-in-out infinite;
}
.sign__chain {
  display: block; width: 104px; height: 38px; margin: 0 auto;
  background:
    linear-gradient(to top left, transparent calc(50% - .8px), var(--brass) calc(50% - .8px), var(--brass) calc(50% + .8px), transparent calc(50% + .8px)) left / 50% 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - .8px), var(--brass) calc(50% - .8px), var(--brass) calc(50% + .8px), transparent calc(50% + .8px)) right / 50% 100% no-repeat;
}
.sign__plate {
  margin-top: -2px; padding: 14px 26px 12px;
  background: linear-gradient(#7d2419, #4d120e);
  border: 1px solid var(--brass);
  box-shadow: inset 0 0 0 3px #4d120e, inset 0 0 0 4px rgba(201, 165, 107, .6), 0 14px 22px rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.sign__word { display: block; font-family: var(--f-deco); font-weight: 600; font-size: 1.05rem; letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: var(--cream); }
.sign__sub { display: block; margin-top: 2px; font-family: var(--f-display); font-style: italic; font-size: .92rem; color: var(--brass-hi); }
.shopfront__sill { height: 14px; margin: 0 -14px; border-radius: 3px; background: linear-gradient(#5a2e17, #24120a); box-shadow: 0 10px 20px rgba(0, 0, 0, .6); }
@keyframes swing { 0%, 100% { transform: translateX(-50%) rotate(-3deg); } 50% { transform: translateX(-50%) rotate(3deg); } }

/* ---------- footer ---------- */

.foot { position: relative; z-index: 1; padding: clamp(70px, 10vw, 120px) var(--gutter) 48px; text-align: center; }
.foot__mark { margin: 22px 0 6px; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .5em; padding-left: .5em; color: var(--cream); }
.foot__line { margin: 0 0 18px; font-family: var(--f-deco); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--smoke); }
.foot__links { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 0; }
.foot__links a { font-family: var(--f-deco); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--smoke); }
.foot__links a:hover { color: var(--brass-hi); }

/* ---------- the doors ---------- */

.doors { position: fixed; inset: 0; z-index: 85; display: flex; pointer-events: none; }
.doors.is-shut { pointer-events: auto; }
.doors__panel {
  position: relative; width: 50%; height: 100%; overflow: hidden;
  background-color: #1d0f08;
  background-image:
    linear-gradient(to bottom, transparent 16%, rgba(201, 165, 107, .4) 16%, rgba(201, 165, 107, .4) calc(16% + 1px), transparent calc(16% + 1px), transparent 84%, rgba(201, 165, 107, .4) 84%, rgba(201, 165, 107, .4) calc(84% + 1px), transparent calc(84% + 1px)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 1px, transparent 1px, transparent 22px),
    linear-gradient(#2c160b, #140a05);
  transition: transform .75s var(--ease-door);
}
.doors__panel--l { transform: translateX(-101%); box-shadow: inset -1px 0 0 var(--brass), inset -7px 0 0 #120905, inset -8px 0 0 rgba(201, 165, 107, .4); }
.doors__panel--r { transform: translateX(101%); box-shadow: inset 1px 0 0 var(--brass), inset 7px 0 0 #120905, inset 8px 0 0 rgba(201, 165, 107, .4); }
.doors.is-shut .doors__panel { transform: none; }
.doors__medal {
  position: absolute; top: 50%; width: 128px; height: 128px; margin-top: -64px; border-radius: 50%;
  background:
    radial-gradient(circle, #1a0d06 0 26%, transparent 27%),
    repeating-conic-gradient(rgba(234, 208, 150, .85) 0 2.5deg, transparent 2.5deg 15deg),
    #2a150b;
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 6px #1d0f08, 0 0 0 7px rgba(201, 165, 107, .5), 0 0 40px rgba(226, 155, 80, .3);
}
.doors__panel--l .doors__medal { right: -64px; }
.doors__panel--r .doors__medal { left: -64px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 95;
  width: max-content; max-width: calc(100vw - 32px); padding: 14px 24px;
  background: rgba(20, 11, 6, .95); border: 1px solid var(--line);
  color: var(--cream); text-align: center;
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Smaller screens
   ========================================================================== */

@media (max-width: 860px) {
  .tv { grid-template-columns: 1fr; gap: 18px; }
  .tv__panel { flex-direction: row; padding: 0 4px; }
  .tv__label { width: auto; flex: 1; min-width: 0; }
  .tv__knobs { flex-direction: row; gap: 10px; }
  .tv__knobs i { width: 34px; height: 34px; }
  .tv__knobs i::after { top: 3px; height: 10px; transform-origin: 50% 14px; }
  .tv__grille, .tv__brand { display: none; }
}

@media (max-width: 760px) {
  .bar__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark needle" "tabs tabs";
    gap: 4px 12px; padding-top: 10px;
  }
  .bar__mark { grid-area: mark; font-size: .92rem; }
  .needle { grid-area: needle; min-height: 36px; padding: 4px 8px; }
  .needle__label { display: none; }
  .tabs { grid-area: tabs; justify-content: space-between; gap: 0; margin: 0 -8px; }
  .tab { flex: 1; padding: 8px 2px 13px; }
  .tab span { font-size: .6rem; letter-spacing: .16em; padding-left: .16em; }
  .tab i { font-size: .72rem; }
}

@media (max-width: 600px) {
  .door__form { flex-direction: column; }
  .door__form .btn { width: 100%; }
  .corner { width: 40px; height: 40px; top: 7px; }
  .corner--tl { top: 7px; left: 7px; } .corner--tr { top: 7px; right: 7px; }
  .corner--bl { top: auto; bottom: 7px; left: 7px; } .corner--br { top: auto; bottom: 7px; right: 7px; }
  .door__fine { font-size: .9rem; }

  .ask__actions .btn { width: 100%; }

  .cam { padding: 8px; border-radius: 18px; }
  .cam::after, .cam__hud { inset: 8px; }
  .cam__screen { height: min(74svh, 760px); padding: 74px 18px 60px; }
  .cam__hud { font-size: 1.12rem; }
  .cam__rec, .cam__date { left: 40px; }
  .cam__tc { right: 40px; }
  .cam__batt { right: 44px; width: 30px; height: 15px; }
  .cam__corner { width: 18px; height: 18px; }
  .cam__count { margin-top: -40px; font-size: 1.05rem; }

  .room-actions { flex-direction: column; }
  .room-actions .btn { width: 100%; max-width: 360px; }
  .seg button { padding: 0 12px; }

  .toc__row { grid-template-columns: 2.6rem 1fr; gap: 4px 12px; }
  .toc__meta { grid-column: 2; }
  .reader__nav { flex-direction: column-reverse; }
  .reader__nav .btn { width: 100%; }
  .reader__nav .btn[aria-disabled="true"] { display: none; }

  .doors__medal { width: 96px; height: 96px; margin-top: -48px; }
  .doors__panel--l .doors__medal { right: -48px; }
  .doors__panel--r .doors__medal { left: -48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .grain { animation: none; }
}
