/* ══════════════════════════════════════════════
   AEA CLUB — EDITORIAL DESIGN SYSTEM
   Inspired by the Manus minimal editorial style
   Archivo · IBM Plex Mono · Cream/Navy palette
   ══════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── TOKENS ── */
:root {
  --bg:          #eee9df;
  --bg-dark:     #1a1812;
  --surface:     #e6e0d4;
  --surface-2:   #d8d1c4;
  --ink:         #1a1812;
  --ink-2:       #3d3830;
  --ink-3:       #7a7268;
  --cream:       #f5f0e8;
  --coral:       #c94b2b;
  --coral-light: #e8614a;
  --gold:        #c4973a;
  --navy:        #14213d;
  --white:       #faf8f4;

  --font-body:  'Archivo', system-ui, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 64px;
  --pad-x:    clamp(20px, 5vw, 80px);
  --pad-sec:  clamp(80px, 10vw, 140px);
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: var(--white); }

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: 2px; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--coral);
  width: 0%; transition: width 0.1s linear;
}

/* ── SITE SHELL ── */
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ══════════════════
   HEADER
══════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--pad-x);
  gap: 32px;
  background: rgba(238, 233, 223, 0);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(238, 233, 223, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26, 24, 18, 0.08);
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-mark {
  display: flex; gap: 3px; align-items: center;
}
.brand-mark i {
  display: block; width: 5px; border-radius: 1px;
  background: var(--ink);
}
.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 9px; }
.brand-mark i:nth-child(3) { height: 14px; }
.brand-name { font-size: 0.85rem; }
.brand-name span { opacity: 0.4; margin-left: 2px; }

/* Nav */
.main-nav {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.main-nav a {
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

/* Header CTA */
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--coral); transform: translateY(-1px); }
.header-cta b { font-weight: 400; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 24px;
  align-items: center;
}
.mobile-menu nav a {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.mobile-menu nav .mobile-cta {
  margin-top: 16px; padding: 12px 28px;
  background: var(--ink); color: var(--bg);
  border-radius: 2px; font-size: 1rem;
}

/* ══════════════════
   BUTTONS
══════════════════ */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: none; cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
  position: relative; overflow: hidden;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }

.button-primary {
  background: var(--ink); color: var(--bg);
}
.button-primary:hover { background: var(--coral); }
.button-primary span { font-size: 1em; }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 24, 18, 0.25);
}
.button-ghost:hover { border-color: var(--ink); }

/* ══════════════════
   SECTION PAD
══════════════════ */
.section-pad { padding: var(--pad-sec) var(--pad-x); }

/* Section meta */
.section-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--ink-3);
  margin-bottom: 48px;
}
.section-kicker span:first-child { color: var(--coral); }
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 12px;
}

/* Headings */
h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 em { font-style: italic; color: var(--coral); }

/* ══════════════════
   REVEAL ANIMATIONS
══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay   { transition-delay: 0.15s; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════
   HERO
══════════════════ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--ink-3);
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.0;
}
.hero h1 em { font-style: italic; color: var(--coral); }

.hero-lede {
  font-size: 1.05rem; color: var(--ink-2);
  max-width: 480px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--ink-3);
}
.meta-line { flex: 1; height: 1px; background: rgba(26,24,18,0.15); max-width: 60px; }

/* Hero stage */
.hero-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  max-width: 520px;
}
.stage-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(201, 75, 43, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
#orbital-canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(26, 24, 18, 0.03);
  border: 1px solid rgba(26, 24, 18, 0.08);
}
.stage-label {
  position: absolute; left: 0;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.stage-label b { color: var(--ink); font-weight: 600; }
.stage-label-top  { top: 10px; }
.stage-label-bottom { bottom: 10px; }
.stage-crosshair {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.stage-crosshair span {
  position: absolute;
  width: 24px; height: 24px;
  border: 1.5px solid rgba(201, 75, 43, 0.4);
  border-radius: 50%;
  animation: crosshair-spin 8s linear infinite;
}
.stage-crosshair i {
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(201, 75, 43, 0.2);
  border-radius: 50%;
  animation: crosshair-spin 12s linear infinite reverse;
}
@keyframes crosshair-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-side-note {
  position: absolute;
  right: calc(var(--pad-x) * -0.3);
  top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; color: var(--ink-3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 2;
}
.hero-side-note span { color: var(--coral); }

/* ══════════════════
   SIGNAL STRIP
══════════════════ */
.signal-strip {
  overflow: hidden;
  border-top: 1px solid rgba(26, 24, 18, 0.1);
  border-bottom: 1px solid rgba(26, 24, 18, 0.1);
  padding: 14px 0;
  background: var(--bg-dark);
}
.signal-track {
  display: flex; gap: 32px; align-items: center;
  white-space: nowrap;
  animation: signal-scroll 22s linear infinite;
}
.signal-track span {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; color: rgba(238, 233, 223, 0.5);
}
.signal-track i { color: var(--coral); font-style: normal; font-size: 0.6rem; }
@keyframes signal-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════
   STORY
══════════════════ */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
  margin-bottom: 64px;
}
.lede-large {
  font-size: 1.15rem; font-weight: 600;
  line-height: 1.6; margin-bottom: 16px;
}
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 16px;
}
.text-link:hover { color: var(--coral); border-color: var(--coral); }

.story-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid rgba(26, 24, 18, 0.1);
  border-radius: 2px; overflow: hidden;
}
.story-stats > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 28px;
  background: var(--surface);
}
.story-stats strong {
  font-size: 2.2rem; font-weight: 900; letter-spacing: -0.04em;
  line-height: 1;
}
.story-stats strong span { font-size: 1.2rem; color: var(--coral); }
.story-stats > div > span { font-size: 0.78rem; color: var(--ink-3); line-height: 1.4; }

/* ══════════════════
   DEPARTMENTS
══════════════════ */
.section-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: end; margin-bottom: 48px;
}
.section-intro p { color: var(--ink-2); max-width: 380px; }

.department-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.department-card {
  background: var(--surface);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  cursor: default;
  transition: background 0.25s;
}
.department-card:hover { background: var(--surface-2); }
.card-index {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--ink-3);
}
.department-icon {
  font-size: 1.5rem; line-height: 1;
  color: var(--coral); margin: 8px 0;
  font-family: var(--font-mono);
}
.department-card h3 { font-size: 1.1rem; font-weight: 700; }
.department-card p  { font-size: 0.85rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.card-arrow {
  position: absolute; top: 20px; right: 20px;
  font-size: 1rem; color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
}
.department-card:hover .card-arrow { color: var(--coral); transform: translate(2px, -2px); }

/* ══════════════════
   EVENTS
══════════════════ */
.event-card {
  background: var(--bg-dark);
  color: var(--white);
  border-radius: 2px;
  padding: 56px clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.event-orb {
  position: absolute; right: -120px; top: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  pointer-events: none;
}
.event-orb span, .event-orb b, .event-orb i {
  position: absolute; border-radius: 50%;
}
.event-orb span {
  inset: 0;
  background: radial-gradient(circle, rgba(201,75,43,0.25) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite;
}
.event-orb b {
  inset: 15%;
  background: radial-gradient(circle, rgba(201,75,43,0.15) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out 1s infinite;
}
.event-orb i {
  inset: 30%;
  background: radial-gradient(circle, rgba(201,75,43,0.3) 0%, transparent 70%);
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}
.event-details { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.event-details .section-kicker { color: rgba(238,233,223,0.4); margin-bottom: 0; }
.event-details .section-kicker span:first-child { color: var(--coral-light); }
.event-details .section-label { color: rgba(238,233,223,0.5); }
.event-details h2 { color: var(--white); }
.event-description { color: rgba(238,233,223,0.7); font-size: 0.95rem; line-height: 1.7; }
.event-foot {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px;
}
.event-foot > div { display: flex; flex-direction: column; gap: 2px; }
.event-foot span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(238,233,223,0.4); }
.event-foot strong { font-size: 0.88rem; color: var(--white); }

/* ══════════════════
   TEAM
══════════════════ */
/* ══════════════════
   TEAM CAROUSEL
══════════════════ */
.team-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.team-carousel {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
  gap: 2px;
}
.team-carousel .person-card {
  flex: 0 0 calc(33.333% - 2px);
  min-width: 280px;
}

/* Controls */
.team-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.tc-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,24,18,0.2);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tc-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.1);
}
.tc-dots { display: flex; gap: 8px; align-items: center; }
.tc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(26,24,18,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.tc-dot.active {
  background: var(--coral);
  transform: scale(1.35);
}

@media (max-width: 1024px) {
  .team-carousel .person-card { flex: 0 0 calc(50% - 1px); }
}
@media (max-width: 640px) {
  .team-carousel .person-card { flex: 0 0 100%; }
}
.person-card {
  background: var(--surface);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.25s;
}
.person-card:hover { background: var(--surface-2); }
.person-feature { background: var(--ink); color: var(--white); }
.person-feature:hover { background: var(--navy); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.05em;
}
.avatar-coral   { background: rgba(201, 75, 43, 0.15); color: var(--coral); }
.avatar-lavender{ background: rgba(130, 100, 200, 0.15); color: #6b5aad; }
.avatar-blue    { background: rgba(42, 69, 128, 0.15); color: var(--navy); }
.avatar-gold    { background: rgba(196, 151, 58, 0.15); color: var(--gold); }
.avatar-red     { background: rgba(201, 68, 51, 0.15); color: #c94433; }
.person-feature .avatar { background: rgba(255,255,255,0.1); color: var(--white); }

.person-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; color: var(--ink-3);
}
.person-feature .person-top { color: rgba(238,233,223,0.4); }
.person-top a { color: inherit; transition: color 0.2s; }
.person-top a:hover { color: var(--coral); }

.person-card h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.person-card p  { font-size: 0.82rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.person-feature h3 { color: var(--white); }
.person-feature p  { color: rgba(238,233,223,0.6); }

.person-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}
.person-tags span {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; padding: 3px 8px;
  border-radius: 2px;
  background: rgba(26,24,18,0.07); color: var(--ink-3);
}
.person-feature .person-tags span { background: rgba(255,255,255,0.1); color: rgba(238,233,223,0.6); }

/* ══════════════════
   OPEN ROLES
══════════════════ */
.roles-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: end; margin-bottom: 48px;
}
.roles-head p { color: var(--ink-2); }

.role-list { display: flex; flex-direction: column; }
.role-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center; gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 24, 18, 0.1);
  transition: background 0.2s;
}
.role-row:first-child { border-top: 1px solid rgba(26, 24, 18, 0.1); }
.role-row:hover { background: var(--surface); padding-left: 12px; padding-right: 12px; border-radius: 2px; }
.role-number {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--ink-3);
}
.role-name { font-weight: 700; font-size: 1rem; }
.role-skills {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.06em; color: var(--ink-3);
}
.role-arrow {
  font-size: 1rem; color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
}
.role-row:hover .role-arrow { color: var(--coral); transform: translate(2px, -2px); }

/* ══════════════════
   JOIN
══════════════════ */
.join-panel {
  background: var(--bg-dark);
  color: var(--white);
  border-radius: 2px;
  padding: 56px clamp(28px, 5vw, 80px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: start;
}
.join-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.01) 3px,
    rgba(255,255,255,0.01) 4px
  );
}
.join-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
}
.join-content .section-label { color: rgba(238,233,223,0.4); }
.join-content h2 { color: var(--white); }
.join-content > p { color: rgba(238,233,223,0.6); font-size: 0.95rem; line-height: 1.7; }

/* Join form */
.join-form-wrap { margin-top: 8px; }
.join-form { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.join-form input,
.join-form select,
.join-form textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(238,233,223,0.15);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.join-form input::placeholder,
.join-form textarea::placeholder { color: rgba(238,233,223,0.3); }
.join-form select option { background: var(--bg-dark); color: var(--white); }
.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus { border-color: var(--coral); }
.join-form textarea { resize: vertical; min-height: 80px; }
.join-form .button { margin-top: 4px; align-self: flex-start; }
.form-error { font-size: 0.8rem; color: #e07b6a; min-height: 1em; }

.join-success {
  display: none; flex-direction: column; gap: 12px;
  padding: 28px;
  background: rgba(201,75,43,0.1);
  border: 1px solid rgba(201,75,43,0.3);
  border-radius: 2px;
}
.join-success.show { display: flex; }
.success-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; font-weight: 700;
}
.join-success h3 { font-size: 1rem; font-weight: 700; }
.join-success p { font-size: 0.85rem; color: rgba(238,233,223,0.6); }

.join-code {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: rgba(238,233,223,0.3);
  padding-top: 8px;
}
.join-code b {
  font-weight: 400; font-size: 2rem;
  color: var(--coral); opacity: 0.4;
  margin-top: 16px;
  animation: pulse 3s ease-in-out infinite;
}

/* ══════════════════
   FOOTER
══════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  margin-top: auto;
}
.footer-top {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 48px;
}
.footer-top .brand-mark i { background: rgba(238,233,223,0.6); }
.footer-top .brand-name { color: var(--white); }
.footer-top .brand-name span { opacity: 0.3; }
.footer-top > p { color: rgba(238,233,223,0.5); font-size: 0.95rem; line-height: 1.7; }
.footer-contact-group { display: flex; flex-direction: column; gap: 6px; }
.footer-contact {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem;
  transition: color 0.2s;
  width: fit-content;
}
.footer-contact:hover { color: var(--coral-light); }
.footer-location { font-size: 0.82rem; color: rgba(238,233,223,0.4); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(238,233,223,0.1);
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; color: rgba(238,233,223,0.3);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--coral-light); }

/* ══════════════════
   RESPONSIVE
══════════════════ */
@media (max-width: 1024px) {
  .hero            { grid-template-columns: 1fr; min-height: auto; }
  .hero-stage      { max-width: 380px; margin: 0 auto; }
  .hero-side-note  { display: none; }
  .story-grid      { grid-template-columns: 1fr; }
  .story-stats     { grid-template-columns: repeat(2, 1fr); }
  .department-list { grid-template-columns: repeat(2, 1fr); }
  .event-card      { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: repeat(2, 1fr); }
  .roles-head      { grid-template-columns: 1fr; }
  .join-panel      { grid-template-columns: 1fr; }
  .join-code       { align-items: flex-start; }
  .section-intro   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; --pad-sec: 60px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .story-stats     { grid-template-columns: repeat(2, 1fr); }
  .department-list { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr; }
  .role-row        { grid-template-columns: 36px 1fr auto; }
  .role-skills     { display: none; }
  .field-row       { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .story-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
}

/* ══════════════════
   MEMBER ID SUCCESS BOX
══════════════════ */
.join-success {
  display: none; flex-direction: column; gap: 16px;
  padding: 28px;
  background: rgba(201,75,43,0.08);
  border: 1px solid rgba(201,75,43,0.25);
  border-radius: 2px;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.join-success.show { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.success-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800;
  flex-shrink: 0;
}
.join-success h3 {
  font-size: 1.1rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.join-success > p {
  font-size: 0.84rem;
  color: rgba(238,233,223,0.6);
  line-height: 1.65;
}
.join-success > p strong { color: rgba(238,233,223,0.9); }

/* Member ID badge */
.member-id-box {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 24px;
  background: rgba(201,75,43,0.12);
  border: 1.5px solid rgba(201,75,43,0.35);
  border-radius: 2px;
  text-align: center;
}
.mid-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.18em;
  color: rgba(238,233,223,0.4);
}
.mid-value {
  font-family: var(--font-mono);
  font-size: 1.9rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--coral-light);
  line-height: 1.1;
}
.mid-note {
  font-size: 0.74rem;
  color: rgba(238,233,223,0.4);
  line-height: 1.5;
  margin-top: 4px;
}

/* WhatsApp community button */
.whatsapp-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  border-radius: 2px;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
  animation: wp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-join-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.whatsapp-join-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  animation: none;
}
@keyframes wp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ══════════════════
   LIVE EFFECTS (effects.js)
══════════════════ */

/* Custom cursor */
.fx-cursor-dot,
.fx-cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.fx-cursor-dot {
  width: 6px; height: 6px;
  background: var(--coral);
  margin-left: -3px; margin-top: -3px;
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.fx-cursor-ring {
  width: 32px; height: 32px;
  margin-left: -16px; margin-top: -16px;
  border: 1.5px solid rgba(201,75,43,0.5);
  transition: width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.3s;
}
.fx-cursor-ring.fx-cursor-hover {
  width: 54px; height: 54px;
  margin-left: -27px; margin-top: -27px;
  border-color: var(--coral);
  background: rgba(201,75,43,0.05);
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none !important; }
}

/* Floating particles */
.fx-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--coral);
  pointer-events: none;
  z-index: 0;
  animation: fx-float linear infinite;
}
@keyframes fx-float {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-80px) rotate(360deg); opacity: 0; }
}

/* Active nav link */
.main-nav a.nav-active {
  color: var(--ink);
}
.main-nav a.nav-active::after {
  transform: scaleX(1);
}

/* Typing cursor blink */
.fx-type-cursor {
  display: inline-block;
  color: var(--coral);
  font-weight: 400;
  margin-left: 2px;
  animation: fx-blink 1.1s step-end infinite;
}
@keyframes fx-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Smooth card transitions */
.department-card,
.person-card {
  will-change: transform;
  transition: background 0.25s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s;
}

