:root {
  --ink: #420039;
  --plum: #5a004e;
  --magenta: #bf37bf;
  --hot: #d93bc3;
  --water: #7cc2f3;
  --paper: #f7edf5;
  --white: #ffffff;
  --line: rgba(66, 0, 57, 0.2);
  --shadow: 0 18px 44px rgba(66, 0, 57, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Header ─── */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 56px);
  color: var(--white);
  mix-blend-mode: difference;
}

.header-home {
  display: flex;
  align-items: center;
}

.header-home img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  padding: 8px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: clamp(680px, 86svh, 920px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  padding: 118px clamp(18px, 5vw, 64px) clamp(74px, 9vw, 118px);
  background: var(--plum);
  color: var(--white);
  isolation: isolate;
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.hero-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(66, 0, 57, 0.9), rgba(66, 0, 57, 0.62) 44%, rgba(66, 0, 57, 0.1)),
    linear-gradient(180deg, rgba(66, 0, 57, 0.08), rgba(66, 0, 57, 0.26));
}

.hero-content,
.hero-spotlight {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hero-logo {
  display: block;
  width: min(620px, 82vw);
  max-height: 200px;
  object-fit: contain;
  object-position: left center;
}

.hero-tagline {
  margin: 20px 0 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--ink);
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 0 rgba(217, 59, 195, 0.5);
}

/* ─── Hero spotlight ─── */

.hero-spotlight {
  align-self: center;
  background: rgba(247, 237, 245, 0.96);
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.spotlight-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.spotlight-photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.1);
}

.spotlight-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(66, 0, 57, 0), rgba(66, 0, 57, 0.54));
}

.spotlight-photo .marker {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: -44px;
  width: clamp(100px, 9vw, 140px);
  height: clamp(100px, 9vw, 140px);
  object-fit: contain;
}

.spotlight-copy {
  padding: 52px clamp(24px, 4vw, 36px) 34px;
}

.spotlight-copy span {
  display: inline-block;
  background: var(--hot);
  color: var(--white);
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-copy h2 {
  margin: 20px 0 10px;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1;
}

.spotlight-copy p {
  margin-bottom: 22px;
  color: rgba(66, 0, 57, 0.72);
  font-size: 18px;
  font-weight: 800;
}

.spotlight-copy a {
  display: inline-flex;
  width: fit-content;
  border: 2px solid var(--ink);
  padding: 13px 18px;
  color: var(--ink);
  font-weight: 900;
}

/* ─── Intro band ─── */

.intro-band {
  padding: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.intro-band p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  font-weight: 600;
}

/* ─── How it works ─── */

.how-it-works {
  padding: clamp(24px, 3.5vw, 40px) clamp(18px, 5vw, 64px);
  background: var(--paper);
}

.how-it-works ol {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 980px;
  justify-content: center;
}

.how-it-works li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.how-it-works span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  font-size: 16px;
  font-weight: 900;
}

/* ─── Search band ─── */

.search-band,
.map-section,
.locations-section,
.detail-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.search-band {
  background: var(--paper);
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 6;
}

.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;
}

.search-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 46px;
  align-items: center;
  max-width: 760px;
  min-height: 64px;
  margin: -32px auto 0;
  border: 1px solid rgba(66, 0, 57, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: 20px;
  border: 2px solid rgba(66, 0, 57, 0.78);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: rgba(66, 0, 57, 0.78);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-shell input {
  width: 100%;
  border: 0;
  padding: 18px 16px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.search-shell button {
  width: 46px;
  height: 46px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(66, 0, 57, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.location-count {
  max-width: 760px;
  margin: 16px auto clamp(28px, 5vw, 58px);
  font-size: 14px;
  font-weight: 700;
  color: rgba(66, 0, 57, 0.6);
}

/* ─── Map section ─── */

.map-section {
  background: var(--ink);
  color: var(--white);
}

.map-hint {
  display: none;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.map-stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.48);
  background: var(--plum);
  overflow: hidden;
}

.map-stage > img {
  display: block;
  width: 100%;
}

.pin-layer {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%) rotate(45deg);
  width: 22px;
  height: 22px;
  border: 2px solid var(--white);
  border-radius: 50% 50% 50% 0;
  background: var(--hot);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.map-pin.is-public {
  background: var(--water);
}

.map-pin::before {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: rotate(-45deg) scale(0.5);
  animation: pin-spark 3.8s ease-in-out infinite;
  animation-delay: var(--pin-delay, 0ms);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--white);
}

.map-pin.is-active,
.map-pin:hover {
  transform: translate(-50%, -100%) rotate(45deg) scale(1.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 255, 255, 0.34), 0 0 22px rgba(124, 194, 243, 0.48);
}

.map-pin[hidden] {
  display: none;
}

@keyframes pin-spark {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
  }

  66% {
    opacity: 1;
    transform: rotate(-45deg) scale(1.25);
  }

  74% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
  }
}

.map-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.legend-public {
  background: var(--water);
}

.legend-staged {
  background: var(--hot);
}

/* ─── Locations ─── */

.locations-section {
  background: var(--paper);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.location-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 210px;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  position: relative;
}

.location-card[hidden] {
  display: none;
}

.location-card.is-staged {
  opacity: 0.65;
  cursor: default;
}

.location-card.is-staged:hover {
  transform: none;
  box-shadow: none;
}

.location-card:hover,
.location-card.is-active {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 var(--hot);
}

.location-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.location-card div {
  padding: 20px;
}

.location-card span {
  color: var(--hot);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-card h3 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1;
}

.location-card p {
  font-weight: 700;
  color: rgba(66, 0, 57, 0.68);
}

.location-card .coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.empty-state {
  margin: 30px 0 0;
  font-weight: 800;
}

/* ─── Detail section ─── */

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.detail-photo {
  position: relative;
}

.detail-photo img[data-detail-photo] {
  display: block;
  width: 100%;
  min-height: 620px;
  object-fit: cover;
}

.detail-marker {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: -40px;
  width: clamp(90px, 8vw, 130px);
  height: clamp(90px, 8vw, 130px);
  object-fit: contain;
}

.detail-copy {
  padding: 0 0 clamp(40px, 5vw, 60px);
}

.detail-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.92;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.detail-facts div {
  border: 2px solid var(--ink);
  padding: 14px;
}

.detail-facts dt {
  margin-bottom: 7px;
  color: var(--hot);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-weight: 800;
}

.detail-copy > p {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.34;
  font-weight: 600;
}

.detail-copy .kicker {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hot);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.detail-actions a {
  border: 2px solid currentColor;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 800;
  background: transparent;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.detail-actions a:first-child {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.detail-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(217, 59, 195, 0.3);
}

/* ─── Detail subsections ─── */

.detail-subsection {
  margin-top: 40px;
}

.detail-subsection h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.feature-list,
.poi-list,
.rule-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list img {
  width: 28px;
  height: 28px;
}

.feature-list strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(66, 0, 57, 0.72);
  margin: 0;
}

.poi-list li {
  border-left: 4px solid var(--hot);
  padding: 0 0 0 14px;
}

.poi-list li[data-color] {
  border-left-color: attr(data-color color, var(--hot));
}

.poi-list strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.poi-list p {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(66, 0, 57, 0.72);
  margin: 4px 0 0;
}

.poi-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 4px;
}

.rules-group {
  margin-bottom: 20px;
}

.rules-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(66, 0, 57, 0.5);
  margin: 0 0 10px;
}

.rule-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list img {
  width: 24px;
  height: 24px;
}

.rule-list strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.rule-list p {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(66, 0, 57, 0.68);
  margin: 2px 0 0;
}

/* ─── QR arrival ─── */

.detail-qr {
  margin-top: 40px;
  padding: 20px;
  border: 2px solid var(--water);
  background: rgba(124, 194, 243, 0.08);
}

.qr-arrival {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
}

.qr-hint {
  font-size: 14px;
  font-weight: 600;
  color: rgba(66, 0, 57, 0.68);
  margin: 0;
}

/* ─── Footer ─── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

/* ─── Guide sheet ─── */

.guide-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.guide-sheet[hidden] {
  display: none;
}

.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(66, 0, 57, 0.7);
}

.guide-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.guide-panel h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.guide-context {
  font-size: 14px;
  font-weight: 600;
  color: rgba(66, 0, 57, 0.6);
  margin: 0 0 20px;
}

.guide-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-prompts button {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.guide-prompts button:hover {
  background: var(--ink);
  color: var(--white);
}

.guide-input-row {
  display: flex;
  gap: 8px;
}

.guide-input-row input {
  flex: 1;
  border: 2px solid var(--ink);
  padding: 14px;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.guide-input-row input:focus {
  border-color: var(--hot);
}

.guide-input-row button {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.guide-response {
  margin-top: 20px;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.guide-response.is-loading::after {
  content: "…";
  animation: dots 1.4s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "·"; }
  50% { content: "··"; }
  75% { content: "···"; }
}

/* ─── Responsive ─── */

@media (max-width: 980px) {
  .hero,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .hero-spotlight {
    min-height: 0;
    max-width: 680px;
    margin-top: 20px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .detail-photo img[data-detail-photo] {
    min-height: 420px;
  }

  .detail-marker {
    width: 80px;
    height: 80px;
    bottom: -30px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-home img {
    width: 28px;
    height: 28px;
  }

  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }

  .site-header nav a {
    padding: 6px 2px;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 88px 18px 48px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(66, 0, 57, 0.88), rgba(66, 0, 57, 0.58));
  }

  .hero-logo {
    max-height: 120px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-cta {
    padding: 14px 22px;
    font-size: 14px;
  }

  .hero-spotlight {
    display: block;
    max-width: none;
    margin: 24px 0 0;
  }

  .spotlight-photo {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .spotlight-copy {
    padding: 40px 20px 28px;
  }

  .spotlight-copy h2 {
    font-size: 26px;
  }

  .spotlight-photo .marker {
    width: 80px;
    height: 80px;
    bottom: -32px;
  }

  .intro-band p {
    font-size: 16px;
  }

  .how-it-works ol {
    gap: 12px 20px;
  }

  .how-it-works li {
    font-size: 13px;
  }

  .how-it-works span {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .map-hint {
    display: block;
  }

  .map-pin {
    width: 28px;
    height: 28px;
  }

  .map-pin::after {
    inset: 6px;
  }

  .map-legend {
    gap: 20px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-copy h2 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .detail-copy > p {
    font-size: 18px;
  }

  .detail-photo img[data-detail-photo] {
    min-height: 300px;
  }

  .search-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    margin-top: -24px;
  }

  .search-shell button {
    width: 44px;
    height: 44px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-card img {
    min-height: 180px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-panel {
    padding: 24px 20px;
    max-height: 90vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .water-canvas {
    display: none;
  }

  .location-card,
  .map-pin,
  .hero-cta,
  .detail-actions a {
    transition: none;
  }

  .map-pin::before {
    animation: none;
  }
}
