/* ============================================================
   IEEE Student Branch · VIT Bhopal — "Signal"
   Dark-first cinematic design system with light theme.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;

  --bg: #04060e;
  --bg-2: #070c1a;
  --text: #e9eff9;
  --muted: #96a3bb;
  --line: rgba(125, 211, 252, 0.15);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --glass: rgba(6, 10, 24, 0.55);
  --accent: #22d3ee;
  --accent-2: #17c3c9;
  --accent-3: #0d97a6;
  --grad: linear-gradient(100deg, #2fe6bf 0%, #22d3ee 52%, #14a5c9 100%);
  --glow: 0 0 42px rgba(34, 211, 238, 0.32);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="light"] {
  --bg: #f2f6fc;
  --bg-2: #e8eefb;
  --text: #0a1428;
  --muted: #46587a;
  --line: rgba(8, 100, 130, 0.16);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.95);
  --glass: rgba(244, 248, 255, 0.72);
  --accent: #0891b2;
  --accent-2: #0d9488;
  --accent-3: #0e7490;
  --grad: linear-gradient(100deg, #0d9488 0%, #0891b2 55%, #036b95 100%);
  --glow: 0 0 42px rgba(8, 145, 178, 0.20);
  --shadow: 0 20px 50px rgba(23, 48, 96, 0.14);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
/* nothing may widen the page — decorative layers that poke past the edge
   would otherwise inflate the layout viewport on phones ("zoomed-out" bug) */
html, body { overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }
:root[data-theme="light"] ::selection { background: rgba(8, 145, 178, 0.28); color: #0a1428; }

h1, h2 { text-wrap: balance; }
.lead, .hero__sub, .about__copy p { text-wrap: pretty; }

/* keyboard focus — same glow language as hover */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* themed scrollbar */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px; border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 55%, transparent); }

/* photos are content, not draggable chrome */
.g-item img, .kt img, .event-card__media img, .mentor__photo img { -webkit-user-drag: none; user-select: none; }

/* grid children must be allowed to shrink — a rigid child would widen the page on phones */
.about__grid > *, .join__panel > *, .footer__grid > * { min-width: 0; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }

.mono { font-family: var(--font-m); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background layers ---------- */
#bg3d {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
body::before {
  /* deep vignette + aurora wash over the particles */
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(45, 212, 191, 0.15), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 110%, rgba(20, 200, 214, 0.12), transparent 60%),
    radial-gradient(ellipse 130% 90% at 50% 50%, transparent 55%, rgba(2, 4, 10, 0.55) 100%);
  transition: opacity 0.5s;
}
:root[data-theme="light"] body::before {
  /* airy daylight wash — pale sky + mint, no heavy pigment */
  background:
    radial-gradient(ellipse 75% 55% at 50% -12%, rgba(125, 211, 252, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 112%, rgba(94, 234, 212, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 30%);
}
.grain {
  position: fixed; inset: -60px; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: 0.05; mix-blend-mode: multiply; }

#cursor-glow {
  position: fixed; top: -260px; left: -260px; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.075) 0%, transparent 60%);
  border-radius: 50%;
}
:root[data-theme="light"] #cursor-glow { background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 60%); }

main, .nav, footer { position: relative; z-index: 2; }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: #04060e;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  clip-path: inset(0 0 0 0);
}
.preloader__emblem { width: 92px; height: 92px; }
.preloader__emblem .draw {
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1.5s var(--ease) forwards;
}
.preloader__emblem .draw2 {
  stroke-dasharray: 180; stroke-dashoffset: 180;
  animation: draw 1.2s 0.35s var(--ease) forwards;
}
.preloader__emblem .fill-in { opacity: 0; animation: fadein 0.5s 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
#preloader .mono { color: #67e8f9; letter-spacing: 0.35em; font-size: 13px; }
#preloader-num { font-family: var(--font-m); font-size: 15px; color: #96a3bb; }
:root[data-theme="light"] #preloader { background: #f2f6fc; }
:root[data-theme="light"] #preloader .draw { stroke: #0891b2; }
:root[data-theme="light"] #preloader .draw2 { stroke: #0d9488; }
:root[data-theme="light"] #preloader .fill-in { fill: #0a1428; }
:root[data-theme="light"] #preloader .mono { color: #0e7490; }
:root[data-theme="light"] #preloader-num { color: #46587a; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: var(--glass);
  -webkit-backdrop-filter: blur(11px) saturate(1.3);
  backdrop-filter: blur(11px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo svg { height: 40px; width: auto; display: block; color: var(--text); transition: color 0.35s var(--ease), transform 0.6s var(--ease), filter 0.35s; }
.nav__logo:hover svg { color: var(--accent); transform: rotate(-8deg) scale(1.05); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)); }
.nav__logo-text b { transition: color 0.3s; }
.nav__logo:hover .nav__logo-text b { color: var(--accent); }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.nav__logo-text b { font-family: var(--font-d); font-size: 15px; letter-spacing: 0.02em; }
.nav__logo-text span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.nav__links a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  position: relative; padding: 6px 0; letter-spacing: 0.01em;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.theme-btn:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-1px); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-d); font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em;
  /* transform is script-driven (magnetic pull) — transitioning it would lag the pointer.
     No persistent will-change: a standing compositor layer per button is memory the
     magnetic pull doesn't need — GSAP promotes the element only while it's animating. */
  transition: box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--primary { background: var(--grad); color: #04201d; box-shadow: 0 10px 32px rgba(20, 190, 185, 0.32); font-weight: 700; }
:root[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary:hover { box-shadow: 0 14px 44px rgba(34, 211, 238, 0.45); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: var(--glow); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

#burger { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 100px clamp(26px, 8vw, 60px) 60px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a.mm-link {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(34px, 9vw, 52px); letter-spacing: -0.02em; line-height: 1.25;
  display: flex; align-items: baseline; gap: 16px;
}
.mobile-menu a.mm-link .idx { font-family: var(--font-m); font-size: 13px; color: var(--accent); }
.mobile-menu__foot { margin-top: 34px; display: flex; gap: 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ---------- layout helpers ---------- */
.wrap { width: min(1200px, calc(100% - clamp(36px, 8vw, 96px))); margin: 0 auto; }
section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow {
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.sec-head h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 18ch; }
.sec-head p.lead { margin-top: 18px; color: var(--muted); max-width: 60ch; font-size: clamp(15px, 1.6vw, 17px); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 30px);
  padding-bottom: 40px;
}
.hero .wrap::before {
  /* soft scrim so copy never fights the particle field behind it */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -12% -20% -16% -22%;
  background:
    radial-gradient(ellipse 50% 44% at 32% 46%, color-mix(in srgb, var(--bg) 86%, transparent), transparent 68%),
    radial-gradient(ellipse 76% 68% at 36% 50%, color-mix(in srgb, var(--bg) 52%, transparent), transparent 76%);
}
.hero__badge {
  font-family: var(--font-m); font-size: clamp(10.5px, 1.4vw, 12.5px); letter-spacing: 0.28em;
  color: var(--muted); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.hero__badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero__title {
  font-size: clamp(2.9rem, 9.2vw, 7.2rem);
  letter-spacing: -0.035em; line-height: 0.98;
  max-width: 12ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { font-style: normal; }
.hero__type {
  margin-top: 26px; font-family: var(--font-m); font-size: clamp(14px, 2vw, 17px); color: var(--accent);
}
.hero__type .caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__sub {
  margin-top: 14px; max-width: 56ch; font-size: clamp(14.5px, 1.7vw, 16.5px);
  /* a notch brighter than muted — this line sits directly over the particle field */
  color: color-mix(in srgb, var(--text) 24%, var(--muted));
}
.hero__cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  margin-top: clamp(40px, 6vh, 70px);
  display: flex; gap: clamp(22px, 4.5vw, 64px); flex-wrap: wrap;
}
.hero__stats .stat b {
  display: block; font-family: var(--font-d); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats .stat span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll .wheel {
  width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px; position: relative;
}
.hero__scroll .wheel::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  background: var(--surface);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__inner { display: inline-flex; gap: 48px; padding-right: 48px; animation: marq 26s linear infinite; will-change: transform; }
.marquee:hover .marquee__inner { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-d); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 48px;
}
.marquee span i { color: var(--accent); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__copy p { color: var(--muted); margin-bottom: 18px; font-size: clamp(14.5px, 1.6vw, 16.5px); }
.about__copy p b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.04em;
  padding: 9px 16px 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); flex: none;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.chip:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-2px); }

.about__media { position: relative; display: block; }
.about__media::before {
  /* soft halo so the diamond floats off the page */
  content: ""; position: absolute; inset: 2%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 62%);
  pointer-events: none;
}
:root[data-theme="light"] .about__media::before { background: radial-gradient(circle, rgba(8, 145, 178, 0.13), transparent 62%); }
.about__media .collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: clamp(6px, 0.9vw, 10px);
  aspect-ratio: 1;
}
/* the kite of moments — 13 cells pixel out the IEEE diamond, the emblem at its heart.
   nth-child order matches the DOM's centre-out sequence */
.collage .kt:nth-child(1)  { grid-area: 3 / 3; }
.collage .kt:nth-child(2)  { grid-area: 3 / 2; }
.collage .kt:nth-child(3)  { grid-area: 3 / 4; }
.collage .kt:nth-child(4)  { grid-area: 2 / 3; }
.collage .kt:nth-child(5)  { grid-area: 4 / 3; }
.collage .kt:nth-child(6)  { grid-area: 2 / 2; }
.collage .kt:nth-child(7)  { grid-area: 2 / 4; }
.collage .kt:nth-child(8)  { grid-area: 4 / 2; }
.collage .kt:nth-child(9)  { grid-area: 4 / 4; }
.collage .kt:nth-child(10) { grid-area: 3 / 1; }
.collage .kt:nth-child(11) { grid-area: 3 / 5; }
.collage .kt:nth-child(12) { grid-area: 1 / 3; }
.collage .kt:nth-child(13) { grid-area: 5 / 3; }
.kt {
  position: relative; overflow: hidden;
  border-radius: clamp(10px, 1.4vw, 15px);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.kt img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.55) brightness(0.85);
  transition: filter 0.45s, transform 0.6s var(--ease);
}
.kt::after {
  /* unifying teal veil — one artwork, not thirteen thumbnails */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(23, 190, 205, 0.16), rgba(10, 140, 150, 0.12));
  transition: opacity 0.45s;
}
.kt:hover { border-color: rgba(34, 211, 238, 0.55); box-shadow: var(--glow); z-index: 2; }
.kt:hover img { filter: none; transform: scale(1.09); }
.kt:hover::after { opacity: 0; }
.kt--core {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(120% 120% at 50% 30%, rgba(34, 211, 238, 0.16), transparent 65%), var(--surface);
}
.kt--core::after { display: none; }
.kt--core svg {
  width: 44%; height: auto; color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
  animation: corebeat 4.5s ease-in-out infinite;
}
.kt--core .mono { font-size: clamp(7.5px, 1vw, 10px); letter-spacing: 0.14em; color: var(--muted); }
@keyframes corebeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (hover: none) {
  /* no hover to lift the veil on touch — keep the moments vivid, tint gentle */
  .kt img { filter: saturate(0.85) brightness(0.95); }
  .kt::after { opacity: 0.5; }
}

.counters {
  margin-top: clamp(56px, 8vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.counter {
  padding: clamp(20px, 3vw, 30px); border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.counter:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--glow); }
.counter b { font-family: var(--font-d); font-size: clamp(1.7rem, 3.6vw, 2.6rem); display: block; transform-origin: left center; transition: transform 0.4s var(--ease); }
.counter:hover b { transform: scale(1.07); }
.counter span { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- mentors ---------- */
.mentors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: clamp(20px, 3.5vw, 36px); justify-content: center; }
.mentor {
  position: relative; text-align: center; padding: clamp(30px, 4vw, 44px) clamp(22px, 3vw, 36px);
  border-radius: 26px; border: 1px solid var(--line); background: var(--surface);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.mentor::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 40%), rgba(34, 211, 238, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.mentor:hover::before { opacity: 1; }
.mentor:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--glow); border-color: rgba(34, 211, 238, 0.45); }
.mentor__photo { width: clamp(130px, 16vw, 168px); height: clamp(130px, 16vw, 168px); margin: 0 auto 22px; position: relative; }
.mentor__photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--line);
  position: relative; z-index: 1;
  background: var(--bg-2);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.mentor:hover .mentor__photo img {
  transform: scale(1.05); border-color: var(--accent);
}
.mentor__photo::before, .mentor__photo::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px dashed rgba(34, 211, 238, 0.45);
  animation: orbit 14s linear infinite;
}
.mentor__photo::after { inset: -20px; border-color: rgba(20, 200, 210, 0.3); animation-duration: 26s; animation-direction: reverse; border-style: dotted; }
:root[data-theme="light"] .mentor__photo::before { border-color: rgba(8, 145, 178, 0.45); }
:root[data-theme="light"] .mentor__photo::after { border-color: rgba(13, 148, 136, 0.32); }
@keyframes orbit { to { transform: rotate(360deg); } }
.mentor h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 6px; }
.mentor .role {
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700;
}
.mentor .rank {
  margin-top: 8px; display: inline-block;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text); opacity: 0.7;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.mentor p.note { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- legacy timeline ---------- */
.legacy { position: relative; margin: 0 auto clamp(40px, 6vw, 64px); }
.legacy__rail {
  position: absolute; top: 7px; left: 0; right: 0; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
  /* fade-in at the start — the timeline continues into the past */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}
.legacy__rail i {
  display: block; height: 100%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  transform: scaleX(var(--railp, 0)); transform-origin: left center;
}
.legacy__years {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 0.55fr repeat(4, 1fr); gap: 16px;
}
.legacy__year { position: relative; padding-top: 26px; }
.legacy__dot {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5), inset 0 0 4px rgba(34, 211, 238, 0.6);
}
.legacy__dot--ghost {
  border-style: dashed; border-color: var(--muted);
  box-shadow: none; opacity: 0.55;
}
.legacy__year b {
  display: block; font-family: var(--font-d); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legacy__year--pre b { background: none; color: var(--muted); letter-spacing: 3px; }
.legacy__year--pre .legacy__what { opacity: 0.8; }
.legacy__what { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 24ch; }
@media (max-width: 820px) {
  .legacy { padding-left: 26px; }
  .legacy__rail {
    top: 4px; bottom: 4px; left: 7px; right: auto; width: 2px; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%);
    mask-image: linear-gradient(180deg, transparent, #000 14%);
  }
  .legacy__rail i { width: 100%; height: 100%; transform: scaleY(var(--railp, 0)); transform-origin: center top; }
  .legacy__years { grid-template-columns: 1fr; gap: 22px; }
  .legacy__year { padding-top: 0; padding-left: 2px; }
  .legacy__dot { top: 3px; left: -26px; }
}

/* ---------- events ---------- */
.events__filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 6px auto clamp(28px, 4vw, 44px);
}
.ef-chip {
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.06em;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s, background 0.25s, transform 0.25s;
  display: inline-flex; align-items: center; gap: 7px;
}
.ef-chip span {
  font-size: 10.5px; opacity: 0.65;
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2);
}
.ef-chip:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.5); transform: translateY(-2px); }
.ef-chip.is-active {
  color: #fff; background: var(--grad); border-color: transparent;
  box-shadow: 0 8px 22px rgba(20, 190, 185, 0.32);
}
:root[data-theme="light"] .ef-chip.is-active { color: #fff; }
.events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 28px); }
.event-card.is-hidden { display: none; }
.event-card {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  /* transform belongs to the tilt engine, opacity to the GSAP reveal — a CSS
     transition on either would fight the JS that drives them; paint only here.
     No standing will-change — 10 permanent card layers cost memory on weak GPUs;
     the tilt engine promotes a card only while the pointer is on it. */
  transition: box-shadow 0.35s, border-color 0.35s;
  cursor: pointer;
}
.event-card:hover { box-shadow: var(--shadow), var(--glow); border-color: rgba(34, 211, 238, 0.4); }
.event-card::after {
  /* glare */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 42%);
  opacity: 0; transition: opacity 0.35s;
}
.event-card:hover::after { opacity: 1; }
.event-card__media { aspect-ratio: 4/4.6; overflow: hidden; position: relative; background: var(--bg-2); }
.event-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.7s var(--ease), opacity 0.15s, filter 0.15s;
}
.event-card__media img.is-swapping {
  opacity: 0.5; filter: blur(4px) brightness(1.2);
}
.event-card:hover .event-card__media img { transform: scale(1.06); }
.event-card__media::after {
  /* extra floor shade while the media carousel cycles, so the dots read */
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  z-index: 4; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.event-card[data-cycling="true"] .event-card__media::after { opacity: 1; }

.event-card__dots {
  position: absolute; bottom: 12px; left: 0; width: 100%;
  display: flex; justify-content: center; gap: 5px; z-index: 10;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.event-card[data-cycling="true"] .event-card__dots { opacity: 1; }
.event-card__dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s, transform 0.3s;
}
.event-card__dots span.is-active {
  background: #fff; transform: scale(1.4);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.event-card__media .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(4, 6, 14, 0.62); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.event-card__body { padding: 22px 22px 26px; position: relative; z-index: 2; }
.event-card__body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.event-card__body .meta { font-family: var(--font-m); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.event-card__body p { color: var(--muted); font-size: 14px; }
.event-card__cta {
  margin-top: 16px; font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--accent); padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.25s var(--ease), color 0.25s;
}
.event-card__cta .arr { transition: transform 0.25s var(--ease); }
.event-card:hover .event-card__cta { color: #fff; gap: 10px; }
:root[data-theme="light"] .event-card:hover .event-card__cta { color: var(--accent-3); }
.event-card--teaser { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 34px; min-height: 100%; background: linear-gradient(160deg, var(--surface) 0%, rgba(20, 200, 190, 0.12) 100%); cursor: default; }
.event-card--teaser .big { font-family: var(--font-d); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.event-card--teaser p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }

/* ---------- gallery ---------- */
.gallery { overflow: hidden; }
.gallery .sec-head { text-align: center; }
.gallery .sec-head h2, .gallery .sec-head p.lead { margin-inline: auto; }
.gallery .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.g-row { display: flex; gap: 18px; width: max-content; padding: 9px 0; will-change: transform; }
.g-row--a { animation: rowa 46s linear infinite; }
.g-row--b { animation: rowb 52s linear infinite; }
.gallery:hover .g-row { animation-play-state: paused; }
@keyframes rowa { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rowb { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.g-item {
  height: clamp(180px, 26vw, 300px); aspect-ratio: 16/10.6; flex: none;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  position: relative; cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.g-item:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--shadow); z-index: 2; }
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: attr(data-cap);
  position: absolute; inset: auto 0 0 0; z-index: 2; pointer-events: none;
  padding: 22px 14px 12px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.05em; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 16, 0.82));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.g-item:hover::after { opacity: 1; transform: translateY(0); }
/* the looping duplicates carry no caption, so nothing renders on them */

/* ---------- people / word art ---------- */
.people { text-align: center; }
.people .sec-head h2, .people .sec-head p.lead { margin-inline: auto; }
.people .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.wordart-wrap { position: relative; max-width: 1060px; margin: 0 auto; }
#wordart { width: 100%; height: auto; display: block; overflow: visible; }
#wordart-outline {
  fill: none; stroke: rgba(34, 211, 238, 0.3); stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}
:root[data-theme="light"] #wordart-outline { stroke: rgba(8, 145, 178, 0.4); filter: drop-shadow(0 0 10px rgba(8, 145, 178, 0.22)); }
#wordart text.wa {
  font-family: var(--font-d); font-weight: 700;
  text-anchor: middle; dominant-baseline: middle;
  cursor: default;
  transition: fill 0.3s, filter 0.3s, opacity 0.3s;
}
#wordart text.wa-t0 {
  fill: var(--accent);
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.5));
}
#wordart text.wa-t1 { fill: var(--text); opacity: 0.96; }
#wordart text.wa-t2 { fill: var(--muted); opacity: 0.88; }
#wordart:hover text.wa { opacity: 0.32; }
#wordart text.wa:hover {
  opacity: 1 !important;
  fill: var(--accent);
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.85));
}
:root[data-theme="light"] #wordart text.wa:hover { filter: drop-shadow(0 0 12px rgba(8, 145, 178, 0.55)); }
.people .hint { margin-top: 26px; font-family: var(--font-m); font-size: 12.5px; color: var(--muted); letter-spacing: 0.12em; }
.people .hint .hint--touch { display: none; }
@media (hover: none) {
  .people .hint .hint--hover { display: none; }
  .people .hint .hint--touch { display: inline; }
}

/* ---------- student partners — signal constellation ---------- */
.partners { margin-top: clamp(52px, 9vw, 104px); position: relative; }
.partners__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(14px, 3vw, 30px); }
.partners__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.partners__eyebrow::before, .partners__eyebrow::after { content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.6; }
.partners__title { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
.partners__sub { margin-top: 14px; color: var(--muted); font-size: clamp(14px, 1.6vw, 16.5px); }
.partners__tap { display: none; }
@media (hover: none) { .partners__hover { display: none; } .partners__tap { display: inline; } }

.constellation {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  margin: clamp(6px, 2vw, 20px) auto 0; overflow: visible;
}
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.constellation__lines line {
  stroke: var(--accent); stroke-width: 1;
  opacity: 0.13; transition: opacity 0.4s, stroke-width 0.4s;
}
.constellation__lines line.lit { opacity: 0.62; stroke-width: 1.4; }
:root[data-theme="light"] .constellation__lines line { stroke: var(--accent-3); opacity: 0.18; }

.cnode {
  position: absolute; width: var(--d, 74px); height: var(--d, 74px); margin: 0; z-index: 2;
}
/* the hover-dim needs an opacity transition, but during the entrance the GSAP
   bloom drives opacity — a CSS transition there would smear/lag it. So the
   transition only switches on once the constellation is live (post-bloom). */
.constellation.is-live .cnode { transition: opacity 0.35s var(--ease); }
.cnode__disc {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative;
  border: 1.5px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  background: var(--bg-2); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
  transition: transform 0.42s var(--ease), box-shadow 0.42s, border-color 0.42s;
}
.cnode__disc img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  /* one artwork: a refined monochrome that resolves to full colour on focus */
  filter: grayscale(0.62) contrast(1.05) brightness(0.96);
  transition: filter 0.5s;
}
.cnode__name {
  position: absolute; top: calc(100% + 9px); left: 50%; z-index: 6;
  transform: translate(-50%, 5px); white-space: nowrap;
  font-family: var(--font-d); font-weight: 700; font-size: 12.5px; letter-spacing: 0.01em; color: var(--text);
  /* solid-ish fill instead of backdrop-blur — 28 live blur layers were a needless
     compositor cost, and only one label is ever visible at a time */
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.cnode--hub { z-index: 3; }
.cnode--hub .cnode__disc {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 26%, var(--bg-2)), var(--bg-2) 72%);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}
.cnode--hub svg { width: 56%; height: 56%; color: var(--accent); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); }

/* focus/hover — bloom a face to life, dim the rest */
.constellation:hover .cnode:not(:hover), .constellation:focus-within .cnode:not(:focus-within) { opacity: 0.42; }
.cnode:hover, .cnode:focus-visible { outline: none; z-index: 7; }
.cnode:hover .cnode__disc, .cnode:focus-visible .cnode__disc {
  transform: scale(1.42); border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--glow);
}
.cnode:hover .cnode__disc img, .cnode:focus-visible .cnode__disc img { filter: none; }
.cnode:hover .cnode__name, .cnode:focus-visible .cnode__name { opacity: 1; transform: translate(-50%, 0); }
.cnode--hub:hover .cnode__disc { transform: scale(1.12); }

@media (prefers-reduced-motion: no-preference) {
  .cnode--hub svg { animation: corebeat 4.5s ease-in-out infinite; }
}
/* the roster keeps growing — phones need a taller box so 40+ faces still get
   air between them instead of jamming against the edges */
@media (max-width: 700px) { .constellation { aspect-ratio: 2 / 3; } }

/* live current — a bright charge streams along every wire while on screen */
.constellation__lines line.flow {
  stroke-linecap: round; stroke-dasharray: 2 16; stroke-width: 1.7;
  opacity: 0;
}
.constellation.is-live .constellation__lines line.flow {
  opacity: 0.5; animation: wireflow 1.5s linear infinite;
}
.constellation__lines line.flow.lit { opacity: 0.95; stroke-width: 2.4; }
@keyframes wireflow { to { stroke-dashoffset: -18; } }
:root[data-reduce] .constellation__lines line.flow,
.perf-lite .constellation__lines line.flow { display: none; }

/* nodes glow on their own as the current reaches them */
.cnode::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%);
  opacity: 0; transform: scale(0.6); pointer-events: none;
}
.cnode.surge::before { animation: nodesurge 1s ease-out; }
.cnode.surge .cnode__disc { border-color: var(--accent); }
@keyframes nodesurge {
  0% { opacity: 0; transform: scale(0.55); }
  22% { opacity: 0.9; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.34); }
}

/* the "& many more" node — a signal still waiting for its face */
.cnode--more .cnode__disc {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), var(--bg-2) 74%);
}
.cnode--more .cnode__plus { font-family: var(--font-d); font-weight: 700; font-size: calc(var(--d, 60px) * 0.36); line-height: 0.9; color: var(--accent); }
.cnode--more .cnode__more { font-family: var(--font-m); font-size: calc(var(--d, 60px) * 0.13); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.cnode--more:hover .cnode__disc, .cnode--more:focus-visible .cnode__disc { filter: none; border-color: var(--accent); }

/* ---------- join ---------- */
.join__panel {
  position: relative; overflow: hidden;
  border-radius: 32px; border: 1px solid var(--line);
  padding: clamp(44px, 7vw, 90px) clamp(26px, 6vw, 80px);
  background:
    radial-gradient(900px circle at 12% -20%, rgba(34, 211, 238, 0.16), transparent 50%),
    radial-gradient(900px circle at 95% 130%, rgba(13, 180, 165, 0.16), transparent 50%),
    var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.join__panel h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 16px; }
.join__panel p.lead { color: var(--muted); max-width: 52ch; }
.join__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.join__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.join__list li b { color: var(--text); font-weight: 600; }
.join__list .tick {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--grad); color: white; font-size: 12px; font-weight: 700;
}
.join__cta { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.join__cta .sig { margin-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(46px, 6vw, 80px) 0 34px; background: linear-gradient(180deg, transparent, rgba(5, 8, 18, 0.6)); }
:root[data-theme="light"] footer { background: linear-gradient(180deg, transparent, rgba(222, 240, 246, 0.85)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(30px, 5vw, 60px); margin-bottom: 46px; }
.footer__brand svg { height: 64px; width: auto; color: var(--text); margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 38ch; }
.footer__col h4 { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-family: var(--font-m); font-weight: 700; }
.footer__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 14.5px; transition: color 0.25s, transform 0.25s; }
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }
.footer__bar {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer__bar .mono { font-size: 12px; letter-spacing: 0.1em; }

/* ---------- event modal ---------- */
#event-modal {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(2, 4, 10, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 4vmin;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
#event-modal.open { opacity: 1; pointer-events: auto; }
.event-modal__panel {
  position: relative;
  width: min(1040px, 94vw); max-height: 92vh; overflow: auto;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), var(--glow);
  transform: scale(0.96) translateY(12px); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
#event-modal.open .event-modal__panel { transform: scale(1) translateY(0); opacity: 1; }
.event-modal__close {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-size: 20px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.event-modal__close:hover { transform: rotate(90deg); border-color: #22d3ee; background: rgba(34, 211, 238, 0.15); }
.event-modal__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px;
  padding: 4px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.event-modal__head .meta { display: block; font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 6px; }
.event-modal__title { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.event-modal__count { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; }
.event-modal__stage {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  align-items: center;
}
.event-modal__figure {
  position: relative;
  width: 100%; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 16/10; margin: 0;
}
.event-modal__img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); transition: opacity 0.25s; }
/* held while the next photo is still downloading, so a slow link reads as
   "loading" rather than as the previous photo lingering */
.event-modal__img.is-loading { opacity: 0.35; }
.event-modal__stage.is-waiting::after,
.event-modal__figure:has(.is-loading)::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  animation: emspin 0.8s linear infinite;
}
@keyframes emspin { to { transform: rotate(360deg); } }
.event-modal__kind {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(4, 6, 14, 0.66); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.event-modal__kind.kind-photo { background: rgba(4, 6, 14, 0.66); color: #fde68a; border-color: rgba(250, 204, 21, 0.4); }
.em-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6, 10, 24, 0.7); color: var(--text);
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.em-nav:hover { background: rgba(34, 211, 238, 0.18); border-color: #22d3ee; color: #fff; transform: translateY(-50%) scale(1.08); }
.em-nav--prev { left: 10px; }
.em-nav--next { right: 10px; }
:root[data-theme="light"] .em-nav { background: rgba(255, 255, 255, 0.82); color: var(--text); }
:root[data-theme="light"] .em-nav:hover { background: rgba(8, 145, 178, 0.16); border-color: var(--accent); color: var(--accent-3); }
.event-modal__desc {
  font-size: 14px; color: var(--muted); padding: 14px 8px 4px;
  max-width: 70ch;
}
.event-modal__desc b { color: var(--text); }
.event-modal__thumbs {
  display: flex; gap: 8px; padding: 14px 4px 4px; overflow-x: auto;
  scroll-behavior: smooth;
}
.event-modal__thumbs::-webkit-scrollbar { height: 6px; }
.event-modal__thumbs::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
.em-thumb {
  flex: none;
  width: 84px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
  border: 1.5px solid transparent; cursor: pointer; background: var(--bg-2);
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
/* a quiet shimmer under every thumb, so a slow link reads as "loading" instead
   of as a row of broken tiles — the loaded image simply covers it */
.em-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg,
    var(--bg-2) 0%, color-mix(in srgb, var(--accent) 12%, var(--bg-2)) 50%, var(--bg-2) 100%);
  background-size: 220% 100%;
  animation: thumbwait 1.4s ease-in-out infinite;
}
@keyframes thumbwait { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
/* retire it the moment the image lands — an infinite animation under an opaque
   thumbnail is invisible but still costs a repaint every frame */
.em-thumb.is-loaded::before { animation: none; display: none; }
:root[data-reduce] .em-thumb::before, .perf-lite .em-thumb::before { animation: none; }
.em-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.em-thumb:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.4); }
.em-thumb.is-active { border-color: #22d3ee; box-shadow: var(--glow); }
.em-thumb__mark {
  position: absolute; top: 4px; left: 4px;
  font-family: var(--font-m); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(2, 4, 10, 0.7); color: #a5f3fc;
}
.em-thumb__mark.mark-photo { color: #fde68a; }
:root[data-theme="light"] .em-thumb.is-active { border-color: var(--accent); }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(2, 4, 10, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 4vmin;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox figure { max-width: min(1100px, 94vw); text-align: center; }
#lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 16px; margin: 0 auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.94); transition: transform 0.35s var(--ease);
}
#lightbox.open img { transform: scale(1); }
.lightbox__cap { margin-top: 14px; color: #96a3bb; font-family: var(--font-m); font-size: 13px; }
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 20px;
  display: grid; place-items: center; transition: transform 0.3s, border-color 0.3s;
}
.lightbox__close:hover { transform: rotate(90deg); border-color: #22d3ee; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .events__grid { grid-template-columns: repeat(2, 1fr); }
  .event-card--teaser { grid-column: 1 / -1; min-height: 240px; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links, .nav .btn--join { display: none; }
  #burger {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    position: relative; z-index: 101;
  }
  #burger span, #burger::before, #burger::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text);
    border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; position: absolute;
  }
  #burger::before { transform: translateY(-6px); }
  #burger::after { transform: translateY(6px); }
  #burger.open span { opacity: 0; }
  #burger.open::before { transform: rotate(45deg); }
  #burger.open::after { transform: rotate(-45deg); }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 540px; margin-inline: auto; }
  .mentors__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .events__grid { grid-template-columns: 1fr; }
  .join__panel { grid-template-columns: 1fr; }
  .hero__title { max-width: 100%; }
  .hero__scroll { display: none; }

  .about__media .collage { gap: 7px; }
  .em-nav { width: 38px; height: 38px; font-size: 20px; }
  .em-nav--prev { left: 4px; }
  .em-nav--next { right: 4px; }
}
@media (max-width: 560px) {
  .counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__stats { gap: 20px; }
  .g-item { height: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; }
}
@media (max-width: 420px) {
  .hero__badge { letter-spacing: 0.16em; font-size: 10px; }
}

/* ============================================================
   v2 — cinematic layer
   ============================================================ */

/* ---------- aurora light fields ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  width: 46vmax; height: 46vmax;
  opacity: 0.75;
  will-change: transform;
  transform: translateZ(0);
}
.aurora i:nth-child(1) {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.05) 42%, transparent 68%);
  top: -20%; left: -12%;
  animation: aur1 38s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  background: radial-gradient(circle, rgba(20, 210, 200, 0.13), rgba(20, 210, 200, 0.045) 42%, transparent 68%);
  bottom: -24%; right: -14%;
  animation: aur2 46s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  background: radial-gradient(circle, rgba(14, 165, 200, 0.11), rgba(14, 165, 200, 0.04) 40%, transparent 66%);
  top: 34%; left: 44%; width: 38vmax; height: 38vmax;
  animation: aur3 52s ease-in-out infinite alternate;
}
@keyframes aur1 { to { transform: translateZ(0) translate(24vw, 16vh) scale(1.25); } }
@keyframes aur2 { to { transform: translateZ(0) translate(-20vw, -14vh) scale(0.85); } }
@keyframes aur3 { to { transform: translateZ(0) translate(-16vw, 12vh) scale(1.3); } }
:root[data-theme="light"] .aurora i { opacity: 0.9; }
/* daylight, not pigment: wide pastel washes of sky, mint and powder blue */
:root[data-theme="light"] .aurora i:nth-child(1) { background: radial-gradient(circle, rgba(125, 211, 252, 0.30), rgba(125, 211, 252, 0.10) 38%, transparent 62%); }
:root[data-theme="light"] .aurora i:nth-child(2) { background: radial-gradient(circle, rgba(153, 246, 228, 0.28), rgba(153, 246, 228, 0.09) 38%, transparent 62%); }
:root[data-theme="light"] .aurora i:nth-child(3) { background: radial-gradient(circle, rgba(186, 230, 253, 0.26), rgba(186, 230, 253, 0.08) 36%, transparent 60%); }

/* ---------- custom cursor ---------- */
html.js-cursor body, html.js-cursor a, html.js-cursor button,
html.js-cursor [data-tilt], html.js-cursor .g-item { cursor: none; }
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  border-radius: 50%; opacity: 0; will-change: transform;
}
#cursor-dot {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
#cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(34, 211, 238, 0.6);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), margin 0.28s var(--ease),
              border-color 0.28s, background 0.28s;
}
#cursor-ring.is-active {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
}

/* ---------- scroll progress hairline ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 210; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}

/* ---------- ghost typography ---------- */
.ghost-num, .ghost-text {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-d); font-weight: 700; line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(125, 211, 252, 0.14);
}
:root[data-theme="light"] .ghost-num, :root[data-theme="light"] .ghost-text {
  -webkit-text-stroke: 1.5px rgba(8, 110, 145, 0.14);
}
.ghost-num {
  top: clamp(20px, 4vw, 60px); right: clamp(-10px, 1vw, 40px);
  font-size: clamp(160px, 26vw, 360px);
}
.ghost-text {
  bottom: 9vh; right: -0.5vw;
  font-family: var(--font-m);
  font-size: clamp(70px, 11vw, 170px); letter-spacing: 0.02em;
}
.wrap { position: relative; z-index: 1; }

/* ---------- split heading chars ---------- */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-c { display: inline-block; }

/* ---------- manifesto ---------- */
#manifesto { padding: 0; }
.manifesto__wrap {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.manifesto__text {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(1.75rem, 4.6vw, 3.9rem);
  line-height: 1.28; letter-spacing: -0.02em;
  max-width: 24ch;
}
.manifesto__text .mw { opacity: 0.13; display: inline-block; transition: none; }
.manifesto__text em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.manifesto__wrap .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block; }

/* ---------- gallery skew wrapper ---------- */
.g-skew {
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

/* ---------- richer cards ---------- */
.event-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(4, 6, 14, 0.66) 100%);
}
:root[data-theme="light"] .event-card__media::before {
  background: linear-gradient(180deg, transparent 66%, rgba(240, 245, 252, 0.5) 100%);
}
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn--primary:hover::after { left: 130%; }

/* ---------- nav scrollspy ---------- */
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero gradient shimmer ---------- */
.hero__title em.grad-text, .grad-text {
  background-size: 200% 100%;
  animation: gradshift 7s ease-in-out infinite alternate;
}
@keyframes gradshift { from { background-position: 0% 0; } to { background-position: 100% 0; } }

@media (max-width: 820px) {
  .aurora i { opacity: 0.55; }
  .aurora i:nth-child(3) { display: none; }
  #cursor-dot, #cursor-ring { display: none; }
  .ghost-num { font-size: clamp(120px, 34vw, 220px); opacity: 0.8; }
  .ghost-text { display: none; } /* on phones it just muddies the hero stats */
  .hero .wrap::before { inset: -8% -10%; } /* tighter scrim — never pokes past the viewport */
  .manifesto__text { max-width: 17ch; }

  /* Live backdrop blur is the single biggest cause of scroll jank on mobile
     GPUs — it forces a full-screen re-rasterise every frame. We drop it on
     phones and compensate with more opaque "frosted" panels: visually almost
     identical on a small screen, dramatically smoother. */
  .nav--solid, .marquee, .counter, .mentor, .join__panel, .mobile-menu,
  #lightbox, #event-modal, .event-modal__panel, .event-card__media .tag {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  :root { --surface: rgba(255, 255, 255, 0.07); --glass: rgba(6, 10, 22, 0.92); }
  :root[data-theme="light"] { --surface: rgba(255, 255, 255, 0.9); --glass: rgba(240, 245, 252, 0.94); }
}

/* ---------- no-3d: set when WebGL is software-rendered ----------
   The particle field would be a slideshow there, so the aurora carries the
   atmosphere on its own, slightly boosted. */
html.no-3d .aurora i { opacity: 0.95; }
html.no-3d[data-theme="light"] .aurora i { opacity: 1; }

/* ---------- perf-lite: set by the FPS watchdog on any struggling device ----------
   Strips the most expensive compositor work while keeping the layout intact. */
.perf-lite .grain { display: none; }
.perf-lite .aurora i { animation: none !important; }
.perf-lite #cursor-glow { display: none; }
.perf-lite .nav--solid, .perf-lite .marquee, .perf-lite .counter, .perf-lite .mentor,
.perf-lite .join__panel, .perf-lite .mobile-menu, .perf-lite #lightbox,
.perf-lite #event-modal, .perf-lite .event-modal__panel, .perf-lite .event-card__media .tag {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* an opaque overlay (modal / lightbox / mobile menu) hides the backdrop — freeze
   the aurora drift behind it instead of compositing frames nobody can see */
body.menu-open .aurora i { animation-play-state: paused; }
:root.perf-lite { --surface: rgba(255, 255, 255, 0.075); --glass: rgba(6, 10, 22, 0.92); }
:root.perf-lite[data-theme="light"] { --surface: rgba(255, 255, 255, 0.9); --glass: rgba(240, 245, 252, 0.94); }

/* ---------- calm mode (opt-in via <html data-reduce>) ----------
   Deliberately NOT keyed to prefers-reduced-motion: on Windows that flag is
   set by the OS "show animations" perf toggle and would strip the whole
   experience for most of our audience. */
:root[data-reduce] *, :root[data-reduce] *::before, :root[data-reduce] *::after {
  animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important;
}
:root[data-reduce] .marquee__inner, :root[data-reduce] .g-row--a, :root[data-reduce] .g-row--b,
:root[data-reduce] .aurora i, :root[data-reduce] .grad-text { animation: none !important; }
:root[data-reduce] .g-row { flex-wrap: wrap; width: 100%; justify-content: center; }
:root[data-reduce] #cursor-dot, :root[data-reduce] #cursor-ring, :root[data-reduce] #cursor-glow { display: none !important; }
:root[data-reduce] .manifesto__text .mw { opacity: 1 !important; }
