:root {
  --color-ink: #151515;
  --color-muted: #60605c;
  --color-paper: #fffdf7;
  --color-panel: #f4f0e8;
  --color-yellow: #ffcf24;
  --color-red: #f05b43;
  --color-blue: #3d72f6;
  --color-green: #4fa86b;
  --color-video-bg: var(--color-yellow);
  --shadow-soft: 0 24px 70px rgba(21, 21, 21, 0.12);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --space-page: clamp(20px, 4vw, 72px);
  --font-display: ui-rounded, "Avenir Next", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

html.intro-switching {
  scroll-behavior: auto;
}

body {
  margin: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 247, 0.76);
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px var(--space-page);
  position: fixed;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 10;
}

body.intro-passed .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.brand-mark img {
  height: clamp(29px, 3.6vw, 41px);
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 10px;
  width: 44px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(21, 21, 21, 0.07);
}

.menu-toggle img {
  height: auto;
  width: 26px;
}

.site-nav a,
.button {
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  padding: 12px 16px;
  text-decoration: none;
}

.site-nav a:hover,
.button-soft {
  background: rgba(21, 21, 21, 0.07);
}

.intro-scroll {
  background: var(--color-video-bg);
  height: 100svh;
  position: relative;
  z-index: 3;
}

.intro-transition {
  height: 1px;
  pointer-events: none;
}

body.intro-consumed .intro-scroll,
body.intro-consumed .intro-transition {
  display: none;
}

.intro-stage {
  align-items: center;
  display: grid;
  height: 100svh;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vh, 42px) var(--space-page) clamp(72px, 10vh, 112px);
}

.intro-logo {
  max-height: calc(100svh - clamp(112px, 16vh, 170px));
  object-fit: contain;
  width: 100%;
}

.intro-hint {
  bottom: clamp(20px, 4vh, 44px);
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.9rem;
  font-weight: 850;
  left: 50%;
  letter-spacing: 0.08em;
  opacity: 0.72;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.content-shell {
  align-items: center;
  display: grid;
  min-height: 92vh;
  padding: 88px var(--space-page);
}

.story-panel,
.split-panel,
.contact-panel {
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
}

.story-panel {
  padding-top: 118px;
}

.wave-divider {
  background:
    center / 100% 100% no-repeat url("./assets/wave-divider.svg"),
    var(--color-paper);
  height: clamp(54px, 8vw, 104px);
  margin: -20px 0;
  pointer-events: none;
}

.wave-divider-flip {
  transform: scaleX(-1);
}

.story-copy,
.text-panel,
.split-panel > div:first-child,
.contact-panel > div:first-child {
  max-width: 760px;
}

.story-image-wrap {
  align-self: center;
  justify-self: stretch;
}

.story-image-wrap img {
  aspect-ratio: 1.15 / 1;
  filter: drop-shadow(0 24px 40px rgba(21, 21, 21, 0.12));
  object-fit: contain;
  width: 100%;
}

.eyebrow,
.section-kicker,
.pill,
.set-meta,
.event-date {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.85rem);
  margin-bottom: 24px;
}

.headline-rotator {
  color: var(--color-red);
  display: block;
  min-height: 1.05em;
}

#headline-word {
  display: inline-block;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.headline-dot {
  color: var(--color-ink);
}

.headline-rotator.is-switching #headline-word {
  opacity: 0;
  transform: translateY(0.14em);
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.85rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

p {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.large-copy {
  color: var(--color-ink);
  font-size: clamp(1.22rem, 2vw, 1.85rem);
  line-height: 1.34;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
}

.button-primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

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

.benefit-card,
.event-card,
.contact-form,
.empty-state {
  background: rgba(244, 240, 232, 0.82);
  border-radius: var(--radius-md);
}

.benefit-card {
  min-height: 170px;
  padding: 22px;
}

.benefit-number {
  color: var(--color-red);
  display: block;
  font-weight: 900;
  margin-bottom: 34px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 460px;
}

.events-panel,
.sets-panel {
  align-content: center;
  min-height: auto;
}

.sets-panel {
  background: #fff;
}

.sets-panel + .wave-divider {
  background:
    center / 100% 100% no-repeat url("./assets/wave-divider.svg"),
    #fff;
}

.event-carousel {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

.event-window {
  overflow: hidden;
}

.event-rail {
  --event-visible-count: 3;
  display: flex;
  gap: 18px;
  transform: translateX(var(--event-offset, 0));
  transition: transform 260ms ease;
}

.event-card {
  flex: 0 0 calc((100% - (18px * (var(--event-visible-count) - 1))) / var(--event-visible-count));
  overflow: hidden;
}

.carousel-button {
  align-items: center;
  align-self: center;
  aspect-ratio: 1;
  background: var(--color-ink);
  border: 0;
  border-radius: 999px;
  color: var(--color-paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  justify-content: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: 46px;
}

.carousel-button:hover {
  transform: translateY(-2px);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.34;
  transform: none;
}

.event-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.event-content {
  padding: 18px;
}

.pill {
  background: var(--color-yellow);
  border-radius: 999px;
  color: var(--color-ink);
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 10px;
}

.set-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}

.set-card {
  background: #fff;
  border-radius: var(--radius-sm);
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.set-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.set-card img {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.set-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.set-meta {
  display: block;
  margin: 10px 0 5px;
}

.grid-note {
  align-self: center;
  font-size: 0.9rem;
  grid-column: 1 / -1;
  margin-top: 12px;
}

.contact-panel {
  background: var(--color-yellow);
  min-height: 96vh;
}

.site-footer {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 28px var(--space-page);
}

.site-footer p {
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1040px;
}

.instagram-link {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-weight: 850;
  gap: 8px;
  margin-top: 18px;
  text-decoration: none;
  width: fit-content;
}

.instagram-icon {
  fill: none;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 42px;
}

.instagram-link span {
  font-size: 0.98rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

label {
  color: var(--color-muted);
  display: grid;
  font-size: 0.85rem;
  font-weight: 850;
  gap: 8px;
}

input,
textarea {
  background: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font: inherit;
  padding: 14px 15px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.muted {
  color: var(--color-muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.error-body {
  background: var(--color-ink);
  color: var(--color-paper);
}

.error-page {
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.error-page img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.62;
  position: absolute;
  width: 100%;
}

.error-copy {
  max-width: 760px;
  padding: var(--space-page);
  position: relative;
  text-align: center;
  z-index: 1;
}

.error-copy h1 {
  color: var(--color-paper);
  font-size: clamp(3rem, 8vw, 7.8rem);
}

.error-copy p {
  color: rgba(255, 253, 247, 0.88);
}

.song-line {
  font-weight: 850;
}

@media (max-width: 880px) {
  .site-nav a {
    padding: 8px 10px;
  }

  .story-panel,
  .split-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .content-shell {
    min-height: auto;
    padding-bottom: 58px;
    padding-top: 74px;
  }

  .wave-divider {
    height: 54px;
    margin: -12px 0;
  }

  .story-image-wrap {
    margin-top: 8px;
    max-width: 560px;
  }

  .intro-stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .event-rail {
    --event-visible-count: 2;
  }

  .benefit-grid {
    gap: 10px;
  }

  .benefit-card {
    min-height: auto;
    padding: 16px;
  }

  .benefit-number {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    align-items: stretch;
    background: rgba(255, 253, 247, 0.98);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: var(--space-page);
    top: calc(100% + 8px);
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
    width: min(220px, calc(100vw - 32px));
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .event-carousel {
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .carousel-button {
    width: 40px;
  }

  .event-rail {
    --event-visible-count: 1;
  }

}

@media (max-width: 520px) {
  .content-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}
