:root {
  --background: #040214;
  --surface: #0b0b19;
  --surface-strong: #111024;
  --foreground: #f8f8ff;
  --muted: #bdb6dc;
  --soft: rgba(248, 248, 255, 0.68);
  --primary: #6f42c1;
  --primary-light: #a98fff;
  --secondary: #071b3a;
  --border: rgba(169, 143, 255, 0.22);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(111, 66, 193, 0.22), transparent 34rem),
    linear-gradient(180deg, #040214 0%, #071020 52%, #040214 100%);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.loaded .hero-copy {
  animation: heroRise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.loaded .event-panel {
  animation: panelRise 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.loaded .page-hero .container {
  animation: heroRise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(248, 248, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 248, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

img,
svg {
  display: block;
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 40px, 840px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(4, 2, 20, 0.88);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 58px;
  height: 34px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-light);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-light);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px 0 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.48) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 2, 20, 0.96) 0%, rgba(4, 2, 20, 0.7) 46%, rgba(4, 2, 20, 0.38) 100%),
    linear-gradient(0deg, #040214 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(248, 248, 255, 0.86);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 48px rgba(111, 66, 193, 0.32);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.event-panel,
.feature-card,
.role-card,
.committee-card,
.application-card,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 16, 36, 0.82), rgba(11, 11, 25, 0.82));
  box-shadow: var(--shadow);
}

.event-panel {
  padding: 22px;
  display: grid;
  gap: 18px;
  backdrop-filter: blur(16px);
}

.event-panel div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(169, 143, 255, 0.16);
}

.event-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.event-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-panel strong {
  font-size: 1rem;
}

.page {
  padding-top: 78px;
}

.page-hero {
  padding: clamp(86px, 13vw, 140px) 0 clamp(54px, 9vw, 92px);
  background:
    linear-gradient(120deg, rgba(7, 27, 58, 0.72), rgba(4, 2, 20, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(111, 66, 193, 0.32), transparent 30rem);
  border-bottom: 1px solid var(--border);
}

.page-hero.compact {
  padding-bottom: 68px;
}

.about-hero {
  padding: 92px 0 64px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: 44px;
  align-items: end;
}

.page-hero h1 {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.96;
}

.about-hero h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 5.8vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-note {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 11, 25, 0.58);
  backdrop-filter: blur(16px);
}

.hero-note p {
  margin: 0;
  color: rgba(248, 248, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mini-stats span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(169, 143, 255, 0.18);
  border-radius: 8px;
  color: var(--primary-light);
  background: rgba(111, 66, 193, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 10vw, 112px) 0;
}

.section.muted {
  background: rgba(11, 11, 25, 0.72);
  border-block: 1px solid rgba(169, 143, 255, 0.12);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.split h2,
.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.prose p {
  color: var(--soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.prose p:last-child {
  margin-bottom: 0;
}

.feature-grid,
.role-grid,
.committee-grid,
.application-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.role-grid {
  grid-template-columns: repeat(3, 1fr);
}

.committee-grid,
.application-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.role-card,
.committee-card,
.application-card {
  padding: 26px;
}

.feature-card span,
.role-card span,
.committee-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--primary-light);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h3,
.role-card h3,
.committee-card h2,
.application-card h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.committee-card h2,
.application-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.feature-card p,
.role-card p,
.committee-card p,
.application-card p,
.application-card li,
.faq-list p {
  color: var(--soft);
}

.application-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.application-card ul {
  width: 100%;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.application-card li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(169, 143, 255, 0.14);
}

.application-card .btn {
  margin-top: auto;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 0 22px;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 36px 22px 0;
  list-style: none;
  color: var(--foreground);
  font-weight: 800;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 0 22px;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 2, 20, 0.94);
}

.footer-grid {
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-light);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer a:not(.footer-brand) {
  color: var(--soft);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(169, 143, 255, 0.14);
  color: rgba(248, 248, 255, 0.52);
  font-size: 0.86rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

.feature-card,
.role-card,
.committee-card,
.application-card,
.faq-list details {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover,
.role-card:hover,
.committee-card:hover,
.application-card:hover,
.faq-list details:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 143, 255, 0.46);
  background: linear-gradient(180deg, rgba(23, 20, 48, 0.9), rgba(11, 11, 25, 0.86));
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(4, 2, 20, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 14px 0;
  }

  .hero-grid,
  .split,
  .feature-grid,
  .role-grid,
  .committee-grid,
  .application-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
  }

  .event-panel {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  .container,
  .container.narrow {
    width: auto;
    margin-left: 14px;
    margin-right: 14px;
  }

  .site-header {
    min-height: 70px;
    padding-block: 12px;
  }

  .brand img {
    width: 46px;
    height: 28px;
  }

  .brand span {
    font-size: 0.86rem;
  }

  .mobile-nav {
    inset-block-start: 70px;
  }

  .hero {
    min-height: 760px;
    padding-top: 100px;
  }

  .hero-grid,
  .hero-copy,
  .hero-lead {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    line-height: 1.6;
  }

  .hero-lead {
    font-size: 1.08rem;
    line-height: 1.52;
  }

  .page {
    padding-top: 70px;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-actions-row,
  .btn {
    width: 100%;
  }

  .feature-card,
  .role-card,
  .committee-card,
  .application-card {
    padding: 22px;
  }
}
