/* ============================================================
   CII EDUCATION EAST 2026 — visual system (DARK)
   Vibrant / clean, dark-first. Poppins (display) + Roboto (UI/body).
   Palette from the summit logo: indigo, violet, CII red,
   with amber / green / blue accents from the "EAST" wordmark.
   ============================================================ */

:root {
  /* brand accents (brightened for dark surfaces) */
  --indigo-900: #0B0B16;
  --indigo-800: #15153A;
  --indigo-700: #23237A;
  --violet: #8B6DFF;
  --violet-soft: #A78BFF;
  --red: #FF3B52;
  --pink: #FF6B85;
  --amber: #FFC24B;
  --green: #35D08A;
  --blue: #4AA3FF;

  /* dark neutrals */
  --ink: #F4F3FA;      /* headings / strong text */
  --body: #C6C5D6;     /* body copy */
  --muted: #8C8BA2;    /* secondary text */
  --bg: #12100E;       /* base sections — warm charcoal */
  --bg-navy: #0C1B3A;  /* deep blue */
  --bg-alt: #201247;   /* deep violet */
  --bg-plum: #2C0E2E;  /* dark magenta-plum */
  --bg-teal: #06262A;  /* dark teal */
  --bg-green: #0B2A1A; /* dark forest green */
  --bg-rust: #2C1408;  /* dark burnt orange */
  --bg-deep: #08070F;  /* darkest band */
  --surface: #201F32;  /* cards */
  --surface-2: #29283F;/* raised / inputs hover */
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(255, 255, 255, 0.10);

  /* gradients */
  --brand-grad: linear-gradient(120deg, #4B4BE0 0%, #8B6DFF 52%, #FF3B52 100%);
  --brand-grad-soft: linear-gradient(120deg, #6C6CF0 0%, #A78BFF 55%, #FF6B85 100%);
  --hero-grad: radial-gradient(130% 130% at 10% 0%, #262697 0%, #16163F 42%, #0B0B14 100%);

  /* nav bar */
  --nav-grad: linear-gradient(90deg, rgba(28, 14, 46, 0.9), rgba(18, 22, 58, 0.9));
  --nav-grad-scrolled: linear-gradient(90deg, rgba(28, 14, 46, 0.98), rgba(18, 22, 58, 0.98));
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-hover-bg: rgba(255, 255, 255, 0.06);
  --nav-sub-bg: #221238;
  --nav-sub-border: rgba(255, 255, 255, 0.14);

  /* text/chips on the hero + page-hero bands */
  --hero-ink: #fff;
  --hero-sub: rgba(255, 255, 255, 0.78);
  --hero-faint: rgba(255, 255, 255, 0.55);
  --hero-chip-bg: rgba(255, 255, 255, 0.1);
  --hero-chip-border: rgba(255, 255, 255, 0.2);
  --hero-cd-bg: rgba(255, 255, 255, 0.06);
  --hero-cd-border: rgba(255, 255, 255, 0.14);
  --hero-panel-bg: rgba(255, 255, 255, 0.05);
  --hero-panel-border: rgba(255, 255, 255, 0.16);

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 44px 90px -28px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(139, 109, 255, 0.5), 0 20px 45px -18px rgba(139, 109, 255, 0.4);
}

/* ---------------- Light theme (toggled via [data-theme="light"] on <html>) ----------------
   The hero/page-hero artwork (the swirl banner image) and the CTA-banner brand
   gradient stay as fixed art-directed bands in both modes; everything else —
   nav, hero text/chips, sections, cards — swaps here. */
:root[data-theme="light"] {
  --ink: #17162B;
  --body: #4B4A64;
  --muted: #7A7892;

  --bg: #F8F7FC;
  --bg-navy: #EAF1FF;
  --bg-alt: #F4EEFF;
  --bg-plum: #FDEEF8;
  --bg-teal: #EAFBF6;
  --bg-green: #EDFBF1;
  --bg-rust: #FFF3EA;
  --bg-deep: #F0EFF6;
  --surface: #FFFFFF;
  --surface-2: #F3F1FA;
  --line: rgba(23, 22, 43, 0.10);
  --line-strong: rgba(23, 22, 43, 0.16);

  --shadow-sm: 0 2px 12px rgba(23, 22, 43, 0.08);
  --shadow: 0 24px 50px -18px rgba(23, 22, 43, 0.14);
  --shadow-lg: 0 44px 90px -28px rgba(23, 22, 43, 0.16);

  --nav-grad: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(248, 247, 252, 0.94));
  --nav-grad-scrolled: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 252, 0.98));
  --nav-border: rgba(23, 22, 43, 0.10);
  --nav-hover-bg: rgba(23, 22, 43, 0.06);
  --nav-sub-bg: #FFFFFF;
  --nav-sub-border: rgba(23, 22, 43, 0.12);

  --hero-grad: radial-gradient(130% 130% at 10% 0%, #ECE9FF 0%, #F5F3FF 42%, #FFFFFF 100%);
  --hero-ink: #17162B;
  --hero-sub: rgba(23, 22, 43, 0.72);
  --hero-faint: rgba(23, 22, 43, 0.55);
  --hero-chip-bg: rgba(23, 22, 43, 0.06);
  --hero-chip-border: rgba(23, 22, 43, 0.16);
  --hero-cd-bg: rgba(23, 22, 43, 0.05);
  --hero-cd-border: rgba(23, 22, 43, 0.12);
  --hero-panel-bg: rgba(23, 22, 43, 0.04);
  --hero-panel-border: rgba(23, 22, 43, 0.14);
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] .bg-shapes { opacity: 0.5; }
html[data-theme="light"] ::selection { color: var(--ink); }
html[data-theme="light"] .track::after,
html[data-theme="light"] .theme-card::after,
html[data-theme="light"] .duo > article::after,
html[data-theme="light"] .contact-card::after {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(139, 109, 255, 0.16), transparent 60%);
  mix-blend-mode: normal;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
  max-width: 64ch;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* keep short / centred / UI text ragged */
.hero-sub,
.hero-tagline,
.hero-when,
.section-head p,
.cta-banner p,
.counter-label,
.stat-label,
.field-hint,
.form-note,
.form-aside p,
.alert,
.topbar-when,
.masthead-org,
.footer-meta,
.footer-contact p,
.nav-sub a {
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}

::selection { background: rgba(139, 109, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------------- Reveal / section animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.reveal--left  { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--zoom  { transform: scale(0.9); }
.reveal--left.in,
.reveal--right.in,
.reveal--zoom.in { transform: none; }

/* ---------------- Scroll progress bar ---------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1500;
  background: var(--brand-grad);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------------- Back-to-top button ---------------- */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 14px 30px -10px rgba(139, 109, 255, 0.8);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(255, 59, 82, 0.7); }

/* ---------------- Floating hero blobs ---------------- */

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 26px, 0) scale(1.08); }
}

/* ---------------- Ambient background shapes (left / right) ---------------- */

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-shapes span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
}
.bg-shapes .s1 {
  width: min(50vw, 560px);
  height: min(50vw, 560px);
  left: max(-24vw, -300px);
  top: 4vh;
  background: radial-gradient(circle at 42% 42%, rgba(139, 109, 255, 0.55), rgba(139, 109, 255, 0) 70%);
  animation: shapeDrift 22s ease-in-out infinite;
}
.bg-shapes .s2 {
  width: min(54vw, 620px);
  height: min(54vw, 620px);
  right: max(-26vw, -320px);
  bottom: 6vh;
  background: radial-gradient(circle at 58% 52%, rgba(255, 59, 82, 0.45), rgba(255, 59, 82, 0) 70%);
  animation: shapeDrift 28s ease-in-out infinite reverse;
}
.bg-shapes .s3 {
  width: min(40vw, 460px);
  height: min(40vw, 460px);
  right: max(-20vw, -240px);
  top: 34vh;
  background: radial-gradient(circle at 50% 50%, rgba(74, 163, 255, 0.32), rgba(74, 163, 255, 0) 70%);
  animation: shapeDrift 34s ease-in-out infinite;
}

@keyframes shapeDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(14px, 44px, 0) scale(1.12); }
  66%      { transform: translate3d(-10px, -28px, 0) scale(0.94); }
}

/* keep page content above the ambient shapes */
.row,
.hero-bg,
.site-footer { position: relative; z-index: 1; }

/* ================= Liveliness / motion ================= */

/* 1. Ken Burns drift on the hero banner */
.hero--banner .hero-bg img {
  animation: kenBurns 26s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}
@keyframes kenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-1.2%, -1%, 0); }
}

/* 2. Light sheen sweeping across the hero */
.hero-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero-sheen::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 36%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  animation: heroSheen 8.5s ease-in-out infinite;
}
@keyframes heroSheen {
  0%        { left: -60%; }
  55%, 100% { left: 135%; }
}
.hero-banner-inner { position: relative; z-index: 3; }

/* 3. Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -20px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  animation: cueBounce 1.9s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { background: rgba(255, 255, 255, 0.22); }
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* 9. Section heading underline draws in on reveal */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 3px;
  width: 68px;
  border-radius: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section-head.in h2::after { transform: scaleX(1); }

/* 10. Facts marquee band */
.marquee-band {
  padding: 0;
  border: none;
  overflow: hidden;
  display: flex;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
.marquee-track {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 13px 26px 13px 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.marquee-track span.dot {
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.1rem;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

/* ---------------- Photo gallery (auto-scroll strip + lightbox) ---------------- */

.gallery-viewport {
  display: flex;
  overflow: hidden;
  margin-top: clamp(24px, 4vw, 40px);
}
.gallery-viewport--hero {
  margin-top: 0;
  padding: 8px 0;
}

/* Static wrapping photo grid (past editions page — under the edition info) */
.pe-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.gallery-track {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
  padding: 4px 8px;
  animation: galleryScroll 110s linear infinite;
}
.gallery-viewport:hover .gallery-track { animation-play-state: paused; }

.gallery-thumb {
  flex: 0 0 auto;
  width: 240px;
  height: 160px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--violet-soft);
}

@keyframes galleryScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 9, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-figure {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-figure figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 8px 18px;
  border-radius: 999px;
}
.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover { background: var(--brand-grad); border-color: transparent; }
.lightbox-nav.prev { left: clamp(10px, 3vw, 36px); }
.lightbox-nav.next { right: clamp(10px, 3vw, 36px); }

@media (max-width: 640px) {
  .gallery-thumb { width: 180px; height: 120px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ---------------- 10 Tracks — continuous scroll carousel ---------------- */

.tracks10-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  margin-top: clamp(28px, 4vw, 44px);
}
.tracks10-viewport { display: flex; overflow: hidden; flex: 1 1 auto; }
.tracks10-track { flex: 0 0 auto; display: flex; gap: 20px; width: max-content; }

.track10-card {
  flex: 0 0 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.track10-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.track10-card .track10-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.track10-card .track10-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 109, 255, 0.14);
  color: var(--violet-soft);
}
.track10-card .track10-icon svg { width: 24px; height: 24px; }
.track10-card:nth-child(5n+2) .track10-icon { background: rgba(74, 163, 255, 0.14); color: var(--blue); }
.track10-card:nth-child(5n+3) .track10-icon { background: rgba(53, 208, 138, 0.14); color: var(--green); }
.track10-card:nth-child(5n+4) .track10-icon { background: rgba(255, 194, 75, 0.16); color: var(--amber); }
.track10-card:nth-child(5n+5) .track10-icon { background: rgba(255, 59, 82, 0.14); color: var(--red); }

.track10-card h3 { font-size: 1.08rem; margin: 0; }
.track10-card p { color: var(--muted); font-size: 0.93rem; max-width: none; }

.tracks10-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tracks10-arrow svg { width: 18px; height: 18px; }
.tracks10-arrow:hover { background: var(--brand-grad); color: #fff; border-color: transparent; transform: translateY(-2px); }

@media (max-width: 640px) {
  .tracks10-wrap { padding: 0 12px; gap: 8px; }
  .track10-card { flex-basis: 250px; padding: 20px 18px; }
  .tracks10-arrow { width: 38px; height: 38px; }
}

/* 12. Cursor-tracked glow on cards */
.track, .theme-card, .duo > article, .contact-card { position: relative; }
.track::after,
.theme-card::after,
.duo > article::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(139, 109, 255, 0.35), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.track:hover::after,
.theme-card:hover::after,
.duo > article:hover::after,
.contact-card:hover::after { opacity: 1; }

/* 13. Competition logo bob */
.duo-logo { animation: logoBob 3.6s ease-in-out infinite; }
.duo > article:nth-child(2) .duo-logo { animation-delay: -1.8s; }
@keyframes logoBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .bg-shapes span,
  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .hero--banner .hero-bg img,
  .hero-sheen::before,
  .scroll-cue,
  .marquee-track,
  .duo-logo { animation: none; }
  .section-head h2::after { transform: scaleX(1); transition: none; }
  .track::after,
  .theme-card::after,
  .duo > article::after,
  .contact-card::after { display: none; }
}

/* ---------------- Top bar ---------------- */

.topbar {
  background: var(--brand-grad);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-when { font-weight: 500; }
.topbar-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.topbar-count b { font-variant-numeric: tabular-nums; }

/* ---------------- Masthead banner ---------------- */

.masthead {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.masthead-brand { display: inline-flex; }
.masthead-logo {
  height: clamp(58px, 9vw, 92px);
  width: auto;
}
.masthead-org {
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c5c6c;
}
.masthead-org strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin-bottom: 2px;
}

/* ---------------- Header / nav bar ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-grad);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  background: var(--nav-grad-scrolled);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.brand-img {
  height: 60px;
  width: auto;

  padding: 6px 10px;
  border-radius: 10px;
}

/* Logo swap: dark-bg artwork by default, light-bg artwork under the light theme */
.brand-img[data-theme-logo="light"],
.brand-edu img[data-theme-logo="light"] { display: none; }
html[data-theme="light"] .brand-img[data-theme-logo="dark"],
html[data-theme="light"] .brand-edu img[data-theme-logo="dark"] { display: none; }
html[data-theme="light"] .brand-img[data-theme-logo="light"] { display: block; }
html[data-theme="light"] .brand-edu img[data-theme-logo="light"] { display: block; }

/* Summit logo — swaps in on the left, larger, once you scroll past the hero */
.site-header.past-hero .brand {
  opacity: 0;
  visibility: hidden;
}
.brand-edu {
  position: absolute;
  top: 0;
  left: var(--gutter);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.brand-edu img {
  height: clamp(64px, 9vw, 96px);
  width: auto;
  background: var(--nav-grad-scrolled);
  padding: 9px 14px;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
}
.site-header.past-hero .brand-edu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 12px);
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--nav-hover-bg); }
.nav-link.active,
.nav-item.is-active > .nav-sub-toggle { color: var(--violet-soft); background: rgba(139, 109, 255, 0.14); }

.nav-sub-toggle svg {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
}

/* dropdown */
.nav-item { position: relative; }
.nav-sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 244px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--nav-sub-bg);
  border: 1px solid var(--nav-sub-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-sub::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-sub a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--body);
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
}
.nav-sub a:hover { color: var(--violet-soft); background: rgba(139, 109, 255, 0.14); }

@media (min-width: 941px) {
  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub,
  .nav-item.open > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item:hover > .nav-sub-toggle { color: var(--ink); background: var(--nav-hover-bg); }
  .nav-item:hover > .nav-sub-toggle svg,
  .nav-item.open > .nav-sub-toggle svg { transform: rotate(180deg); }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--brand-grad);
  background-size: 160% 160%;
  padding: 9px 20px;
  margin-left: 6px;
  box-shadow: 0 12px 26px -10px rgba(139, 109, 255, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
}
.nav-cta:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -10px rgba(255, 59, 82, 0.7);
}
.nav-cta.active { color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
}

/* anchor targets clear the sticky nav */
:target { scroll-margin-top: 96px; }

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
              background-position 0.4s ease, border-color 0.15s ease, color 0.15s ease;
}
/* shine sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  background-size: 180% 180%;
  box-shadow: 0 18px 38px -14px rgba(139, 109, 255, 0.8);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -14px rgba(255, 59, 82, 0.7);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-outline-dark {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline-dark:hover {
  border-color: var(--violet);
  color: var(--violet-soft);
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  background: var(--hero-grad);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
}
.hero::before {
  width: 480px; height: 480px;
  background: rgba(139, 109, 255, 0.55);
  top: -150px; right: -80px;
  animation: floatBlob 11s ease-in-out infinite;
}
.hero::after {
  width: 400px; height: 400px;
  background: rgba(255, 59, 82, 0.4);
  bottom: -170px; left: -110px;
  animation: floatBlob 14s ease-in-out infinite reverse;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(56px, 9vw, 104px);
  align-items: center;
}

/* ---- Hero: full-bleed banner-image variant (home) ---- */
.hero--banner {
  padding: 0;
}
.hero--banner::before,
.hero--banner::after { display: none; }

.hero-bg,
.hero-bg img {
  display: block;
  width: 100%;
  height: auto;
}

/* Banner artwork swap: dark-theme skyline by default, light-theme variant under the light theme */
.hero-bg[data-theme-banner="light"] { display: none; }
html[data-theme="light"] .hero-bg[data-theme-banner="dark"] { display: none; }
html[data-theme="light"] .hero-bg[data-theme-banner="light"] { display: block; }

.hero-banner-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(44px, 7vw, 76px);
}

.hero-tagline {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--hero-ink);
}
.hero-tagline .grad {
  background: linear-gradient(100deg, #FFC24B, #FF6B85 52%, #A78BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Highlighted theme statement — sits below the running marquee */
.tagline-highlight {
  max-width: 68ch;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  
}
.tagline-highlight span {
  color: var(--ink);
  background: linear-gradient(100deg, rgba(255, 194, 75, 0.3), rgba(255, 107, 133, 0.3) 55%, rgba(167, 139, 255, 0.3));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 3px 8px;
  border-radius: 6px;
}

.hero--banner .hero-actions { justify-content: flex-start; margin-top: clamp(20px, 3vw, 28px); }

.hero-count-wrap { justify-self: end; }
.hero-count-label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-faint);
  text-align: center;
}
.hero--banner .countdown { justify-content: flex-end; margin-top: 0; }

@media (max-width: 860px) {
  .hero-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { max-width: 42ch; margin: 0 auto; }
  .hero--banner .hero-actions { justify-content: center; }
  .hero-count-wrap { justify-self: center; }
  .hero--banner .countdown { justify-content: center; }
}

.hero-when {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-ink);
  background: var(--hero-chip-bg);
  border: 1px solid var(--hero-chip-border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #FFC24B, #FF6B85 52%, #A78BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--hero-sub);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* countdown */
.countdown {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-unit {
  min-width: 84px;
  padding: 16px 14px;
  border-radius: var(--r);
  background: var(--hero-cd-bg);
  border: 1px solid var(--hero-cd-border);
  text-align: center;
  backdrop-filter: blur(6px);
}
.cd-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--hero-ink);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-faint);
}
.countdown.done {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--hero-ink);
}

/* glass at-a-glance card */
.hero-panel {
  border-radius: var(--r-lg);
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-faint);
  margin-bottom: 14px;
}
.hero-panel-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hero-chip-border);
  font-size: 0.95rem;
}
.hero-panel-item:first-of-type { border-top: none; }
.hero-panel-item dt { color: var(--hero-faint); }
.hero-panel-item dd { margin: 0; color: var(--hero-ink); text-align: right; font-weight: 500; }

/* ---------------- Section shell ---------------- */

section { padding: clamp(32px, 4.5vw, 60px) 0; }

/* Varied dark section backgrounds so each band reads as its own colour.
   `section.` prefix keeps these ahead of .tracks / .about etc. */
section.section-alt   { background: var(--bg-alt); }
section.section-navy  { background: var(--bg-navy); }
section.section-plum  { background: var(--bg-plum); }
section.section-teal  { background: var(--bg-teal); }
section.section-green { background: var(--bg-green); }
section.section-rust  { background: var(--bg-rust); }
section.section-deep  { background: var(--bg-deep); }
section.section-tint {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(139, 109, 255, 0.22), transparent 60%),
    radial-gradient(120% 120% at 0% 100%, rgba(255, 59, 82, 0.14), transparent 55%),
    var(--bg-plum);
}
.section-alt,
.section-navy,
.section-plum,
.section-teal,
.section-green,
.section-rust,
.section-deep,
.section-tint,
.tracks,
.speakers-preview {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(22px, 3.5vw, 38px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); max-width: 44ch; }

.kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .kicker {
  background: linear-gradient(100deg, #FFC24B, #FF6B85 60%, #A78BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Tracks / core-theme preview ---------------- */

.tracks { background: var(--bg); }

.track-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.track {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.track::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-grad);
}
.track:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), var(--green)); }
.track:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), var(--red)); }
.track:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.track-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--violet-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.track:nth-child(2) .track-index { color: var(--blue); }
.track:nth-child(3) .track-index { color: var(--red); }

.track h3 { font-size: 1.25rem; margin-bottom: 10px; }
.track p { color: var(--muted); font-size: 0.97rem; }

/* ---------------- Speakers-preview wrapper (competitions duo) ---------------- */

.speakers-preview {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(139, 109, 255, 0.22), transparent 60%),
    radial-gradient(120% 120% at 0% 100%, rgba(255, 59, 82, 0.14), transparent 55%),
    var(--bg-plum);
}

/* ---------------- CTA banner ---------------- */

.cta-banner {
  background: var(--brand-grad);
  background-size: 160% 160%;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(40px);
  top: -180px; right: -80px;
}
.cta-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}
.cta-banner-row > *:first-child { flex: 1 1 auto; min-width: 0; }
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.3rem); max-width: none; white-space: nowrap; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); margin-top: 10px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--indigo-800);
  box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.55);
}
.cta-banner .btn-primary:hover { background: #fff; color: var(--red); }
.cta-banner-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 0 0 auto; }
.cta-banner-actions .btn { justify-content: center; text-align: center; }

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero {
  position: relative;
  background: var(--hero-grad);
  color: var(--hero-ink);
  padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  z-index: -1;
}
.page-hero::before {
  width: 440px; height: 440px;
  background: rgba(139, 109, 255, 0.5);
  top: -170px; right: -60px;
  animation: floatBlob 12s ease-in-out infinite;
}
.page-hero::after {
  width: 320px; height: 320px;
  background: rgba(255, 59, 82, 0.28);
  bottom: -150px; left: -80px;
  animation: floatBlob 16s ease-in-out infinite reverse;
}
.page-hero h1 { color: var(--hero-ink); font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: none; }
.page-hero p { margin-top: 18px; color: var(--hero-sub); max-width: none; font-size: 1.05rem; }

/* ---------------- About / stats ---------------- */

.about-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
}
.about-row h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.prose { max-width: 64ch; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 60ch; }

.stat-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-list.four { grid-template-columns: repeat(4, 1fr); }
.stat-list > div {
  padding: 22px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-list > div:nth-child(2) .stat-num { background: linear-gradient(120deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-list > div:nth-child(3) .stat-num { background: linear-gradient(120deg, var(--amber), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-list > div:nth-child(4) .stat-num { background: linear-gradient(120deg, var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }

/* ---------------- Counter band (full-width animated stats) ---------------- */

.counter-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
}

.counters { padding: clamp(28px, 4vw, 48px) 0; border: none; }

.counter {
  padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 30px);
  border: none;
}
.counter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter:nth-child(2) .counter-num { background: linear-gradient(120deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter:nth-child(3) .counter-num { background: linear-gradient(120deg, var(--amber), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter:nth-child(4) .counter-num { background: linear-gradient(120deg, var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter-label {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 26ch;
}

@media (max-width: 860px) {
  .counter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .counter-grid { grid-template-columns: 1fr; }
}

/* ---------------- Core themes grid ---------------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.theme-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.theme-card .track-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(139, 109, 255, 0.16);
  color: var(--violet-soft);
  margin-bottom: 16px;
}
.theme-card:nth-child(2) .track-index { background: rgba(74, 163, 255, 0.16); color: var(--blue); }
.theme-card:nth-child(3) .track-index { background: rgba(53, 208, 138, 0.16); color: var(--green); }
.theme-card:nth-child(4) .track-index { background: rgba(255, 194, 75, 0.16); color: var(--amber); }
.theme-card:nth-child(5) .track-index { background: rgba(255, 59, 82, 0.16); color: var(--red); }
.theme-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.theme-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------------- Checklist ---------------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--body);
  max-width: 64ch;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--brand-grad);
  box-shadow: 0 6px 16px -6px rgba(139, 109, 255, 0.7);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- Pills ---------------- */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.pill-list span {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pill-list span:hover { transform: translateY(-2px); }
.pill-list span:nth-child(5n+1) { border-color: rgba(139, 109, 255, 0.5); }
.pill-list span:nth-child(5n+2) { border-color: rgba(74, 163, 255, 0.5); }
.pill-list span:nth-child(5n+3) { border-color: rgba(53, 208, 138, 0.5); }
.pill-list span:nth-child(5n+4) { border-color: rgba(255, 194, 75, 0.55); }
.pill-list span:nth-child(5n+5) { border-color: rgba(255, 59, 82, 0.5); }

/* ---------------- Duo (competitions) ---------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.duo > article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.duo > article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.duo > article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--brand-grad);
}
.duo > article:nth-child(2)::before { background: linear-gradient(90deg, var(--red), var(--pink)); }
.duo h3 { font-size: 1.4rem; margin-bottom: 6px; }
.duo .track-index { margin-bottom: 16px; }
.duo p { color: var(--muted); font-size: 0.97rem; }
.duo p + p { margin-top: 12px; }

/* logo chip — keeps colour art legible on dark surfaces */
.duo-logo {
  height: clamp(72px, 10vw, 104px);
  width: auto;
  background: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  margin-bottom: 20px;
}

/* ---------------- Fact list ---------------- */

.venue-facts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.venue-fact {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.venue-fact:first-child { border-top: none; }
.venue-fact dt { color: var(--muted); width: 130px; flex-shrink: 0; }
.venue-fact dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------------- Contact cards ---------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.contact-card h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-soft);
  margin-bottom: 12px;
}
.contact-card p { font-size: 0.95rem; }
.contact-card p + p { margin-top: 4px; }
.contact-card .nm { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.contact-card a { color: var(--pink); font-weight: 500; word-break: break-word; }

/* Prose that fills the full width of its row (no reading-width cap) */
.prose-full { max-width: none; }
.prose-full p { max-width: none; }
.prose-full p + p { margin-top: 16px; }

/* ---------------- Why Education East Matters ---------------- */

.why-matters-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.why-matters-head { position: sticky; top: 100px; }
.why-matters-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-top: 6px;
}

.why-matters-prose p {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body);
  max-width: none;
}
.why-matters-prose p + p { margin-top: 18px; }
.why-matters-prose strong { color: var(--ink); font-weight: 700; }

/* Editorial pull-quote */
.why-matters-quote {
  position: relative;
  margin: clamp(48px, 7vw, 76px) auto 0;
  max-width: 76ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-strong);
}
.why-matters-quote .qmark {
  position: absolute;
  top: -0.36em;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}

.why-matters-verbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 0;
}
.why-matters-verbs li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
  border-left: 1px solid var(--line-strong);
  transition: color 0.2s ease;
}
.why-matters-verbs li:first-child { border-left: none; padding-left: 0; }
.why-matters-verbs li:hover { color: var(--violet-soft); }

.why-matters-cta {
  margin: clamp(44px, 6vw, 64px) auto 0;
  max-width: 80ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.why-matters-cta p { text-align: center; color: var(--body); font-size: 1.1rem; line-height: 1.65; max-width: none; }

@media (max-width: 860px) {
  .why-matters-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-matters-head { position: static; }
  .why-matters-prose p { text-align: left; }
}
@media (max-width: 640px) {
  .why-matters-verbs { gap: 6px 0; }
  .why-matters-verbs li { font-size: 0.78rem; padding: 0 10px; }
}

/* ---------------- CII contact card (About CII page) ---------------- */

.cii-card {
  max-width: 560px;
  margin: clamp(36px, 5vw, 60px) auto 0;
  text-align: center;
}
.cii-card p { max-width: none; text-align: center; }
.cii-org { font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.cii-meta { margin-top: 14px; color: var(--body); line-height: 1.7; }
.cii-meta a { color: var(--pink); }
.cii-follow {
  margin-top: 22px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cii-social {
  list-style: none;
  margin: 14px 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.cii-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--pink);
  transition: color 0.15s ease;
}
.cii-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.cii-social a:hover { color: var(--violet-soft); }
.cii-helpline {
  margin: 6px auto 0;
  max-width: 460px;
  background: #022162;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 20px;
  border-radius: var(--r-sm);
}

/* ---------------- Forms ---------------- */

.form-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
}
.form-aside h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-aside p { margin-top: 16px; color: var(--muted); }
.form-aside .venue-facts { margin-top: 28px; }

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--surface); color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(139, 109, 255, 0.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-submit { width: 100%; margin-top: 6px; justify-content: center; }
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.alert {
  padding: 15px 18px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.alert-success { background: rgba(53, 208, 138, 0.14); color: #7CE9B8; border: 1px solid rgba(53, 208, 138, 0.4); }
.alert-error { background: rgba(255, 59, 82, 0.14); color: #FF9AA8; border: 1px solid rgba(255, 59, 82, 0.4); }

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

.site-footer {
  background: #07070E;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-logo { height: 40px; width: auto; opacity: 0.95; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.footer-meta { font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); margin-top: 4px; }

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.68); }
.footer-nav a:hover { color: #fff; }

.footer-contact { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); text-align: right; }
.footer-contact p + p { margin-top: 4px; }

.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.visitor-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.visitor-count svg { width: 15px; height: 15px; opacity: 0.8; }
.visitor-count span {
  font-weight: 700;
  background: var(--brand-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

@media (max-width: 940px) {
  .header-row { min-height: 58px; }
  .primary-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1C0E2E, #12163A);
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
    gap: 2px;
    display: none;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; }
  .nav-item { width: 100%; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .nav-item.open > .nav-sub { display: flex; }
  .nav-item.open > .nav-sub-toggle { color: var(--violet-soft); }
  .nav-item.open > .nav-sub-toggle svg { transform: rotate(180deg); }
  .nav-sub a { white-space: normal; }
  .nav-cta { text-align: center; justify-content: center; margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .brand-edu { display: none; }
  .site-header.past-hero .brand { opacity: 1; visibility: visible; }

  .masthead-row { padding: 12px 0; }

  .hero-row { grid-template-columns: 1fr; }
  .about-row { grid-template-columns: 1fr; }
  .track-list { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat-list, .stat-list.four { grid-template-columns: 1fr 1fr; }
  .cta-banner-row { flex-direction: column; align-items: flex-start; }
  .cta-banner h2 { white-space: normal; }
  .cta-banner-actions { align-items: stretch; width: 100%; }
  .footer-row { gap: 28px; }
  .footer-contact { text-align: left; }
}

@media (max-width: 520px) {
  .topbar-row { font-size: 0.78rem; }
  .topbar-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cd-unit { min-width: 68px; padding: 14px 10px; }
  .cd-num { font-size: 1.6rem; }
  .stat-list, .stat-list.four { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- About page: intro lead + info grid (Why Attend / Floor) ---------------- */
.about-lead { max-width: 70ch; font-size: 1.08rem; line-height: 1.75; color: var(--body); margin-top: 14px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.info-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 109, 255, 0.14);
  color: var(--violet-soft);
}
.info-icon svg { width: 24px; height: 24px; }
.info-card:nth-child(6n+2) .info-icon { background: rgba(74, 163, 255, 0.14); color: var(--blue); }
.info-card:nth-child(6n+3) .info-icon { background: rgba(53, 208, 138, 0.14); color: var(--green); }
.info-card:nth-child(6n+4) .info-icon { background: rgba(255, 194, 75, 0.16); color: var(--amber); }
.info-card:nth-child(6n+5) .info-icon { background: rgba(255, 59, 82, 0.14); color: var(--red); }
.info-card:nth-child(6n+6) .info-icon { background: rgba(139, 109, 255, 0.14); color: var(--violet-soft); }
.info-card h3 { font-size: 1.08rem; margin: 0; }
.info-card p { color: var(--muted); font-size: 0.93rem; max-width: none; margin: 0; }

/* Closing pull-quote used under Why Attend */
.about-quote {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 62ch;
  text-align: center;
}
.about-quote p.kicker { justify-content: center; }
.about-quote h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 10px; }
.about-quote p { color: var(--muted); font-size: 1.02rem; max-width: none; }

/* ---------------- Who Will Be at Education East — continuous R-to-L marquee of cards ---------------- */
.who-viewport {
  display: flex;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
}
.who-track {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  padding: 4px 8px;
  width: max-content;
  animation: galleryScroll 48s linear infinite;
}
.who-viewport:hover .who-track { animation-play-state: paused; }

.who-card {
  flex: 0 0 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.who-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.who-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 109, 255, 0.14);
  color: var(--violet-soft);
}
.who-icon svg { width: 24px; height: 24px; }
.who-card:nth-child(7n+2) .who-icon { background: rgba(74, 163, 255, 0.14); color: var(--blue); }
.who-card:nth-child(7n+3) .who-icon { background: rgba(53, 208, 138, 0.14); color: var(--green); }
.who-card:nth-child(7n+4) .who-icon { background: rgba(255, 194, 75, 0.16); color: var(--amber); }
.who-card:nth-child(7n+5) .who-icon { background: rgba(255, 59, 82, 0.14); color: var(--red); }
.who-card:nth-child(7n+6) .who-icon { background: rgba(139, 109, 255, 0.14); color: var(--violet-soft); }
.who-card:nth-child(7n+7) .who-icon { background: rgba(74, 163, 255, 0.14); color: var(--blue); }

.who-card h3 {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.3;
}
.who-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.who-card li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
}
.who-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
}

@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .who-card { flex-basis: 240px; padding: 22px 20px; }
}

/* ---------------- Theme switch (light / dark) — fixed control, right edge ---------------- */
.theme-switch {
  position: fixed;
  top: 50%;
  right: clamp(16px, 3vw, 32px);
  transform: translateY(-50%);
  z-index: 1450;
}
.theme-switch-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.theme-switch-toggle svg { width: 22px; height: 22px; }
.theme-switch-toggle:hover,
.theme-switch.open .theme-switch-toggle {
  transform: scale(1.06);
  box-shadow: var(--shadow);
  border-color: var(--violet-soft);
  color: var(--violet-soft);
}

.theme-switch-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(8px);
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.theme-switch:hover .theme-switch-panel,
.theme-switch:focus-within .theme-switch-panel,
.theme-switch.open .theme-switch-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.theme-switch-label {
  margin: 0 0 8px;
  padding: 0 6px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.theme-switch-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-switch-option + .theme-switch-option { margin-top: 2px; }
.theme-switch-option svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-switch-option:hover { background: rgba(139, 109, 255, 0.12); color: var(--ink); }
.theme-switch-option.is-active { background: var(--brand-grad); color: #fff; }

@media (max-width: 640px) {
  .theme-switch { top: auto; bottom: 84px; right: 12px; transform: none; }
  .theme-switch-panel {
    top: auto;
    bottom: 0;
    right: calc(100% + 10px);
    transform: translateX(8px);
  }
  .theme-switch:hover .theme-switch-panel,
  .theme-switch:focus-within .theme-switch-panel,
  .theme-switch.open .theme-switch-panel { transform: translateX(0); }
}
