:root {
  --ink: #000;
  --graphite: #101012;
  --platinum: #ecEAE4;
  --smoke: #8c8b88;
  --line: rgba(236, 234, 228, 0.14);
  --red: #ff1a00;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --pw: min(78vw, 360px, calc((100svh - 190px) * 0.62)); /* also fits short laptop screens */
  --ph: calc(var(--pw) / 0.62);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--platinum); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
/* while the gate is up nothing of the page may show around it: in-app browsers (Telegram) and newer Safari
   draw the page under their floating bottom bar, below the gate's own edge */
html { background: var(--ink); }
body.is-locked .layout, body.is-locked .bar { visibility: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--platinum); outline-offset: 3px; }
.muted { color: var(--smoke); }
.small { font-size: 0.85rem; }

/* ================= PASS ================= */
.pass {
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  --mx: 50%; --my: 50%; --fx: 50%; --fy: 50%; --hyp: 0;
  position: relative; width: var(--pw); height: var(--ph); perspective: 1400px;
  -webkit-user-select: none; user-select: none;
}
.pass-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
}
.pass-face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, #19191c 0%, #0a0a0b 45%, #121215 100%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
  /* ticket notches at the perforation */
  -webkit-mask: radial-gradient(circle 11px at 0 78%, #0000 98%, #000) , radial-gradient(circle 11px at 100% 78%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 11px at 0 78%, #0000 98%, #000) , radial-gradient(circle 11px at 100% 78%, #0000 98%, #000);
  mask-composite: intersect;
  display: block;
}
.pass-back { transform: rotateY(180deg); }
.pass-bg { position: absolute; inset: 0; background: url(../assets/img/card-back.webp) center / cover; opacity: 0.1; mix-blend-mode: screen; }
/* the card's edge: one smooth hairline whose soft sheen turns with the tilt
   (a grainy foil texture here read as a dotted line that crawled as the card moved) */
.pass-foil-edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(calc(125deg + var(--ry) * 5 - var(--rx) * 3),
    rgba(236, 234, 228, 0.55), rgba(236, 234, 228, 0.16) 30%, rgba(175, 205, 255, 0.34) 50%,
    rgba(236, 234, 228, 0.14) 70%, rgba(255, 190, 170, 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* the same hairline follows the two ticket notches, so the edge never just stops */
.pass-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0 78%, transparent 10.6px, rgba(236, 234, 228, 0.32) 11.2px, transparent 12.1px),
    radial-gradient(circle at 100% 78%, transparent 10.6px, rgba(236, 234, 228, 0.32) 11.2px, transparent 12.1px);
}
.pass-top { position: absolute; left: 7%; right: 7%; top: 5.5%; display: flex; justify-content: space-between; align-items: center; }
.pass-top img { width: 30%; }
.pass-no { font-family: var(--mono); font-size: max(9.5px, calc(var(--pw) * 0.03)); color: var(--smoke); letter-spacing: 0.04em; }
.pass-seal {
  position: absolute; right: 7%; top: 13%; width: 30%; aspect-ratio: 1;
  background: url(../assets/tex/foil.webp) var(--fx) var(--fy) / 320%;
  -webkit-mask: url(../assets/logos/soexp-mark-white.png) center / contain no-repeat;
  mask: url(../assets/logos/soexp-mark-white.png) center / contain no-repeat;
  filter: saturate(1.25) brightness(1.05) contrast(1.05);
}
.pass-title {
  position: absolute; left: 7%; top: 14%; margin: 0; display: grid;
  font-family: var(--display); font-weight: 300; font-size: calc(var(--pw) * 0.118); line-height: 1.02; letter-spacing: -0.03em;
}
.pass-title span:last-child { color: #131315; -webkit-text-stroke: 2px var(--platinum); paint-order: stroke fill; letter-spacing: -0.01em; }
.pass-fields {
  position: absolute; left: 7%; right: 7%; top: 36%; margin: 0; line-height: 1.25;
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--pw) * 0.03) calc(var(--pw) * 0.05);
}
.pass-fields div { min-width: 0; }
.pass-fields .f-wide { grid-column: 1 / -1; }
.pass-fields dt { font-family: var(--mono); font-size: max(9.5px, calc(var(--pw) * 0.026)); color: var(--smoke); }
.pass-fields dd { margin: 2px 0 0; font-size: calc(var(--pw) * 0.042); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-fields .v-name { font-family: var(--display); font-weight: 500; font-size: calc(var(--pw) * 0.06); letter-spacing: -0.02em; line-height: 1.15; }
.pass-fields .is-empty { color: rgba(236, 234, 228, 0.32); }
/* very long names wrap onto a second line instead of being cut */
.pass-fields dd.is-long { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.1; }
.pass-perf { position: absolute; left: 6%; right: 6%; top: 78%; border-top: 1.5px dashed rgba(236, 234, 228, 0.22); }
.pass-stub { position: absolute; left: 7%; right: 7%; bottom: 4.5%; height: 15%; display: flex; gap: 5%; align-items: center; }
.pass-qr {
  position: relative; height: 100%; aspect-ratio: 1; border-radius: 6px; background: var(--platinum); padding: 5%; flex: none;
}
.pass-qr svg { width: 100%; height: 100%; display: block; }
.pass-qr svg path, .pass-qr svg rect[fill="black"] { fill: #000; }
.pass[data-state="unclaimed"] .pass-qr svg { filter: blur(2.5px); opacity: 0.45; }
.pass[data-state="unclaimed"] .pass-qr::after {
  content: ""; position: absolute; inset: 32%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pass-stub-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pass-status {
  justify-self: start; font-family: var(--mono); font-size: max(9.5px, calc(var(--pw) * 0.028)); padding: 3px 9px; white-space: nowrap; border-radius: 999px;
  border: 1px solid rgba(236, 234, 228, 0.3); color: var(--smoke);
}
.pass[data-state="confirmed"] .pass-status { border-color: var(--red); color: #fff; background: var(--red); }
.pass-serial { font-family: var(--mono); font-size: max(10px, calc(var(--pw) * 0.034)); white-space: nowrap; letter-spacing: 0.06em; }
.pass-se { width: 12%; flex: none; opacity: 0.85; }
.pass-stamp {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--pw) * 0.07); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); border: 3px double var(--red); border-radius: 8px; padding: 0.15em 0.5em; mix-blend-mode: screen;
  pointer-events: none; white-space: nowrap;
}
.pass-holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge;
  background:
    url(../assets/tex/foil.webp) var(--fx) var(--fy) / 220%,
    repeating-linear-gradient(115deg, rgba(255, 26, 0, 0.5) 0%, rgba(255, 196, 120, 0.5) 7%, rgba(160, 240, 255, 0.5) 14%, rgba(180, 140, 255, 0.5) 21%, rgba(255, 26, 0, 0.5) 28%) var(--fx) var(--fy) / 300% 300%;
  background-blend-mode: overlay;
  opacity: calc(0.05 + var(--hyp) * 0.16);
}
.pass-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 22%, rgba(0, 0, 0, 0.35) 75%);
}
.pass-sweep {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%);
}

/* back face */
.back-title { position: absolute; left: 7%; top: 6%; margin: 0; font-family: var(--display); font-weight: 300; font-size: calc(var(--pw) * 0.08); }
.back-list { position: absolute; left: 7%; right: 7%; top: 16%; margin: 0; padding: 0; list-style: none; display: grid; gap: calc(var(--pw) * 0.03); line-height: 1.3; }
.back-list li { display: grid; grid-template-columns: calc(var(--pw) * 0.1) 1fr; gap: calc(var(--pw) * 0.04); align-items: center; }
.back-list img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(236, 234, 228, 0.18); }
.back-list b { display: block; font-family: var(--mono); font-weight: 400; font-size: max(9.5px, calc(var(--pw) * 0.028)); color: var(--smoke); }
.back-list span { display: block; font-size: max(11px, calc(var(--pw) * 0.04)); line-height: 1.3; }
.back-place { position: absolute; left: 7%; right: 7%; top: 72%; margin: 0; font-size: max(10px, calc(var(--pw) * 0.033)); color: var(--smoke); line-height: 1.45; }
.back-hosts { position: absolute; left: 7%; right: 7%; bottom: 5%; display: flex; align-items: center; gap: 6%; }
.back-hosts img:first-child { width: 30%; }
.back-hosts img:last-child { width: 18%; }

/* ================= GATE ================= */
/* the red glow is part of the page, so it never switches off */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(90% 60% at 50% 105%, rgba(255, 26, 0, 0.16), transparent 70%); }
.layout, .foot { position: relative; z-index: 1; }
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 10px;
  touch-action: none;
}
.gate-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 50% 105%, rgba(255, 26, 0, 0.16), transparent 70%), var(--ink); }
.sleeve-stage { position: relative; width: var(--pw); height: calc(var(--ph) * 1.05); margin-top: calc(var(--ph) * 0.18); }
.gate-pass { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; cursor: grab; touch-action: none; }
.gate-pass:active { cursor: grabbing; }
.sleeve {
  position: absolute; z-index: 2; left: -5%; right: -5%; bottom: 0; height: calc(var(--ph) * 1.02);
  border-radius: 14px 14px 18px 18px; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 14px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #141416, #070708);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12) inset, 0 40px 80px -20px #000, 0 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-mask: radial-gradient(circle 26px at 50% 0, #0000 98%, #000); mask: radial-gradient(circle 26px at 50% 0, #0000 98%, #000);
}
.sleeve-load { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(236, 234, 228, 0.08); }
.sleeve-load i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), #ffb08f); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--red); }
.sleeve-mark { width: 30%; opacity: 0.16; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 1)); }
.sleeve-text { font-size: 0.85rem; color: var(--smoke); }
.sleeve-logo { position: absolute; bottom: 8%; width: 26%; opacity: 0.6; }
.gate-hint { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--smoke); font-size: 0.9rem; min-height: 1.6em; text-align: center; padding: 0 var(--gutter); }
.gate.is-ready .gate-hint { color: var(--platinum); }
.gate-arrow { width: 10px; height: 14px; display: none; }
.gate.is-ready .gate-arrow {
  display: inline-block; background: linear-gradient(var(--platinum), var(--platinum)) 50% 100% / 1px 100% no-repeat;
  position: relative; animation: rise 1.6s ease-in-out infinite;
}
.gate.is-ready .gate-arrow::before { content: ""; position: absolute; left: 1px; top: 0; width: 6px; height: 6px; border-left: 1px solid; border-top: 1px solid; transform: rotate(45deg); }
@keyframes rise { 50% { transform: translateY(-5px); } }
.gate-btn { background: none; border: 0; color: var(--smoke); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: 0; }
.gate.is-ready .gate-btn { opacity: 1; }
.gate-lang { position: absolute; top: 18px; right: var(--gutter); }

/* ================= HEADER ================= */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); pointer-events: none; background: linear-gradient(#000, rgba(0, 0, 0, 0));
}
.bar > * { pointer-events: auto; }
.bar-logo img { width: 92px; }
.bar-right { display: flex; gap: 14px; align-items: center; }
.bar-cta { text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--platinum); color: #000; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; color: var(--smoke); cursor: pointer; }
.lang button[aria-pressed="true"] { color: #000; background: var(--platinum); }
.sound { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 0.8rem; color: var(--smoke); padding: 6px; }
.sound-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] { color: var(--platinum); }
.sound[aria-pressed="true"] .sound-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -0.3s !important; }
.sound-bars i:nth-child(3) { animation-delay: -0.6s !important; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
@media (max-width: 640px) { .bar-logo img { width: 76px; } .sound-label, .bar-cta { display: none; } }

/* ================= LAYOUT ================= */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr); column-gap: clamp(32px, 6vw, 96px);
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
}
.col-text { min-width: 0; }
/* the footer shares the grid with the text column, so the pass column (and its sticky pass) runs to the very end of the page */
.col-pass { grid-column: 2; grid-row: 1 / span 2; }
/* padding-top = header height, so the pass centres in the space below the bar */
.pass-sticky { position: sticky; top: 0; height: 100svh; padding-top: 72px; display: grid; place-items: center; align-content: center; gap: 22px; }
.turn {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.8rem; color: var(--smoke); cursor: pointer;
}
.turn:hover { color: var(--platinum); border-color: rgba(236, 234, 228, 0.4); }
.mobile-slot { display: none; }

section { padding: clamp(80px, 14vh, 140px) 0; }
.hero { min-height: 100svh; display: grid; align-content: center; padding-top: 120px; }
.hosts { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(28px, 5vh, 48px); color: var(--smoke); }
.hosts img { width: 96px; opacity: 0.9; }
.hosts .hosts-se { width: 78px; }
.title {
  margin: 0; display: grid; font-family: var(--display); font-weight: 300; font-size: clamp(3.2rem, 8.4vw, 7.4rem);
  line-height: 0.96; letter-spacing: -0.045em;
}
/* outline lettering: the stroke is painted first and the fill (the colour behind) covers its inner half,
   so overlapping contours inside the variable font and touching letters merge into one clean outline */
.title span:last-child { color: var(--ink); -webkit-text-stroke: 2.4px var(--platinum); paint-order: stroke fill; letter-spacing: -0.02em; }
.tag { margin: 26px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 30ch; }
.facts { margin: 34px 0 0; display: grid; max-width: 520px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.78rem; color: var(--smoke); padding-top: 3px; }
.facts dd { margin: 0; }
.hero-cta { margin-top: 34px; }

.intro p { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -0.02em; max-width: 26ch; }
html[lang="ru"] .intro p { font-size: clamp(1.25rem, 2.3vw, 1.85rem); }

.programme h2, .details h2, .rsvp h2 { margin: 0 0 30px; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.prog-list { list-style: none; margin: 0; padding: 0; display: grid; }
.prog-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.prog-list li:last-child { border-bottom: 1px solid var(--line); }
.prog-list img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(236, 234, 228, 0.16); }
.prog-list b { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--smoke); }
.prog-list span { display: block; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; }
.closing { margin: 36px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; max-width: 24ch; }

.details p { margin: 0 0 10px; font-size: 1.1rem; }
.details .muted { font-size: 0.95rem; margin-bottom: 26px; }
.actions, .done-cal .rs-cal, .done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-btn--ghost { color: var(--platinum); }

/* keeps the sticky pass centred after the form collapses into the success message */
@media (min-width: 900px) { .rsvp { min-height: 100svh; } }
/* Valeria's heading "Switchup After Hours — Registration": the dash stays for screen readers,
   visually "Registration" moves to its own quieter line */
.reg-dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reg-sub { display: block; color: var(--smoke); }
.reg-nw { white-space: nowrap; }
.rsvp-intro { max-width: 52ch; margin: 0 0 8px; }
.rsvp-by { margin: 0 0 8px; }
.type-hint { margin: 0 0 36px; font-family: var(--mono); font-size: 0.78rem; color: var(--red); }
.rsvp.is-done .rsvp-intro, .rsvp.is-done .rsvp-by, .rsvp.is-done .type-hint, .rsvp.is-done .rsvp-form, .rsvp.is-done > h2 { display: none; }
.done { display: grid; gap: 16px; scroll-margin-top: 90px; }
/* the success block stays hidden until the form is sent (display: grid would otherwise beat [hidden]) */
.done[hidden] { display: none; }
.done-title { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.done-text { font-size: 1.1rem; line-height: 1.55; }
.done-sub { margin-top: 18px !important; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; color: var(--smoke); }
.done p { margin: 0; }
.done-slot:empty { display: none; }
.done-slot { display: grid; justify-items: center; padding: 10px 0 6px; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 18px 26px; grid-column: 1;
  padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--smoke); font-size: 0.8rem;
}
.foot-switchup { width: 104px; opacity: 0.85; }
.foot-soexp { width: 88px; opacity: 0.85; }

/* ================= C3: countdown ================= */
.countdown {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border: 1px solid rgba(252, 25, 4, 0.5); border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: #ff6a55; white-space: nowrap; vertical-align: 2px;
}

/* ================= C3: office panorama under the intro ================= */
.lounge { margin: clamp(44px, 7vh, 76px) 0 0; aspect-ratio: 1344 / 752; max-width: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.lounge img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= C3: a quiet street map ================= */
.map { margin: 26px 0 36px; }
.map-canvas {
  --reveal: 150%; --px: 57%; --py: 52%;
  position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border-radius: 4px;
  background: #000; box-shadow: 0 0 0 1px var(--line);
  clip-path: circle(var(--reveal) at var(--px) var(--py));
}
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 599px) { .map-canvas { aspect-ratio: 4 / 3; } }
.map-street {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--a)); padding: 1px 6px; background: #000;
  font-family: var(--mono); font-size: max(10px, 0.66rem); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 234, 228, 0.5); white-space: nowrap;
}
.map-pin { position: absolute; width: 0; height: 0; }
.map-pin i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--platinum); box-shadow: 0 0 0 2px var(--red), 0 0 0 4px rgba(0, 0, 0, 0.5); }
/* a hairline from the building down to its card */
.map-pin::after { content: ""; position: absolute; left: -0.5px; top: 8px; width: 1px; height: 18px; background: rgba(236, 234, 228, 0.5); }
.map-pin i::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--red); animation: ping 3.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.4); opacity: 0; } }
.pin-card {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%); display: grid; gap: 1px; padding: 8px 12px;
  background: rgba(0, 0, 0, 0.9); border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; text-align: center; line-height: 1.3;
}
.pin-card b { font-weight: 600; font-size: 0.9rem; }
.pin-card span { font-size: 0.78rem; color: var(--smoke); }
.map-cap { margin-top: 10px; display: flex; justify-content: flex-end; color: var(--smoke); }
.map-osm { font-family: var(--mono); font-size: 0.7rem; opacity: 0.7; }

/* ================= C3: the lift indicator (parking −1 → floor 3) ================= */
.floors { margin: 0 0 34px; display: grid; gap: 18px; }
.floors-panel {
  position: relative; display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); align-items: center;
  padding: 20px 18px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #0c0c0d, #040404); box-shadow: inset 0 1px 0 rgba(236, 234, 228, 0.06);
  transition: border-color 0.8s, box-shadow 0.8s;
}
.fl {
  text-align: center; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1;
  color: rgba(236, 234, 228, 0.16); font-variant-numeric: tabular-nums; transition: color 0.25s, text-shadow 0.25s;
}
.fl.is-on { color: var(--platinum); text-shadow: 0 0 16px rgba(236, 234, 228, 0.35); }
.floors-panel.is-arrived .fl.is-on { color: #fff; text-shadow: 0 0 2px #fff, 0 0 24px rgba(252, 25, 4, 0.9); }
.fl-led { position: absolute; left: 0; bottom: 12px; width: 26px; height: 2px; margin-left: -13px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px 1px var(--red); }
.fl-arrow { justify-self: start; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 11px solid rgba(236, 234, 228, 0.14); }
.floors-panel.is-moving .fl-arrow { border-bottom-color: var(--red); filter: drop-shadow(0 0 6px var(--red)); animation: blink 0.7s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.floors-panel.is-arrived { border-color: rgba(252, 25, 4, 0.45); box-shadow: inset 0 1px 0 rgba(236, 234, 228, 0.06), 0 0 46px -14px rgba(252, 25, 4, 0.7); }
.floors-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.details .fk { margin: 0; display: grid; gap: 8px; align-content: start; font-size: 0.95rem; color: var(--smoke); }
.fk-badge { justify-self: start; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; color: var(--platinum); }
.fk-badge--red { border-color: rgba(252, 25, 4, 0.6); color: #ff6a55; }
.fk-3 > span:last-child { color: var(--platinum); }

/* ================= C3: the pocket (phones) ================= */
.dock, .dock-backdrop, .dock-actions { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 899px) {
  .layout { grid-template-columns: 1fr; }
  .foot { justify-content: center; }
  .col-pass { display: none; }
  .mobile-slot { display: grid; justify-items: center; gap: 16px; margin-top: 48px; }
  .rsvp-mslot { margin: 0 0 36px; }
  .mobile-slot:empty { display: none; }
  .rsvp.is-done .rsvp-mslot { display: none; }
  section { padding: 72px 0; }
  /* hero as a centred invitation card; compact enough that the button stays above the pocket */
  .hero { min-height: 0; padding-top: 82px; padding-bottom: 40px; justify-items: center; text-align: center; }
  .hosts { justify-content: center; margin: 0 0 18px; }
  .hosts img { width: 92px; }
  .hosts .hosts-se { width: 74px; }
  .title { justify-items: center; font-size: clamp(3.3rem, 15vw, 4.4rem); }
  .tag { margin: 14px auto 0; max-width: 30ch; font-size: 1.05rem; text-wrap: balance; }
  .tag .s { display: inline-block; }
  /* date and place read like the lines of an invitation: no table labels on a phone (they stay for screen readers) */
  .facts {
    position: relative; width: 100%; max-width: 380px; margin: 20px auto 0; padding: 14px 0 48px;
    display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.45em; row-gap: 2px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .facts div { display: contents; }
  .facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .facts div:nth-child(2) dd::before { content: "·"; margin-right: 0.45em; color: var(--smoke); }
  .facts div:nth-child(3) dd { flex-basis: 100%; color: var(--smoke); }
  .countdown { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); margin: 0; }
  .hero-cta { margin-top: 22px; min-width: 230px; justify-self: center; }
  .floors-keys { grid-template-columns: 1fr; }
  .floors-panel { padding: 16px 12px 22px; grid-template-columns: 22px repeat(5, minmax(0, 1fr)); }
  .pin-card { padding: 6px 10px; }
  .pin-card b { font-size: 0.8rem; }
  .pin-card span { font-size: 0.72rem; }
  .map-street.near-pin { display: none; }

  /* the pass peeks out of a pocket at the bottom of the screen */
  .dock {
    --peek: 76px;
    display: block; position: fixed; left: 50%; bottom: 0; z-index: 25; width: var(--pw); touch-action: none;
    transform: translate(-50%, calc(100% - var(--peek) - env(safe-area-inset-bottom, 0px)));
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
    filter: drop-shadow(0 -12px 28px rgba(0, 0, 0, 0.85));
  }
  .dock.is-hidden { transform: translate(-50%, calc(100% + 24px)); }
  .dock.is-open { z-index: 41; transform: translate(-50%, calc((100svh - 100%) / -2 - 30px)); }
  .dock.is-nudge .dock-card { animation: nudge 1.1s cubic-bezier(0.3, 0, 0.3, 1) 2; }
  @keyframes nudge { 0%, 100% { transform: none; } 45% { transform: translateY(-14px); } }
  .dock-hit { position: absolute; inset: 0; z-index: 5; padding: 0; background: none; border: 0; border-radius: 18px; cursor: pointer; }
  .dock-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40; touch-action: none;
    background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity 0.5s;
  }
  .dock-backdrop.is-on { opacity: 1; pointer-events: auto; }
  .dock-actions {
    display: flex; position: fixed; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 42;
    justify-content: center; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 0.4s, transform 0.4s;
  }
  .dock-actions.is-on { opacity: 1; pointer-events: auto; transform: none; }
  .dock-actions .turn { background: rgba(0, 0, 0, 0.6); color: var(--platinum); }
  .dock-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.6); color: var(--platinum); font-size: 1.3rem; line-height: 1; cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
