/* The homepage: a 3D doll's house, one screen, no scrolling.
   The room stays tall and centred; storm and fog fill the sides. */

html, body.home { height: 100%; overflow: hidden; }

body.home {
  height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(55% 40% at 50% 6%, #1b2636 0%, transparent 70%),
    radial-gradient(90% 70% at 50% 50%, #0e141c 0%, var(--void-black) 80%);
}

.stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; }

#room3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.ready #room3d { opacity: 1; }

.loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-voice); font-size: 13px; letter-spacing: .2em;
  color: var(--gunmetal);
  transition: opacity .6s ease;
}
body.ready .loading { opacity: 0; pointer-events: none; transition-delay: .45s; }
body.no-3d .loading { color: var(--chrome); }
body.no-3d .loading-bar { display: none; }
.loading-inner { display: grid; justify-items: center; gap: 14px; }
/* the loading bar: a thin, slightly uneven line of tarnished silver.
   It creeps along on its own (a transform animation keeps moving even while
   the house is being painted), then fills to the end the moment the house is ready. */
.loading-bar {
  position: relative; width: min(220px, 56vw); height: 3px;
  background: rgba(94, 102, 111, .28);
  border-radius: 2px 1px 3px 1px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(196, 201, 207, .12);
}
.loading-fill, .loading-done {
  position: absolute; inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, #4a5058, #9aa1a9 45%, #dfe3e7 80%, #8c939b);
  border-radius: inherit;
}
.loading-fill { transform: scaleX(.04); animation: loadCreep 9s cubic-bezier(.15, .7, .25, 1) forwards; }
.loading-done { transform: scaleX(0); transition: transform .4s ease-out; }
body.ready .loading-done { transform: scaleX(1); }
@keyframes loadCreep {
  0%   { transform: scaleX(.04); }
  30%  { transform: scaleX(.42); }
  60%  { transform: scaleX(.7); }
  100% { transform: scaleX(.92); }
}

/* fog drifting at the sides and along the floor */
.fog {
  position: absolute; inset: auto -20% 0 -20%; height: 45%;
  pointer-events: none;
  background:
    radial-gradient(30% 55% at 18% 85%, rgba(155, 180, 209, .10), transparent 70%),
    radial-gradient(30% 55% at 82% 80%, rgba(155, 180, 209, .10), transparent 70%);
  animation: fog 40s ease-in-out infinite alternate;
}
@keyframes fog { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

/* ---------- the five links, laid exactly over the 3D objects ---------- */
#hotspots { position: absolute; inset: 0; pointer-events: none; }
.hot {
  position: absolute;
  pointer-events: auto;
  border-radius: 10px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hot.away { pointer-events: none; }
.hot:focus-visible { box-shadow: 0 0 0 2px var(--cold-light), 0 0 24px rgba(155, 180, 209, .35); }

.toast {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  font-family: var(--font-voice); font-size: 13px; color: var(--flash-ice);
  background: rgba(8, 9, 12, .82); border: 1px solid #2a3340; border-radius: 999px;
  padding: 8px 14px; z-index: 5; white-space: nowrap;
}

.backup-menu { position: relative; z-index: 10; padding-top: 4px; }

/* ---------- moving through the house ---------- */
.stops {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; transition: opacity .8s ease;
}
body.ready .stops { opacity: 1; }
.stop-dot, .stop-arrow {
  display: grid; place-items: center;
  width: 32px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--chrome);
}
.stop-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--chrome); background: rgba(8, 9, 12, .6);
  box-shadow: 0 0 6px rgba(0, 0, 0, .8);
  transition: transform .3s ease, background .3s ease;
}
.stop-dot[aria-current="true"]::before { background: var(--chrome-gradient); transform: scale(1.35); }
.stop-arrow { font-size: 12px; height: 34px; text-shadow: 0 0 6px #000; }

/* along a floor (phone): ◀ • • • ▶ at the bottom */
.across {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 0;
  background: rgba(8, 9, 12, .55); border: 1px solid #2a3340; border-radius: 999px; padding: 0 4px;
  opacity: 0; transition: opacity .8s ease;
}
.across[hidden] { display: none; }
body.ready .across { opacity: 1; }
.across .stop-dot { width: 28px; height: 36px; }
.across-arrow {
  width: 44px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--chrome);
}
.across-arrow:disabled { opacity: .25; cursor: default; }
.across-arrow:focus-visible { outline: 2px solid var(--cold-light); outline-offset: -2px; border-radius: 999px; }
.stop-arrow:disabled { opacity: .25; cursor: default; }
.stop-dot:focus-visible, .stop-arrow:focus-visible { outline: 2px solid var(--cold-light); outline-offset: -2px; border-radius: 6px; }

.house-btn {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 7;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-voice); font-size: 13px; letter-spacing: .06em; color: var(--flash-ice);
  background: rgba(8, 9, 12, .62); border: 1px solid #3a4452; border-radius: 999px;
  padding: 8px 14px 8px 11px; cursor: pointer;
  opacity: 0; transition: opacity .8s ease, border-color .2s ease;
}
.house-btn svg { width: 16px; height: 16px; }
body.ready .house-btn { opacity: 1; }
.house-btn:hover, .house-btn:focus-visible { border-color: var(--chrome); color: var(--flash-white); }
.house-btn:focus-visible { outline: 2px solid var(--cold-light); outline-offset: 2px; }

.hint {   /* appears in the middle of the screen for a few seconds on arrival */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94); z-index: 6; margin: 0;
  width: max-content; max-width: calc(100% - 40px);
  font-family: var(--font-hand); font-size: 30px; line-height: 1.1; letter-spacing: .01em;
  color: var(--flash-white); text-align: center;
  background: rgba(8, 9, 12, .88); border: 1px solid #6b747e; border-radius: 16px; padding: 16px 22px 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 30px rgba(0, 0, 0, .6), 0 0 22px rgba(155, 180, 209, .14);
  pointer-events: none;
  opacity: 0; transition: opacity .6s ease, transform .6s ease;
}
.hint small {
  display: block; margin-top: 5px;
  font-family: var(--font-voice); font-size: 12.5px; line-height: 1.35; letter-spacing: .03em; color: var(--chrome);
}
@media (min-width: 700px) { .hint { font-size: 36px; padding: 20px 30px 17px; } .hint small { font-size: 14px; } }
.hint { -webkit-user-select: none; user-select: none; }

/* ---------- edge arrows: tap (or click) to move up, down or across ----------
   Each one says in Grace's handwriting where it goes. */
.edges { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
body.ready .edges { opacity: 1; }
.edge {
  position: absolute; pointer-events: auto;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 48px; min-height: 48px; padding: 4px 8px;
  border: 0; background: none; cursor: pointer;
  color: var(--chrome);
  font-family: var(--font-hand); font-size: 22px; line-height: 1;   /* round 45: a little bigger so the labels read at a glance */
  text-shadow: 0 0 6px #000, 0 0 12px #000, 0 1px 2px #000;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}
.edge[hidden] { display: none; }
.edge svg {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 6px rgba(0, 0, 0, .9));
}
.edge::before {   /* a soft dark patch behind, so it reads over the bright stripes */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(5, 6, 9, .62), rgba(5, 6, 9, 0));
}
.edge:hover, .edge:focus-visible { color: var(--flash-white); }
.edge:focus-visible { outline: 2px solid var(--cold-light); outline-offset: 0; border-radius: 12px; }
.edge-up    { top: calc(6px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); flex-direction: column; }
.edge-down  { bottom: 6px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }
.edge-left  { left: 2px;  top: 50%; transform: translateY(-50%); flex-direction: column; }
.edge-right { right: 2px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.edge span { text-transform: lowercase; }
.edge-left span, .edge-right span { max-width: 80px; text-align: center; }   /* same size as the up/down labels (round 46) */
.edge svg { transition: transform .2s ease; }
/* while the first-visit hint is up, the arrows nudge gently in their direction */
.edges.nudge .edge-up svg    { animation: nudge-up 1.6s ease-in-out infinite; }
.edges.nudge .edge-down svg  { animation: nudge-down 1.6s ease-in-out infinite; }
.edges.nudge .edge-left svg  { animation: nudge-left 1.6s ease-in-out infinite; }
.edges.nudge .edge-right svg { animation: nudge-right 1.6s ease-in-out infinite; }
@keyframes nudge-up    { 50% { transform: translateY(-4px); } }
@keyframes nudge-down  { 50% { transform: translateY(4px); } }
@keyframes nudge-left  { 50% { transform: translateX(-4px); } }
@keyframes nudge-right { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .edges.nudge .edge svg { animation: none; } }

/* desktop: bigger arrows and labels (must come after the .edge rules above, or they win) */
@media (min-width: 700px) { .edge { font-size: 30px; } .edge svg { width: 40px; height: 40px; } }

/* phone: the edge arrows replace the dots on the right and the ◀ • • ▶ bar */
body.phone .stops, body.phone .across { display: none; }
.hint.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* two ghost arrows above and below the hint: faint sketched silver chevrons drifting outwards, a "scroll" sign
   that also points at the up/down edge arrows */
.ghost { position: absolute; left: 50%; width: 38px; height: 57px; margin-left: -19px; pointer-events: none; }
.ghost::before {   /* soft dark patch so they read over pictures and stripes */
  content: ""; position: absolute; inset: -14px -22px; z-index: -1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(5, 6, 9, .7), rgba(5, 6, 9, 0));
}
.ghost-up   { bottom: calc(100% + 8px); }
.ghost-down { top: calc(100% + 8px); transform: scaleY(-1); }
.ghost svg {
  width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: #d6dce3; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 7px rgba(0, 0, 0, .9)) drop-shadow(0 0 6px rgba(155, 180, 209, .25));
}
.ghost .pencil { stroke-width: 1; opacity: .55; }
.ghost .trail { stroke-width: 1.2; stroke-dasharray: 2 4.5; opacity: .35; }
.ghost .g1, .ghost .g2 { opacity: 0; animation: ghost-drift 2s ease-in-out infinite; }
.ghost .g2 { animation-delay: .35s; }
@keyframes ghost-drift {
  0%   { opacity: 0;   transform: translateY(12px); }
  35%  { opacity: .95; }
  100% { opacity: 0;   transform: translateY(-8px); }
}
@media (min-width: 700px) { .ghost { width: 48px; height: 72px; margin-left: -24px; } .ghost-up { bottom: calc(100% + 12px); } .ghost-down { top: calc(100% + 12px); } }
@media (prefers-reduced-motion: reduce) { .ghost .g1, .ghost .g2 { animation: none; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .hint { transition: opacity .3s ease; } }

.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;
}

@media (prefers-reduced-motion: reduce) { .fog { animation: none; } }

/* =====================================================================
   THE LETTER (newsletter sign-up)
   ===================================================================== */
.letter-wrap {
  --w: min(88vw, 400px);
  --h: calc(var(--w) * .64);
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
}
.letter-wrap[hidden] { display: none; }
.letter-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .72), rgba(2, 3, 5, .93));
  opacity: 0; transition: opacity .5s ease;
}
.letter-wrap.show .letter-backdrop { opacity: 1; }

.env {
  position: relative; width: var(--w); height: var(--h);
  transform: translateY(70vh) rotate(-7deg); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .25, 1), opacity .4s ease;
  clip-path: inset(-400% -30% 0 -30%);   /* the letter hides inside until it slides out */
}
.letter-wrap.done .env { clip-path: none; }
.letter-wrap.show .env { transform: translateY(32%) rotate(-1.5deg); opacity: 1; }

.env-back, .env-front, .env-flap {
  position: absolute; left: 0; right: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #cbc7bd;
  transition: opacity .45s ease, transform .45s ease;
}
.env-back { inset: 0; background-color: #a9a59b; border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.env-front {
  inset: 0; z-index: 3; border-radius: 3px;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, .25));
}
.env-flap {
  top: 0; height: 58%; z-index: 4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color: #bdb9af;
  transform-origin: 50% 0;
  transition: transform .5s ease, z-index 0s linear .25s, opacity .45s ease;
}
.env-seal {
  position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%);
  font-size: calc(var(--w) * .09); line-height: 1;
  color: #e8955a; text-shadow: 0 0 12px rgba(232, 149, 90, .8), 0 0 30px rgba(232, 149, 90, .45);
  transition: opacity .25s ease;
}
.letter-wrap.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.letter-wrap.open .env-seal { opacity: 0; }

.letter-paper {
  position: absolute; z-index: 2;
  left: 5%; width: 90%; top: 8%; height: 162%;
  padding: 26px 26px 20px;
  color: #0b0f15;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 40%, #e2dfd8 55%, #c9c5bb 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: translateY(0);
  transition: transform .75s cubic-bezier(.3, .7, .2, 1);
  display: flex; flex-direction: column;
}
.letter-wrap.out .letter-paper { transform: translateY(-72%); }
.letter-wrap.done .letter-paper { z-index: 6; transform: translateY(-62%) scale(1.04) rotate(.6deg); }
.letter-wrap.done .env-back, .letter-wrap.done .env-front, .letter-wrap.done .env-flap { opacity: 0; transform: translateY(40%); }
.letter-wrap.closing .env { opacity: 0; transform: translateY(10%) scale(.96); transition-duration: .35s; }
.letter-wrap.closing .letter-backdrop { opacity: 0; transition-duration: .35s; }

#letter-title {
  font-family: var(--font-hand); font-weight: normal;
  font-size: clamp(30px, 8.5vw, 40px); line-height: 1.05;
  margin: 8px 0 18px;
}
.letter-label { font-family: var(--font-voice); font-size: 13px; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.letter-form input {
  width: 100%; font: 16px var(--font-voice); color: #0b0f15;
  background: transparent; border: 0; border-bottom: 1.5px solid #0b0f15;
  padding: 8px 2px; border-radius: 0;
}
.letter-form input:focus { outline: none; border-bottom-color: #3f4f64; box-shadow: 0 2px 0 #3f4f64; }
.letter-send {   /* silver, but the shine stays at the top and bottom edges so the word sits on plain light silver */
  margin-top: 16px; font: 400 20px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;   /* Gravord, the logo font (round 53) */
  color: #07090c; text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  border: 1px solid #4a525b; border-radius: 999px; padding: 11px 30px; cursor: pointer;
  background: linear-gradient(180deg, #fdfefe 0%, #e3e7eb 22%, #d6dbe0 50%, #cbd1d7 78%, #9aa2ab 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 3px rgba(60, 68, 78, .25);
}
.letter-send:hover, .letter-send:focus-visible { filter: brightness(1.08); }
.letter-consent { font: 11.5px/1.35 var(--font-voice); color: #4a5563; margin: 8px 0 0; max-width: 30ch; }
.letter-msg { font: 13px var(--font-voice); min-height: 1.3em; margin: 10px 0 0; color: #3f4f64; }
.letter-thanks { font-family: var(--font-hand); font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.letter-sign { font-family: var(--font-hand); font-size: 22px; margin: auto 0 0; text-align: right; }
.letter-sign span { color: #0b0f15; }   /* black heart in the signature (Grace's choice) */
.letter-close {
  position: absolute; top: 6px; right: 8px; width: 40px; height: 40px;
  font-size: 26px; line-height: 1; color: #0b0f15; background: none; border: 0; cursor: pointer;
}

/* =====================================================================
   THE POLAROID (social links)
   ===================================================================== */
.pola-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.pola-wrap[hidden] { display: none; }
.pola-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .7), rgba(2, 3, 5, .93));
  opacity: 0; transition: opacity .5s ease;
}
.pola-wrap.show .pola-backdrop { opacity: 1; }
.pola {
  position: relative; width: min(80vw, 330px);
  padding: 14px 14px 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #eceae4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 2px 0 rgba(255, 255, 255, .6) inset;
  transform: translateY(-38vh) scale(.25) rotate(-10deg); opacity: 0;
  transition: transform .8s cubic-bezier(.2, .8, .25, 1), opacity .35s ease;
}
.pola-wrap.show .pola { transform: translateY(0) scale(1) rotate(-2deg); opacity: 1; }
.pola-wrap.closing .pola { transform: translateY(8%) scale(.96) rotate(-2deg); opacity: 0; transition-duration: .3s; }
.pola-wrap.closing .pola-backdrop { opacity: 0; transition-duration: .3s; }
.pola-photo {
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 80% at 45% 40%, #3d4b5c 0%, #151b23 70%, #07090c 100%);
  filter: brightness(.15) contrast(.6) blur(3px);            /* undeveloped */
  transition: filter 2.2s ease;
}
.pola-wrap.developed .pola-photo { filter: none; }
.pola-photo img { width: 66%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
/* Floor Time (photo 9): fills the frame, faded and cooled like the Polaroids in the house so nothing warm competes with the heart */
.pola-photo .pola-pic { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.06) brightness(.95); }
.pola-strip { padding: 12px 8px 18px; color: #0b0f15; }
#pola-title { font-family: var(--font-hand); font-weight: normal; font-size: 30px; margin: 0 0 6px; text-align: center; }
.pola-links { list-style: none; margin: 0; padding: 0; }
.pola-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 6px; text-decoration: none; color: #0b0f15; border-bottom: 1px dashed rgba(11, 15, 21, .25);
}
.pola-link span { font-family: var(--font-hand); font-size: 26px; line-height: 1; flex: 1; }
.pola-ico { width: 22px; height: 22px; flex: none; align-self: center; color: #0b0f15; opacity: .72; }   /* dark ink, a little faded: printed on the strip */
.pola-link:hover .pola-ico, .pola-link:focus-visible .pola-ico { opacity: 1; }
.pola-link small { font-family: var(--font-voice); font-size: 12px; color: #3f4f64; }
.pola-link:hover span, .pola-link:focus-visible span { text-decoration: underline; }
.pola-link:focus-visible { outline: 2px solid #3f4f64; outline-offset: 2px; }
.pola-msg { font: 13px var(--font-voice); color: #3f4f64; min-height: 1.2em; margin: 8px 0 0; text-align: center; }
.pola-close {   /* z-index: the photo is drawn after it (and its filter makes its own layer), so lift the cross above it */
  position: absolute; z-index: 3; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--flash-white); background: #111418; border: 1px solid #3a4452; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .pola, .pola-photo, .pola-backdrop { transition: none !important; } }

/* =====================================================================
   THE RECORD SLEEVE (music: the newest single + platforms)
   ===================================================================== */
.rec-wrap { --s: min(84vw, 340px); position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.rec-wrap[hidden] { display: none; }
.rec-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .7), rgba(2, 3, 5, .93));
  opacity: 0; transition: opacity .5s ease;
}
.rec-wrap.show .rec-backdrop { opacity: 1; }
.rec {
  position: relative; width: var(--s); margin-top: calc(var(--s) * .46);   /* room above for the record sliding out */
  transform: translateY(70vh) rotate(5deg); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .25, 1), opacity .35s ease;
}
.rec-wrap.show .rec { transform: translateY(0) rotate(-1.5deg); opacity: 1; }
.rec-wrap.closing .rec { transform: translateY(8%) scale(.96) rotate(-1.5deg); opacity: 0; transition-duration: .3s; }
.rec-wrap.closing .rec-backdrop { opacity: 0; transition-duration: .3s; }

/* the record: grooves, a sheen, and a silver label with the logo; slides up out of the sleeve and turns */
.rec-disc {
  position: absolute; left: 4%; top: 2%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .13) 12%, transparent 17% 52%, rgba(255, 255, 255, .09) 57%, transparent 62%),
    repeating-radial-gradient(circle, #0b0c0f 0 1.5px, #16181c 1.5px 3px),
    #0b0c0f;
  box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .6);
  transform: translateY(0);
  transition: transform .9s cubic-bezier(.3, .7, .2, 1);
}
.rec-wrap.out .rec-disc { transform: translateY(-50%); }
.rec-label {
  position: absolute; inset: 33%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, #0b0c0f 0 5%, transparent 5.5%), var(--chrome-gradient);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 12px rgba(0, 0, 0, .35);
}
.rec-label img { width: 72%; filter: brightness(.15) contrast(1.2); opacity: .8; }
.rec-wrap.out .rec-label { animation: rec-spin 6s linear infinite; }
@keyframes rec-spin { to { transform: rotate(360deg); } }

/* the sleeve: worn black card, ring wear, scuffed silver edge */
.rec-sleeve {
  position: relative; z-index: 1; min-height: var(--s);
  padding: 18px 20px 14px;
  display: flex; flex-direction: column;
  color: var(--flash-ice);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 46%, transparent 40%, rgba(196, 201, 207, .07) 41.5%, transparent 43%),   /* ring wear */
    radial-gradient(120% 90% at 30% 20%, #23262c, #121418 70%);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(196, 201, 207, .22), inset 0 0 24px rgba(0, 0, 0, .7);
}
.rec-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--flash-white); background: #111418; border: 1px solid #3a4452; cursor: pointer;
}
/* the newest single: a paper sticker on the shrink-wrap */
.rec-single {
  align-self: center; display: block; text-align: center; text-decoration: none;
  margin: 4px 0 14px; padding: 10px 22px 9px; transform: rotate(-2deg);
  color: #0b0f15;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #e6e3dc;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 0 0 2px #e6e3dc, inset 0 0 0 3px #5e666f;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rec-single small { display: block; font: 700 11px var(--font-voice); letter-spacing: .22em; text-transform: uppercase; color: #3f4f64; }
.rec-single span { display: block; font-family: var(--font-hand); font-size: 40px; line-height: 1.05; margin: 2px 0 1px; }
.rec-single em { display: block; font: 13px var(--font-voice); font-style: normal; letter-spacing: .06em; }
.rec-single:hover, .rec-single:focus-visible { transform: rotate(-2deg) scale(1.04); box-shadow: 0 5px 16px rgba(0, 0, 0, .6), 0 0 18px rgba(155, 180, 209, .25), inset 0 0 0 2px #e6e3dc, inset 0 0 0 3px #5e666f; }
.rec-single:focus-visible { outline: 2px solid var(--cold-light); outline-offset: 3px; }
.rec-on { margin: 0 0 2px; text-align: center; font: 12px var(--font-voice); letter-spacing: .2em; text-transform: uppercase; color: var(--chrome); }
.rec-links { list-style: none; margin: 0; padding: 0; }
.rec-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 6px 7px; text-decoration: none; color: var(--flash-ice);
  border-bottom: 1px dashed rgba(196, 201, 207, .25);
}
.rec-links li:last-child .rec-link { border-bottom: 0; }
.rec-link span { font-family: var(--font-hand); font-size: 25px; line-height: 1; flex: 1; }
.rec-ico { width: 22px; height: 22px; flex: none; color: #d9dde2; opacity: .78; transition: opacity .2s ease; }   /* off-white, a little faded: printed on the sleeve */
.rec-link:hover .rec-ico, .rec-link:focus-visible .rec-ico { opacity: 1; }
.rec-link i { font-style: normal; font-family: var(--font-voice); color: var(--gunmetal); transition: transform .2s ease, color .2s ease; }
.rec-link:hover span, .rec-link:focus-visible span { color: var(--flash-white); }
.rec-link:hover i, .rec-link:focus-visible i { color: var(--chrome); transform: translateX(3px); }
.rec-link:focus-visible { outline: 2px solid var(--cold-light); outline-offset: 0; border-radius: 6px; }
.rec-msg { font: 13px var(--font-voice); color: var(--chrome); min-height: 1.2em; margin: 6px 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .rec, .rec-disc, .rec-backdrop { transition: none !important; }
  .rec-wrap.out .rec-label { animation: none; }
}

/* =====================================================================
   THE SETLIST (gigs: shows from Bandsintown, or "no shows yet" + sign-up)
   A handwritten setlist on cool off-white paper, taped down with silver tape.
   ===================================================================== */
.set-wrap { --s: min(86vw, 360px); position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.set-wrap[hidden] { display: none; }
.set-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .7), rgba(2, 3, 5, .93));
  opacity: 0; transition: opacity .5s ease;
}
.set-wrap.show .set-backdrop { opacity: 1; }
.set {
  position: relative; width: var(--s);
  transform: translateY(-60vh) rotate(-6deg); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .25, 1), opacity .35s ease;
}
.set-wrap.show .set { transform: translateY(0) rotate(1.2deg); opacity: 1; }
.set-wrap.closing .set { transform: translateY(6%) scale(.96) rotate(1.2deg); opacity: 0; transition-duration: .3s; }
.set-wrap.closing .set-backdrop { opacity: 0; transition-duration: .3s; }

/* the paper: faint creases from being folded into a pocket, foxing, a slightly torn bottom edge */
.set-paper {
  position: relative; max-height: 82vh; overflow-y: auto;
  padding: 26px 24px 26px;
  color: #101318;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .12 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, transparent 49.6%, rgba(40, 46, 56, .1) 50%, rgba(255, 255, 255, .35) 50.4%, transparent 51%),
    linear-gradient(0deg, transparent 33%, rgba(40, 46, 56, .08) 33.3%, rgba(255, 255, 255, .3) 33.6%, transparent 34%),
    linear-gradient(0deg, transparent 66%, rgba(40, 46, 56, .08) 66.3%, rgba(255, 255, 255, .3) 66.6%, transparent 67%),
    radial-gradient(120% 90% at 30% 15%, #eeeeeb, #d9dad6 75%, #c6c8c4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 0 30px rgba(70, 78, 90, .18);
  clip-path: polygon(0 0, 100% 0, 100% 97%, 94% 99%, 88% 97.5%, 80% 99.5%, 71% 98%, 62% 100%, 52% 98.2%, 43% 99.6%, 33% 97.8%, 24% 99.4%, 15% 98%, 7% 100%, 0 98.4%);
  scrollbar-width: thin;
}
/* two strips of silver tape holding it down */
.set::before, .set::after {
  content: ""; position: absolute; z-index: 2; top: -12px; width: 92px; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(240, 243, 246, .85), rgba(170, 178, 187, .78) 45%, rgba(225, 229, 233, .8) 60%, rgba(150, 158, 168, .75));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 2%, 100% 0, 96% 50%, 100% 100%, 8% 100%, 0 94%, 4% 50%);
  opacity: .92;
}
.set::before { left: -18px; transform: rotate(-24deg); }
.set::after { right: -18px; transform: rotate(21deg); }

.set-close {
  position: absolute; z-index: 3; top: -16px; right: -10px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--flash-white); background: #111418; border: 1px solid #3a4452; cursor: pointer;
}
#set-title {
  font-family: var(--font-hand); font-weight: normal; text-transform: uppercase;
  font-size: 52px; line-height: 1; margin: 0 0 4px; letter-spacing: .02em;
  border-bottom: 2px solid #101318; padding-bottom: 6px; transform: rotate(-1.5deg); transform-origin: left;
}
.set-wait { font: 14px var(--font-voice); color: #4a5563; margin: 18px 0; }

/* each show, numbered like songs on a setlist */
.set-list { list-style: none; counter-reset: song; margin: 8px 0 0; padding: 0; }
.set-list li {
  counter-increment: song; position: relative;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px;
  padding: 12px 0 12px 26px; border-bottom: 1px dashed rgba(16, 19, 24, .35);
}
.set-list li::before { content: counter(song) "."; position: absolute; left: 0; top: 12px; font: 22px/1 var(--font-hand); color: #3f4f64; }
.set-date { font: 22px/1 var(--font-hand); text-transform: uppercase; white-space: nowrap; }
.set-date b { font-weight: normal; }
.set-where { display: flex; flex-direction: column; min-width: 0; }
.set-city { font: 22px/1 var(--font-hand); }
.set-venue { font: 13px/1.3 var(--font-voice); color: #3a4350; margin-top: 3px; }
.set-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.set-btn, .set-sold {
  font: 700 12px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #07090c; border: 1px solid #4a525b; border-radius: 999px; padding: 7px 16px;
  background: linear-gradient(180deg, #fdfefe 0%, #e3e7eb 22%, #d6dbe0 50%, #cbd1d7 78%, #9aa2ab 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.set-rsvp { background: transparent; box-shadow: none; }
.set-sold { background: transparent; box-shadow: none; text-decoration: line-through; color: #4a5563; }
.set-btn:hover, .set-btn:focus-visible { filter: brightness(1.08); outline: 2px solid #3f4f64; outline-offset: 2px; }

/* no shows yet */
.set-empty { font: 30px/1.1 var(--font-hand); margin: 18px 0 14px; transform: rotate(-1deg); }
.set-label { font: 13px var(--font-voice); letter-spacing: .06em; display: block; margin-bottom: 4px; }
.set-form input[type=email] {
  width: 100%; font: 16px var(--font-voice); color: #0b0f15;
  background: transparent; border: 0; border-bottom: 1.5px solid #0b0f15; padding: 8px 2px; border-radius: 0;
}
.set-form input:focus { outline: none; border-bottom-color: #3f4f64; box-shadow: 0 2px 0 #3f4f64; }
.set-send {
  margin-top: 14px; font: 400 20px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;   /* Gravord, the logo font (round 53) */
  color: #07090c; text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  border: 1px solid #4a525b; border-radius: 999px; padding: 11px 30px; cursor: pointer;
  background: linear-gradient(180deg, #fdfefe 0%, #e3e7eb 22%, #d6dbe0 50%, #cbd1d7 78%, #9aa2ab 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 3px rgba(60, 68, 78, .25);
}
.set-send:hover, .set-send:focus-visible { filter: brightness(1.08); }
.set-consent { font: 11.5px/1.35 var(--font-voice); color: #4a5563; margin: 8px 0 0; max-width: 32ch; }
.set-msg { font: 13px var(--font-voice); min-height: 1.3em; margin: 8px 0 0; color: #3f4f64; }
.set-thanks { font: 26px/1.15 var(--font-hand); margin: 4px 0 8px; }
.set-follow {   /* a hand-drawn box round it, like something circled on the setlist */
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 20px; padding: 10px 14px 9px;
  font: 25px/1.05 var(--font-hand); color: #101318; text-decoration: none;
  border: 2px solid #101318; border-radius: 14px 6px 12px 5px / 6px 12px 5px 14px;
  transform: rotate(-.8deg);
  box-shadow: 2px 3px 0 rgba(16, 19, 24, .18);
  transition: background .2s ease;
}
.set-follow small { display: block; font: 11.5px var(--font-voice); letter-spacing: .04em; color: #3a4350; margin-top: 3px; }
.set-follow i { font: 22px var(--font-voice); font-style: normal; display: inline-block; transition: transform .2s ease; }
.set-follow:hover, .set-follow:focus-visible { background: rgba(16, 19, 24, .06); }
.set-follow:hover i, .set-follow:focus-visible i { transform: translateX(3px); }
.set-follow:focus-visible { outline: 2px solid #3f4f64; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .set, .set-backdrop { transition: none !important; }
}

/* =====================================================================
   HER FAVOURITE BOOKS (desktop: click the bookshelf above the bed)
   The books up close, standing on a black shelf, titles handwritten down the spines.
   ===================================================================== */
.books-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.books-wrap[hidden] { display: none; }
.books-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .72), rgba(2, 3, 5, .94));
  opacity: 0; transition: opacity .5s ease;
}
.books-wrap.show .books-backdrop { opacity: 1; }
.books { position: relative; display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity .35s ease; }
.books-wrap.show .books { opacity: 1; }
.books-wrap.closing .books, .books-wrap.closing .books-backdrop { opacity: 0; transition-duration: .3s; }
#books-title { font-family: var(--font-hand); font-weight: normal; font-size: 44px; color: var(--chrome); margin: 0 0 22px; transform: rotate(-1.5deg); }
.books-close {
  position: absolute; z-index: 3; top: -6px; right: -54px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--flash-white); background: #111418; border: 1px solid #3a4452; cursor: pointer;
}
.bk-row { list-style: none; margin: 0; padding: 0 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
/* each book lies on its side: silver bands at both ends of the spine, rounded top-to-bottom */
.bk {
  position: relative; width: min(var(--w), 82vw); height: var(--h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 40px 0 42px; border-radius: 2px 5px 5px 2px;
  color: #d9dce0;
  background:
    linear-gradient(90deg, transparent 16px, #a9aeb5 16px 20px, transparent 20px 25px, #a9aeb5 25px 27px, transparent 27px) left / 30px 100% no-repeat,          /* silver bands */
    linear-gradient(90deg, transparent 3px, #a9aeb5 3px 5px, transparent 5px 10px, #a9aeb5 10px 14px, transparent 14px) right / 26px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 35%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .5)),                                          /* round spine */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--c);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .4);
  transform: translate(var(--x), -40px) rotate(var(--r)); opacity: 0;
  transition: transform .55s cubic-bezier(.2, .8, .25, 1) calc(var(--i) * 60ms + 120ms), opacity .4s ease calc(var(--i) * 60ms + 120ms);
}
.books-wrap.show .bk { transform: translate(var(--x), 0) rotate(var(--r)); opacity: 1; }
.books-wrap.show .bk:hover { transform: translate(calc(var(--x) + 14px), 0) rotate(var(--r)); transition-delay: 0s; transition-duration: .25s; }
.bk-light { color: #111114; }
.bk-title { font-family: var(--font-hand); font-size: 30px; line-height: 1; white-space: nowrap; }
.bk-author { font: 11px var(--font-voice); letter-spacing: .08em; text-transform: uppercase; opacity: .75; white-space: nowrap; text-align: right; }
.bk-none { font: 26px var(--font-hand); color: var(--chrome); margin: 30px 0; }
/* the black shelf with a silver-edged lip */
.bk-shelf { width: calc(100% + 30px); height: 18px; background: linear-gradient(#a9aeb5 0 2px, #16181c 2px 60%, #08090b); border-radius: 2px; box-shadow: 0 14px 28px rgba(0, 0, 0, .7); }
@media (prefers-reduced-motion: reduce) {
  .books, .books-backdrop, .bk { transition: none !important; }
}
.hot-extra[hidden] { display: none; }

/* =====================================================================
   THE BASKET OF MESS (desktop: click the black basket in the attic)
   Tipped out onto the attic floorboards, seen from above like a "Leaving Mess" photo.
   ===================================================================== */
.mess-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.mess-wrap[hidden] { display: none; }
.mess-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(8, 10, 14, .72), rgba(2, 3, 5, .94));
  opacity: 0; transition: opacity .5s ease;
}
.mess-wrap.show .mess-backdrop { opacity: 1; }
.mess { position: relative; width: min(88vw, 1000px, calc((86vh - 90px) * 1.6)); opacity: 0; transition: opacity .35s ease; }
.mess-wrap.show .mess { opacity: 1; }
.mess-wrap.closing .mess, .mess-wrap.closing .mess-backdrop { opacity: 0; transition-duration: .3s; }
#mess-title { font-family: var(--font-hand); font-weight: normal; font-size: 44px; color: var(--chrome); margin: 0 0 14px 6px; transform: rotate(-1.5deg); transform-origin: left; }
#mess-title small { display: inline-block; margin-left: 14px; font: 13px var(--font-voice); letter-spacing: .06em; color: var(--gunmetal); transform: rotate(1.5deg); }
.mess-close {
  position: absolute; z-index: 5; top: 2px; right: -6px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--flash-white); background: #111418; border: 1px solid #3a4452; cursor: pointer;
}
/* the attic floorboards, from above, lit from one side */
.mess-floor {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px;
  background:
    radial-gradient(90% 80% at 35% 30%, rgba(155, 180, 209, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, #17191d 0 calc(12.5% - 2px), #060708 calc(12.5% - 2px) 12.5%),
    #15171b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 0 80px rgba(0, 0, 0, .75);
}
.mx-cables { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease .1s; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .6)); }
.mess-wrap.show .mx-cables { opacity: 1; }
.mx { position: absolute; margin: 0; transform: translate(-40px, -50px) rotate(calc(var(--r) - 35deg)) scale(.7); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .25, 1) calc(var(--i) * 70ms + 120ms), opacity .35s ease calc(var(--i) * 70ms + 120ms); }
.mess-wrap.show .mx { transform: rotate(var(--r)); opacity: 1; }
.mx svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .65)); transition: transform .25s ease; }
.mx:hover svg { transform: translateY(-4px) scale(1.03); }
/* the handwritten notes, in silver pencil, kept upright-ish whatever the item's turn */
.mx-note { position: absolute; margin: 0; font: 21px/1.05 var(--font-hand); color: #c4c9cf; white-space: nowrap; text-shadow: 0 0 3px #050607, 0 0 6px #050607, 0 0 10px #050607, 0 1px 2px #000; pointer-events: none; }   /* dark halo so the cables never cut through the words */
.mx-below { left: 50%; top: 100%; transform: translateX(-50%) rotate(calc(var(--r) * -1 - 2deg)); margin-top: 6px; }
.mx-above { left: 50%; bottom: 100%; transform: translateX(-50%) rotate(calc(var(--r) * -1 + 2deg)); margin-bottom: 6px; }
.mx-right { left: 100%; top: 40%; transform: rotate(calc(var(--r) * -1 - 3deg)); transform-origin: left; margin-left: 12px; white-space: normal; width: 9em; }
.mx-cable-note { right: 3%; bottom: 4%; transform: rotate(-3deg); opacity: 0; transition: opacity .5s ease .7s; }
.mess-wrap.show .mx-cable-note { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mess, .mess-backdrop, .mx, .mx-cables, .mx-cable-note { transition: none !important; }
}
