/*
Theme Name: Jen Jam
Theme URI: https://jensbday.wpenginepowered.com
Author: The Canter Company
Author URI: https://www.linkedin.com/in/joshuacanter/
Description: One-page birthday site for Jen Sarver. Maximalist 80s MTV throwback — Jen Jam 2026.
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jenjam
*/

/* ============================================================
   Design Tokens — Jen Jam 2026
   See design-language.md for the prose system.
   ============================================================ */

:root {
  /* Core */
  --bg-base:    #0A0F3D;     /* Deep navy — darker than invite, lets neon pop */
  --bg-deeper:  #060926;     /* For vignette edges */
  --bg-shade:   #0E1450;     /* Slightly raised section surface */
  --ink:        #FFF1D6;     /* Cream Glow */

  /* Neon accents */
  --neon-magenta: #FF2BD6;
  --neon-yellow:  #FFE600;
  --neon-orange:  #FF5A1F;
  --neon-cyan:    #3FE1FF;
  --neon-lime:    #C8FF3D;

  /* Gradients */
  --grad-jenjam: linear-gradient(180deg, var(--neon-lime) 0%, var(--neon-yellow) 100%);
  --grad-cassette: linear-gradient(135deg, var(--neon-magenta) 0%, var(--neon-cyan) 50%, var(--neon-lime) 100%);

  /* Theme color (used in <meta>) */
  --theme-color: #0A0F3D;

  /* Type */
  --font-display: "Bungee", "Permanent Marker", system-ui, sans-serif;
  --font-script:  "Caveat", "Permanent Marker", cursive;
  --font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --max-content: 720px;
  --section-pad: clamp(48px, 8vw, 120px);
}

/* ============================================================
   Reset / Base
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg-base);
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   Background — deep navy + layered confetti (depth of field)
   ============================================================ */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-base);
  background-image:
    /* soft color wash — cyan top-left, magenta bottom-right */
    radial-gradient(ellipse 80% 60% at 18% 8%, rgba(63, 225, 255, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 82% 92%, rgba(255, 43, 214, 0.09) 0%, transparent 60%),
    /* vignette to deepen edges and add focal weight */
    radial-gradient(ellipse 110% 90% at 50% 50%, transparent 40%, var(--bg-deeper) 100%);
  background-attachment: fixed;
}

.site-bg__layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-position: center;
  will-change: transform;
}

/* Far layer — heavily blurred, softer, lower opacity. Reads as distant. */
.site-bg__layer--far {
  background-image: url("assets/confetti.svg");
  background-size: 900px 900px;
  background-position: 120px 60px;
  filter: blur(6px) saturate(110%);
  opacity: 0.55;
}

/* Mid layer — light blur, fills out the middle distance. */
.site-bg__layer--mid {
  background-image: url("assets/confetti.svg");
  background-size: 720px 720px;
  background-position: -40px -120px;
  filter: blur(2px);
  opacity: 0.85;
}

/* Near layer — crisp, in focus, with neon glow. The hero confetti. */
.site-bg__layer--near {
  background-image: url("assets/confetti-near.svg");
  background-size: 640px 640px;
  background-position: 0 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
  opacity: 1;
}

.site-bg__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("assets/grain.svg");
  background-size: 240px 240px;
}

/* Reduce motion: disable any future parallax */
@media (prefers-reduced-motion: reduce) {
  .site-bg__layer { transform: none !important; }
}

/* ============================================================
   Cassette field — floating cassettes in three depth tiers
   ============================================================ */

.cassette-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cassette {
  position: absolute;
  top: var(--c-top, 50%);
  left: var(--c-left, 50%);
  width: var(--c-size, 180px);
  /* aspect handled by the SVG viewBox; height auto */
  transform: rotate(var(--c-rotate, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
  animation: cassette-drift var(--c-drift, 24s) ease-in-out var(--c-delay, 0s) infinite alternate;
}

.cassette__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Depth tiers — mirror the confetti far/mid/near system so cassettes
   sit in the same world. Far = blurred + dim, Near = crisp + glowing. */

.cassette--depth-1 {
  filter: blur(5px) saturate(115%);
  opacity: 0.42;
  z-index: -1;
}

.cassette--depth-2 {
  filter: blur(1.5px) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
  opacity: 0.78;
  z-index: 0;
}

.cassette--depth-3 {
  filter:
    drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(63, 225, 255, 0.18));
  opacity: 1;
  z-index: 1;
}

/* Drift — gentle float with combined translate + rotate wobble.
   Each cassette gets its own duration/delay via inline custom props so
   they never move in unison. */
@keyframes cassette-drift {
  0% {
    transform: rotate(var(--c-rotate, 0deg)) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(calc(var(--c-rotate, 0deg) + 2deg)) translate3d(8px, -14px, 0);
  }
  100% {
    transform: rotate(calc(var(--c-rotate, 0deg) - 2deg)) translate3d(-6px, 10px, 0);
  }
}

/* Mobile — fewer cassettes feel like more in a narrow viewport.
   Scale sizes down slightly and let them hang off the edges. */
@media (max-width: 640px) {
  .cassette {
    width: calc(var(--c-size, 180px) * 0.72);
  }
}

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

/* ============================================================
   Page layout — two-column grid per LAYOUT.md
   Desktop fills the viewport, no scroll. Mobile stacks.
   ============================================================ */

.site-main {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 2.5vw, 28px);
  min-height: 100vh;
}

.page-grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: 1fr;
  grid-template-areas:
    "details"
    "rsvp"
    "photos"
    "songs";
}

@media (min-width: 1024px) {
  .site-main {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: clamp(88px, 10vh, 136px);
  }
  .page-grid {
    flex: 1 1 auto;
    grid-template-columns: 60fr 40fr;
    grid-template-rows: 2fr 1fr 1fr;
    grid-template-areas:
      "details rsvp"
      "details photos"
      "details songs";
    min-height: 0;
  }
}

.page-grid__details { grid-area: details; }
.page-grid__rsvp    { grid-area: rsvp; }
.page-grid__photos  { grid-area: photos; }
.page-grid__songs   { grid-area: songs; }

/* ============================================================
   Panel — glassy floating surface (sits on cassette scene)
   ============================================================ */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 14px;
  background: rgba(14, 20, 80, 0.55);
  border: 2px solid rgba(63, 225, 255, 0.32);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 241, 214, 0.08);
  min-height: 0;
  overflow: hidden;
}

.panel__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.panel__placeholder {
  margin: 0;
  color: rgba(255, 241, 214, 0.55);
  font-size: 14px;
}

.panel__sub {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 241, 214, 0.78);
}

/* ============================================================
   CTA buttons — primary orange block (matches invite "TV"), hard cyan shadow
   ============================================================ */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-base);
  background: var(--neon-orange);
  border: 3px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--neon-cyan);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--neon-yellow);
  box-shadow: 8px 8px 0 var(--neon-lime);
  transform: translate(-2px, -2px);
  outline: none;
}

.cta:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 2px;
}

.cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--neon-cyan);
}

.cta--song {
  /* Same shadow-clip avoidance as .cta--rsvp. */
  width: calc(100% - 8px);
}

/* ============================================================
   Song-request overlay (modal)
   ============================================================ */

html.songform-open {
  overflow: hidden;
}

.songform-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.songform-overlay[hidden] {
  display: none;
}

.songform-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 38, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.songform {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, 92vh);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: var(--bg-shade);
  border: 3px solid var(--neon-magenta);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.55),
    8px 8px 0 var(--neon-cyan);
  color: var(--ink);
}

.songform__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: var(--neon-cyan);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.songform__close:hover,
.songform__close:focus-visible {
  color: var(--neon-yellow);
  outline: none;
}

.songform__head {
  margin-bottom: 18px;
}

.songform__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.songform__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--neon-yellow);
  text-shadow:
    3px 3px 0 var(--bg-deeper),
    0 0 18px rgba(255, 230, 0, 0.4);
}

.songform__search {
  margin-bottom: 14px;
}

.songform__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 241, 214, 0.7);
}

.songform__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(10, 15, 61, 0.7);
  border: 2px solid rgba(63, 225, 255, 0.4);
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.songform__input::placeholder {
  color: rgba(255, 241, 214, 0.4);
}

.songform__input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(63, 225, 255, 0.25);
}

.songform__status {
  min-height: 1.2em;
  margin: 4px 2px 10px;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.7);
}

.songform__status--error { color: var(--neon-orange); }
.songform__status--success { color: var(--neon-lime); }

.songform__results {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.songform__result + .songform__result {
  margin-top: 6px;
}

.songform__pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  background: rgba(10, 15, 61, 0.5);
  border: 2px solid rgba(255, 241, 214, 0.08);
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.songform__pick:hover,
.songform__pick:focus-visible {
  background: rgba(63, 225, 255, 0.1);
  border-color: var(--neon-cyan);
  outline: none;
  transform: translateX(2px);
}

.songform__pick.is-loading { opacity: 0.6; cursor: progress; }

.songform__art {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.songform__meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.songform__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songform__artist {
  font-size: 13px;
  color: rgba(255, 241, 214, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songform__pick-cta {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-magenta);
}

.songform__pick:hover .songform__pick-cta,
.songform__pick:focus-visible .songform__pick-cta {
  color: var(--neon-yellow);
}

/* Honeypot — hidden from humans + AT, kept in DOM for bots */
.songform__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Hotel overlay (modal) — shares the song-request modal shell.
   ============================================================ */

html.hotelmodal-open {
  overflow: hidden;
}

.hotelmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.hotelmodal-overlay[hidden] {
  display: none;
}

.hotelmodal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 38, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hotelmodal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, 92vh);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: var(--bg-shade);
  border: 3px solid var(--neon-magenta);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.55),
    8px 8px 0 var(--neon-cyan);
  color: var(--ink);
}

.hotelmodal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: var(--neon-cyan);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hotelmodal__close:hover,
.hotelmodal__close:focus-visible {
  color: var(--neon-yellow);
  outline: none;
}

.hotelmodal__head {
  margin-bottom: 18px;
}

.hotelmodal__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.hotelmodal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--neon-yellow);
  text-shadow:
    3px 3px 0 var(--bg-deeper),
    0 0 18px rgba(255, 230, 0, 0.4);
}

.hotel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
}

.hotel-list__item + .hotel-list__item {
  margin-top: 10px;
}

/* Tappable card per hotel — echoes .songform__pick. */
.hotel-list__link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(10, 15, 61, 0.5);
  border: 2px solid rgba(63, 225, 255, 0.4);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.hotel-list__link:hover,
.hotel-list__link:focus-visible {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(63, 225, 255, 0.25);
  transform: translate(-1px, -1px);
  outline: none;
}

.hotel-list__name {
  display: block;
  font-weight: 700;
  color: var(--neon-yellow);
}

.hotel-list__desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.75);
}

/* ============================================================
   RSVP form — fits the 50% right-col panel without scroll
   Desktop default is tight; the form must clear ~340px of height.
   ============================================================ */

.panel--rsvp {
  padding: 14px clamp(14px, 1.6vw, 18px);
}

.rsvp__sub {
  margin: 0 0 8px;
  font-size: 13px;
}

.rsvpform {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  gap: 7px;
}

.rsvpform__row {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Email + mobile phone pair into one row on desktop so the form keeps a
   4-row footprint and the CTA stays inside the panel clip. Email gets the
   wider share since it's the required, longer field. Stacked on mobile. */
.rsvpform__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rsvpform__label {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 241, 214, 0.78);
}

.rsvpform__label-soft {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 241, 214, 0.55);
  margin-left: 4px;
}

.rsvpform__input {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(10, 15, 61, 0.7);
  border: 2px solid rgba(63, 225, 255, 0.4);
  border-radius: 8px;
  outline: none;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  -webkit-appearance: none;
  appearance: none;
}

.rsvpform__input::placeholder {
  color: rgba(255, 241, 214, 0.35);
}

.rsvpform__input:hover {
  border-color: rgba(63, 225, 255, 0.6);
}

.rsvpform__input:focus-visible {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(63, 225, 255, 0.28);
  background: rgba(10, 15, 61, 0.92);
}

.rsvpform__input.is-invalid {
  border-color: var(--neon-orange);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.28);
}

/* Radio group — segmented neon pills */
.rsvpform__radios {
  display: inline-flex;
  gap: 8px;
}

.rsvpform__radio {
  position: relative;
  cursor: pointer;
  /* Min hit area ≥ 40×40 even on the tightest desktop sizing. */
  min-height: 40px;
}

.rsvpform__radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.rsvpform__radio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 40px;
  padding: 6px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 15, 61, 0.6);
  border: 2px solid rgba(63, 225, 255, 0.4);
  border-radius: 999px;
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
}

.rsvpform__radio:hover .rsvpform__radio-pill {
  border-color: var(--neon-cyan);
  background: rgba(63, 225, 255, 0.08);
}

.rsvpform__radio input:checked + .rsvpform__radio-pill {
  background: var(--neon-magenta);
  border-color: var(--ink);
  color: var(--bg-base);
  box-shadow: 3px 3px 0 var(--neon-cyan);
}

.rsvpform__radio input:focus-visible + .rsvpform__radio-pill {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 2px;
}

.rsvpform__radio:active .rsvpform__radio-pill {
  transform: scale(0.96);
}

.rsvpform__row--radio.is-invalid .rsvpform__radio-pill {
  border-color: var(--neon-orange);
}

.rsvpform__error {
  margin: 3px 2px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-orange);
  letter-spacing: 0.01em;
  animation: rsvp-error-in 180ms cubic-bezier(0.2, 0, 0, 1);
}

.rsvpform__error[hidden] { display: none; }

@keyframes rsvp-error-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cta--rsvp {
  /* Pulled in 8px so the offset shadow sits inside the panel's
     overflow-hidden border instead of getting clipped on the right.
     Sizing is inherited from base .cta so RSVP matches the Photos/Songs CTAs. */
  width: calc(100% - 8px);
  margin-top: 4px;
}

.cta--rsvp.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.cta--rsvp[disabled] {
  cursor: not-allowed;
}

.rsvpform__status {
  min-height: 1.1em;
  margin: 3px 2px 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 241, 214, 0.78);
  text-wrap: pretty;
}

.rsvpform__status--error   { color: var(--neon-orange); }
.rsvpform__status--success { color: var(--neon-lime); }

/* Locked success state — collapse the form, center a big confirmation.
   The panel is height-constrained at desktop, so leaving the disabled fields
   on-screen pushes the status message past `overflow: hidden`. */
.rsvpform.is-submitted {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rsvpform.is-submitted > *:not([data-rsvpform-status]) {
  display: none;
}

.rsvpform.is-submitted .rsvpform__status--success {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  max-width: 28ch;
  text-shadow: 1px 1px 0 var(--bg-deeper);
  animation: rsvp-success-pop 360ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes rsvp-success-pop {
  0%   { opacity: 0; transform: translateY(4px) scale(0.98); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Staggered enter — each row fades up in sequence. Skipped on reduce-motion
   and only fires once on initial paint. */
.rsvpform > * {
  animation: rsvp-row-in 420ms cubic-bezier(0.2, 0, 0, 1) both;
}
.rsvpform > *:nth-child(1) { animation-delay: 60ms; }
.rsvpform > *:nth-child(2) { animation-delay: 130ms; }
.rsvpform > *:nth-child(3) { animation-delay: 200ms; }
.rsvpform > *:nth-child(4) { animation-delay: 270ms; }
.rsvpform > *:nth-child(5) { animation-delay: 340ms; }
.rsvpform > *:nth-child(6) { animation-delay: 400ms; }

@keyframes rsvp-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Honeypot — hidden from humans + AT, kept in DOM for bots */
.rsvpform__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Desktop — keep the form compact so a full-size CTA (matching the Photos and
   Songs panels) fits inside panel-overflow:hidden, even on common laptop
   heights (~800–900px). */
@media (min-width: 1024px) {
  .panel--rsvp { padding: 8px 14px 8px; }
  .panel--rsvp .panel__eyebrow { margin-bottom: 2px; }
  .rsvp__sub { margin-bottom: 2px; font-size: 12px; }
  .rsvpform { gap: 3px; }
  .rsvpform__label { margin-bottom: 1px; }
  .rsvpform__input { padding: 4px 10px; font-size: 13px; }
  .rsvpform__radio-pill { min-height: 30px; padding: 4px 14px; font-size: 11px; min-width: 64px; }
  .rsvpform__radio { min-height: 30px; }
  /* Email | Mobile phone side by side; email gets the wider share. */
  .rsvpform__pair { grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .rsvpform__status { min-height: 0.9em; margin-top: 2px; }
  /* Anchor the CTA to the panel bottom so leftover height on tall viewports
     reads as one deliberate gap above the button, not dead space below it. */
  .cta--rsvp { margin-top: auto; }
}

/* Mobile — generous targets, full-width radios. */
@media (max-width: 1023px) {
  .panel--rsvp { padding: 18px 18px 20px; }
  .rsvp__sub { font-size: 14px; margin-bottom: 12px; }
  .rsvpform { gap: 12px; }
  .rsvpform__label { font-size: 12px; }
  .rsvpform__input {
    padding: 12px 14px;
    font-size: 16px; /* avoid iOS zoom on focus */
  }
  .rsvpform__radios {
    display: flex;
    gap: 10px;
  }
  .rsvpform__radio {
    flex: 1 1 0;
    min-height: 48px;
  }
  .rsvpform__radio-pill {
    width: 100%;
    min-height: 48px;
    font-size: 13px;
  }
  .cta--rsvp {
    min-height: 52px;
    font-size: 14px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvpform__input,
  .rsvpform__radio-pill,
  .cta--rsvp {
    transition: none;
  }
  .rsvpform > *,
  .rsvpform.is-submitted .rsvpform__status--success,
  .rsvpform__error {
    animation: none;
  }
}

/* ============================================================
   Photo upload — compact panel CTA + post-upload caption
   ============================================================ */

.cta--photo {
  /* Same shadow-clip avoidance as .cta--rsvp. */
  width: calc(100% - 8px);
  cursor: pointer;
  position: relative;
}

.cta--photo.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

/* Native file input lives inside the <label>. Hide it visually but keep it
   keyboard-focusable so the label still acts as a click/tap target. */
.photoform {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.photoform__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Surface the focus ring on the <label> when the hidden input gains focus. */
.cta--photo:focus-within {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 2px;
}

.photoform__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.photoform__nojs-submit {
  margin-top: 8px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.photoform__status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
}

.photoform__status[hidden] {
  display: none;
}

.photoform__label {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.85);
}

.photoform__bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 241, 214, 0.12);
  overflow: hidden;
  margin: 0 0 10px;
}

.photoform__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-cassette);
  transition: width 200ms ease;
}

.photoform__thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.photoform__thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 241, 214, 0.25);
}

.photoform__success {
  margin: 0 0 8px;
  color: var(--neon-lime);
  font-weight: 600;
  font-size: 14px;
}

.photoform__error {
  margin: 0 0 8px;
  color: var(--neon-yellow);
  font-weight: 600;
  font-size: 14px;
}

.photoform__caption {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}

.photoform__caption-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: rgba(10, 15, 61, 0.6);
  border: 1px solid rgba(63, 225, 255, 0.55);
  border-radius: 4px;
}

.photoform__caption-input:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 1px;
  background: rgba(10, 15, 61, 0.85);
}

.photoform__caption-input:disabled {
  opacity: 0.6;
}

.photoform__caption-save {
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-base);
  background: var(--neon-cyan);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.photoform__caption-save:hover,
.photoform__caption-save:focus-visible {
  background: var(--neon-lime);
  outline: none;
}

.photoform__caption-saved {
  color: var(--neon-lime);
  font-weight: 600;
  font-size: 14px;
}

.photoform__link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--neon-cyan);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photoform__link:hover,
.photoform__link:focus-visible {
  color: var(--neon-yellow);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .photoform__bar-fill {
    transition: none;
  }
}

@media (max-width: 768px) {
  /* On mobile the panel stacks full-width — give the CTA a fat-thumb target. */
  .cta--photo {
    min-height: 64px;
    font-size: 14px;
  }
}

/* ============================================================
   Party Details panel — venue lockup + info block + map + ICS
   Sits inside .panel.panel--details. Flex column so the map
   flexes to fill remaining vertical space.
   ============================================================ */

.panel--details {
  gap: 10px;
  overflow: visible;
  padding-top: clamp(56px, 6.5vw, 84px);
}

.details__lockup {
  position: absolute;
  left: clamp(10px, 1.4vw, 20px);
  bottom: calc(100% - 0.62em);
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  text-shadow:
    2px 2px 0 var(--bg-deeper),
    4px 4px 0 var(--bg-deeper),
    8px 8px 0 var(--neon-cyan),
    10px 10px 0 var(--bg-deeper);
  filter:
    drop-shadow(0 0 18px rgba(255, 43, 214, 0.55))
    drop-shadow(0 0 38px rgba(255, 43, 214, 0.25));
  transform: rotate(-2deg);
  transform-origin: 0% 100%;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.details__lockup-text {
  display: inline-block;
}

.details__lockup-year {
  color: var(--neon-yellow);
  margin-left: 0.06em;
}

.details__info {
  margin: 4px 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.details__row {
  margin: 0;
}

.details__row--date {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin-top: 6px;
}

.details__venue {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.details__addr {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 241, 214, 0.85);
  line-height: 1.35;
}

.details__date {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--neon-yellow);
  letter-spacing: 0.02em;
}

.details__time {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.details__band {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 241, 214, 0.92);
}

.details__band strong {
  color: var(--neon-magenta);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--bg-deeper);
}

.details__band-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.details__band-ig {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--neon-yellow);
  transition: color 0.15s ease, transform 0.15s ease;
}

.details__band-ig svg {
  width: 14px;
  height: 14px;
  display: block;
  filter: drop-shadow(1px 1px 0 var(--bg-deeper));
}

.details__band-ig:hover,
.details__band-ig:focus-visible {
  color: var(--neon-lime);
  transform: translateY(-1px);
}

.details__dress {
  margin: 2px 0 6px;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.7);
  font-style: italic;
}

/* Bottom region of the Party Details panel — map left, vertical button stack right.
   On mobile this collapses to map-on-top, buttons-below. */
.details__bottom {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
}

.details__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: clamp(140px, 30%, 180px);
  margin: 0;
}

/* Secondary action — ghost treatment so the primary orange CTAs read first.
   Echoes the cyan glow on the map next to it. */
.cta--ics {
  font-size: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: transparent;
  border: 2px solid rgba(63, 225, 255, 0.55);
  box-shadow: 3px 3px 0 rgba(63, 225, 255, 0.35);
}

.cta--ics:hover,
.cta--ics:focus-visible {
  color: var(--bg-base);
  background: var(--neon-cyan);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 rgba(63, 225, 255, 0.55);
}

.cta--ics:active {
  box-shadow: 1px 1px 0 rgba(63, 225, 255, 0.4);
}

/* Stacked action buttons fill the column for a tidy control group.
   flex: 1 makes each button grow to an equal share of the column's
   height (which stretches to match the map), giving the four CTAs
   a chunky, cassette-control feel. */
.cta--action {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  gap: 6px;
  margin-top: 0;
}

.cta--action .cta__icon {
  flex-shrink: 0;
}

/* ============================================================
   Add-to-calendar provider modal
   ============================================================ */

html.cal-modal-open {
  overflow: hidden;
}

.cal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.cal-modal-overlay[hidden] {
  display: none;
}

.cal-modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 38, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cal-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(640px, 92vh);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: var(--bg-shade);
  border: 3px solid var(--neon-cyan);
  box-shadow:
    0 0 0 1px rgba(63, 225, 255, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.55),
    8px 8px 0 var(--neon-magenta);
  color: var(--ink);
}

.cal-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: var(--neon-cyan);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cal-modal__close:hover,
.cal-modal__close:focus-visible {
  color: var(--neon-yellow);
  outline: none;
}

.cal-modal__head {
  margin-bottom: 18px;
}

.cal-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.cal-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--neon-yellow);
  text-shadow:
    3px 3px 0 var(--bg-deeper),
    0 0 18px rgba(255, 230, 0, 0.4);
}

.cal-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-modal__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(10, 15, 61, 0.7);
  border: 2px solid rgba(63, 225, 255, 0.4);
  border-radius: 10px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.cal-modal__row:hover,
.cal-modal__row:focus-visible {
  color: var(--bg-base);
  background: var(--neon-cyan);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(63, 225, 255, 0.4);
  transform: translate(-2px, -2px);
  outline: none;
}

.cal-modal__row:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(63, 225, 255, 0.4);
}

.cal-modal__icon {
  flex-shrink: 0;
}

.cal-modal__name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cal-modal__hint {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 241, 214, 0.55);
}

.cal-modal__row:hover .cal-modal__hint,
.cal-modal__row:focus-visible .cal-modal__hint {
  color: rgba(10, 15, 61, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .cal-modal__row,
  .cal-modal__row:hover,
  .cal-modal__row:focus-visible,
  .cal-modal__row:active {
    transform: none;
  }
}

.details__map {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(63, 225, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.35),
    0 0 22px rgba(63, 225, 255, 0.22),
    inset 0 0 30px rgba(6, 9, 38, 0.55);
  background: var(--bg-deeper);
}

.details__map .details__map-canvas {
  position: absolute;
  inset: 0;
}

.details__map-canvas--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.details__map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 241, 214, 0.65);
}

/* Hide Mapbox chrome (logo, attribution, gesture hint) for a clean scene. */
.details__map .mapboxgl-ctrl-logo,
.details__map .mapboxgl-ctrl-attrib,
.details__map .mapboxgl-ctrl-bottom-left,
.details__map .mapboxgl-ctrl-bottom-right {
  display: none !important;
}

/* ============================================================
   Flip-clock countdown — split-flap LED plates ticking down to
   2026-07-24 19:00 CT. Sits between the magenta lockup and the
   date row inside .panel--details.
   ============================================================ */

.details__countdown {
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.details__countdown-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-yellow);
  text-shadow:
    1px 1px 0 var(--bg-deeper),
    0 0 10px rgba(255, 230, 0, 0.45);
}

.details__countdown-display {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 0.8vw, 10px);
  font-variant-numeric: tabular-nums;
}

.cd-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd-pair {
  display: inline-flex;
  gap: 3px;
}

.cd-card {
  --cd-w: clamp(22px, 2.4vw, 30px);
  --cd-h: clamp(34px, 3.6vw, 46px);
  width: var(--cd-w);
  height: var(--cd-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--neon-yellow);
  background: #0A0518;
  border: 1px solid rgba(255, 230, 0, 0.35);
  border-radius: 4px;
  text-shadow:
    0 0 6px rgba(255, 230, 0, 0.85),
    0 0 14px rgba(255, 230, 0, 0.45);
  box-shadow:
    inset 0 0 14px rgba(255, 230, 0, 0.10),
    0 0 10px rgba(255, 230, 0, 0.18);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Hairline center groove — sells the split-flap illusion. */
.cd-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.cd-sep {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--neon-yellow);
  align-self: center;
  padding: 0 2px;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.7);
  /* nudge the colon up so it visually centers against the cards (which sit on a baseline) */
  transform: translateY(-6px);
}

.cd-unit {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 241, 214, 0.7);
  text-transform: uppercase;
}

/* JS adds .is-flipping for one cycle when the digit rolls over. */
.cd-card.is-flipping {
  animation: cd-flip 360ms cubic-bezier(.4, .0, .2, 1);
}

@keyframes cd-flip {
  0%   { transform: rotateX(0deg);   filter: brightness(1); }
  50%  { transform: rotateX(-90deg); filter: brightness(1.4); }
  51%  { transform: rotateX(90deg);  filter: brightness(1.4); }
  100% { transform: rotateX(0deg);   filter: brightness(1); }
}

.details__countdown-live {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.08em;
  color: var(--neon-yellow);
  text-shadow:
    2px 2px 0 var(--bg-deeper),
    0 0 16px rgba(255, 230, 0, 0.7);
  animation: cd-livepulse 1.5s ease-in-out infinite;
}

@keyframes cd-livepulse {
  0%, 100% {
    text-shadow:
      2px 2px 0 var(--bg-deeper),
      0 0 12px rgba(255, 230, 0, 0.55);
  }
  50% {
    text-shadow:
      2px 2px 0 var(--bg-deeper),
      0 0 22px rgba(255, 230, 0, 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-card.is-flipping { animation: none; }
  .details__countdown-live { animation: none; }
}

/* ============================================================
   Map pin marker — neon, pulses on default motion settings.
   ============================================================ */

.jenjam-pin {
  position: relative;
  width: 22px;
  height: 32px;
  pointer-events: none;
}

.jenjam-pin__halo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 225, 255, 0.55) 0%, rgba(63, 225, 255, 0) 70%);
  animation: jenjam-pin-pulse 1.6s ease-in-out infinite;
}

.jenjam-pin__dot {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--neon-magenta);
  border: 2px solid var(--ink);
  box-shadow:
    2px 2px 0 var(--bg-deeper),
    0 0 8px rgba(255, 43, 214, 0.8);
}

.jenjam-pin__stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--neon-magenta);
  filter: drop-shadow(1px 2px 0 var(--bg-deeper));
}

@keyframes jenjam-pin-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50%      { transform: scale(1.25); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .jenjam-pin__halo { animation: none; opacity: 0.7; }
}

/* ============================================================
   Map callout — venue name + address, anchored next to the pin.
   ============================================================ */

.jenjam-callout {
  position: relative;
  max-width: 180px;
  padding: 8px 10px 7px;
  background: rgba(10, 15, 61, 0.94);
  color: var(--ink, #FFF1D6);
  border: 1.5px solid var(--neon-cyan, #3FE1FF);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.55),
    0 0 14px rgba(63, 225, 255, 0.35),
    2px 3px 0 rgba(6, 9, 38, 0.85);
  font-family: inherit;
  line-height: 1.25;
  pointer-events: none;
  white-space: normal;
}

.jenjam-callout__venue {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neon-cyan, #3FE1FF);
  text-shadow: 0 0 6px rgba(63, 225, 255, 0.55);
  margin-bottom: 3px;
}

.jenjam-callout__line {
  font-size: 11px;
  color: rgba(255, 241, 214, 0.92);
}

/* Tail pointing down-left toward the pin. */
.jenjam-callout::before,
.jenjam-callout::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--neon-cyan, #3FE1FF);
}

.jenjam-callout::after {
  bottom: -4px;
  border-top-color: rgba(10, 15, 61, 0.94);
}

@media (max-width: 480px) {
  .jenjam-callout { max-width: 150px; padding: 7px 9px 6px; }
  .jenjam-callout__venue { font-size: 11px; }
  .jenjam-callout__line { font-size: 10px; }
}

/* ============================================================
   Visually-hidden — for screen-reader-only <dt> labels
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Compact details on shorter desktop viewports so the panel +
   map both fit without scroll at ~720–780px tall.
   ============================================================ */

@media (min-width: 1024px) and (max-height: 800px) {
  .details__lockup { font-size: clamp(44px, 6vw, 72px); }
  .details__addr   { font-size: 14px; }
  .details__band   { font-size: 13px; }
  .details__dress  { font-size: 12px; }
  .details__countdown-label { font-size: 11px; }
  .cd-card { --cd-w: 22px; --cd-h: 32px; font-size: 22px; }
  .cd-sep  { font-size: 22px; transform: translateY(-5px); }
  .cd-unit { font-size: 9px; letter-spacing: 0.14em; }
}

@media (max-width: 1023px) {
  .details__bottom  { flex-direction: column; }
  .details__map     { min-height: 220px; }
  .details__actions { width: 100%; }
  /* On mobile the actions column has no fixed height to distribute,
     so opt out of the desktop flex-grow and let buttons size to content. */
  .cta--action      { flex: 0 0 auto; }
  /* The .details__lockup absolutely overhangs the panel top and is rotated
     -2deg, so its rotated corner needs more clearance than the default
     site-main padding provides on narrow viewports. */
  .site-main { padding-top: clamp(40px, 9vw, 64px); }
  .panel--details { padding-top: clamp(40px, 8.5vw, 72px); }
}
