/* The Last Vote - v2. A small museum: three rooms and a corridor.
   Fixed palette per room (the rooms are the theme), so no light/dark switch. */
:root {
  --ink: #191816;
  --ink-2: #4b4944;
  --ink-3: #807d76;
  --bone: #ece8df;
  --bone-2: #b9b4aa;
  --bone-3: #8a867e;
  --label: #f3f0e9;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 -.33'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 52px; background: #121110; }
body { margin: 0; background: #121110; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.wrapmono { overflow-wrap: anywhere; word-break: break-all; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; height: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(18, 17, 16, .78); color: var(--bone);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.bar a { text-decoration: none; }
.bar__nav { display: flex; gap: 18px; color: var(--bone-3); }
.bar__nav a:hover { color: var(--bone); }
@media (max-width: 520px) { .bar__nav { gap: 12px; } .bar__nav .l { display: none; } }

/* ---------- shared type ---------- */
.sign {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3);
  margin: 0 0 18px;
}
.sign span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .6; margin: 0 12px; vertical-align: middle; }
.sign--ink { color: var(--ink-3); }
.display {
  font: 400 clamp(64px, 16vw, 132px)/.86 var(--serif); letter-spacing: -.025em;
  color: var(--bone); margin: 0 0 22px;
}
.lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--bone-2); max-width: 30em; margin: 0; }
.h2 { font: 400 clamp(52px, 11vw, 104px)/.9 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.intro { font-size: 17px; color: var(--ink-2); max-width: 34em; margin: 0; }
.fine { font-size: 12.5px; line-height: 1.65; color: var(--ink-3); max-width: 56em; margin: 28px 0 0; }

.btn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 10px 13px; border: 1px solid var(--ink); background: var(--ink); color: var(--label);
  font: 500 11.5px/1 var(--mono); letter-spacing: .03em; text-decoration: none; cursor: pointer; border-radius: 1px;
}
.btn:hover { text-decoration: none; background: #2b2a27; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #c4bfb4; }
.btn--ghost:hover { background: rgba(0,0,0,.04); border-color: var(--ink); }

/* ---------- rooms ---------- */
.room { position: relative; overflow: hidden; isolation: isolate; }
.room::before { /* plaster: fine grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-dark); background-size: 220px 220px; opacity: .2;
}

/* Gallery 1: dark, spotlit */
.room--dark { background: #1b1a18; color: var(--bone); padding: 64px 0 56px; }
.room--dark::before { background-image: var(--grain-light); opacity: .32; }
.room--dark::after { /* wall wash from the spotlight */
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background: radial-gradient(ellipse 34% 58% at 72% 34%, rgba(255, 243, 222, .075), transparent 70%);
}
@media (max-width: 999px) { .room--dark::after { background: radial-gradient(ellipse 80% 40% at 50% 52%, rgba(255, 243, 222, .07), transparent 70%); } }

.g1 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.g1__text { position: relative; z-index: 3; }
@media (min-width: 1000px) {
  .room--dark { padding: 72px 0 104px; }
  .g1 {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
    grid-template-areas: "text scene" "label scene"; column-gap: 72px; row-gap: 0;
  }
  .g1__text { grid-area: text; padding-top: 24px; }
  .g1 .scene { grid-area: scene; }
  .g1 > .wall-label { grid-area: label; align-self: start; margin-top: 40px; }
  .g1 .scene { --case-w: 420px; --plinth-h: 236px; }
}

/* ---------- the vitrine ---------- */
.scene {
  --case-w: min(380px, 84vw);
  --plinth-h: clamp(108px, 17vw, 196px);
  --rx: 0deg; --ry: 0deg; --gx: 0; --gs: 0;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 56px; margin-top: 8px;
  perspective: 1400px;
}
.scene__cone {
  position: absolute; z-index: 0; pointer-events: none;
  top: -60px; left: 50%; width: calc(var(--case-w) + 150px); transform: translateX(-50%);
  height: calc(100% - var(--plinth-h) + 70px);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(255,244,224,0) 0%, rgba(255,244,224,.035) 30%, rgba(255,244,224,.075) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  filter: blur(14px);
}
.case {
  position: relative; z-index: 2; width: var(--case-w);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.case::after { /* contact shadow on the plinth top */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -9px; height: 16px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(3px);
}
.case__lid {
  height: 9px; border: 1px solid rgba(255,255,255,.26); border-bottom: 0;
  background: linear-gradient(to bottom, rgba(255,250,240,.42), rgba(255,250,240,.10));
}
.case__body {
  position: relative; overflow: hidden;
  padding: 34px 24px 34px;
  border: 1px solid rgba(255,255,255,.17); border-top-color: rgba(255,255,255,.32);
  background:
    linear-gradient(to bottom, rgba(255,244,224,.10), rgba(255,244,224,.02) 38%, rgba(255,255,255,.025) 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.018), inset 0 40px 60px -40px rgba(255,244,224,.25);
}
.case__body::after { /* the deck inside the case */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: linear-gradient(to bottom, #2a2825, #121110); border-top: 1px solid rgba(255,255,255,.08);
}
.glare {
  position: absolute; inset: -30% -40%; pointer-events: none; z-index: 3;
  background: linear-gradient(112deg, transparent 36%, rgba(255,255,255,.11) 41%, rgba(255,255,255,.03) 47%, transparent 49%,
                                      transparent 62%, rgba(255,255,255,.06) 65%, transparent 69%);
  transform: translateX(calc(var(--gx) * 1% + var(--gs) * 9%));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.edge { position: absolute; top: 0; bottom: 0; width: 1px; z-index: 3; pointer-events: none; }
.edge--l { left: 5px; background: linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,.06) 55%, rgba(255,255,255,.18)); }
.edge--r { right: 5px; background: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,.03) 60%, rgba(255,255,255,.1)); }

/* the brass plate */
.plate {
  position: relative; z-index: 2; margin: 0 auto 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 16px 18px;
  color: #3b301d;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255,246,222,.5), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.02) 1px 3px),
    linear-gradient(158deg, #6e5d3e 0%, #b49c6c 20%, #8c7850 44%, #c2ac7c 66%, #7a6845 100%);
  border: 1px solid rgba(0,0,0,.45); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,244,214,.55), inset 0 -1px 0 rgba(0,0,0,.3), 0 22px 30px -14px rgba(0,0,0,.85), 0 2px 4px rgba(0,0,0,.4);
}
.plate::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(48,36,16,.4); box-shadow: 0 1px 0 rgba(255,240,206,.25), inset 0 1px 0 rgba(255,240,206,.2); pointer-events: none; }
.plate__k, .plate__f {
  font: 600 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; padding-left: .26em;
  text-shadow: 0 1px 0 rgba(255,238,200,.45), 0 -1px 0 rgba(0,0,0,.2);
}
.plate__f { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: none; padding-left: 0; }
.plate__sig {
  display: block; width: 11.4ch; font: 500 calc(var(--case-w) * .082)/1.3 var(--mono);
  word-break: break-all; color: #33291a;
  text-shadow: 0 1px 0 rgba(255,238,200,.5), 0 -1px 0 rgba(0,0,0,.28);
}

/* the plinth */
.plinth { position: relative; z-index: 1; width: calc(var(--case-w) + 28px); }
.plinth__top {
  height: 11px;
  background:
    radial-gradient(ellipse 60% 140% at 50% 0%, rgba(255,250,238,.9), transparent 70%),
    linear-gradient(to bottom, #e9e5dc, #cbc6bc);
}
.plinth__front {
  height: var(--plinth-h);
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), transparent 10%, transparent 88%, rgba(0,0,0,.3)),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,247,230,.42), transparent 72%),
    linear-gradient(to bottom, #b8b3a9 0%, #8f8b83 40%, #57544f 100%);
  border-top: 1px solid rgba(0,0,0,.25);
}
.scene__floor { /* full-bleed floor that starts at the plinth's foot */
  position: absolute; top: 100%; left: 50%; width: 400vw; height: 2400px; transform: translateX(-50%); z-index: 0;
  background:
    radial-gradient(ellipse 260px 26px at 50% 6px, rgba(0,0,0,.75), transparent 75%),
    radial-gradient(ellipse 420px 70px at 50% 30px, rgba(255,244,224,.07), transparent 75%),
    linear-gradient(to bottom, #151413, #0e0d0c 280px);
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ---------- wall labels ---------- */
.wall-label {
  position: relative; z-index: 3; width: 100%; max-width: 400px;
  background: var(--label); color: var(--ink);
  padding: 20px 20px 18px; border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 28px -16px rgba(0,0,0,.75), 0 2px 3px rgba(0,0,0,.25);
}
@media (max-width: 999px) { .room--dark .wall-label { margin: 44px auto 0; } }
.wl__head { display: flex; justify-content: space-between; gap: 12px; font: 600 9.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid #d9d4c9; margin-bottom: 14px; }
.wl__head .mono { letter-spacing: .02em; text-transform: none; font-size: 10.5px; font-weight: 500; }
.wl__artist { font: 600 14px/1.3 var(--sans); margin: 0; }
.wl__dates { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 12px; }
.wl__title { font: 400 27px/1.05 var(--serif); margin: 0 0 8px; letter-spacing: -.005em; }
.wl__title em { font-style: italic; }
.wl__medium { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0 0 6px; }
.wl__dims { font-size: 11px; color: var(--ink-3); margin: 0 0 6px; }
.wl__credit { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }
.wl__text { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; padding-top: 12px; border-top: 1px solid #d9d4c9; }
.wl__record { margin-top: 14px; border-top: 1px solid #d9d4c9; }
.wl__record summary { cursor: pointer; list-style: none; padding: 11px 0 3px; font: 600 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.wl__record summary::-webkit-details-marker { display: none; }
.wl__record summary::after { content: " +"; }
.wl__record[open] summary::after { content: " -"; }
.wl__record dl { margin: 8px 0 0; }
.wl__record dl > div { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dotted #cfc9bd; }
.wl__record dt { font: 600 9px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wl__record dd { margin: 0; font: 400 11.5px/1.55 var(--mono); }
.wl__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- corridor: the counter ---------- */
.corridor {
  position: relative; background: #0f0e0d; color: var(--bone); padding: 56px 0 44px;
  border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05);
}
.corridor::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-light); opacity: .35; pointer-events: none; }
.counter-plate {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 40px) 24px;
  border-radius: 3px; border: 1px solid #4d4b47;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #46443f 0%, #2f2e2b 55%, #262522 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.5), 0 24px 40px -22px rgba(0,0,0,.95), 0 2px 0 #0a0a09;
}
.screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9a9790, #4b4945 70%); box-shadow: 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 1px rgba(0,0,0,.5); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 1px; background: rgba(0,0,0,.6); transform: rotate(35deg); }
.s1 { top: 9px; left: 9px; } .s2 { top: 9px; right: 9px; } .s3 { bottom: 9px; left: 9px; } .s4 { bottom: 9px; right: 9px; }
.cp__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0 8px; }
.cp__title { margin: 0; font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #d3cfc6; text-shadow: 0 -1px 0 rgba(0,0,0,.7); }
.cp__sub { margin: 10px 0 0; text-align: center; font: 500 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8f8b83; text-shadow: 0 -1px 0 rgba(0,0,0,.6); }
.cp__row { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.45); box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset; }
@media (min-width: 640px) { .cp__row { grid-template-columns: 1fr 1fr; } }
.clock { text-align: center; font-size: clamp(24px, 6vw, 34px); line-height: 40px; color: #ece8df; letter-spacing: .02em; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #8f8b83; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #5d5a55; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.live.is-on i { background: #f2eee5; box-shadow: 0 0 0 2px rgba(242,238,229,.08); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { background: #8f8b83; } }
.corridor__note { position: relative; max-width: 760px; margin: 22px auto 0; font-size: 12.5px; line-height: 1.65; color: #8a867e; }
.corridor__note a { color: #c9c4b9; }
.corridor__note .mono { color: #c9c4b9; }

/* odometer */
.odo { --dh: 56px; display: flex; justify-content: center; gap: 4px; min-height: var(--dh); }
.odo--sm { --dh: 40px; }
.odo__ph { font: 500 calc(var(--dh) * .5)/var(--dh) var(--mono); color: #55524d; letter-spacing: .2em; }
.odo__d {
  position: relative; width: calc(var(--dh) * .64); height: var(--dh); overflow: hidden; border-radius: 3px;
  background: linear-gradient(to bottom, #0b0a09, #1e1d1b 46%, #0c0b0a 50%, #1a1917 54%, #0b0a09);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.05), 0 1px 0 rgba(255,255,255,.1);
}
.odo__d::after { /* cylinder shading + the seam */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6), transparent 26%, transparent 74%, rgba(0,0,0,.6)),
    linear-gradient(to bottom, transparent calc(50% - .5px), rgba(0,0,0,.55) calc(50% - .5px), rgba(0,0,0,.55) calc(50% + .5px), rgba(255,255,255,.04) calc(50% + .5px), transparent calc(50% + 1.5px));
}
.odo__s { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.3,.8,.25,1); will-change: transform; }
.odo__s span { display: block; height: var(--dh); font: 500 calc(var(--dh) * .6)/var(--dh) var(--mono); color: #f1ede4; text-align: center; }
.odo__c { align-self: flex-end; width: calc(var(--dh) * .2); font: 500 calc(var(--dh) * .5)/1 var(--mono); color: #8f8b83; text-align: center; padding-bottom: 2px; }
.odo__t { align-self: center; font: 500 calc(var(--dh) * .55)/1 var(--mono); color: #8f8b83; padding-right: 4px; }

/* ---------- Gallery 2: light ---------- */
.room--light {
  padding: 88px 0 168px;
  background:
    radial-gradient(ellipse 60% 560px at 50% 0, rgba(255,255,255,.62), transparent 72%),
    radial-gradient(ellipse 40% 50% at 12% 70%, rgba(0,0,0,.025), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 40%, rgba(0,0,0,.02), transparent 70%),
    #e6e4de;
}
.room--light::after, .room--stone::after { /* floor and skirting */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; z-index: -1;
  background: linear-gradient(to bottom, #c9c5bc, #b6b1a7);
  border-top: 7px solid #f3f1ec; box-shadow: 0 -1px 0 rgba(0,0,0,.1);
}
@media (min-width: 720px) { .room--light { padding-top: 120px; } }

.frame {
  margin: 44px 0 0; padding: clamp(7px, 1.2vw, 12px); background: #161514; border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 2px 3px rgba(0,0,0,.28), 0 46px 60px -34px rgba(0,0,0,.55);
}
.frame__mat {
  background: #faf9f5; padding: clamp(14px, 3.4vw, 44px) clamp(12px, 3.4vw, 44px) clamp(12px, 2.6vw, 30px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), inset 0 3px 8px rgba(0,0,0,.14);
}
.ekg {
  position: relative; height: clamp(210px, 34vw, 400px);
  background-color: #fdfcf8;
  background-image:
    linear-gradient(rgba(25,24,22,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,24,22,.11) 1px, transparent 1px),
    linear-gradient(rgba(25,24,22,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,24,22,.045) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
  border: 1px solid rgba(25,24,22,.18);
}
.ekg__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 100% 0 0); }
.ekg.is-drawn .ekg__svg { clip-path: inset(0 0 0 0); transition: clip-path 3.4s cubic-bezier(.45,0,.25,1); }
.ekg__line { fill: none; stroke: #161514; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ekg__gap { fill: none; stroke: #161514; stroke-width: 1.2; stroke-dasharray: 1.5 4; vector-effect: non-scaling-stroke; opacity: .7; }
.ekg__cut { stroke: #161514; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .45; }
.ekg__labels { position: absolute; inset: 0; pointer-events: none; font: 500 10px/1.2 var(--mono); color: #6f6c66; }
.ekg__labels span { position: absolute; white-space: nowrap; }
.ekg__labels .tick { right: 6px; transform: translateY(-120%); }
.ekg__labels .cap { left: 6px; top: 6px; font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 9px; }
.ekg__labels .note { color: #161514; font-weight: 500; opacity: 0; transition: opacity .6s ease 3s; }
.ekg.is-drawn .ekg__labels .note { opacity: 1; }
.ekg__labels .note--cut { top: 10px; padding-left: 8px; }
.ekg__labels .note--gap { padding-left: 16px; transform: translateY(-150%); }
.ekg__labels .note--end { right: 6px; transform: translateY(-150%); text-align: right; }
@media (max-width: 560px) { .ekg__labels { font-size: 9px; } .ekg__labels .note--gap { display: none; } .ekg__head span:last-child { display: none; } }
.ekg__axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10px; color: #807d76; }
.ekg__head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font: 600 9.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #807d76; }

.g2__below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 56px; }
@media (min-width: 900px) { .g2__below { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } }
.room--light .wall-label, .room--stone .wall-label { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 22px -14px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.18); background: #f8f6f1; }

.chron { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(25,24,22,.2); }
.chron li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); column-gap: 14px; row-gap: 3px; padding: 15px 0; border-bottom: 1px solid rgba(25,24,22,.12); }
.chron__t { font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.chron__s { font-size: 12.5px; color: var(--ink); }
.chron__d { grid-column: 2; font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 720px) { .chron li { grid-template-columns: 6em 10.5em minmax(0, 1fr); column-gap: 20px; } .chron__d { grid-column: 3; } }

.share { margin-top: 88px; }
.share__h { font: 400 clamp(34px, 6vw, 52px)/1 var(--serif); margin: 0 0 30px; letter-spacing: -.01em; }
.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
@media (min-width: 820px) { .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.fig__n { font-size: clamp(56px, 13vw, 92px); line-height: .95; letter-spacing: -.045em; font-weight: 500; color: var(--ink); }
.fig--ref .fig__n { color: #8a867e; }
.fig__bar { position: relative; height: 3px; background: rgba(25,24,22,.12); margin: 18px 0 14px; }
.fig__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.fig__bar--ref i { background: repeating-linear-gradient(90deg, #8a867e 0 3px, transparent 3px 6px); }
.fig__l { font: 600 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink); }
.fig__d { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin-top: 6px; }

/* ---------- doorway ---------- */
.doorway { background: #121110; color: #77736c; border-top: 1px solid #000; }
.doorway .wrap { display: flex; justify-content: space-between; align-items: center; height: 54px; font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Gallery 3: stone ---------- */
.room--stone {
  padding: 104px 0 168px;
  background:
    radial-gradient(ellipse 60% 520px at 50% 0, rgba(255,255,255,.5), transparent 72%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(0,0,0,.025), transparent 70%),
    #d9d7d1;
}
.walls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid rgba(25,24,22,.25); }
@media (min-width: 900px) { .walls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; border-top: 0; } }
.wall { padding: 24px 0 10px; border-bottom: 1px solid rgba(25,24,22,.15); }
@media (min-width: 900px) { .wall { border-bottom: 0; border-top: 1px solid rgba(25,24,22,.6); } }
.wall__n { font: 400 italic 22px/1 var(--serif); color: var(--ink-3); }
.wall h3 { font: 400 30px/1.05 var(--serif); margin: 10px 0 14px; letter-spacing: -.005em; }
.wall p { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }

.archive { margin-top: 88px; }
.card {
  position: relative; max-width: 760px; margin: 0 auto; transform: rotate(-.5deg);
  padding: 26px clamp(18px, 4vw, 40px) 24px clamp(30px, 6vw, 64px);
  background:
    linear-gradient(90deg, transparent calc(clamp(22px, 4.4vw, 48px)), rgba(25,24,22,.22) calc(clamp(22px, 4.4vw, 48px)), rgba(25,24,22,.22) calc(clamp(22px, 4.4vw, 48px) + 1px), transparent calc(clamp(22px, 4.4vw, 48px) + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(25,24,22,.07) 25px 26px),
    #f7f5ef;
  background-position: 0 0, 0 62px, 0 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 20px 30px -18px rgba(0,0,0,.4);
}
.card__head { display: flex; justify-content: space-between; font: 600 9.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.card__head .mono { letter-spacing: .04em; font-weight: 500; font-size: 10.5px; }
.card__title { font: 400 34px/1.05 var(--serif); margin: 10px 0 14px; }
.card__list { margin: 0; padding: 0 0 0 1.4em; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.card__list li { padding: 3px 0 6px; }
.card__list li::marker { font: 500 12px var(--mono); color: var(--ink-3); }
.card__list .mono { font-size: 12.5px; color: var(--ink); }
.card__fine { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); margin: 14px 0 0; }

/* gift shop */
.shop { margin-top: 96px; padding-top: 32px; border-top: 1px solid rgba(25,24,22,.3); }
.shop__h { font: 400 clamp(36px, 7vw, 56px)/1 var(--serif); margin: 0 0 14px; }
.shop__t { font-size: .5em; color: var(--ink-3); letter-spacing: 0; vertical-align: middle; }
.shop__p { color: var(--ink-2); max-width: 36em; margin: 0 0 22px; }
.ca { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; max-width: 640px; padding: 14px; background: #f8f6f1; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.ca__k { grid-column: 1 / -1; font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.ca code { font-size: 13.5px; }
.shop__links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- exit ---------- */
.exit { background: #121110; color: #8a867e; padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 12px; }
.exit__in { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.exit__sign { font: 600 11px/1 var(--sans); letter-spacing: .3em; padding: 8px 10px 8px 13px; border: 1px solid #5c5953; color: #ece8df; text-transform: uppercase; }
@media (min-width: 820px) { .exit__in { flex-direction: row; align-items: center; justify-content: space-between; } }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  background: #191816; color: #f3f0e9; font: 500 12px/1 var(--mono); padding: 12px 16px; border: 1px solid #3a3835;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 30;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case, .glare, .odo__s, .fig__bar i { transition: none !important; }
  .ekg__svg { clip-path: none; }
  .ekg__labels .note { opacity: 1; transition: none; }
  .live.is-on i { animation: none; }
}
