/* ==========================================================================
   UWC ETHICS INVITATIONAL 2026 — DESIGN SYSTEM
   Aligned to MPEO's dark-academia gold system for visual consistency
   across both Ethics Olympiad events.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Outfit:wght@500;600;700&display=swap');

:root {
  --color-bg-primary: #0E1013;
  --color-bg-secondary: #16191E;
  --color-bg-card: #21252C;
  --color-bg-card-hover: #2A2F38;
  --color-bg-parchment: #F6F4ED;

  --color-border-subtle: rgba(255, 255, 255, 0.09);
  --color-border-accent: rgba(212, 175, 55, 0.4);

  /* Metallic accents, matched to MPEO's gold system */
  --color-gold-primary: #D4AF37;
  --color-gold-hover: #F3CE5E;
  --color-gold-dark: #997A1E;
  --color-gold-glow: rgba(212, 175, 55, 0.28);
  --color-gold-surface: rgba(212, 175, 55, 0.08);

  --color-silver: #C0C7D0;
  --color-silver-glow: rgba(192, 199, 208, 0.25);
  --color-bronze: #CD7F32;
  --color-bronze-glow: rgba(205, 127, 50, 0.25);
  --color-olive-laurel: #4F6052;

  /* Laurel: generic interactive emphasis (links, active nav, checkmarks) — gold stays reserved for rank/achievement */
  --color-link: #A3B79C;
  --color-link-hover: #C1D2BB;

  --color-accent-a: var(--color-gold-primary);
  --color-accent-b: var(--color-gold-hover);
  --color-accent-gradient: linear-gradient(120deg, var(--color-gold-dark), var(--color-gold-primary));
  --color-accent-glow: var(--color-gold-glow);

  --color-text-primary: #F5F6F8;
  --color-text-secondary: #A8B0BC;
  --color-text-muted: #6B7280;
  --color-text-dark: #1A1D20;

  --font-display: 'Cinzel', Georgia, serif;
  --font-subhead: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-badge: 'Outfit', sans-serif;

  --max-width-container: 1240px;
  --max-width-narrow: 920px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px -5px var(--color-gold-glow);
  --glass-bg: rgba(14, 16, 19, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(14px);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--color-bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.09) 1px, transparent 1.3px) 0 0 / 30px 30px,
    radial-gradient(circle at 50% 0%, #171A21 0%, #0E1013 70%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--color-link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--max-width-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-width-narrow); }

section { padding: 96px 0; }
main > section:nth-of-type(even) { background: var(--color-bg-secondary); }

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }
h3 { font-family: var(--font-subhead); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 32px; position: relative; }
h2::after {
  content: '';
  display: block;
  margin-top: 16px;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent-gradient);
}
p { text-wrap: pretty; }

/* --- Decorative ornaments (laurel motifs, dividers, texture) --- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--color-gold-primary);
  opacity: 0.55;
}
.ornament-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament-divider__line--flip { background: linear-gradient(90deg, currentColor, transparent); }
.ornament-divider__sprig {
  width: 38px;
  height: 15px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url('assets/decorative/laurel-sprig.svg');
  mask-image: url('assets/decorative/laurel-sprig.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.ornament-divider__sprig--right { transform: scaleX(-1); }
.ornament-divider__mark {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Corner sprig accent on card-like surfaces */
.leader-card,
.judges__bio,
.format__theories li,
.funnel-step__register,
.judges__criteria {
  position: relative;
  overflow: hidden;
}
.leader-card::before,
.judges__bio::before,
.format__theories li::before,
.funnel-step__register::before,
.judges__criteria::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 34px;
  height: 14px;
  background-color: var(--color-gold-primary);
  -webkit-mask-image: url('assets/decorative/laurel-sprig.svg');
  mask-image: url('assets/decorative/laurel-sprig.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.16;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* Scroll-reveal (progressive enhancement; content is visible by default) */
[data-reveal] { opacity: 1; transform: none; }
[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-init { opacity: 1; transform: none; transition: none; }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn--primary {
  background: var(--color-accent-gradient);
  color: #08090B;
}
.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}
.btn--primary:hover { box-shadow: 0 10px 30px -5px var(--color-accent-glow); }
.btn--disabled {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border-subtle);
}
.site-header__logos { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-header__logos img { height: 32px; width: auto; }
.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.site-header__wordmark:hover { color: var(--color-link-hover); }
.site-header__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header__nav a { font-size: 0.85rem; color: var(--color-text-secondary); }
.site-header__nav a:hover { color: var(--color-text-primary); }
.site-header__nav a[aria-current="page"] { color: var(--color-link-hover); }

/* --- Footer --- */
.site-footer {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border-subtle);
}

.tag--tentative, .tag--note {
  display: inline-block;
  font-family: var(--font-badge);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-image: url("assets/resources/globev2.png");
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-bg-primary);
  opacity: 0.82;
}
@media (max-width: 640px) {
  .hero { padding-top: 96px; padding-bottom: 72px; }
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-badge);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent-b);
  margin-bottom: 16px;
}
.hero__eyebrow-sprig {
  width: 26px;
  height: 10px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url('assets/decorative/laurel-sprig.svg');
  mask-image: url('assets/decorative/laurel-sprig.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.hero__eyebrow-sprig--right { transform: scaleX(-1); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 20px; }
.hero__subtitle {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero__date { color: var(--color-text-secondary); margin-bottom: 12px; }
.hero__qualifier {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-accent-b);
  background: var(--color-gold-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 0;
}
.hero__stats li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-badge);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-accent);
  background: var(--color-gold-surface);
  border-radius: var(--radius-full);
  padding: 8px 16px;
}
.hero__stats li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold-primary);
  flex-shrink: 0;
}
.btn--ghost {
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
}
.btn--ghost:hover { border-color: var(--color-border-accent); }

/* --- Emphasis accent --- */
.highlight { color: var(--color-accent-b); font-weight: 600; }

/* --- About / Format shared prose styles --- */
.about p, .format p { color: var(--color-text-secondary); margin-bottom: 20px; }

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}
.about__pullquote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--color-text-primary);
  border-top: 1px solid var(--color-border-accent);
  padding-top: 24px;
}
.about__pullquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.format h3 { font-size: 1.3rem; margin: 40px 0 16px; }
.format__theories { list-style: none; display: grid; gap: 16px; margin-bottom: 20px; }
.format__theories li {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}
.format__theories li strong {
  color: var(--color-accent-a);
  font-family: var(--font-subhead);
  font-size: 1.05rem;
}
.format__theories li a { text-decoration: underline; }
.format__theories li a:hover strong { color: var(--color-link-hover); }
.format__theories li:hover {
  background: var(--color-bg-card-hover);
  box-shadow: 0 10px 30px -12px var(--color-accent-glow);
}
.format__video-slot {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.format__video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.format__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}
@media (max-width: 860px) { .format__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .format__steps { grid-template-columns: 1fr; } }
.format__step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px 24px;
  transition: var(--transition-fast);
}
@media (min-width: 861px) {
  .format__step:not(:first-child)::before {
    content: '→';
    position: absolute;
    top: 37px;
    left: -8px;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--color-text-muted);
    z-index: 1;
    pointer-events: none;
  }
}
.format__step:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  box-shadow: 0 14px 32px -14px var(--color-accent-glow);
  transform: translateY(-4px);
}
.format__step-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.format__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--color-accent-b);
  transition: var(--transition-fast);
}
.format__step-icon svg { width: 100%; height: 100%; }
.format__step:hover .format__step-icon { transform: rotate(-6deg) scale(1.1); color: var(--color-gold-hover); }
.format__step-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-accent-a);
}
.format__step-title {
  font-family: var(--font-subhead);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0;
}
.format__step-title + p { margin-top: 14px; }
.format__step-time {
  display: block;
  width: fit-content;
  margin: 8px 0 14px;
  font-family: var(--font-badge);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}
.format__step p { font-size: 0.92rem; margin-bottom: 0; }

.format__callout {
  border: 1px solid var(--color-border-accent);
  background: var(--color-accent-glow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
}
.format__callout strong { font-style: normal; }

.judges p { color: var(--color-text-secondary); margin-bottom: 24px; }
.judges p a { color: var(--color-link); text-decoration: underline; }
.judges p a:hover { color: var(--color-text-primary); }
.judges__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .judges__top { grid-template-columns: 1fr; gap: 24px; }
}
.judges__bios-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .judges__bios-row { grid-template-columns: 1fr; }
}
.judges__bio {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.judges__bio h3 { font-size: 1.05rem; margin-bottom: 4px; }
.judges__bio-role {
  display: block;
  font-family: var(--font-badge);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-b);
  margin-bottom: 12px;
}
.judges__bio p { font-size: 0.9rem; margin-bottom: 0; }
.judges .judges__bio-note { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0; }
.judges__criteria {
  background: linear-gradient(160deg, var(--color-gold-surface), rgba(212, 175, 55, 0.02));
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.judges__criteria h3 { font-size: 0.95rem; margin-bottom: 14px; color: var(--color-accent-a); }
.judges__criteria ul { list-style: none; display: grid; gap: 11px; color: var(--color-text-secondary); font-size: 0.85rem; }
.judges__criteria li { display: flex; align-items: baseline; gap: 6px; }
.judges__criteria li span {
  position: relative;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.judges__criteria li span::after {
  content: '..............................................................................................';
  padding-left: 4px;
  letter-spacing: 2px;
  color: var(--color-border-subtle);
}
.judges__criteria li strong {
  flex-shrink: 0;
  font-family: var(--font-display);
  color: var(--color-text-primary);
}
.judges__criteria-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-accent);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.judges__criteria-total a { color: var(--color-link); text-decoration: underline; }
.judges__criteria-total a:hover { color: var(--color-link-hover); }
.judges__placeholder, .results-placeholder, .gallery-placeholder {
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--color-text-secondary);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img { border-radius: var(--radius-md); object-fit: cover; aspect-ratio: 4 / 3; }

.results-list {
  list-style: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.results-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.results-row:last-child { border-bottom: none; }
.results-row:first-child {
  background: linear-gradient(160deg, var(--color-gold-surface), rgba(212, 175, 55, 0.02));
}
.results-row:nth-child(2) {
  background: linear-gradient(160deg, var(--color-silver-glow), rgba(192, 199, 208, 0.02));
}
.results-row:nth-child(3) {
  background: linear-gradient(160deg, var(--color-bronze-glow), rgba(205, 127, 50, 0.02));
}
.results-row__place {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  min-width: 48px;
}
.results-row:first-child .results-row__place { color: var(--color-accent-b); }
.results-row:nth-child(2) .results-row__place { color: var(--color-silver); }
.results-row:nth-child(3) .results-row__place { color: var(--color-bronze); }
.results-row__team { font-weight: 600; }
.results-row__school { color: var(--color-text-secondary); margin-left: auto; font-size: 0.9rem; }

.eligibility__list {
  list-style: none;
  margin-bottom: 48px;
  color: var(--color-text-secondary);
}
.eligibility__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.eligibility__list li:last-child { border-bottom: none; }
.eligibility__list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--color-link);
  font-weight: 700;
}

.funnel-step { margin-top: 40px; }
.funnel-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.funnel-step p { color: var(--color-text-secondary); margin-bottom: 16px; }
.funnel-step--wide { margin: 56px auto 0; max-width: 760px; text-align: center; }
.funnel-step--wide h3,
.funnel-step--wide > p { text-align: center; }

.funnel-step__embed {
  background: linear-gradient(160deg, var(--color-gold-surface), rgba(212, 175, 55, 0.02));
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}
.funnel-step__embed-chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-border-accent);
  background: rgba(212, 175, 55, 0.05);
}
.funnel-step__embed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-gold-primary);
  box-shadow: 0 0 0 3px var(--color-gold-surface);
}
.funnel-step__embed-label {
  font-family: var(--font-badge);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-secondary);
}
.funnel-step__embed-body { padding: 12px; }
.funnel-step__embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: var(--radius-sm);
  color-scheme: light;
  background: #fff;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
}
.funnel-step__embed--wide iframe { height: 900px; }
.funnel-step__fallback {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}
.funnel-step__fallback a { color: var(--color-link); text-decoration: underline; }
@media (max-width: 520px) {
  .funnel-step__embed iframe { height: 800px; }
}

.funnel-step__register {
  max-width: 460px;
  margin: 36px auto 0;
  padding: 28px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.countdown-label[hidden] { display: none; }
.countdown-label {
  max-width: 460px;
  margin: 32px auto 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.countdown[hidden] { display: none; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 20px;
}
.countdown__unit {
  padding: 10px 4px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}
.countdown__unit dd {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.countdown__unit dt {
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
@media (max-width: 360px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
}

.btn--pending {
  background: #C9A24B;
  color: #1A1405;
  cursor: not-allowed;
}

.course {
  list-style: none;
  position: relative;
  margin: 24px 0 0;
  padding: 0;
  height: 500px;
}
.course::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-primary), rgba(212, 175, 55, 0.35) 40%, rgba(212, 175, 55, 0.35) 85%, var(--color-gold-primary));
}
.course__gap {
  position: absolute;
  left: 54%;
  top: calc(50% - 14px);
  transform: translate(-50%, -100%);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-gold-primary);
  white-space: nowrap;
  animation: gap-slide 6s ease-in-out infinite alternate;
}
@keyframes gap-slide {
  from { left: 24%; }
  to { left: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .course__gap { animation: none; }
}
.stage {
  position: absolute;
  left: var(--pos);
  top: 0;
  height: 100%;
  width: 0;
}
.stage__dot {
  position: absolute;
  left: -9px;
  top: calc(50% - 8px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 2px solid var(--color-gold-primary);
  box-shadow: 0 0 0 5px var(--color-gold-surface);
}
.stage--final .stage__dot {
  background: var(--color-accent-gradient);
  box-shadow: 0 0 0 6px var(--color-gold-surface), 0 0 28px var(--color-gold-glow);
}
.stage::before {
  content: '';
  position: absolute;
  left: -0.5px;
  width: 1px;
  background: var(--color-border-accent);
}
.stage--up::before { bottom: calc(50% + 10px); height: 34px; }
.stage--down::before { top: calc(50% + 10px); height: 34px; }
.stage__card {
  position: absolute;
  width: 300px;
  text-align: left;
}
.stage--up .stage__card { bottom: calc(50% + 44px); }
.stage--down .stage__card { top: calc(50% + 44px); }
.stage--start .stage__card { left: -9px; }
.stage--end .stage__card { right: -9px; }
.stage__date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--font-badge);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.stage__day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-gold-primary);
  text-shadow: 0 0 40px var(--color-gold-glow);
}
.stage--final .stage__day { color: var(--color-gold-hover); }
.timeline .stage__title {
  margin: 0 0 6px;
  font-family: var(--font-subhead);
  font-size: 1.3rem;
  color: var(--color-text-primary);
}
.stage__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.stage--end .stage__card { text-align: right; }
.stage--end .stage__date { justify-content: flex-end; }

@media (max-width: 860px) {
  .course { height: auto; padding-left: 36px; }
  .course::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(var(--color-gold-primary), rgba(212, 175, 55, 0.3) 55%, var(--color-gold-primary)); }
  .stage { position: relative; left: 0; width: auto; height: auto; padding-bottom: 36px; }
  .stage::before { display: none; }
  .stage__dot { left: -36px; top: 18px; }
  .stage__card,
  .stage--up .stage__card, .stage--down .stage__card,
  .stage--start .stage__card, .stage--end .stage__card { position: static; width: auto; text-align: left; }
  .stage--end .stage__date { justify-content: flex-start; }
  .course__gap { display: none; }
}

.timeline h3 { font-size: 1.1rem; margin: 40px 0 12px; }
.schedule-table-note {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.schedule-table-note .tag--note { margin-left: 0; }
.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}
.schedule-table th, .schedule-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}
.schedule-table thead th {
  font-family: var(--font-badge);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
}
.schedule-table tbody td:first-child {
  color: var(--color-text-primary);
  font-weight: 600;
}
.schedule-table tbody td:not(:first-child) {
  font-family: var(--font-display);
  color: var(--color-text-secondary);
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table .tag--note { margin-left: 6px; }

.faq__item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 16px 0;
}
.faq__item summary { cursor: pointer; font-weight: 600; }
.faq__item p { color: var(--color-text-secondary); margin-top: 12px; }

.contact__list { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.contact__list a { color: var(--color-link); }

/* --- Leadership team grid (grade-tiered layout, ported from MPEO) --- */
.leadership-tiered-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1160px;
  margin: 40px auto 0;
}
.leadership-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.leadership-row .leader-card {
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 270px;
}
.leader-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.leader-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.leader-avatar-frame {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 50%;
  border: 2.5px solid var(--color-gold-primary);
  background: radial-gradient(circle, #242932 0%, #15181E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.leader-card:hover .leader-avatar-frame {
  border-color: var(--color-gold-hover);
  box-shadow: var(--shadow-gold);
  transform: scale(1.04);
}
.leader-avatar-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.leader-avatar-ph {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-gold-primary);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.leader-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.leader-role {
  font-family: var(--font-badge);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  margin-bottom: 8px;
}
.leader-grade-badge {
  display: inline-block;
  font-family: var(--font-badge);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.leader-grade-badge.grade-12 {
  background: var(--color-gold-surface);
  border: 1px solid var(--color-border-accent);
  color: #FFE082;
}
.leader-grade-badge.grade-11 {
  background: rgba(192, 199, 208, 0.12);
  border: 1px solid rgba(192, 199, 208, 0.35);
  color: #E2E8F0;
}
.leader-email-link {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  word-break: break-all;
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.leader-email-link:hover {
  color: var(--color-gold-hover);
  background: var(--color-gold-surface);
  border-color: var(--color-gold-primary);
}

/* --- Register call-to-action panel --- */
.enter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 56px auto 0;
  padding: 72px 64px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(212, 175, 55, 0.18), transparent 70%),
    linear-gradient(160deg, #1b1f26, var(--color-bg-primary) 70%);
  box-shadow: var(--shadow-card), inset 0 0 0 6px var(--color-bg-primary), inset 0 0 0 7px rgba(212, 175, 55, 0.22);
}
.enter::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -14%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23D4AF37' stroke-width='1'><circle cx='200' cy='200' r='198'/><ellipse cx='200' cy='200' rx='140' ry='198'/><ellipse cx='200' cy='200' rx='80' ry='198'/><ellipse cx='200' cy='200' rx='28' ry='198'/><ellipse cx='200' cy='200' rx='198' ry='60'/><ellipse cx='200' cy='200' rx='198' ry='130'/></svg>") center / contain no-repeat;
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  pointer-events: none;
}
.enter__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-align: left;
  color: var(--color-text-primary);
}
.enter__lede {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
  color: var(--color-text-secondary);
}
.enter__lede strong { color: var(--color-gold-hover); font-weight: 600; }
.enter__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-accent);
}
.enter__facts dt {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.enter__facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-gold-primary);
}

.enter__path {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.enter__path::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(var(--color-gold-primary), rgba(212, 175, 55, 0.15));
}
.enter__step {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 36px;
  text-align: left;
}
.enter__step:last-child { padding-bottom: 0; }
.enter__num {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-gold-primary);
  border-radius: 50%;
  background: var(--color-bg-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-gold-primary);
}
.enter__step:first-child .enter__num {
  background: var(--color-accent-gradient);
  color: #08090B;
  box-shadow: 0 0 0 6px var(--color-gold-surface), 0 0 32px var(--color-gold-glow);
}
.enter__body h4 {
  margin: 4px 0 6px;
  font-family: var(--font-subhead);
  font-size: 1.35rem;
  color: var(--color-text-primary);
}
.enter__body p {
  margin: 0 0 18px;
  color: var(--color-text-secondary);
}
.enter .btn--primary {
  box-shadow: 0 8px 28px -6px var(--color-gold-glow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.enter .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -6px rgba(212, 175, 55, 0.55); }
.enter .btn:focus-visible { outline: 2px solid var(--color-gold-hover); outline-offset: 3px; }
.enter .btn--pending, .enter .btn--disabled { box-shadow: none; transform: none; }

/* Registration closed: the late-entry email becomes the box's single focal action */
.enter { scroll-margin-top: 96px; }
.enter--closed .enter__step:first-child .enter__body {
  flex: 1;
  padding: 24px 28px 26px;
  margin-top: -6px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md, 14px);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.03) 70%);
}
.enter--closed .enter__step:first-child h4 { margin-top: 0; color: var(--color-gold-hover); }
.enter--closed #registration-cta { display: block; text-align: center; }
.enter__body .enter__address {
  margin: 12px 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
  user-select: all;
  overflow-wrap: anywhere;
}
.enter--closed .enter__step:last-child { opacity: 0.6; }
.enter--closed .enter__step:last-child:hover,
.enter--closed .enter__step:last-child:focus-within { opacity: 1; }
.enter--closed .enter__step:last-child .enter__body h4 { font-size: 1.1rem; }
@media (max-width: 600px) {
  .enter { scroll-margin-top: 160px; }
  .enter--closed .enter__step { gap: 16px; }
  .enter--closed .enter__step:first-child .enter__body { padding: 20px 18px; }
  .enter--closed #registration-cta { padding: 16px 20px; font-size: 1rem; }
}

@media (max-width: 860px) {
  .enter { grid-template-columns: 1fr; gap: 44px; padding: 48px 28px; }
  .enter::before { width: 120%; right: -40%; top: 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .enter .btn--primary { transition: none; }
}
