: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);
}

*,
*::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;
}

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 {
  padding: 1.5rem 3rem;
  /* Increases top & bottom spacing (adjust from ~1rem) */
  min-height: 80px;
  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;
}

#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;
}

.nav-logo {
  height: 68px;
  /* Increase logo height (e.g., 48px, 56px, or 64px) */
  width: auto;
  /* Maintains natural aspect ratio */
  transition: height 0.3s ease;
}

.nav-wordmark:hover .nav-logo {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.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.7) 0%, rgba(11, 11, 12, 0.1) 30%, rgba(11, 11, 12, 0.4) 75%, rgba(11, 11, 12, 0.95) 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: "Yu Gothic", "YuGothic", "游ゴシック", sans-serif;
  font-weight: 250;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  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(1.2rem, 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-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);
}

/* ── Ambient Section Background Glows ───────────────────── */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.12) 0%,
      rgba(139, 92, 246, 0.06) 45%,
      transparent 70%);
  transform: translate(-50%, -50%) scale(0.7);
  filter: blur(70px);
  pointer-events: none;
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.section.in-view::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.section-inner {
  position: relative;
  z-index: 1;
}

/* ── Smooth Scroll Reveal Physics ───────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

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

/* ── Saturated Animated Section Lines ────────────────────── */
.s-rule {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, transparent);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.s-rule.visible {
  width: 100%;
}

/* ── Saturated Card Hover & Scroll Elevation ────────────── */
.member-card,
.event-details-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.member-card:hover,
.event-details-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 16px 36px -12px rgba(59, 130, 246, 0.22),
    0 0 20px rgba(139, 92, 246, 0.1);
}

/* ── Subtle Pulse on Active Tab & Primary Buttons ────────── */
.btn-hero-fill,
.tab-btn.active {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-fill:hover {
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.45);
}

#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: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 8px;
  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);
}

/* ── 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: 800px;
  width: 100%;
  margin-top: 2rem;
}

.event-details-card {
  background: var(--bg-surface, #161618);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}