/* =========================================================
   DanceXplosion — "stage light & paint splatter"
   Every accent is one of the five paints in the logo, used
   as solid color (never blended into a gradient).
   ========================================================= */

:root {
  --paper:   #F6F3F8;   /* off-white tinted toward the logo's purple */
  --paper-2: #ECE6F0;   /* faint lavender */
  --surface: #FFFFFF;
  --plum:    #33174A;   /* the logo purple, deepened — feature card */
  --plum-2:  #22102F;   /* deeper — footer, mobile menu */
  --ink:     #1F1429;   /* primary text on light (near the logo's black) */
  --ink-soft:#584A66;   /* secondary text */
  --line:    rgba(31, 20, 41, 0.12);
  --edge:    rgba(31, 20, 41, 0.07);   /* hairline around white cards */

  --on-dark:      #F6F3F8;
  --on-dark-soft: rgba(246, 243, 248, 0.8);
  --line-dark:    rgba(246, 243, 248, 0.16);

  /* the logo's paints, sampled from images/logo.jpg, in its left-to-right order */
  --paint-yellow:  #FFFF00;
  --paint-cyan:    #00FFFF;
  --paint-green:   #22B674;
  --paint-magenta: #FF00FF;
  --paint-purple:  #662E91;

  /* magenta deep enough for small text on light (AA); the pure paints are
     too bright to read as text on white */
  --magenta-ink:   #B000B0;

  /* the five paints as solid bands — seams and the hero dash */
  --paints: linear-gradient(90deg,
    var(--paint-yellow)  0 20%,
    var(--paint-cyan)    0 40%,
    var(--paint-green)   0 60%,
    var(--paint-magenta) 0 80%,
    var(--paint-purple)  0 100%);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --head-gap: clamp(2rem, 4vw, 3rem);

  --radius: 18px;

  --shadow-sm: 0 1px 2px rgba(31, 20, 41, 0.05), 0 10px 24px -16px rgba(31, 20, 41, 0.3);
  --shadow:    0 1px 2px rgba(31, 20, 41, 0.05), 0 24px 48px -28px rgba(31, 20, 41, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.22s;

  /* semantic z-index scale */
  --z-sticky: 50;
  --z-menu: 100;
  --z-skip: 200;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;   /* anchors land below the sticky nav */
  scrollbar-gutter: stable;   /* locking scroll for the menu won't shift the page */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: var(--z-skip);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--paint-purple);
  outline-offset: 3px;
  border-radius: 6px;
}
/* purple disappears on the dark surfaces — use the logo yellow there */
:is(.contact, .menu, .event:first-child) :focus-visible { outline-color: var(--paint-yellow); }

/* ---------- shared type ---------- */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label--on-dark { color: rgba(246, 243, 248, 0.68); }
.label--yellow  { color: var(--paint-yellow); }
.label--cyan    { color: var(--paint-cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-title--light { color: var(--on-dark); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--head-gap);
}
.section-note {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

/* text written in the editor (markdown → paragraphs, bold, links) */
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 700; }
.prose a {
  color: inherit;
  font-weight: 600;
  text-decoration-color: var(--paint-magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--paint-magenta);
  transition: color var(--dur) var(--ease-out);
}
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--magenta-ink); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.btn svg { flex: none; }
.btn:active { transform: scale(0.98); }
.btn--big {
  min-height: 54px;
  padding: 0.95rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--solid {
  color: #fff;
  background: var(--ink);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(31, 20, 41, 0.2);
}
.btn--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
}

/* hover: dark buttons turn logo purple, light ones (on dark) turn logo yellow */
@media (hover: hover) {
  .btn--solid:hover {
    transform: translateY(-2px);
    background: var(--paint-purple);
    box-shadow: 0 14px 30px -14px rgba(102, 46, 145, 0.7);
  }
  .btn--ghost:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px var(--paint-purple);
  }
  .btn--light:hover {
    transform: translateY(-2px);
    background: var(--paint-yellow);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- paint seam: the logo's five paints as solid bands ---------- */
.seam {
  height: 5px;
  background: var(--paints);
  width: 100%;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: #fff;
  box-shadow: 0 1px 0 var(--edge);
  transition: box-shadow 0.25s var(--ease-out);
}
.nav.is-stuck {
  box-shadow: 0 1px 0 var(--edge), 0 10px 30px -22px rgba(31, 20, 41, 0.5);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__brand {
  display: inline-flex;
  margin-right: auto;
  border-radius: 8px;
}
.nav__logo {
  height: 60px;   /* the logo's hand-drawn lettering needs the size to read */
  width: auto;
}
.nav__links {
  display: flex;
  gap: 0.25rem;
}
.nav__links a {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--paint-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* hamburger — hidden on desktop, shown ≤820px */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  margin-right: -8px; /* optical align to edge */
}
.nav__toggle-box {
  display: block;
  position: relative;
  width: 24px;
  height: 15px;
}
.nav__toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s ease, width 0.2s var(--ease-out);
}
.nav__toggle-bar:nth-child(1) { top: 0; }
.nav__toggle-bar:nth-child(2) { top: 50%; transform: translateY(-50%); width: 80%; }
.nav__toggle-bar:nth-child(3) { bottom: 0; }
.nav__toggle:hover .nav__toggle-bar { background: var(--paint-purple); }
.nav__toggle:hover .nav__toggle-bar:nth-child(2) { width: 100%; }

/* =========================================================
   MOBILE MENU — the "curtain"
   Native <dialog>; renders in the top layer above everything.
   ========================================================= */
.menu {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--plum-2);
  color: var(--on-dark);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.menu[open] { display: block; }
.menu.is-open { opacity: 1; }
/* The curtain is opaque and full-screen, so it needs no backdrop. A dark one
   showed through while the menu faded out, then vanished at once — a "pop". */
.menu::backdrop { background: transparent; }

.menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 2.25rem;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out);
}
.menu.is-open .menu__inner { transform: none; }

.menu__seam {
  height: 4px;
  background: var(--paints);
  margin: 0 calc(-1 * var(--gutter));
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
}
/* the logo's lettering is black — give it a white chip on the dark curtain */
.menu__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
}
.menu__logo {
  height: 40px;
  width: auto;
}
.menu__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 243, 248, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.menu__close:hover {
  color: var(--paint-yellow);
  border-color: var(--paint-yellow);
}

.menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(1.5rem, 6vh, 3rem);
}
.menu__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4em 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 11vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 243, 248, 0.12);
}
.menu__link::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--c);
  flex: none;
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.menu__link:hover::before,
.menu__link:focus-visible::before { transform: scale(1); }

.menu__cta {
  align-self: flex-start;
  margin-top: clamp(1.75rem, 5vh, 2.75rem);
}

.menu__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu__foot-block {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.menu__foot-block .label { margin-bottom: 0.4rem; }
.menu__social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.menu__social a {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.menu__social a:hover { border-color: var(--paint-cyan); }

/* staggered link reveal */
.menu__link,
.menu .menu__cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.menu.is-open .menu__link,
.menu.is-open .menu__cta { opacity: 1; transform: none; }
.menu.is-open .menu__nav .menu__link:nth-child(1) { transition-delay: 0.06s; }
.menu.is-open .menu__nav .menu__link:nth-child(2) { transition-delay: 0.11s; }
.menu.is-open .menu__nav .menu__link:nth-child(3) { transition-delay: 0.16s; }
.menu.is-open .menu__nav .menu__link:nth-child(4) { transition-delay: 0.21s; }
.menu.is-open .menu__cta { transition-delay: 0.27s; }

/* lock background scroll while open */
html.menu-open { overflow: hidden; }

/* =========================================================
   HERO — the signature
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { position: relative; }

.hero__place {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.hero__place::before {
  content: "";
  flex: none;
  width: 45px;    /* five 9px paint swatches */
  height: 5px;
  margin-top: 0.68em;   /* centers on the first line of text */
  border-radius: 2px;
  background: var(--paints);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.9vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--paint-purple);
}

.hero__lede {
  font-size: clamp(1.125rem, 1.6vw, 1.275rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.25rem clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__facts dt { margin-bottom: 0.3rem; }
.hero__facts dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.hero__facts > div:nth-child(2) dd { max-width: 15ch; text-wrap: balance; }
.hero__next a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--paint-magenta);
  transition: color var(--dur) var(--ease-out);
}
.hero__next svg { flex: none; transition: transform var(--dur) var(--ease-out); }
.hero__next a:hover { color: var(--magenta-ink); }
.hero__next a:hover svg { transform: translateX(3px); }

.hero__photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
  aspect-ratio: 1 / 1.1;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #E9E8E2;   /* matches the studio backdrop while loading */
}
.hero__photo--1 { grid-column: 1; grid-row: 1; object-position: 50% 58%; }
.hero__photo--2 { grid-column: 1; grid-row: 2; object-position: 45% 64%; }
.hero__photo--3 { grid-column: 2; grid-row: 1 / span 2; object-position: 64% 40%; }

/* photos settle in on load — transform only, so they're never hidden */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: photo-rise 1s var(--ease-out) both; }
  .hero__photo--1 { animation-delay: 0.12s; }
  .hero__photo--2 { animation-delay: 0.22s; }
}
@keyframes photo-rise {
  from { transform: translateY(26px) scale(0.97); }
}

/* one-time paint burst behind the headline */
.hero__burst {
  position: absolute;
  top: 34%;
  left: 38%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: -1;
}
.hero__burst i {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.hero__burst i:nth-child(5n+1) { background: var(--paint-yellow); }
.hero__burst i:nth-child(5n+2) { background: var(--paint-cyan); }
.hero__burst i:nth-child(5n+3) { background: var(--paint-green); }
.hero__burst i:nth-child(5n+4) { background: var(--paint-magenta); }
.hero__burst i:nth-child(5n)   { background: var(--paint-purple); }

.hero.is-burst .hero__burst i {
  animation: paint-burst 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 40ms);
}
@keyframes paint-burst {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(0.3); }
  60%  { opacity: 0.55; }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + cos(var(--i) * 45deg) * 42vmin),
        calc(-50% + sin(var(--i) * 45deg) * 30vmin)
      ) scale(1.1);
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__role {
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0.7rem 0 1.75rem;
}
.about__body p { max-width: 54ch; }
.about__body .prose { margin-top: 1rem; color: var(--ink-soft); }

/* =========================================================
   STUDIO (light tint)
   ========================================================= */
.studio {
  background: var(--paper-2);
}
.studio__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title body"
    "place body";
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.studio__title { grid-area: title; }
.studio__body {
  grid-area: body;
  padding-top: 0.4rem;
}
.studio .place { grid-area: place; }
.studio__body {
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.studio__body p { max-width: 50ch; }

.place {
  font-style: normal;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}
.place__addr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
}
.place .link-arrow { margin-top: 0.4rem; }

/* =========================================================
   CLASSES — set like a recital program, one color per style
   ========================================================= */
.classes {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.styles {
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.style {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.style::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: clamp(3.5rem, 10vw, 7rem);
  height: 6px;
  border-radius: 2px;
  background: var(--c);
  transform-origin: left;
}
.style__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.style__desc {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.classes__more { margin-top: 2rem; }

/* =========================================================
   EVENTS — poster-led cards; the soonest one is featured
   ========================================================= */
.events {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  /* full-bleed tinted band without an extra wrapper */
  background: var(--paper-2);
  box-shadow: 0 0 0 100vmax var(--paper-2);
  clip-path: inset(0 -100vmax);
}
.events__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.event {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.event__poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.event__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* never crop a flyer's text */
  transition: transform 0.5s var(--ease-out);
}
/* no poster? a big date tile holds the poster's place */
.event__tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--plum);       /* stage-dark, so the paint color pops like the logo */
  color: var(--on-dark);
}
.event__tile-month,
.event__tile-day {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
}
.event__tile-month {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.event__tile-day {
  font-size: clamp(5rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c);
}

.event__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 20, 41, 0.85);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease-out);
}

.event__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.6rem;
}
.event__when {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--magenta-ink);
}
.event__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.event__details { color: var(--ink-soft); }
.event__details strong { color: var(--ink); }

.event__ask {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.event__ask svg { flex: none; color: var(--magenta-ink); }
.event__ask:hover { color: var(--magenta-ink); }
/* one "ask" per section is enough — only the featured event carries it */
.event:not(:first-child) .event__ask { display: none; }

/* featured: the soonest event, on the plum curtain */
.event:first-child {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  background: var(--plum);
  color: var(--on-dark);
  border: 0;
  box-shadow: var(--shadow);
}
.event:first-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%; right: -15%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 0, 255, 0.3), transparent);
  pointer-events: none;
}
.event:first-child {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.event:first-child :is(.event__poster, .event__tile) {
  margin: clamp(1rem, 2.5vw, 1.75rem);
  margin-right: 0;
  border-radius: 12px;
}
.event:first-child .event__poster { background: rgba(0, 0, 0, 0.2); }
.event:first-child .event__tile { background: rgba(255, 255, 255, 0.06); }
.event:first-child .event__body {
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.event:first-child .event__when { color: var(--paint-yellow); font-size: 1.05rem; }
.event:first-child .event__title { font-size: clamp(2rem, 4vw, 2.85rem); }
.event:first-child .event__details {
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  max-width: 50ch;
}
.event:first-child .event__details strong { color: var(--on-dark); }
.event:first-child .event__ask {
  margin-top: 0.75rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.events__empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.events__empty[hidden] { display: none; }
.events__empty p {
  max-width: 44ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .event__poster:hover img { transform: scale(1.03); }
  .event__poster:hover .event__zoom { background: var(--paint-purple); }
  .event:first-child .event__ask:hover {
    color: var(--ink);
    background: var(--paint-yellow);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  }
}

/* full-size poster viewer */
.poster-view {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.poster-view::backdrop {
  background: rgba(20, 10, 24, 0.86);
}
.poster-view__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 960px);
  max-height: 88vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.poster-view__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.poster-view__close:hover { color: var(--magenta-ink); }
@media (prefers-reduced-motion: no-preference) {
  .poster-view[open] { animation: poster-in 0.32s var(--ease-out); }
  .poster-view[open]::backdrop { animation: fade-in 0.32s var(--ease-out); }
}
@keyframes poster-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes fade-in { from { opacity: 0; } }

/* =========================================================
   VIDEOS — fixed list or a live YouTube playlist
   Layout adapts to how many there are (data-count, 1–8).
   ========================================================= */
.videos {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.video-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.video-grid > li {
  display: flex;
  grid-column: span 2;
}
.video-grid > li:nth-child(-n+2) { grid-column: span 3; }        /* 2, 5, 8 */
.video-grid[data-count="1"] > li { grid-column: 2 / span 4; }
.video-grid:is([data-count="3"], [data-count="6"]) > li { grid-column: span 2; }
.video-grid[data-count="4"] > li { grid-column: span 3; }
.video-grid[data-count="7"] > li:nth-last-child(-n+2) { grid-column: span 3; }

.video-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--plum);
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 24, 0.35), transparent 55%);
}
.video-card__play {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}
.video-card__play svg { margin-left: 3px; }

.video-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem 1.2rem;
}
.video-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  /* playlist titles can run long — keep cards even */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.video-card__sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* cards size their type to their own width */
@container (min-width: 440px) {
  .video-card__play { width: 68px; height: 68px; }
  .video-card__meta { padding: 1.1rem 1.4rem 1.3rem; }
  .video-card__name { font-size: 1.45rem; }
}
@container (max-width: 250px) {
  .video-card__play { width: 46px; height: 46px; }
  .video-card__meta { padding: 0.75rem 0.9rem 0.9rem; }
  .video-card__name { font-size: 1.05rem; }
  .video-card__sub { font-size: 0.875rem; }
}

/* loading placeholders while the playlist arrives */
.video-grid > li.is-loading .video-card { box-shadow: none; }
.video-grid > li.is-loading .video-card__thumb::after { content: none; }
.video-grid > li.is-loading .video-card__thumb,
.skeleton-line {
  background: linear-gradient(90deg, var(--paper-2) 0%, #F8F5FA 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
}
.skeleton-line {
  display: block;
  width: 70%;
  height: 0.95rem;
  border-radius: 6px;
}
.skeleton-line--short { width: 40%; margin-top: 0.45rem; }
@media (prefers-reduced-motion: no-preference) {
  .video-grid > li.is-loading .video-card__thumb,
  .skeleton-line { animation: shimmer 1.4s linear infinite; }
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

.videos__status {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}
.videos__more { margin-top: 2rem; }

@media (hover: hover) {
  .video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
  .video-card:hover .video-card__thumb img { transform: scale(1.04); }
  .video-card:hover .video-card__play {
    transform: scale(1.08);
    background: var(--paint-yellow);
    color: var(--ink);
  }
}

/* =========================================================
   CONTACT / FOOTER (dark)
   ========================================================= */
.contact {
  background: var(--plum-2);
  color: var(--on-dark);
}
/* the logo's paints, bright on the dark footer */
.contact::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--paints);
}
.contact__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__text {
  color: var(--on-dark-soft);
  font-size: 1.125rem;
  max-width: 40ch;
  margin: 1.1rem 0 2rem;
}
.contact__details {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.5rem;
}
.contact__block {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}
.contact__block .label { margin-bottom: 0.2rem; }
.contact__block address {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
}
.contact__link {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 255, 255, 0.4);
  transition: border-color var(--dur) var(--ease-out);
  overflow-wrap: anywhere;
}
.contact__link:hover { border-color: var(--paint-cyan); }
.contact__social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.contact__legal {
  width: calc(min(var(--wrap), 100%) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: rgba(246, 243, 248, 0.66);
  border-top: 1px solid var(--line-dark);
}
.contact__legal a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.contact__legal a:hover { color: var(--on-dark); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0s),
    transform 0.7s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* each style's color bar draws in after its row lands */
.style.reveal::before {
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) calc(var(--d, 0s) + 0.25s);
}
.style.reveal.is-in::before { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { min-height: 64px; }
  .nav__logo { height: 46px; }
  html { scroll-padding-top: 72px; }

  .hero__inner,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__facts {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  .hero__photos { aspect-ratio: 1 / 0.85; }
  .hero__burst { top: 22%; left: 50%; }
  .about__grid { align-items: start; }

  .event:first-child { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

@media (max-width: 600px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem 1.75rem;
  }
  .hero__facts > div:last-child { grid-column: 1 / -1; }
  .hero__photos { aspect-ratio: 1 / 1; }

  .about__grid,
  .studio__inner { grid-template-columns: minmax(0, 1fr); }
  .about__portrait { max-width: 420px; }
  .about__img { aspect-ratio: 1 / 1.1; }
  .studio__inner {
    grid-template-rows: auto;
    grid-template-areas: "title" "body" "place";
    row-gap: 1.5rem;
  }
  .studio__body { padding-top: 0; }
  .studio .place { margin-top: 0.75rem; }

  .style { grid-template-columns: minmax(0, 1fr); }

  .event:first-child { grid-template-columns: minmax(0, 1fr); }
  .event:first-child :is(.event__poster, .event__tile) { margin: 1rem 1rem 0; }
  .event:first-child .event__body { padding: 1.5rem 1.25rem 1.75rem; }
  .event:first-child .event__ask { align-self: stretch; justify-content: center; }
  .event__tile { aspect-ratio: 2 / 1; }   /* a date doesn't need a poster's height on a phone */
  /* one column: let each flyer keep its own shape instead of letterboxing */
  .event__poster { aspect-ratio: auto; min-height: 12rem; }
  .event__poster img { height: auto; max-height: 80vh; }

  /* odd counts: first video full width, the rest in pairs */
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .video-grid[data-count] > li:nth-child(n) { grid-column: span 1; }
  .video-grid:is([data-count="1"], [data-count="3"], [data-count="5"], [data-count="7"]) > li:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-burst .hero__burst i { animation: none; }
  .reveal,
  .style.reveal::before { opacity: 1; transform: none; transition: none; }
  .btn, .video-card, .video-card__thumb img, .video-card__play,
  .event__poster img { transition: none; }

  /* menu: appear instantly, no stagger */
  .menu,
  .menu__inner,
  .menu__link,
  .menu .menu__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu.is-open .menu__nav .menu__link,
  .menu.is-open .menu__cta { transition-delay: 0s; }
}
