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

:root {
  --red: #ed1503;
  --moon: #171530;
  --full-moon: #f5f5f0;
  --fog: #e2e2dc;
  --granite: #333333;
  --coral: #ff5138;
  --turquoise: #27a897;
  --magenta: #a8004f;
  --blue-hour: #1c3fc4;
  --sand: #e9a021;
  --morning-sky: #b8d8ff;
  --club-purple: #cc61e2;
  --reflector: #f4f43c;
  --jade: #00705a;
  --soft-wood: #b36d31;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Instrument Sans", sans-serif;
  background: var(--full-moon);
  color: var(--granite);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: var(--moon);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: "Instrument Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a.active {
  font-weight: 600;
}

.nav-cta {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--coral);
}

.nav-desktop-only {
  display: inline-block;
}

.nav-mobile-only {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.mobile-menu-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle .line-1,
.mobile-menu-toggle .line-2,
.mobile-menu-toggle .line-3 {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

/* When menu is active, transform burger to X */
.nav-active .mobile-menu-toggle .line-2 {
  opacity: 0;
}
.nav-active .mobile-menu-toggle .line-1 {
  transform: translateY(6px) rotate(45deg);
}
.nav-active .mobile-menu-toggle .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--moon);
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 600px);
  justify-content: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-color-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--coral) 14%,
    var(--sand) 28%,
    var(--reflector) 42%,
    var(--turquoise) 56%,
    var(--blue-hour) 70%,
    var(--club-purple) 84%,
    var(--magenta) 100%
  );
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 4rem;
}

.hero-eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-headline .red {
  color: var(--red);
}

.hero-body {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--coral);
}

.btn-ghost {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.hero-collage {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #1e1d35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.3);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 8px;
}

.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-img:hover {
  border-color: var(--red);
  box-shadow: 0 15px 35px rgba(237, 21, 3, 0.3);
}

/* MARQUEE */
.marquee-bar {
  background: var(--red);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}
.marquee-item {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 2.5rem;
}
.marquee-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  vertical-align: middle;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ABOUT */
.about {
  background: var(--full-moon);
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--moon);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 1.5rem;
}

.palette-strip {
  display: flex;
  height: 4px;
  margin: 2rem 0;
  gap: 2px;
}
.ps {
  flex: 1;
}

/* EVENTS + CALENDAR */
.events {
  background: var(--moon);
  padding: 6rem 4rem;
}

.events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.events-header .section-title {
  color: #fff;
  margin-bottom: 0;
}
.events-header .section-eyebrow {
  color: var(--sand);
}
.events-header .section-eyebrow::after {
  background: var(--sand);
}

.events-content {
  display: grid;
  gap: 3rem;
}

.events-upcoming {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.calendar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.calendar-iframe {
  width: 100%;
  max-width: 820px;
  height: 620px;
  border: 1px solid #bfcbda88;
  border-radius: 4px;
}

/* SLIDESHOW */
.slideshow-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--fog);
  overflow: hidden;
}

#slideshow-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--fog);
  color: #aaa;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 10px;
}
.slideshow-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slideshow-wrap img.active {
  opacity: 1;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 21, 48, 0.7);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  transition: background 0.2s;
}
.slide-btn:hover {
  background: var(--red);
}
.slide-btn.prev {
  left: 12px;
}
.slide-btn.next {
  right: 12px;
}
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s;
}
.slide-dot.active {
  background: var(--reflector);
}

/* Spinner: the slideshow placeholder, plus any image/map container marked
   .is-loading by script.js until its content has loaded. */
.slideshow-loader,
.is-loading::after {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border-top-color: var(--reflector);
  animation: loader-spin 1s linear infinite;
}
.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -18px 0 0 -18px;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* EVENTS COLUMN LABELS */
.events-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.events-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* FLYER COLLAGE */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.flyer-cell {
  aspect-ratio: 3/4;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.flyer-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.flyer-cell:hover img {
  transform: scale(1.04);
}
.flyer-cell-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 6px;
}
.flyer-cell-ph span {
  font-size: 22px;
}
.flyer-pager {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.flyer-pager[hidden] {
  display: none;
}
.flyer-page-btn {
  padding: 0.6rem 1.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.flyer-page-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.flyer-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 25, 0.93);
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
/* Hide the previous image while the next full-size one downloads. */
.lightbox.is-loading img {
  visibility: hidden;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #fff;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(23, 21, 48, 0.7);
  border: none;
  color: #fff;
  font-size: 22px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: var(--red);
}
.lightbox-nav.prev {
  left: 1.5rem;
}
.lightbox-nav.next {
  right: 1.5rem;
}
.lightbox-nav[hidden] {
  display: none;
}

/* EVENTS-BOTTOM */
.events-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.events-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.luma-link {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.luma-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* DUALITY PHOTO STRIP */
.duality-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 3px;
  margin-top: 3px;
}
.dp-cell {
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.dp-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.dp-cell:hover img {
  transform: scale(1.04);
}
.dp-cell.tall {
  grid-row: span 2;
}
.dp-cell-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.12);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 6px;
}
.dp-cell-ph span {
  font-size: 20px;
}

/* DAY / NIGHT */
.duality {
  background: #fff;
  padding: 6rem 4rem;
}

.duality-header {
  position: relative;
  z-index: 1;
}

.duality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 5rem;
  background: var(--fog);
  position: relative;
  z-index: 2;
}

.duality-card {
  padding: 3rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.duality-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: inherit;
}

.duality-time,
.duality-label,
.duality-title,
.duality-body,
.duality-footnote {
  z-index: 2;
}
.duality-label {
  position: relative;
}
.duality-card.day {
  background: var(--full-moon);
}
.duality-card.night {
  background: var(--moon);
}

.duality-time {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 100px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.85;
  opacity: 0.07;
  position: absolute;
  top: 2rem;
  right: 2rem;
}
.duality-card.day .duality-time {
  color: var(--granite);
}
.duality-card.night .duality-time {
  color: #fff;
}

.duality-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.duality-card.day .duality-label {
  color: var(--sand);
}
.duality-card.night .duality-label {
  color: var(--turquoise);
}

.duality-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.duality-card.day .duality-title {
  color: var(--moon);
}
.duality-card.night .duality-title {
  color: #fff;
}

.duality-body {
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.duality-card.day .duality-body {
  color: #666;
}
.duality-card.night .duality-body {
  color: rgba(255, 255, 255, 0.55);
}

.duality-footnote {
  margin-top: 1.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.duality-card.day .duality-footnote {
  color: rgba(0, 0, 0, 0.3);
}

/* CELESTIAL ANIMATION */
.celestial-orbit {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  z-index: 1;
  pointer-events: none;
}
.celestial-path-svg {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 112px;
  overflow: visible;
}
.celestial-path {
  fill: none;
  stroke: url("#celestial-gradient");
  stroke-linecap: round;
  stroke-width: 2px;
  stroke-dasharray: 1px 9px;
  vector-effect: non-scaling-stroke;
}

.celestial-x {
  position: absolute;
  inset: 0;
  animation: celestial-x-move 8s infinite linear;
}
.celestial-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  margin: -24px;
  animation: celestial-y-move 8s infinite;
}
.celestial-body svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.celestial-body .sun {
  color: var(--sand);
  filter: drop-shadow(0 0 10px rgba(233, 160, 33, 0.7))
    drop-shadow(0 0 20px rgba(233, 160, 33, 0.4));
  animation:
    sun-spin 16s infinite linear,
    sun-phase 8s infinite linear;
}
.celestial-body .moon {
  color: var(--turquoise);
  filter: drop-shadow(0 0 10px rgba(39, 168, 151, 0.7))
    drop-shadow(0 0 20px rgba(39, 168, 151, 0.4));
  animation: moon-phase 8s infinite linear;
}

@keyframes celestial-x-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes celestial-y-move {
  0% {
    transform: translateY(var(--celestial-edge-y, 32px)) scale(0.9);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  50% {
    transform: translateY(var(--celestial-apex-y, -80px)) scale(1.1);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  100% {
    transform: translateY(var(--celestial-edge-y, 32px)) scale(0.9);
  }
}
@keyframes celestial-vertical-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
@keyframes celestial-vertical-x {
  0% {
    transform: translateX(0px) scale(0.9);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  50% {
    transform: translateX(48px) scale(1.1);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  100% {
    transform: translateX(0px) scale(0.9);
  }
}
@keyframes sun-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sun-phase {
  0%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes moon-phase {
  0%,
  49.99% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celestial-x,
  .celestial-body,
  .celestial-body .sun,
  .celestial-body .moon {
    animation-play-state: paused;
  }
}

/* LOCATIONS */
.locations {
  background: var(--moon);
  padding: 6rem 4rem;
}
.locations .section-eyebrow {
  color: var(--sand);
}
.locations .section-eyebrow::after {
  background: var(--sand);
}
.locations .section-title {
  color: #fff;
}

.locations-contact-bar {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.locations-contact-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.locations-contact-info a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.locations-contact-info a:hover {
  color: #fff;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.05);
}

.location-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.location-badge {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 1.25rem;
}
.badge-hq {
  background: rgba(237, 21, 3, 0.15);
  color: var(--coral);
}
.badge-lab {
  background: rgba(244, 244, 60, 0.1);
  color: var(--reflector);
}

.location-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}

.location-addr {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.location-note {
  font-size: 11px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hours-table td:first-child {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  width: 80px;
}
.hours-table td.closed {
  color: rgba(255, 255, 255, 0.2);
}

.location-services {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-chip {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

/* LOCATIONS MAP */
.locations-map {
  margin-top: 3rem;
  height: 450px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

/* Custom map markers */
.map-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid #fff;
}

.map-marker::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: marker-pulse 2s infinite ease-in-out;
}

@keyframes marker-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.marker-hq {
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
  color: var(--coral);
}
.marker-hq::after {
  box-shadow: 0 0 0 2px var(--coral);
}

.marker-lab {
  background: var(--reflector);
  box-shadow: 0 0 12px var(--reflector);
  color: var(--reflector);
}
.marker-lab::after {
  box-shadow: 0 0 0 2px var(--reflector);
}

/* Handwritten map annotations */
.map-annotation {
  position: absolute;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.map-marker-label {
  font-family: "Caveat", cursive;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
  pointer-events: auto;
  cursor: pointer;
}

.map-marker-arrow {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

/* HQ Annotation (top-right of dot) */
.annotation-hq {
  left: 12px;
  bottom: 12px;
}
.annotation-hq .map-marker-label {
  position: absolute;
  left: 42px;
  bottom: 26px;
  transform: rotate(-6deg);
}
.annotation-hq .map-marker-arrow {
  left: 0;
  bottom: 0;
}

/* Lab Annotation (bottom-left of dot) */
.annotation-lab {
  right: 12px;
  top: 12px;
}
.annotation-lab .map-marker-label {
  position: absolute;
  right: 44px;
  top: 24px;
  transform: rotate(5deg);
}
.annotation-lab .map-marker-arrow {
  right: 0;
  top: 0;
}

/* MapLibre Popup Customization */
.maplibregl-popup-content {
  background: var(--moon) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  font-family: "Instrument Sans", sans-serif !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

.maplibregl-popup-close-button {
  color: rgba(255, 255, 255, 0.5) !important;
  padding: 4px 8px !important;
  outline: none !important;
  font-size: 14px !important;
}
.maplibregl-popup-close-button:hover {
  color: #fff !important;
  background: transparent !important;
}

.popup-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.popup-title.hq {
  color: var(--coral);
}
.popup-title.lab {
  color: var(--reflector);
}

.popup-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin-bottom: 8px;
}

.popup-link {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.popup-link:hover {
  border-color: #fff;
}

/* NEWSLETTER */
.newsletter {
  background: var(--red);
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter .section-eyebrow::after {
  background: rgba(255, 255, 255, 0.5);
}
.newsletter .section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}
.newsletter-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.newsletter-iframe {
  width: 100%;
  max-width: 540px;
  height: 440px;
  border: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* FOOTER */
footer {
  background: #0d0c22;
  padding: 3rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-social a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.footer-loc-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.footer-links-list a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links-list a.external {
  color: rgba(255, 255, 255, 0.2);
}

.footer-links-list a:hover {
  color: #fff;
}
.footer-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.footer-phone {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-contact a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .header-img {
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.3s ease;
  }
  .header-img:hover {
    transform: scale(1.02);
  }

  /* Fully black & white effect for the rest of the page */
  body.lightning-active nav,
  body.lightning-active .hero-left,
  body.lightning-active .hero-color-bar,
  body.lightning-active .marquee-bar,
  body.lightning-active section:not(.hero),
  body.lightning-active footer {
    filter: grayscale(1);
  }

  nav,
  .hero-left,
  .hero-color-bar,
  .marquee-bar,
  section:not(.hero),
  footer {
    transition: filter 0.4s ease;
  }

  /* Yellow buzzing electricity styles */
  #lightning-container {
    position: absolute;
    inset: -300px;
    pointer-events: none;
    z-index: 1;
    display: none;
  }

  body.lightning-active #lightning-container {
    display: block !important;
  }

  .photo-placeholder,
  .hero-photo-wrap {
    position: relative;
    z-index: 2;
  }

  .lightning-bolt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  .lightning-bolt path {
    fill: none;
    stroke: #fff;
    stroke-width: 4.5px;
    filter: drop-shadow(0 0 5px #ffe000) drop-shadow(0 0 12px #ff9000);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
  }

  /* Rows shared by both columns: labels in row 1, so the calendar and the
     flyer grid share row 2 and the calendar stretches to the flyers' height.
     The flyer pager sits alone in row 3. */
  .events-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto auto;
    row-gap: 1.25rem;
  }

  .events-col {
    display: grid;
    grid-template-rows: subgrid;
  }

  .events-upcoming {
    max-width: none;
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .calendar-iframe {
    max-width: none;
    height: 100%;
  }

  .flyer-collage {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .events-label {
    margin-bottom: 0;
  }

  .flyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Keep both rows of a page (2 cols × 2 rows) even when the last page is
     short, so the calendar and pager don't jump while paging. */
  .flyer-grid.is-paged {
    grid-template-rows: repeat(2, 1fr);
  }

  .flyer-pager {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  /* NAV */
  nav {
    padding: 0 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-desktop-only {
    display: none;
  }

  .nav-mobile-only {
    display: block;
    margin-top: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--moon);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-active .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .nav-links .nav-cta {
    display: inline-block;
    font-size: 16px;
    padding: 12px 30px;
  }

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-left {
    padding: 4rem 1.5rem 2rem 1.5rem;
  }

  .hero-headline {
    font-size: clamp(48px, 12vw, 64px);
    line-height: 0.95;
    margin-bottom: 1.5rem;
  }

  .hero-body {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-right {
    padding: 2rem 1.5rem;
  }

  .hero-collage {
    max-width: 100%;
  }

  /* ABOUT */
  .about {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 3rem;
  }

  /* EVENTS */
  .events {
    padding: 4rem 1.5rem;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .events iframe {
    width: 100% !important;
    max-width: 100%;
  }

  .events div[style*="padding: 2rem"] {
    padding: 1rem !important;
  }

  .flyer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .flyer-grid.is-paged {
    grid-template-rows: repeat(2, 1fr);
  }

  /* DUALITY */
  .duality {
    padding: 4rem 1.5rem;
  }

  .duality-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2px;
    background: var(--fog);
    margin-top: 4rem;
  }

  .duality-card.day {
    grid-row: 1;
    grid-column: 1;
  }

  .duality-card.night {
    grid-row: 1;
    grid-column: 2;
  }

  .celestial-body {
    width: 36px;
    height: 36px;
    margin: -18px;
  }

  .duality-card {
    padding: 2rem 1rem;
  }

  .duality-time {
    font-size: 48px;
    top: 1rem;
    right: 1rem;
  }

  .duality-title {
    font-size: 24px;
    margin-bottom: 1rem;
  }
  .duality-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 120px 120px;
  }

  .dp-cell.tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* LOCATIONS */
  .locations {
    padding: 4rem 1.5rem;
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    background: transparent;
  }

  .location-card {
    padding: 2rem 1.5rem;
  }

  .locations-map {
    height: 300px;
    margin-top: 1.5rem;
  }

  /* NEWSLETTER */
  .newsletter {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 2.5rem;
  }

  .newsletter-iframe {
    height: 490px;
  }

  /* FOOTER */
  footer {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
}
