/*
 * GGJ Jumpstart 2027 landing page (ggj-2027.html), "Daylight Valley" palette
 * All selectors are prefixed "md-" so this file cannot affect other pages.
 * Contrast: ink #171938 and muted #4a4d6b on cream/white (AA+). Purple, burnt orange, green, river blue all AA on white.
 */

:root {
  /* "Daylight Valley": derived from the GCHV logo.
     "coral" = sunset orange, "teal" = valley green (names kept to avoid churn). */
  --md-bg: #faf8f2;          /* logo cream, warmed: page background (cards stay white) */
  --md-tint: #f3efe3;        /* warm section tint */
  --md-ink: #171938;         /* logo outline navy */
  --md-muted: #4a4d6b;
  --md-line: #e8e2d2;
  --md-purple: #5b35d5;      /* links and interactive */
  --md-purple-2: #7c5cff;
  --md-purple-soft: #ece7ff;
  --md-coral: #f26d35;       /* sunset orange: decoration only, never small text */
  --md-coral-ink: #c2410c;   /* text-safe orange */
  --md-coral-soft: #ffe7dc;
  --md-teal: #2fae6a;        /* valley green */
  --md-teal-ink: #1f7a4d;
  --md-teal-soft: #e3f4ea;
  --md-yellow: #ffcc00;      /* sun yellow: fills only, never text on light */
  --md-yellow-soft: #fff4cc;
  --md-river: #156b91;       /* river blue */
  --md-river-soft: #e0f0f7;
  --md-radius: 20px;
  --md-radius-sm: 12px;
  --md-shadow: 0 1px 2px rgba(23, 25, 56, 0.06), 0 8px 24px rgba(23, 25, 56, 0.08);
  --md-shadow-lg: 0 2px 4px rgba(23, 25, 56, 0.06), 0 18px 40px rgba(23, 25, 56, 0.12);
  --md-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --md-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------------- Base ---------------- */

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

.md {
  margin: 0;
  color: var(--md-ink);
  background: var(--md-bg);
  font-family: var(--md-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* :where() keeps the reset at zero specificity so component classes win. */
:where(.md) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) {
  margin: 0;
}

:where(.md) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.md img,
.md svg {
  display: block;
  max-width: 100%;
}

.md a {
  color: var(--md-purple);
  text-underline-offset: 3px;
}

.md :focus-visible {
  outline: 3px solid var(--md-purple-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.md-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.md-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff !important;
  background: var(--md-ink);
  border-radius: 8px;
}

.md-skip:focus {
  top: 12px;
}

/* ---------------- Type ---------------- */

.md-h1,
.md-h2,
.md-h3,
.md-session__title,
.md-jam__days,
.md-session__day,
.md-footer__title {
  font-family: var(--md-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.md-h1 {
  font-size: clamp(2.4rem, 5.3vw, 4.25rem);
  line-height: 1.02;
  margin-bottom: 24px;
}

.md-h1__a,
.md-h1__b {
  display: block;
}

.md-h1__b {
  color: var(--md-purple);
}

/* highlighter underline that follows line wraps */
.md-h1__b {
  text-decoration: underline;
  text-decoration-color: var(--md-yellow);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}

.md-h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.md-h2--light {
  color: #fff;
}

.md-h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.md-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-purple);
}

.md-label--light {
  color: var(--md-yellow);
}

.md-body-lg {
  font-size: 1.15rem;
  color: var(--md-muted);
}

/* ---------------- Buttons ---------------- */

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--md-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.md-btn svg {
  width: 18px;
  height: 18px;
}

.md-btn:hover {
  transform: translateY(-2px);
}

.md-btn--primary {
  color: #fff !important;
  background: var(--md-purple);
  box-shadow: 0 8px 20px rgba(91, 53, 213, 0.28);
}

.md-btn--primary:hover {
  background: #4b27c4;
  box-shadow: 0 12px 26px rgba(91, 53, 213, 0.34);
}

.md-btn--outline {
  color: var(--md-ink) !important;
  background: #fff;
  border-color: var(--md-ink);
}

.md-btn--outline:hover {
  background: var(--md-ink);
  color: #fff !important;
}

.md-btn--dark {
  color: #fff !important;
  background: var(--md-ink);
}

.md-btn--light {
  color: var(--md-ink) !important;
  background: #fff;
}

.md-btn--yellow {
  color: var(--md-ink) !important;
  background: var(--md-yellow);
}

.md-btn--ghost-light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6);
}

.md-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.md-btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

/* Non-interactive: no URL configured or action not available yet */
.md-btn--disabled,
.md-btn.is-unavailable {
  color: var(--md-muted) !important;
  background: #efece3;
  border: 2px dashed #cfc8b4;
  box-shadow: none;
  transform: none !important;
  cursor: default;
}

.md-jam .md-btn.is-unavailable {
  color: #e8e4ff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------------- Header ---------------- */

.md-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.9);
  border-bottom: 1px solid var(--md-line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.md-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.md-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--md-ink) !important;
  text-decoration: none;
}

.md-brand img {
  border-radius: 50%;
}

.md-brand__text {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.15;
}

.md-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.md-nav ul {
  display: flex;
  gap: 4px;
}

.md-nav ul a {
  display: block;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--md-ink);
  text-decoration: none;
  border-radius: 8px;
}

.md-nav ul a:hover {
  background: var(--md-purple-soft);
  color: var(--md-purple);
}

.md-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--md-line);
  border-radius: 12px;
  cursor: pointer;
}

.md-menu-btn__bars,
.md-menu-btn__bars::before,
.md-menu-btn__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--md-ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.md-menu-btn__bars {
  position: relative;
}

.md-menu-btn__bars::before,
.md-menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.md-menu-btn__bars::before {
  top: -6px;
}

.md-menu-btn__bars::after {
  top: 6px;
}

.md-menu-btn[aria-expanded="true"] .md-menu-btn__bars {
  background: transparent;
}

.md-menu-btn[aria-expanded="true"] .md-menu-btn__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.md-menu-btn[aria-expanded="true"] .md-menu-btn__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .md-menu-btn {
    display: block;
  }

  .md-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--md-line);
    box-shadow: var(--md-shadow);
  }

  .md-nav.is-open {
    display: flex;
  }

  .md-nav ul {
    flex-direction: column;
  }

  .md-nav ul a {
    padding: 12px;
  }
}

/* ---------------- Hero ---------------- */

.md-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 100% 0%, var(--md-purple-soft), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, var(--md-yellow-soft), transparent 60%);
}

.md-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.md-hero__copy {
  position: relative;
  z-index: 1;
}

.md-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-ink);
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: 999px;
  box-shadow: var(--md-shadow);
}

.md-eyebrow__dot {
  width: 10px;
  height: 10px;
  background: var(--md-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--md-teal-soft);
}

.md-hero__tagline {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.md-hero__intro {
  max-width: 560px;
  color: var(--md-muted);
  margin-bottom: 32px;
}

.md-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.md-hero__closer {
  margin-top: 20px;
  font-weight: 600;
  color: var(--md-teal-ink);
}

.md-art {
  width: 100%;
  height: auto;
  overflow: visible;
}

.md-float {
  animation: md-float 6s ease-in-out infinite;
}

.md-float--2 {
  animation-duration: 7s;
  animation-delay: -2s;
}

.md-float--3 {
  animation-duration: 8s;
  animation-delay: -4s;
}

@keyframes md-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.md-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.md-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow);
}

.md-fact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.md-fact__icon--purple { color: var(--md-purple); background: var(--md-purple-soft); }
.md-fact__icon--coral { color: var(--md-coral-ink); background: var(--md-coral-soft); }
.md-fact__icon--teal { color: var(--md-teal-ink); background: var(--md-teal-soft); }
.md-fact__icon--yellow { color: #8a5a00; background: var(--md-yellow-soft); }

.md-fact dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-muted);
}

.md-fact dd {
  font-weight: 700;
  line-height: 1.35;
}

/* ---------------- Sections ---------------- */

.md-section {
  padding: 112px 0;
  scroll-margin-top: 72px;
}

.md-section--compact {
  padding: 80px 0;
}

.md-section--tint {
  background: var(--md-tint);
}

.md-jam {
  scroll-margin-top: 72px;
}

.md-section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.md-section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: none;
  align-items: end;
  text-align: left;
}

.md-section-head--split .md-h2 {
  margin-bottom: 0;
}

/* About */
.md-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.md-about__intro .md-body-lg {
  margin-bottom: 28px;
}

.md-quote {
  padding: 4px 0 4px 20px;
  font-family: var(--md-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.3;
  border-left: 4px solid var(--md-coral);
}

.md-about__cards {
  display: grid;
  gap: 20px;
}

.md-compare {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
}

.md-compare--purple {
  border-top: 6px solid var(--md-purple);
}

.md-compare--coral {
  border-top: 6px solid var(--md-coral);
}

.md-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
}

.md-chip--purple { color: var(--md-purple); background: var(--md-purple-soft); }
.md-chip--coral { color: #a8380a; background: var(--md-coral-soft); }

.md-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--md-muted);
}

.md-checklist svg {
  flex: none;
  margin-top: 4px;
  color: var(--md-teal-ink);
}

/* ---------------- Journey ---------------- */

.md-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* connecting line between markers */
.md-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--md-river), var(--md-teal), var(--md-yellow), var(--md-coral));
  border-radius: 3px;
}

.md-step {
  position: relative;
  text-align: center;
}

.md-step__marker {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.md-step__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 0 0 8px var(--md-tint);
  transition: transform 0.2s ease;
}

.md-step:hover .md-step__icon {
  transform: translateY(-4px) rotate(-4deg);
}

/* Each step takes a GCHV logo colour: river, valley, sun, sunset */
.md-step--discover .md-step__icon { background: var(--md-river); }
.md-step--learn .md-step__icon { background: var(--md-teal-ink); }
.md-step--connect .md-step__icon { background: var(--md-yellow); color: var(--md-ink); }
.md-step--create .md-step__icon { background: var(--md-coral-ink); }

.md-step__num {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--md-ink);
  background: #fff;
  border: 2px solid var(--md-ink);
  border-radius: 50%;
}

.md-step__body {
  height: calc(100% - 96px);
  padding: 24px;
  background: #fff;
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
}

.md-step__count {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-muted);
}

.md-step__summary {
  font-weight: 600;
  margin-bottom: 8px;
}

.md-step__detail {
  font-size: 0.98rem;
  color: var(--md-muted);
}

.md-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.md-roles li {
  padding: 3px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-purple);
  background: var(--md-purple-soft);
  border-radius: 999px;
}

/* AI message: visually distinct gradient banner */
.md-ai {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: center;
  max-width: 860px;
  margin: 56px auto 0;
  padding: 24px 32px;
  color: #fff;
  background: linear-gradient(110deg, var(--md-purple) 0%, #a3234f 62%, #b8400c 100%);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-lg);
}

.md-ai__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.md-ai__text {
  font-family: var(--md-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.md-ai__note {
  font-size: 0.95rem;
  color: #f1ebff;
}

/* ---------------- Workshops (sessions) ---------------- */

.md-sessions {
  display: grid;
  gap: 20px;
}

.md-session {
  display: grid;
  grid-template-columns: 112px 1fr 240px;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.md-session:hover {
  box-shadow: var(--md-shadow-lg);
  transform: translateY(-2px);
}

.md-session__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  color: var(--md-purple);
  background: var(--md-purple-soft);
  border-radius: 18px;
}

.md-session__dow,
.md-session__mon {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-session__day {
  font-size: 2.6rem;
  line-height: 1;
  margin: 2px 0;
}

.md-session__when {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-muted);
  margin-bottom: 4px;
}

.md-session__title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.md-session__title.is-pending {
  color: var(--md-muted);
  font-weight: 600;
}

.md-session__desc,
.md-session__outcome {
  margin-bottom: 12px;
  color: var(--md-muted);
}

.md-session__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.md-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.md-meta svg {
  flex: none;
  color: var(--md-purple);
}

.md-meta.is-pending {
  color: var(--md-muted);
}

.md-session__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.md-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
}

.md-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.md-status--soon { color: #6a4a00; background: var(--md-yellow-soft); }
.md-status--open { color: var(--md-teal-ink); background: var(--md-teal-soft); }
.md-status--closed { color: #5b5f7a; background: #ecebf3; }
.md-status--recording { color: var(--md-purple); background: var(--md-purple-soft); }

.md-session--open { border-left: 6px solid var(--md-teal); }
.md-session--recording { border-left: 6px solid var(--md-purple); }

.md-session--kickoff {
  background: linear-gradient(90deg, var(--md-coral-soft), #fff 70%);
  border-color: #ffd0bd;
}

.md-session--kickoff .md-session__date {
  color: var(--md-coral-ink);
  background: #fff;
}

.md-session__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--md-coral-ink);
  background: #fff;
  border: 2px solid #ffc2a8;
  border-radius: 999px;
}

/* ---------------- Community ---------------- */

.md-community {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.md-discord {
  position: relative;
  padding: 40px;
  color: #e8e6ff;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(253, 112, 4, 0.45), transparent 70%),
    var(--md-ink);
  border-radius: 28px;
  overflow: hidden;
}

.md-discord p {
  margin-bottom: 16px;
}

.md-discord__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--md-ink);
  background: var(--md-yellow);
  border-radius: 16px;
}

.md-discord__note {
  font-size: 0.95rem;
  color: #c9cbe0;
}

.md-discord__note a {
  color: #fff;
}

.md-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.md-feature {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow);
}

.md-feature:last-child:nth-child(odd) {
  grid-column: span 2;
}

.md-feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--md-purple);
  background: var(--md-purple-soft);
  border-radius: 12px;
}

.md-feature__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}

.md-feature p {
  font-size: 0.95rem;
  color: var(--md-muted);
}

.md-mentors__title {
  margin-top: 32px;
}

.md-mentors li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--md-line);
}

/* ---------------- Global Game Jam ---------------- */

.md-jam {
  padding: 112px 0;
  color: #e8e6ff;
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(91, 53, 213, 0.55), transparent 60%),
    radial-gradient(500px 360px at 100% 100%, rgba(253, 112, 4, 0.4), transparent 60%),
    #171938;
}

.md-jam__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.md-jam__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.md-jam__days {
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.9;
  color: #fff;
  background: linear-gradient(120deg, #fff 30%, var(--md-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.md-jam__month {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--md-yellow);
}

.md-jam__where {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.md-jam__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 36px;
}

.md-jam__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: #fff;
}

.md-jam__points svg {
  flex: none;
  margin-top: 3px;
  color: var(--md-yellow);
}

.md-jam a:not(.md-btn) {
  color: #fff;
}

/* ---------------- Get involved ---------------- */

.md-involved {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: var(--md-yellow-soft);
  border-radius: 32px;
  overflow: hidden;
}

/* geometric accents */
.md-involved::before,
.md-involved::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.md-involved::before {
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--md-yellow);
  border-radius: 50%;
  opacity: 0.55;
}

.md-involved::after {
  bottom: -30px;
  right: 30%;
  width: 90px;
  height: 90px;
  background: var(--md-teal);
  border-radius: 24px;
  transform: rotate(18deg);
  opacity: 0.25;
}

.md-involved > * {
  position: relative;
  z-index: 1;
}

.md-involved .md-body-lg {
  color: #3f4468;
}

.md-involved__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.md-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.md-tags li {
  padding: 8px 16px;
  font-weight: 600;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--md-shadow);
}

/* ---------------- Partners & sponsors ---------------- */

.md-partners,
.md-sponsors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.md-partner,
.md-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--md-ink) !important;
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.md-partner:hover,
a.md-sponsor:hover {
  box-shadow: var(--md-shadow-lg);
  transform: translateY(-3px);
}

.md-partner {
  box-shadow: var(--md-shadow);
}

.md-partner__mark,
.md-sponsor__mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
}

.md-partner__mark.has-logo,
.md-sponsor__mark.has-logo {
  /* flex (not grid) so the image's max-height resolves against the fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 220px;
  height: 104px;
}

.md-sponsor__mark.has-logo {
  height: 88px;
}

.md-partner__mark img,
.md-sponsor__mark img {
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.md-partner__mono,
.md-sponsor__mono {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  font-family: var(--md-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--md-purple);
  background: var(--md-purple-soft);
  border-radius: 20px;
}

.md-partner__name,
.md-sponsor__name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

.md-sponsor {
  background: #ffffff;
  border: 2px dashed #ddd3b8;
}

.md-sponsor__mark {
  width: 64px;
  height: 64px;
}

.md-sponsor__mono {
  width: 56px;
  height: 56px;
  font-size: 1rem;
  color: #6a4a00;
  background: var(--md-yellow-soft);
  border-radius: 50%;
}

.md-sponsor__sub {
  font-size: 0.9rem;
  color: var(--md-muted);
}

#sponsors {
  padding-top: 0;
}

/* ---------------- FAQ ---------------- */

.md-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.md-faq__head {
  position: sticky;
  top: 112px;
}

.md-faq__head p:last-child {
  color: var(--md-muted);
}

.md-faq__list {
  display: grid;
  gap: 12px;
}

.md-faq__item {
  background: #fff;
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius-sm);
  transition: box-shadow 0.2s ease;
}

.md-faq__item[open] {
  box-shadow: var(--md-shadow);
}

.md-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.md-faq__item summary::-webkit-details-marker {
  display: none;
}

.md-faq__toggle {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--md-purple-soft);
  border-radius: 50%;
}

.md-faq__toggle::before,
.md-faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--md-purple);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.md-faq__toggle::after {
  transform: rotate(90deg);
}

.md-faq__item[open] .md-faq__toggle::after {
  transform: rotate(0deg);
}

.md-faq__answer {
  padding: 0 24px 22px;
  color: var(--md-muted);
}

/* ---------------- Footer ---------------- */

.md-footer {
  padding: 48px 0;
  color: #cfcde6;
  background: var(--md-ink);
}

.md-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.md-footer__title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.md-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.md-footer a {
  color: #fff;
}

.md-noscript {
  padding: 16px;
  text-align: center;
  background: var(--md-yellow);
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .md *,
  .md *::before,
  .md *::after {
    animation: none !important;
    transition: none !important;
  }

  html:has(.md) {
    scroll-behavior: auto;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .md-session {
    grid-template-columns: 96px 1fr;
  }

  .md-session__side {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .md-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .md-hero__grid,
  .md-about,
  .md-community,
  .md-jam__grid,
  .md-involved,
  .md-faq,
  .md-section-head--split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .md-hero__art {
    max-width: 480px;
    margin: 0 auto;
  }

  .md-faq__head {
    position: static;
  }

  /* Journey stacks into a vertical timeline */
  .md-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .md-steps::before {
    top: 36px;
    bottom: 36px;
    left: 36px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--md-river), var(--md-teal), var(--md-yellow), var(--md-coral));
  }

  .md-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    text-align: left;
  }

  .md-step__marker {
    margin: 0;
  }

  .md-step__body {
    height: auto;
  }

  .md-roles {
    justify-content: flex-start;
  }

  .md-jam__date {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .md {
    font-size: 1rem;
  }

  .md-container {
    padding: 0 16px;
  }

  .md-section,
  .md-jam {
    padding: 72px 0;
  }

  .md-section--compact {
    padding: 56px 0;
  }

  .md-hero {
    padding-top: 40px;
  }

  .md-eyebrow {
    font-size: 0.85rem;
  }

  .md-hero__ctas .md-btn {
    width: 100%;
  }

  .md-facts,
  .md-features,
  .md-partners,
  .md-sponsors,
  .md-jam__points {
    grid-template-columns: 1fr;
  }

  .md-feature:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .md-session {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .md-session__date {
    flex-direction: row;
    gap: 8px;
    aspect-ratio: auto;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
  }

  .md-session__day {
    font-size: 1.1rem;
    margin: 0;
  }

  .md-session__side {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .md-session__meta {
    flex-direction: column;
    gap: 6px;
  }

  .md-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .md-step__marker,
  .md-step__icon {
    width: 56px;
    height: 56px;
  }

  .md-step__icon {
    border-radius: 18px;
  }

  .md-steps::before {
    left: 28px;
  }

  .md-step__body {
    padding: 20px;
  }

  .md-ai {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .md-ai__icon {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .md-discord,
  .md-involved {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .md-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
