:root {
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --surface: #161618;
  --surface-2: #1e1e22;
  --border: #26262a;
  --border-strong: #3f3f46;
  --primary: #3b82f6;
  --accent: #60a5fa;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --nav-h: 72px;
  --radius: 6px;
  --radius-sm: 4px;
  --font-display: "Satoshi", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 10px 30px -4px rgba(0, 0, 0, 0.7);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Light Theme ── */
:root.light {
  --bg: #f8f8fb;
  --bg-alt: #f0f0f5;
  --surface: #ffffff;
  --surface-2: #ececf3;
  --border: #dddde8;
  --border-strong: #b0b0c0;
  --primary: #2563eb;
  --accent: #3b82f6;
  --text-primary: #111114;
  --text-secondary: #52525e;
  --text-muted: #8888a0;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.10);
  --shadow-card-hover: 0 10px 30px -4px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* ── Navigation & Header ── */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s, border-color 0.25s;
  gap: 16px;
}

:root.light #navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

:root.light #navbar.scrolled {
  background: rgba(248, 248, 251, 0.88);
  border-bottom: 1px solid var(--border);
}

#navbar.scrolled {
  background: rgba(11, 11, 12, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
}

/* Logo swap: both imgs sit in the same flow; we crossfade between them */
.nav-wordmark {
  position: relative;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.2s var(--ease-out-expo);
  /* stack the two logos on top of each other */
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Reserve the horizontal space using the first logo as a sizer */
.nav-logo--dark {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

/* Dark mode: show dark-bg logo, hide light-bg logo */
.nav-logo--dark  { opacity: 1; }
.nav-logo--light { opacity: 0; position: absolute; top: 50%; left: 0; transform: translateY(-50%); }

/* Light mode: swap */
:root.light .nav-logo--dark  { opacity: 0; }
:root.light .nav-logo--light { opacity: 1; }

.nav-wordmark:hover .nav-logo--dark,
.nav-wordmark:hover .nav-logo--light {
  opacity: 0.82;
}

.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.25s;
}

#hamburger.open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

#hamburger.open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  padding: 24px clamp(24px, 5vw, 64px) 32px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s;
  z-index: 800;
}

#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mob-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mob-link:hover {
  color: var(--text-primary);
}

/* ── Hero Section ── */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

#shader-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#shader-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

#hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(11,11,12,0.70) 0%,
    rgba(11,11,12,0.10) 30%,
    rgba(11,11,12,0.40) 75%,
    rgba(11,11,12,0.95) 100%);
  transition: opacity 0.5s ease;
}

/* In light mode the canvas is white — flip vignette to match page bg */
:root.light #hero-vignette {
  background: linear-gradient(to bottom,
    rgba(248,248,251,0.55) 0%,
    rgba(248,248,251,0.08) 30%,
    rgba(248,248,251,0.35) 75%,
    rgba(248,248,251,0.96) 100%);
}

#hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 96px);
  padding-left: clamp(48px, 12vw, 160px);
  padding-right: clamp(24px, 5vw, 80px);
  max-width: 1080px;
  width: 100%;
}

#hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease-out-expo) 0.15s forwards;
}

#hero-badge-label,
#hero-badge-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

#hero-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

#hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-word[data-index="0"] {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.15s forwards;
}

.hero-word[data-index="1"] {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.26s forwards;
}

.hero-word[data-index="2"] {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.37s forwards;
}

.hero-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--text-primary);
}

#hero-srec {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 40px;
  background: linear-gradient(110deg, var(--text-primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.48s forwards, shiftGradient 5s ease-in-out infinite alternate 1.18s;
}

@keyframes shiftGradient {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 100% center;
  }
}

/* ── Hero text colours: adapt with the shader canvas ── */
/* Dark mode → white text on dark canvas                 */
/* Light mode → dark text on white canvas                */

/* All colour properties transition smoothly */
#hero,
#hero #hero-heading,
#hero .hero-word,
#hero .hero-accent,
#hero #hero-tagline,
#hero #scroll-label,
#hero .btn-hero-fill,
#hero .btn-hero-ghost {
  transition: color 0.5s ease, background-color 0.5s ease,
              border-color 0.5s ease, opacity 0.5s ease;
}

/* SREC gradient text fades through opacity instead of impossible gradient transition */
#hero #hero-srec {
  transition: opacity 0.25s ease;
}

/* ── Dark mode defaults ── */
#hero { color: #f4f4f5; }

#hero #hero-heading,
#hero .hero-word,
#hero .hero-accent { color: #f4f4f5; }

#hero #hero-srec {
  background: linear-gradient(110deg, #f4f4f5 0%, #60a5fa 50%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero #hero-tagline  { color: rgba(244,244,245,0.70); }

#hero .btn-hero-fill {
  background: #f4f4f5;
  color: #0b0b0c;
  border-color: #f4f4f5;
}
#hero .btn-hero-fill:hover {
  background: transparent;
  color: #f4f4f5;
  border-color: #f4f4f5;
}
#hero .btn-hero-ghost {
  color: rgba(244,244,245,0.70);
  border-color: rgba(244,244,245,0.30);
}
#hero .btn-hero-ghost:hover { color: #f4f4f5; border-color: #f4f4f5; }

#hero #scroll-label  { color: rgba(244,244,245,0.45); }
#hero #scroll-track  { background: rgba(244,244,245,0.18); }
#hero #scroll-thumb  { background: #60a5fa; }

/* ── Light mode: canvas is white so text must be dark ── */
:root.light #hero,
:root.light #hero #hero-heading,
:root.light #hero .hero-word,
:root.light #hero .hero-accent { color: #111114; }

:root.light #hero #hero-srec {
  background: linear-gradient(110deg, #111114 0%, #3b82f6 50%, #2563eb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root.light #hero #hero-tagline  { color: rgba(17,17,20,0.68); }

:root.light #hero .btn-hero-fill {
  background: #111114;
  color: #f8f8fb;
  border-color: #111114;
}
:root.light #hero .btn-hero-fill:hover {
  background: transparent;
  color: #111114;
  border-color: #111114;
}
:root.light #hero .btn-hero-ghost {
  color: rgba(17,17,20,0.68);
  border-color: rgba(17,17,20,0.28);
}
:root.light #hero .btn-hero-ghost:hover { color: #111114; border-color: #111114; }

:root.light #hero #scroll-label  { color: rgba(17,17,20,0.40); }
:root.light #hero #scroll-track  { background: rgba(17,17,20,0.15); }
:root.light #hero #scroll-thumb  { background: #3b82f6; }


#hero-footer-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.6s forwards;
}

#hero-tagline {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 320px;
  line-height: 1.6;
}

#hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Button Designs */
.btn-hero-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text-primary);
  color: var(--bg);
  border: 1px solid var(--text-primary);
  cursor: pointer;
  transition: background 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

.btn-hero-fill:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out-expo);
}

.btn-hero-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

#hero-bottom-bar {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 5vw, 80px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.85s forwards;
}

#scroll-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#scroll-track {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

#scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  animation: scrollThumb 2.2s var(--ease-in-out) infinite;
}

@keyframes scrollThumb {
  0% {
    top: -50%;
    height: 50%;
  }

  100% {
    top: 150%;
    height: 50%;
  }
}

/* ── Common Sections & Typography ── */

.section {
  padding: clamp(80px, 10vw, 136px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.s-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.s-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.s-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out-expo);
}

.s-rule.visible {
  transform: scaleX(1);
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 48px;
}

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About & Stats Section ── */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: start;
}

.about-left .s-title {
  margin-bottom: 0;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-body:last-child {
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-block {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-block:last-child {
  border-right: none;
}

.stat-block:hover {
  background: var(--surface-2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Members & Tab Navigation ── */

.members-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out-expo);
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out-expo);
}

.member-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.member-avatar {
  width: 128px;
  height: 128px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}

.member-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.member-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Events Section (Normalized Theme Layout) ── */

.events-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

#events-list {
  display: flex;
  flex-direction: column;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease-out-expo), background 0.2s;
  position: relative;
  background: transparent;
}

.event-row::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  top: 0;
  bottom: 0;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out-expo);
  transform-origin: bottom;
}

.event-row:hover,
.event-row.active {
  padding-left: 16px;
}

.event-row:hover::before,
.event-row.active::before {
  transform: scaleY(1);
}

.ev-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 28px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ev-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  flex: 1;
  transition: color 0.2s;
}

.event-row:hover .ev-title,
.event-row.active .ev-title {
  color: var(--text-primary);
}

.ev-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ev-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.event-row:hover .ev-arrow,
.event-row.active .ev-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

#events-panel {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  min-height: 280px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

#events-panel:has(#ep-title:not(:empty)) {
  border-color: var(--border-strong);
}

#ep-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

#ep-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

#ep-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

#ep-date {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Carousel Section ── */

.carousel-outer {
  padding: 0 clamp(24px, 5vw, 80px);
}

.carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 6.5;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
  display: block;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 11, 12, 0.9));
  padding: 48px 32px 24px;
}

.slide-caption span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.slide-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.15;
}

.slide-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

/* Carousel Control Buttons */
.car-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s var(--ease-out-expo);
}

.car-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-2);
  transform: scale(1.05);
}

.car-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ── Contact Section & Form ── */

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 8px;
}

.ci-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.contact-item a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--text-primary);
}

.s-link {
  display: inline-block;
  margin-right: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.s-link::after {
  content: "→";
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.s-link:hover {
  color: var(--text-primary);
}

.s-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.contact-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-strong);
  background: var(--bg);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

/* Primary Form Action Button Design */
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text-primary);
  color: var(--bg);
  border: 1px solid var(--text-primary);
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out-expo);
}

.btn-fill:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-fill:active {
  transform: translateY(0);
}

.btn-fill:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

#form-success {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}

/* ── Footer ── */

#site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Theme Toggle Button ── */

#theme-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.35s ease, border-color 0.35s ease;
  outline: none;
  padding: 0;
  margin-left: 8px;
}

#theme-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

#theme-toggle .toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out-expo), background 0.35s ease;
  font-size: 11px;
  line-height: 1;
}

:root.light #theme-toggle .toggle-thumb {
  transform: translateX(20px);
  background: var(--primary);
}

#theme-toggle .toggle-icon-moon,
#theme-toggle .toggle-icon-sun {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out-expo);
  pointer-events: none;
}

#theme-toggle .toggle-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#theme-toggle .toggle-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

:root.light #theme-toggle .toggle-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

:root.light #theme-toggle .toggle-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light mode surface transitions */
:root.light .section-alt {
  background: var(--bg-alt);
}

:root.light .event-details-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

:root.light #mobile-menu {
  background: var(--bg-alt);
  border-bottom-color: var(--border);
}

:root.light #site-footer {
  background: var(--bg);
}

/* ── Utility Animations & Accessibility ── */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ── Responsive Breakpoints ── */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-block:nth-child(2) {
    border-right: none;
  }

  .stat-block:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .stat-block:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .events-layout {
    grid-template-columns: 1fr;
  }

  #events-panel {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  #hero-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .members-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-outer {
    padding: 0 16px;
  }

  .contact-right {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .members-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-block:last-child {
    border-bottom: none;
  }
}

/* Word Swap Animation */
.word-swap {
  display: inline-block;
  color: #60a5fa;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.word-swap.swapping {
  opacity: 0;
  transform: translateY(-8px);
}

/* Single Event Details Card Container */
#events-panel-container {
  max-width: 720px;
  width: 100%;
  margin: 1.5rem auto 0;
}

.event-details-card {
  background: var(--bg-surface, #161618);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

/* Member photo (image replaces the initials avatar) */
.member-photo {
  width: 128px;
  height: 128px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.member-card:hover .member-photo {
  transform: scale(1.04);
  box-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.35);
}

.member-avatar-wrap {
  display: flex;
  align-items: flex-start;
}

/* Member LinkedIn icon link */
.member-social-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color 0.2s;
}
.member-social-link:hover {
  color: var(--accent);
}

/* ── Event card sub-elements ── */

.ev-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.ev-header-text {
  flex: 1;
}

.ev-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.ev-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ev-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Photo strip */
.ev-photos {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ev-photo {
  flex: 1 1 200px;
  min-width: 160px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* Sub-sections inside a card */
.ev-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.ev-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.ev-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ev-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ev-person-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ev-person-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.ev-org {
  color: var(--text-muted);
  font-size: 0.85em;
}

/* Winners table */
.ev-winners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.ev-winner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.ev-winner-place {
  font-size: 0.95rem;
  min-width: 50px;
}

.ev-winner-dept {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.ev-winner-prize {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.ev-tagline {
  margin-top: 1rem;
  padding: 8px 12px;
  background: rgba(96, 165, 250, 0.05);
  border: 1px dashed rgba(96, 165, 250, 0.25);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .event-details-card { padding: 1.2rem; }
  .ev-photos { flex-direction: column; }
  .ev-photo { max-height: 170px; }
  .ev-winner-prize { margin-left: 0; }
}

/* ── Gallery Section ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.gallery-img-wrap {
  width: 100%;
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.gallery-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}