/* Single-viewport landing — desktop + phone; controls pinned to corners above browser chrome */

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

:root {
  /* Safe areas + gutter so fixed controls sit clearly inside the viewport */
  --inset-top: max(0.65rem, env(safe-area-inset-top, 0px));
  --inset-right: max(0.65rem, env(safe-area-inset-right, 0px));
  --inset-left: max(0.65rem, env(safe-area-inset-left, 0px));
  /* Mobile browsers (e.g. Safari tab bar) often need more than safe-area alone */
  --inset-bottom: max(
    0.65rem,
    calc(env(safe-area-inset-bottom, 0px) + max(1.5rem, 5.5vmin))
  );
  --z-controls: 5;
}

@media (min-width: 768px) {
  :root {
    --inset-top: max(1rem, env(safe-area-inset-top, 0px));
    --inset-right: max(1.25rem, env(safe-area-inset-right, 0px));
    --inset-left: max(1.25rem, env(safe-area-inset-left, 0px));
    --inset-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
  }
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
}

body {
  overflow-x: hidden;
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* Hide iOS / in-app WebKit big play overlay on decorative muted background video */
.bg-video::-webkit-media-controls {
  display: none !important;
}
.bg-video::-webkit-media-controls-enclosure {
  display: none !important;
}
.bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

/* Hero = first viewport. CTAs are pinned to the hero's corners. */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(var(--inset-top) + 3.25rem)
    max(1rem, var(--inset-left))
    calc(var(--inset-bottom) + 10rem);
  overflow: hidden;
}

/* Mobile dock: row 1 = play + Recenseer, row 2 = scroll hint centred below */
.hero__dock {
  position: absolute;
  left: max(1rem, var(--inset-left));
  right: max(1rem, var(--inset-right));
  bottom: var(--inset-bottom);
  z-index: var(--z-controls);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.hero__dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero__dock .audio-toggle {
  position: static;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
}

.hero__dock-top .cta--accent {
  position: static;
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  min-height: 3.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero__dock .scroll-hint {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  align-self: center;
  padding-top: 0.15rem;
}

.hero__center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: clamp(0.5rem, 3vw, 1.5rem) 0;
}

.logo {
  width: min(78vw, 520px);
  max-height: min(38dvh, 38vh, 320px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
}

.cta {
  position: absolute;
  z-index: var(--z-controls);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  width: fit-content;
  max-width: min(calc(100vw - var(--inset-left) - var(--inset-right) - 4rem), 22rem);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.cta--primary {
  top: var(--inset-top);
  left: var(--inset-left);
  right: auto;
  bottom: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cta--primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.cta--accent {
  right: var(--inset-right);
  bottom: var(--inset-bottom);
  left: auto;
  top: auto;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.cta--accent:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.theme-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.audio-toggle {
  position: absolute;
  z-index: var(--z-controls);
  left: var(--inset-left);
  bottom: var(--inset-bottom);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.audio-toggle:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.audio-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.audio-toggle__svg {
  display: block;
}

.audio-toggle__svg--stop {
  display: none;
}

.audio-toggle.is-playing {
  background: #fff;
  color: #000;
}

.audio-toggle.is-playing:hover {
  background: transparent;
  color: #fff;
}

.audio-toggle.is-playing .audio-toggle__svg--play {
  display: none;
}

.audio-toggle.is-playing .audio-toggle__svg--stop {
  display: block;
}

@media (min-width: 768px) {
  .hero {
    padding:
      calc(var(--inset-top) + 2.5rem)
      2rem
      calc(var(--inset-bottom) + 3.5rem);
  }

  /* Desktop: dock wrappers transparent; children pin to corners again */
  .hero__dock {
    display: contents;
  }

  .hero__dock-top {
    display: contents;
  }

  .hero__dock .audio-toggle {
    position: absolute;
    left: var(--inset-left);
    bottom: var(--inset-bottom);
    width: 56px;
    height: 56px;
  }

  .hero__dock .scroll-hint {
    position: absolute;
    left: 50%;
    bottom: var(--inset-bottom);
    transform: translateX(-50%);
  }

  .hero__dock .cta--accent {
    position: absolute;
    right: var(--inset-right);
    bottom: var(--inset-bottom);
    left: auto;
    width: fit-content;
    max-width: min(calc(100vw - var(--inset-left) - var(--inset-right) - 4rem), 22rem);
  }

  .logo {
    width: min(48vw, 640px);
    max-height: min(48vh, 420px);
  }

  .content {
    padding: calc(var(--inset-top) + 2.5rem) 2rem calc(var(--inset-bottom) + 3.5rem);
  }

  .cta {
    min-height: 52px;
    padding: 0.75rem 1.6rem;
  }

  .audio-toggle {
    width: 56px;
    height: 56px;
  }

  .audio-toggle__svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }

  .stage {
    background: #111 radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
  }

  .cta {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }

  .audio-toggle {
    transition: none;
  }

  .audio-toggle:hover {
    transform: none;
  }

  .scroll-hint__chev,
  .scroll-hint svg {
    animation: none;
  }
}

/* ===================== Scroll hint (hero -> section 2) ===================== */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: var(--inset-bottom);
  transform: translateX(-50%);
  z-index: var(--z-controls);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.scroll-hint svg {
  animation: hint-bounce 1.8s ease-in-out infinite;
}

.scroll-hint:hover {
  color: #fff;
}

.scroll-hint:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Very short viewports: tighten dock, hide scroll label if needed */
@media (max-height: 520px) {
  .hero {
    padding-bottom: calc(var(--inset-bottom) + 6.5rem);
  }

  .scroll-hint__txt {
    display: none;
  }

  .logo {
    max-height: min(32dvh, 32vh, 220px);
  }
}

@media (max-height: 520px) and (min-width: 768px) {
  .hero {
    padding-bottom: calc(var(--inset-bottom) + 3.5rem);
  }
}

/* ===================== Section 2 ===================== */
.section2 {
  position: relative;
  z-index: 2;
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem clamp(4rem, 10vw, 8rem);
}

.s2-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.s2-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.s2-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f7be6;
}

.s2-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.s2-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
}

.s2-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1rem;
}

/* ----- Place / event card ----- */
.pcard {
  --cat: #8a8f98;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.15rem 1.05rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--cat);
  border-radius: 3px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pcard:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.pcard--maplink {
  cursor: pointer;
}

.pcard--maplink:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pcard__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pcard__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat);
}

.pcard__pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.pcard__name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.18;
}

.pcard__addr {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.pcard__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.occ {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.occ__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.occ__dot.is-on {
  background: var(--cat);
}

.occ__txt {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}

.pcard__ig {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  transition: border-color 0.18s ease;
}

.pcard__ig:hover {
  border-color: #fff;
}

/* ----- CTA to the map ----- */
.s2-cta-wrap {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}

.s2-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: #6c4bd8;
  color: #fff;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid #6c4bd8;
  box-shadow: 0 10px 30px rgba(108, 75, 216, 0.35);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.s2-cta:hover {
  transform: translateY(-2px);
  background: #5a3cc4;
  box-shadow: 0 14px 36px rgba(108, 75, 216, 0.45);
}

.s2-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.s2-cta svg {
  flex: none;
}

.s2-count {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .s2-list {
    gap: 1.15rem;
  }
}

/* ===========================================================================
   Map page (map.html) — Fase 1. Full-screen MapLibre + top bar + bottom sheet.
   Brand: Archivo, black/white, sharp 2–3px radii. Purple #6C4BD8 is reserved
   for the future events layer and is intentionally absent here.
   =========================================================================== */
.map-page {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  background: #0b0b0b;
  color: #fff;
  overflow: hidden;
}

.map-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: 100vh;
}

.map-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(var(--inset-top)) var(--inset-right) 0.7rem var(--inset-left);
  padding-top: max(0.7rem, var(--inset-top));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.map-bar > * {
  pointer-events: auto;
}
.map-bar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: #fff;
  color: #000;
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  flex: none;
}
.map-bar__title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.map-bar__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
}

/* MapLibre controls — square them off to match the brand. */
.map-page .maplibregl-ctrl button,
.map-page .maplibregl-ctrl-group {
  border-radius: 3px !important;
}

/* Zoom +/- — vertical center of viewport (top-right sits under the map bar). */
.map-page .maplibregl-ctrl-top-right {
  top: 50%;
  right: max(0.75rem, var(--inset-right));
  transform: translateY(-50%);
  z-index: 5;
}
.map-page .maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---- North reset nudge (map rotated off bearing 0) ----------------------- */
.north-nudge {
  position: fixed;
  left: 50%;
  bottom: max(1rem, var(--inset-bottom));
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: min(calc(100vw - 2rem), 22rem);
  padding: 0.75rem 1rem 0.85rem;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%) translateY(0.75rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.north-nudge.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.north-nudge__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}
.north-nudge__btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 3px;
  background: #fff;
  color: #0b0b0b;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.north-nudge__btn:hover {
  background: #e8e8e8;
}
.north-nudge__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .north-nudge {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    max-width: none;
  }
  .north-nudge__text {
    white-space: nowrap;
  }
  .north-nudge__btn {
    width: auto;
    flex: none;
  }
}

/* ---- Bottom sheet -------------------------------------------------------- */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.sheet-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  color: #0b0b0b;
  border-radius: 3px 3px 0 0;
  padding: 1.4rem var(--inset-right) calc(1.4rem + var(--inset-bottom)) var(--inset-left);
  padding-left: max(1.3rem, var(--inset-left));
  padding-right: max(1.3rem, var(--inset-right));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(105%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet.is-open {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .sheet {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 24rem;
    border-radius: 3px;
    transform: translateY(calc(100% + 2rem));
  }
}

.sheet__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #0b0b0b;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.sheet__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cat, #8a8f98);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}
.sheet__name {
  margin: 0.7rem 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.sheet__addr {
  margin: 0;
  color: #555;
  font-weight: 500;
  font-size: 0.92rem;
}
.sheet__badge {
  margin: 0.9rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.sheet__block {
  margin-top: 1.1rem;
}
.sheet__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8f98;
  margin-bottom: 0.45rem;
}
.sheet__iglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sheet__ig {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #0b0b0b;
  border: 2px solid #0b0b0b;
  border-radius: 3px;
  padding: 0.35rem 0.7rem;
}
.sheet__ig:hover {
  background: #0b0b0b;
  color: #fff;
}
.sheet__web {
  display: block;
  margin-top: 1rem;
  text-align: center;
  background: #fff;
  color: #0b0b0b;
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 2px solid #0b0b0b;
  border-radius: 3px;
}
.sheet__web:hover {
  background: #0b0b0b;
  color: #fff;
}
.sheet__route {
  display: block;
  margin-top: 1.3rem;
  text-align: center;
  background: #0b0b0b;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 3px;
}
.sheet__route:hover {
  background: #2a2a2a;
}
