:root {
  /* -- brand colours (adjust to match exact brand hex if needed) -- */
  --ink: #0e0e10;
  --ink-soft: #1a1a1d;
  --ink-card: #18181b;
  --paper: #f6f3ee;
  --paper-dim: #eae5db;
  --red: #d81e3e;
  --red-dark: #a3132a;
  --red-light: #ff4d6a;
  --white: #ffffff;
  --text-dark: #17171a;
  --text-mut: #6c6c72;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.1);
  --dark-blue: #190a49;
  --light-blue: #3c098d;

  /* -- type -- */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1120px;
}

body.pink-mode {
  --ink: #8f2d56;
  --ink-soft: #f26a8d;
  --ink-card: #f49cbb;

  --paper: #ffccd5;
  --paper-dim: #ffb3c1;

  --red: #ff477e;
  --red-dark: #ff0a54;
  --red-light: #ff5c8a;

  --white: #fae0e4;
  --text-dark: #590d22;
  --text-mut: #f4acb7;

  --line: #ff5d8f;
  --line-dark: #ff0054;

  --dark-blue: rgb(134, 39, 78);
  --light-blue: #d81159;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--dark-blue);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: var(--white); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ---------- shared marks / eyebrows ---------- */
.mark { fill: currentColor; flex-shrink: 0; }
.mark--red { color: var(--red); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--red-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.section-title--light { color: var(--white); }

.lead {
  font-size: 1.15rem;
  max-width: 62ch;
  color: var(--text-mut);
  margin-bottom: 1rem;
}
.lead--light { color: rgba(255,255,255,0.72); }

.body-text {
  max-width: 68ch;
  color: var(--text-dark);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow .15s ease;
}
.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--red-dark);
}
.btn--red:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red-dark); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--dark-blue);
  opacity: 0.98;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
#logo-img {
  height: 50px;
}
.main-nav ul {
  display: flex;
  gap: 1.9rem;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--red);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--white); display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(3rem, 8vw, 6rem);
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("index-header.jpg");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-slash {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 75%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(14, 14, 16, 0.15) 30%,
    rgba(14, 14, 16, 0.65) 55%,
    var(--red-dark) 75%
  );
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(216,30,62,0.18), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}
.hero-rotator {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--red-light);
  min-height: 1.6em;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.stats-bar {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--dark-blue);
}
.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

/* ---------- generic sections ---------- */
.section { padding: 6rem 0; position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* angled seam between stacked sections */
.section--ink + .section--paper,
.section--paper + .section--ink {
  position: relative;
}
.section + .section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 44px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* ---------- sport cards ---------- */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.sport-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 2.25rem;
}
.sport-icon { color: var(--red-light); margin-bottom: 1.25rem; }
.sport-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}
.sport-card p { color: rgba(255,255,255,0.68); font-size: 0.98rem; }

/* ---------- schedule ---------- */
.schedule-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.day-card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.75rem;
}
.day-card__day {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--red-dark);
  margin-bottom: 1rem;
}
.day-card__sessions { display: flex; flex-direction: column; gap: 0.85rem; }
.session {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line-dark);
}
.day-card__sessions .session:last-child { border-bottom: none; padding-bottom: 0; }
.session__main { display: flex; flex-direction: column; }
.session__name { font-weight: 700; }
.session__meta { font-size: 0.85rem; color: var(--text-mut); }
.session__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.session__time { font-family: var(--font-mono); font-size: 0.9rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.tag--members { background: rgba(216,30,62,0.1); color: var(--red-dark); }
.tag--open { background: rgba(14,14,16,0.08); color: var(--text-dark); }

.intro-dates { margin-top: 1.25rem; border-top: 1px dashed var(--line-dark); padding-top: 1rem; }
.intro-dates summary {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.intro-dates summary::before { content: '+'; font-family: var(--font-mono); }
.intro-dates[open] summary::before { content: '\2212'; }
.intro-dates__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.intro-dates__grid h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mut);
  margin-bottom: 0.3rem;
}
.intro-dates__grid p { font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- membership pricing card ---------- */

.pricing-card {
  margin-top: 2.5rem;
  max-width: 460px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 2.5rem;
}
.pricing-card__top { margin-bottom: 1.75rem; }
.pricing-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
}
.pricing-card__price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-left: 0.35rem;
}
.pricing-card__list { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}
.pricing-card__list .mark { margin-top: 0.3rem; }

/* ---------- rules ---------- */
.rules-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.rules-card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  padding: 1.75rem;
}
.rules-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--red-dark);
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}
.rules-card ul { display: flex; flex-direction: column; gap: 0.55rem; }
.rules-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--text-dark);
}
.rules-card li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--red);
}
.rules-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-mut);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  font-weight: 700;
  color: var(--white);
  font-size: 1.02rem;
}
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--red-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 0.25rem 1.5rem;
  color: rgba(255,255,255,0.68);
  max-width: 68ch;
}
.faq-item__body a { color: var(--red-light); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0b; color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.logo--footer { margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-socials { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.75);
  transition: background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.footer-socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .main-nav { 
    display: none; 
  }
  .nav-toggle { display: flex; }

  .site-header.nav-open { background: var(--ink); }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .sport-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-actions .btn--small { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .session { flex-direction: column; align-items: flex-start; }
  .session__side { align-items: flex-start; }
  .hero { background-position: 35% center;}
}

/* =========================================================
   Easter egg — boxing the Sign me up! button
   ========================================================= */

.pricing-card {
  position: relative;
}

/* ---------------------------------
   Button getting hit
   --------------------------------- */

.signup-getting-hit {
  position: relative;
  animation: button-shake 0.08s linear infinite;
}

@keyframes button-shake {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2px, 1px);
  }

  50% {
    transform: translate(3px, -1px);
  }

  75% {
    transform: translate(-2px, 0);
  }

  100% {
    transform: translate(2px, 1px);
  }
}


/* ---------------------------------
   Boxing glove
   --------------------------------- */

.signup-boxing-glove {
  position: absolute;

  /* Start just outside the right side */
  right: -50px;

  /* Align with the signup button */
  bottom: 3rem;

  width: 60px;
  height: 60px;

  object-fit: contain;

  z-index: 20;
  pointer-events: none;

  opacity: 0;

  transform: translateX(0) rotate(-25deg);
}


/* First punch */
.signup-boxing-glove.hit-1 {
  opacity: 1;

  animation:
    glove-punch-1 0.45s cubic-bezier(.2,.8,.2,1)
    forwards;
}


/* Second punch */
.signup-boxing-glove.hit-2 {
  opacity: 1;

  animation:
    glove-punch-2 0.45s cubic-bezier(.2,.8,.2,1)
    forwards;
}


/* Third punch */
.signup-boxing-glove.hit-3 {
  opacity: 1;

  animation:
    glove-punch-3 0.45s cubic-bezier(.2,.8,.2,1)
    forwards;
}


/* Final punch */
.signup-boxing-glove.hit-final {
  opacity: 1;

  animation:
    glove-final-punch 0.45s cubic-bezier(.15,.9,.2,1)
    forwards;
}


/* ---------------------------------
   Punch animations
   --------------------------------- */

@keyframes glove-punch-1 {

  0% {
    transform:
      translateX(0)
      rotate(-25deg);
  }

  55% {
    transform:
      translateX(-135px)
      rotate(5deg);
  }

  68% {
    transform:
      translateX(-125px)
      rotate(0deg);
  }

  100% {
    transform:
      translateX(10px)
      rotate(-25deg);
  }
}


@keyframes glove-punch-2 {

  0% {
    transform:
      translateX(0)
      rotate(-25deg);
  }

  55% {
    transform:
      translateX(-135px)
      rotate(5deg);
  }

  68% {
    transform:
      translateX(-125px)
      rotate(0deg);
  }

  100% {
    transform:
      translateX(10px)
      rotate(-25deg);
  }
}


@keyframes glove-punch-3 {

  0% {
    transform:
      translateX(0)
      rotate(-25deg);
  }

  55% {
    transform:
      translateX(-135px)
      rotate(5deg);
  }

  68% {
    transform:
      translateX(-125px)
      rotate(0deg);
  }

  100% {
    transform:
      translateX(10px)
      rotate(-25deg);
  }
}


@keyframes glove-final-punch {

  0% {
    transform:
      translateX(0)
      rotate(-25deg);
  }

  45% {
    transform:
      translateX(-145px)
      rotate(8deg);
  }

  60% {
    transform:
      translateX(-135px)
      rotate(0deg);
  }

  100% {
    transform:
      translateX(20px)
      rotate(-30deg);
    opacity: 0;
  }
}


/* ---------------------------------
   Cracks appearing after each hit
   --------------------------------- */

.signup-getting-hit::after {
  content: '';
  position: absolute;

  left: 50%;
  top: 50%;

  width: 0;
  height: 0;

  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 5;
}


/* Crack 1 */
.signup-getting-hit.crack-1::after {
  width: 25px;
  height: 25px;

  background:
    linear-gradient(
      45deg,
      transparent 46%,
      rgba(255,255,255,.9) 48%,
      transparent 52%
    ),
    linear-gradient(
      135deg,
      transparent 47%,
      rgba(255,255,255,.8) 49%,
      transparent 53%
    );
}


/* Crack 2 */
.signup-getting-hit.crack-2::after {
  width: 55px;
  height: 45px;

  background:
    linear-gradient(
      55deg,
      transparent 47%,
      rgba(255,255,255,.95) 49%,
      transparent 52%
    ),
    linear-gradient(
      125deg,
      transparent 47%,
      rgba(255,255,255,.9) 49%,
      transparent 52%
    ),
    linear-gradient(
      90deg,
      transparent 48%,
      rgba(255,255,255,.85) 50%,
      transparent 53%
    );
}


/* Crack 3 */
.signup-getting-hit.crack-3::after {
  width: 90px;
  height: 55px;

  background:
    linear-gradient(
      45deg,
      transparent 46%,
      rgba(255,255,255,.95) 48%,
      transparent 52%
    ),
    linear-gradient(
      135deg,
      transparent 46%,
      rgba(255,255,255,.95) 48%,
      transparent 52%
    ),
    linear-gradient(
      90deg,
      transparent 47%,
      rgba(255,255,255,.9) 49%,
      transparent 52%
    ),
    linear-gradient(
      20deg,
      transparent 48%,
      rgba(255,255,255,.8) 50%,
      transparent 53%
    );
}


/* ---------------------------------
   Button breaking
   --------------------------------- */

.signup-broken {
  animation:
    button-break 0.45s cubic-bezier(.7,-0.2,.8,.2)
    forwards !important;
}


@keyframes button-break {

  0% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }

  30% {
    transform:
      scale(1.06)
      rotate(-2deg);
    filter: brightness(1.4);
  }

  55% {
    transform:
      scale(0.98)
      rotate(2deg);
  }

  100% {
    opacity: 0;
    transform:
      scale(0.55)
      rotate(-7deg);
    filter: brightness(2);
  }
}


/* ---------------------------------
   "Okay, now for real" button
   --------------------------------- */

.signup-real-button {
  display: block;

  width: fit-content;

  margin: 0.8rem auto 0;

  padding: 0.55rem 1rem;

  background: var(--red);
  color: var(--white);

  font-size: 0.78rem;
  font-weight: 700;

  text-decoration: none;

  border-radius: 2px;

  box-shadow:
    3px 3px 0 var(--red-dark);

  opacity: 0;

  transform:
    translateY(-8px)
    scale(0.85);

  animation:
    real-button-appear
    0.45s
    cubic-bezier(.2,.9,.3,1)
    forwards;
}


.signup-real-button:hover {
  transform:
    translateY(-2px)
    scale(1.03);

  box-shadow:
    4px 4px 0 var(--red-dark);
}


@keyframes real-button-appear {

  0% {
    opacity: 0;
    transform:
      translateY(-8px)
      scale(0.85);
  }

  70% {
    opacity: 1;
    transform:
      translateY(2px)
      scale(1.03);
  }

  100% {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

 /* ---------- Pink mode popup ---------- */

.pink-mode-popup {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 0.9rem;

  padding: 1rem 1.25rem;

  background: var(--ink);
  color: var(--white);

  border: 2px solid var(--red);
  border-radius: 4px;

  box-shadow: 6px 6px 0 var(--red-dark);

  animation: pink-popup-in 0.45s cubic-bezier(.2,.9,.3,1);
}

.pink-popup-heart {
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;

  animation: pink-heart-beat 0.8s ease-in-out infinite;
}

.pink-popup-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pink-popup-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pink-popup-text span {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-light);
}

@keyframes pink-popup-in {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.85);
  }

  70% {
    opacity: 1;
    transform: translateX(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pink-heart-beat {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.pink-popup-hide {
  animation: pink-popup-out 0.4s ease forwards;
}

@keyframes pink-popup-out {
  to {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
}

/* Mobile */
@media (max-width: 560px) {
  .pink-mode-popup {
    top: 80px;
    right: 1rem;
    left: 1rem;
  }
}

/* =========================================================
   Schedule changes box
   ========================================================= */
.schedule-notice {
  --warn: #f5a524;
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--warn);
  padding: 1.5rem 1.75rem;
}
.schedule-notice__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.schedule-notice__head svg { color: var(--warn); flex-shrink: 0; }
.schedule-notice__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.notice-list { display: flex; flex-direction: column; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px dashed var(--line-dark);
}
.notice:first-child { border-top: none; padding-top: 0; }
.notice__status {
  flex: 0 0 8.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(245,165,36,0.2);
  color: #7a4b00;
}
.notice--cancelled .notice__status { background: var(--red); color: #fff; }
.notice--rescheduled .notice__status { background: rgba(245,165,36,0.25); color: #7a4b00; }
.notice--changed .notice__status { background: rgba(14,14,16,0.09); color: var(--text-dark); }
.notice__body strong { display: block; font-size: 0.98rem; }
.notice__body p { font-size: 0.9rem; color: var(--text-mut); }
.notice--cancelled .notice__body strong { text-decoration: line-through; text-decoration-color: var(--red); }

/* =========================================================
   Intro class countdown
   ========================================================= */
.countdown {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-left: 4px solid var(--red);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.countdown[hidden], .countdown__message[hidden] { display: none; }
.countdown__label { display: flex; flex-direction: column; gap: 0.15rem; }
.countdown__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
}
.countdown__date { font-weight: 700; }
.countdown__timer { display: flex; gap: 0.6rem; }
.countdown__unit {
  min-width: 3.6rem;
  text-align: center;
  padding: 0.45rem 0.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
}
.countdown__unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}
.countdown__message { font-weight: 700; color: var(--white); }
.countdown.is-live { border-left-color: #3ddc84; }
.countdown.is-live .countdown__timer { display: none; }

/* =========================================================
   Events page
   ========================================================= */
.site-header--solid {
  background: var(--dark-blue);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--white); }

.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 40%; height: 160%;
  background: linear-gradient(100deg, transparent 46%, var(--red) 46%, var(--red-dark) 54%, transparent 54.6%);
  opacity: 0.9;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.page-hero__lead { max-width: 52ch; color: rgba(255,255,255,0.72); font-size: 1.1rem; }

.events-section { min-height: 50vh; }
.events-list { display: flex; flex-direction: column; gap: 1.75rem; }

.event-card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--red);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.event-card--image { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.event-card__media { position: relative; min-height: 260px; background: var(--ink); }
.event-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.event-card__content {
  position: relative;
  padding: 2rem 2rem 2rem 6.5rem;
}
.event-card--image .event-card__content { padding-left: 6.5rem; }
.event-card__date {
  position: absolute;
  top: 2rem; left: 1.5rem;
  width: 3.8rem;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0 0.4rem;
  border-bottom: 3px solid var(--red);
}
.event-card__day { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.event-card__month {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
}
.event-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.event-card__desc { color: var(--text-mut); max-width: 62ch; margin-bottom: 1.25rem; }
.event-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px dashed var(--line-dark);
  border-bottom: 1px dashed var(--line-dark);
}
.event-card__meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.15rem;
}
.event-card__meta dd { font-weight: 600; font-size: 0.95rem; }
.event-card__join {
  background: rgba(216,30,62,0.07);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
}
.event-card__join-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.35rem;
}
.event-card__join p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.event-card__join p:last-child { margin-bottom: 0; }
.event-card__join a:not(.btn) { text-decoration: underline; color: var(--red-dark); }

.events-empty {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line-dark);
}
.events-empty h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0.75rem 0 0.5rem;
}
.events-empty p { color: var(--text-mut); }
.events-empty a { color: var(--red-dark); text-decoration: underline; }
/* show the empty message only when there are no event cards */
.events-section:not(:has(.event-card)) .events-list { display: none; }
.events-section:not(:has(.event-card)) .events-empty { display: block; }

/* ---- responsive additions ---- */
@media (max-width: 880px) {
  .event-card--image { grid-template-columns: 1fr; }
  .event-card__media { min-height: 220px; }
}
@media (max-width: 560px) {
  .notice { flex-direction: column; gap: 0.5rem; }
  .notice__status { flex: none; }
  .countdown__timer { width: 100%; }
  .countdown__unit { flex: 1; min-width: 0; }
  .event-card__content,
  .event-card--image .event-card__content { padding: 5.5rem 1.25rem 1.5rem; }
  .event-card__date { top: 1.25rem; left: 1.25rem; }
}
