/* ============================================================
   TAMU SEDS — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Archivo:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-text: #f5f5f5;
  --color-text-dim: #9a9a9a;
  --color-accent: #c0392b;
  --color-accent-glow: rgba(192, 57, 43, 0.55);
  --color-line: rgba(255, 255, 255, 0.25);
  --color-card: #1a1a1a;

  --font-display: 'Archivo', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --header-height: 64px;
  --sidebar-width: 300px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.95);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

body.sidebar-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.sidebar-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
body.sidebar-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 250;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(var(--sidebar-width), 82vw);
  background: #060606;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 260;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar__brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.sidebar-close:hover { color: var(--color-text); }

.sidebar__links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar__item {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.sidebar-open .sidebar__item {
  opacity: 1;
  transform: translateX(0);
}

.sidebar__link {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--color-text-dim);
  border-left: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sidebar__link:hover,
.sidebar__link:focus-visible {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--color-accent);
}

.sidebar__link.is-active {
  color: var(--color-text);
  border-left-color: var(--color-accent);
}

.sidebar__footer {
  padding: 20px 24px 4px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.85) 100%),
    url('../assets/hero-nebula.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--color-text-dim);
  margin: 0 0 6px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.25;
  margin: 0 0 32px;
}

.hero__headline strong {
  font-weight: 700;
}

/* ---- Animated acronym reveal (SEDS -> full phrase) ---- */
.hero__headline--animated {
  position: relative;
  display: block;
}

.hero__acronym-only {
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
  animation:
    heroSpread 1s ease forwards 0.6s,
    heroFadeOut 0.7s ease forwards 1.6s;
}

@keyframes heroSpread {
  from { letter-spacing: 0; }
  to   { letter-spacing: 0.35em; }
}
@keyframes heroFadeOut {
  to { opacity: 0; }
}

.hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  row-gap: 0.15em;
  column-gap: 0.35em;
  opacity: 0;
  animation: heroExpandIn 0.7s ease forwards 1.6s;
}
@keyframes heroExpandIn {
  to { opacity: 1; }
}

.hero__chunk {
  display: inline-flex;
  align-items: baseline;
}

.hero__letter {
  font-weight: 700;
}

.hero__rest {
  margin-left: 0.15em;
  opacity: 0;
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  animation: heroWordIn 1s ease forwards 1.6s;
}
@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__cta {
  margin-top: 4px;
}

.hero__join-btn {
  display: inline-block;
  opacity: 0;
  animation: heroBtnFadeIn 0.8s ease forwards 1.9s;
}
@keyframes heroBtnFadeIn {
  to { opacity: 1; }
}

/* Mobile: skip the expand animation, just fade in "SEDS" */
@media (max-width: 720px) {
  .hero__acronym-only {
    position: static;
    display: inline-block;
    transform: none;
    letter-spacing: 0.35em;
    opacity: 0;
    animation: heroSedsFadeIn 0.8s ease forwards 0.6s;
  }
  @keyframes heroSedsFadeIn {
    to { opacity: 1; }
  }

  .hero__expanded {
    display: none;
  }

  .hero__join-btn {
    animation-delay: 1.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__acronym-only,
  .hero__expanded,
  .hero__rest,
  .hero__join-btn {
    animation: none !important;
    opacity: 1 !important;
    letter-spacing: normal !important;
    transform: none !important;
  }
  .hero__acronym-only { display: none; }
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--color-text);
  color: #000;
}

.btn--accent {
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   MISSION STATEMENT
   ============================================================ */

.statement {
  padding: 90px 0 60px;
  text-align: center;
}

.statement__text {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
}

.statement__text strong { font-weight: 700; }

.divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 60px 0 0;
}

/* ============================================================
   MISSION SCHEDULE / TIMELINE
   ============================================================ */

.schedule {
  padding: 70px 0 90px;
  text-align: center;
}

.schedule__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

.schedule__date {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 70px;
}

.timeline__scroll-hint {
  margin-top: 60px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

/* ============================================================
   ADVISORY BOARD
   ============================================================ */

.board {
  padding: 70px 0 90px;
}

.board__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 50px;
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.board__card { text-align: center; }

.board__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
}

.board__photo {
  width: 100%;
  height: 100%;
  background: var(--color-card);
  background-size: cover;
  background-position: center top;
  transition: opacity 0.35s ease;
}

.board__card:hover .board__photo,
.board__card:focus-within .board__photo {
  opacity: 0.25;
}

.board__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.board__card:hover .board__overlay,
.board__card:focus-within .board__overlay {
  opacity: 1;
}

.board__overlay p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}

.board__name {
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

/* ============================================================
   PARTNER LOGOS (flip on hover, click to visit site)
   ============================================================ */

.partners {
  padding: 20px 0 90px;
}

.partners__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 50px;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.partner-flip {
  display: block;
  aspect-ratio: 1;
  perspective: 1000px;
  text-decoration: none;
}

.partner-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.partner-flip:hover .partner-flip__inner,
.partner-flip:focus-visible .partner-flip__inner {
  transform: rotateY(180deg);
}

.partner-flip__front,
.partner-flip__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.partner-flip__front {
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-flip__front img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-flip__front-label {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.partner-flip__back {
  background: #000000;
  border: 1px solid var(--color-accent);
  transform: rotateY(180deg);
}

.partner-flip__back p {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0;
}

@media (max-width: 640px) {
  .partners__grid { grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 80px 0 50px;
  text-align: center;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.14em;
  font-size: 1.4rem;
  margin: 0 0 26px;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.social:hover { transform: translateY(-3px); filter: brightness(1.15); }

.social svg { width: 18px; height: 18px; fill: currentColor; }

.social--link { background: #4a4a4a; }
.social--instagram { background: #d62976; }
.social--linkedin { background: #0a66c2; }
.social--x { background: #1a1a1a; border: 1px solid #444; }
.social--mail { background: #4a4a4a; }

.footer__embed {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 160px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
  padding: 24px;
}

.footer__bottom {
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* ============================================================
   SCROLL REVEAL (used on the About page)
   ============================================================ */

.reveal {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal--left  { transform: translateX(-70px); }
.reveal--right { transform: translateX(70px); }
.reveal--fade  { transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.2s linear; transform: none !important; }
}

/* ============================================================
   MISSION TIMELINE (scrollable, click-to-expand dots)
   Used on: index.html (.timeline), sedssolarsail.html
   (.solar-timeline), studentastronautcorps.html (.sac-timeline)
   Each host section sets --mtl-color to theme the dots/halo/box
   border; see the bottom of this block for the three overrides.
   ============================================================ */

.mtl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--mtl-color, #ffffff) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.mtl-scroll::-webkit-scrollbar { height: 8px; }
.mtl-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.mtl-scroll::-webkit-scrollbar-thumb {
  background: var(--mtl-color, #ffffff);
  border-radius: 4px;
}

.mtl-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
  padding: 64px clamp(24px, 6vw, 56px) 16px;
  width: max-content;
  margin: 0 auto;
}

.mtl-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.mtl-item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(150px, 18vw, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Permanent date label above a dot — always visible, unaffected by
   hover/click state. Absolutely positioned so items without a date
   yet don't shift; just add this span as the first child of any
   .mtl-item to give that milestone a date. Sits well clear of the
   dot's hover-halo ring (which extends ~23px above the dot center). */
.mtl-date {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

.mtl-dot-slot {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtl-dot {
  position: relative;
  width: clamp(16px, 2vw, 22px);
  height: clamp(16px, 2vw, 22px);
  border-radius: 50%;
  background: var(--mtl-color, #ffffff);
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--mtl-color, #ffffff) 55%, transparent);
  transition: transform 0.25s ease;
}

.mtl-dot:hover,
.mtl-dot:focus-visible {
  transform: scale(1.15);
  outline: none;
}

.mtl-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--mtl-color, #ffffff);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.mtl-dot:hover::after,
.mtl-dot:focus-visible::after,
.mtl-dot.is-open::after {
  opacity: 0.6;
  transform: scale(1);
}

.mtl-box {
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mtl-color, #ffffff);
  border-radius: 6px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  line-height: 1.55;
  padding: 0 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.3s ease;
}

.mtl-box.is-open {
  max-height: 280px;
  opacity: 1;
  padding: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .mtl-dot,
  .mtl-dot::after,
  .mtl-box {
    transition: none;
  }
}

/* Per-page dot/halo/border color */
.schedule .mtl-scroll        { --mtl-color: var(--color-accent); }
.solar-timeline .mtl-scroll  { --mtl-color: #FFD800; }
.sac-timeline .mtl-scroll    { --mtl-color: #D42D3F; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-page {
  font-family: 'Montserrat', sans-serif;
}

.about-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 40px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.9) 100%),
    url('../assets/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 16px;
}

.about-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-dim);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-row {
  padding: 80px 0;
}

.about-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-row--single .container {
  display: block;
}

.about-row__text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.about-row__text p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e6e6e6;
  margin: 0 0 18px;
}

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

.about-row__text strong { font-weight: 700; }

.about-row__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-text);
}
.about-row__text a:hover { color: var(--color-accent); }

.about-row__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.about-row__header h2 { margin: 0; }

.about-row__badge {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text-dim);
  background-size: cover;
  background-position: center;
}

/* Image placeholder — swap for a real <img> once photos are ready */
.about-row__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

/* Alternate row order on wide screens if you ever want image-left rows:
   add class "about-row--flip" and uncomment below */
/* .about-row--flip .about-row__text { order: 2; }
.about-row--flip .about-row__media { order: 1; } */

@media (max-width: 860px) {
  .about-row .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-row { padding: 56px 0; }
  .about-row__media { order: 2; }
  .about-row__text { order: 1; }
}

/* ============================================================
   MISSIONS PAGE
   ============================================================ */

.mission-page {
  font-family: 'Montserrat', sans-serif;
}

.mission-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 0 40px;
  text-align: center;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.9) 100%),
    url('../assets/speakers-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mission-hero .container { width: 100%; }

.mission-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 16px;
}

.mission-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-dim);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mission-row {
  padding: 90px 0;
}

.mission-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Dark theme: black background, white text */
.mission-row--dark {
  background: #000000;
  color: #f5f5f5;
}

.mission-row--dark .mission-row__eyebrow { color: #9a9a9a; }

.mission-row--dark .mission-row__media {
  border-color: rgba(255, 255, 255, 0.3);
  color: #9a9a9a;
}

/* Light theme: white background, black text */
.mission-row--light {
  background: #ffffff;
  color: #0a0a0a;
}

.mission-row--light .mission-row__eyebrow { color: #6b6b6b; }

.mission-row--light .mission-row__media {
  border-color: rgba(0, 0, 0, 0.25);
  color: #6b6b6b;
}

.mission-row__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.mission-row__text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.03em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.mission-row__text p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

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

/* Image placeholder — swap for a real <img> once photos are ready */
.mission-row__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .mission-row .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-row { padding: 60px 0; }
  .mission-row__media { order: 2; }
  .mission-row__text { order: 1; }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

.team-page {
  --team-accent: #ff7a3c;
  --team-accent-dim: #d9581f;
  --team-bg-deep: #150a06;
  position: relative;
  background: var(--team-bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

.team-page__mars {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46vw, 620px);
  background-image: url('../assets/mars.png');
  background-size: cover;
  background-position: left center;
  filter: blur(6px);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  z-index: 0;
  pointer-events: none;
}

.team-banner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 46px) 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #5c2408 0%, #2a1006 55%, transparent 100%);
}

.team-banner__title {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: 0.02em;
  margin: 0;
  color: #f9dcc4;
}

.team-banner__title strong {
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
}

.team-list {
  position: relative;
  z-index: 1;
  padding: 70px 0 100px;
}

.team-item {
  max-width: 900px;
  margin: 0 0 64px;
}

.team-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-item__header.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.team-item__arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--team-accent);
}

.team-item__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 6px;
  color: #ffffff;
  margin: 0;
}

.team-item__desc {
  margin: 18px 0 22px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f2eefb;
}

.team-item__desc a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-item__desc a:hover { color: var(--team-accent); }

.team-item__status {
  display: block;
  width: 100%;
  padding: 16px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  cursor: default;
}

@media (max-width: 720px) {
  .team-page__mars { width: 70vw; opacity: 0.3; }
  .team-item__title { font-size: 1.2rem; }
  .team-item__arrow {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-item__header { transition: opacity 0.2s linear; transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   SOLAR SAIL PROJECT PAGE
   ============================================================ */

.solar-page {
  font-family: 'Montserrat', sans-serif;
  background: #020B16;
  color: #ffffff;
}

/* ---- Hero: real background photo ---- */
.solar-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 60px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(2,11,22,0.35) 0%, rgba(2,11,22,0.55) 60%, #020B16 100%),
    url('../assets/solar-sail-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.solar-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---- Animated title reveal (SEDS -> "SEDS Solar Sail") ---- */
.solar-hero__title {
  position: relative;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFD800;
  font-size: clamp(2.2rem, 6.4vw, 4.2rem);
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.solar-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

@keyframes solarSpread {
  from { letter-spacing: 0.04em; }
  to   { letter-spacing: 0.4em; }
}
@keyframes solarFadeOut {
  to { opacity: 0; }
}

.solar-hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.1em;
  column-gap: 0.35em;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}
@keyframes solarExpandIn {
  to { opacity: 1; }
}

.solar-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}
@keyframes solarWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .solar-hero__acronym-only,
  .solar-hero__expanded,
  .solar-hero__word {
    animation: none !important;
    opacity: 1 !important;
    letter-spacing: normal !important;
    transform: none !important;
  }
  .solar-hero__acronym-only { display: none; }
}

/* ---- Section heading shared across the page ---- */
.solar-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFD800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 20px;
}

/* ---- Fade-in text section ---- */
.solar-fade {
  padding: 90px 0;
  text-align: center;
}

.solar-fade__text {
  max-width: 780px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ---- Image + text slide-in row ---- */
.solar-row {
  padding: 70px 0 100px;
}

.solar-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.solar-row__text p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0 0 16px;
}
.solar-row__text p:last-child { margin-bottom: 0; }

.solar-row__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(255, 216, 0, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .solar-row .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .solar-row { padding: 50px 0 70px; }
  .solar-row__media { order: 2; }
  .solar-row__text { order: 1; }
}

/* ---- Team grid: frameless hover-reveal cards ---- */
.solar-team {
  padding: 10px 0 90px;
}

.solar-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.solar-team-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #120821;
}

.solar-team-card__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d6a99;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}

.solar-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.solar-team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px;
  gap: 2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0) 75%
  );
}

.solar-team-card__role {
  order: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #FFD800;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 0;
  line-height: 1.2;
}

.solar-team-card__year {
  order: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Mission timeline: dark purple panel + yellow line/dots ---- */
.solar-timeline {
  padding: 90px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #2a1145 0%, #180a2a 55%, transparent 100%);
}

.solar-timeline__date {
  color: #caa6ff;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 70px;
}

.solar-timeline__hint {
  margin-top: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #b9a6d6;
  text-transform: uppercase;
}

/* ---- Gallery: frameless grid + lightbox trigger ---- */
.solar-gallery {
  padding: 30px 0 90px;
}

.solar-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.solar-gallery__item {
  aspect-ratio: 1;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: none;
  display: block;
  width: 100%;
}

.solar-gallery__img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #120821;
  background-size: cover;
  background-position: center;
  color: #7d6a99;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.solar-gallery__item:hover .solar-gallery__img,
.solar-gallery__item:focus-visible .solar-gallery__img {
  transform: scale(1.05);
  filter: brightness(1.15);
}

@media (max-width: 980px) {
  .solar-team__grid,
  .solar-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .solar-team__grid,
  .solar-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
  .solar-team__grid,
  .solar-gallery__grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* ---- Collapsible "Support Us" section ---- */
.solar-support {
  padding: 0 0 100px;
}

.solar-accordion {
  max-width: 780px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 216, 0, 0.35);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.solar-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFD800;
  font-size: 1.05rem;
}

.solar-accordion__summary::-webkit-details-marker { display: none; }

.solar-accordion__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid #FFD800;
  border-bottom: 2px solid #FFD800;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.solar-accordion[open] .solar-accordion__chevron {
  transform: rotate(-135deg);
}

.solar-accordion__body {
  padding: 0 26px 26px;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
}

.solar-accordion__body p:first-child { margin-top: 0; }
.solar-accordion__body a {
  color: #FFD800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   OFFICERS / TEAM GRID PAGE
   ============================================================ */

.officers-page {
  font-family: 'Montserrat', sans-serif;
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6,6,8,0.82) 0%, rgba(24,24,27,0.62) 42%, rgba(52,52,58,0.4) 100%),
    url('../assets/moon.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .officers-page { background-attachment: scroll; }
}

.officers-hero {
  padding: calc(var(--header-height) + 60px) 0 20px;
  text-align: center;
}

.officers-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 16px;
}

.officers-hero__intro {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-dim);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
}

.officers-grid {
  padding: 50px 0 100px;
}

.officers-grid__rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.officer-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.officer-card__photo {
  position: absolute;
  inset: 0;
}

.officer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.officer-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px;
  gap: 2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0) 75%
  );
}

.officer-card__role {
  order: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #d8d8d8;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  margin: 0;
  line-height: 1.3;
}

.officer-card__year {
  order: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.2;
}

.officer-card__socials {
  order: 3;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.officer-card:hover .officer-card__socials,
.officer-card:focus-within .officer-card__socials {
  opacity: 1;
  transform: translateY(0);
}

.officer-social {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.officer-social:hover {
  background: #FFD800;
  color: #000;
  transform: translateY(-2px);
}
.officer-social svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 980px) {
  .officers-grid__rows { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .officers-grid__rows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .officers-grid__rows { grid-template-columns: 1fr; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .officer-card__socials { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   SEDS LUNABOTICS PROJECT PAGE
   ============================================================ */

.luna-page {
  font-family: 'Montserrat', sans-serif;
  background: #000000;
  color: #f0f0f0;
}

/* ---- Hero: real photo + SEDS -> Lunabotics reveal ---- */
.luna-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 0 60px;
  background:
    linear-gradient(180deg, rgba(20,18,14,0.3) 0%, rgba(20,18,14,0.6) 65%, #000000 100%),
    url('../assets/lunabotics-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.luna-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.luna-hero__title {
  position: relative;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfeeff;
  font-size: clamp(2.2rem, 6.4vw, 4.2rem);
  line-height: 1.1;
  margin: 0;
}

.luna-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

.luna-hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}

.luna-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .luna-hero__acronym-only,
  .luna-hero__expanded,
  .luna-hero__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .luna-hero__acronym-only { display: none; }
}

/* ---- Section heading shared across the page ---- */
.luna-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #bfeeff;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 20px;
}

.luna-section-intro {
  padding: 70px 0 10px;
  text-align: center;
}

.luna-section-intro p {
  max-width: 700px;
  margin: 10px auto 0;
  font-weight: 400;
  line-height: 1.7;
  color: #cfcfcf;
}

/* ---- Team grid: frameless hover-reveal cards ---- */
.luna-team {
  padding: 40px 0 90px;
}

.luna-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.luna-team-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #b9ae99;
}

.luna-team-card__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4438;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}

.luna-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.luna-team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px;
  gap: 2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0) 75%
  );
}

.luna-team-card__role {
  order: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #bfeeff;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 0;
  line-height: 1.2;
}

.luna-team-card__year {
  order: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---- Accomplishments: slide-in text + image row ---- */
.luna-accomplish {
  padding: 30px 0 100px;
}

.luna-accomplish .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.luna-accomplish__text p {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e8e8e8;
  margin: 0 0 16px;
}
.luna-accomplish__text p:last-child { margin-bottom: 0; }

.luna-accomplish__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(191, 238, 255, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfeeff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.luna-accomplish__media--video {
  border-style: solid;
  padding: 0;
  overflow: hidden;
}

.luna-accomplish__media--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .luna-accomplish .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .luna-accomplish { padding: 20px 0 60px; }
  .luna-accomplish__media { order: 2; }
  .luna-accomplish__text { order: 1; }
}

/* ---- Gallery: frameless grid + lightbox trigger ---- */
.luna-gallery {
  padding: 30px 0 90px;
}

.luna-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.luna-gallery__item {
  aspect-ratio: 1;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: none;
  display: block;
  width: 100%;
}

.luna-gallery__img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b9ae99;
  background-size: cover;
  background-position: center;
  color: #4a4438;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.luna-gallery__item:hover .luna-gallery__img,
.luna-gallery__item:focus-visible .luna-gallery__img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

/* ---- Collapsible Join / Support Us (dark theme) ---- */
.luna-support {
  padding: 0 0 100px;
}

.luna-accordion {
  max-width: 780px;
  margin: 0 auto 24px;
  border: 1px solid rgba(191, 238, 255, 0.35);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.luna-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfeeff;
  font-size: 1.05rem;
}

.luna-accordion__summary::-webkit-details-marker { display: none; }

.luna-accordion__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid #bfeeff;
  border-bottom: 2px solid #bfeeff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.luna-accordion[open] .luna-accordion__chevron {
  transform: rotate(-135deg);
}

.luna-accordion__body {
  padding: 0 26px 26px;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: #e8e8e8;
}

.luna-accordion__body a {
  color: #bfeeff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .luna-team__grid,
  .luna-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .luna-team__grid,
  .luna-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
  .luna-team__grid,
  .luna-gallery__grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* ============================================================
   LIGHTBOX (reusable — any element with [data-lightbox])
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 500;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay__frame {
  width: min(90vw, 900px);
  height: min(85vh, 700px);
  background-color: #1c1c1c;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.lightbox-overlay__close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-overlay__close:hover { color: #bfeeff; }

body.lightbox-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay { transition: none; }
}

/* ============================================================
   JOIN PAGE
   ============================================================ */

.join-page {
  background: #000000;
  color: #f5f5f5;
}

/* ---- Hero banner: Milky Way photo + SEDS -> JOIN reveal ---- */
.join-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  padding: 40px 20px;
  background: #000000;
}

.join-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/join-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 0;
}

.join-hero__title {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}

.join-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

.join-hero__expanded {
  display: inline-flex;
  justify-content: center;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}

.join-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .join-hero__acronym-only,
  .join-hero__expanded,
  .join-hero__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .join-hero__acronym-only { display: none; }
}

/* ---- Intro line above the two columns ---- */
.join-intro {
  padding: 60px 0 20px;
  text-align: center;
}

.join-intro p {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: #f5f5f5;
  margin: 0 0 6px;
}

.join-intro strong {
  font-weight: 700;
  font-style: normal;
}

/* ---- Why Join / How to Join columns ---- */
.join-columns {
  padding: 40px 0 100px;
}

.join-columns .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
}

.join-col__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 26px;
}

.join-col p {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.join-col a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.join-col a:hover { color: var(--color-accent); }

.join-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.join-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.join-list li::before {
  content: "\25AA";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  color: #f5f5f5;
}

.join-steps {
  list-style: none;
  counter-reset: join-step;
  margin: 0 0 20px;
  padding: 0;
}

.join-steps > li {
  counter-increment: join-step;
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.join-steps > li::before {
  content: counter(join-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.join-steps .join-list {
  margin: 10px 0 0;
}

.join-footnote {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .join-columns .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   SPACE NETWORKING FAIR PAGE
   ============================================================ */

.snf-page {
  font-family: 'Montserrat', sans-serif;
  background: #000000;
  color: #ffffff;
}

/* ---- Hero: gradient (logo colors) + SEDS -> Space Networking Fair reveal ---- */
.snf-hero {
  position: relative;
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(250,185,87,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0,74,173,0.45) 0%, transparent 55%),
    #000000;
}

.snf-hero__title {
  position: relative;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FAB957;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0;
}

.snf-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

.snf-hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.1em;
  column-gap: 0.35em;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}

.snf-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .snf-hero__acronym-only,
  .snf-hero__expanded,
  .snf-hero__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .snf-hero__acronym-only { display: none; }
}

/* ---- Section heading shared across the page ---- */
.snf-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FAB957;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 20px;
}

/* ---- Fade-in intro: "What is Space Networking Fair" ---- */
.snf-fade {
  padding: 90px 0;
  text-align: center;
}

.snf-fade__text {
  max-width: 780px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ---- Team grid: frameless hover-reveal cards ---- */
.snf-team {
  padding: 10px 0 90px;
}

.snf-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.snf-team-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #10131c;
}

.snf-team-card__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e7891;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}

.snf-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.snf-team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px;
  gap: 2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0) 75%
  );
}

/* This page's __year field holds the person's real name (matching
   team.html's convention), so it's the prominent line; __role is
   the smaller secondary line underneath. */
.snf-team-card__role {
  order: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #FAB957;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  margin: 0;
  line-height: 1.3;
}

.snf-team-card__year {
  order: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  margin: 0;
  line-height: 1.2;
}

/* ---- Accomplishments: slide-in text + image row ---- */
.snf-row {
  padding: 20px 0 90px;
}

.snf-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.snf-row__text p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0 0 16px;
}
.snf-row__text p:last-child { margin-bottom: 0; }

.snf-row__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(250, 185, 87, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAB957;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .snf-row .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .snf-row { padding: 20px 0 60px; }
  .snf-row__media { order: 2; }
  .snf-row__text { order: 1; }
}

/* ---- Participating Organizations: hover reveals org name in blue ---- */
.snf-orgs {
  padding: 10px 0 90px;
}

.snf-orgs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.snf-org-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #10131c;
}

.snf-org-card__logo {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e7891;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 14px;
  transition: opacity 0.35s ease;
}

.snf-org-card:hover .snf-org-card__logo,
.snf-org-card:focus-within .snf-org-card__logo {
  opacity: 0.25;
}

.snf-org-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  pointer-events: none;
}

.snf-org-card:hover .snf-org-card__overlay,
.snf-org-card:focus-within .snf-org-card__overlay {
  opacity: 1;
  transform: translateX(0);
}

.snf-org-card__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #004AAD;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(0, 74, 173, 0.35);
}

/* ---- Gallery: frameless grid + lightbox trigger ---- */
.snf-gallery {
  padding: 10px 0 90px;
}

.snf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.snf-gallery__item {
  aspect-ratio: 1;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: none;
  display: block;
  width: 100%;
}

.snf-gallery__img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #10131c;
  background-size: cover;
  background-position: center;
  color: #6e7891;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.snf-gallery__item:hover .snf-gallery__img,
.snf-gallery__item:focus-visible .snf-gallery__img {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* ---- Collapsible: Learn More / Support Us / Sponsor ---- */
.snf-support {
  padding: 0 0 100px;
}

.snf-accordion {
  max-width: 780px;
  margin: 0 auto 24px;
  border: 1px solid rgba(250, 185, 87, 0.35);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.snf-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FAB957;
  font-size: 1.05rem;
}

.snf-accordion__summary::-webkit-details-marker { display: none; }

.snf-accordion__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid #FAB957;
  border-bottom: 2px solid #FAB957;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.snf-accordion[open] .snf-accordion__chevron {
  transform: rotate(-135deg);
}

.snf-accordion__body {
  padding: 0 26px 26px;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
}

.snf-accordion__body a {
  color: #FAB957;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .snf-team__grid,
  .snf-orgs__grid,
  .snf-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .snf-team__grid,
  .snf-orgs__grid,
  .snf-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
  .snf-team__grid,
  .snf-orgs__grid,
  .snf-gallery__grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* ============================================================
   STUDENT ASTRONAUT CORPS PAGE
   ============================================================ */

.sac-page {
  font-family: 'Montserrat', sans-serif;
  background: #060203;
  color: #ffffff;
}

/* ---- Hero: maroon glow gradient + SEDS -> Student Astronaut Corps reveal ---- */
.sac-hero {
  position: relative;
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74,17,23,0.65) 0%, transparent 62%),
    #060203;
}

.sac-hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url('../assets/sac-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(70%, 640px);
  filter: blur(6px);
  opacity: 0.4;
  z-index: 0;
}

.sac-hero .container {
  position: relative;
  z-index: 1;
}

.sac-hero__title {
  position: relative;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.1;
  margin: 0;
}

.sac-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

.sac-hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.1em;
  column-gap: 0.35em;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}

.sac-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .sac-hero__acronym-only,
  .sac-hero__expanded,
  .sac-hero__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sac-hero__acronym-only { display: none; }
}

/* ---- Section heading shared across the page (white, per brand rule) ---- */
.sac-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 20px;
}

/* ---- Fade-in intro: "What is Student Astronaut Corps" ---- */
.sac-fade {
  padding: 90px 0;
  text-align: center;
}

.sac-fade__text {
  max-width: 780px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ---- Mission timeline: maroon panel + white line/dots ---- */
.sac-timeline {
  padding: 90px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #3a0d13 0%, #1c0609 55%, transparent 100%);
}

.sac-timeline__date {
  color: #e8b4bb;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 70px;
}

.sac-timeline__hint {
  margin-top: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #d9a9ae;
  text-transform: uppercase;
}

/* ---- "What we do?" slide-in text + image row ---- */
.sac-row {
  padding: 30px 0 100px;
}

.sac-row .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sac-row__text p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0 0 16px;
}
.sac-row__text p:last-child { margin-bottom: 0; }

.sac-row__media {
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .sac-row .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sac-row { padding: 20px 0 60px; }
  .sac-row__media { order: 2; }
  .sac-row__text { order: 1; }
}

/* ---- Meet the Team: 2-frame hover-reveal grid ---- */
.sac-team {
  padding: 10px 0 90px;
}

.sac-team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
}

.sac-team-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #150608;
}

.sac-team-card__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a6b6e;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}

.sac-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.sac-team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 18px;
  gap: 2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 38%,
    rgba(0, 0, 0, 0) 75%
  );
}

.sac-team-card__role {
  order: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #d42d3f;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0;
  line-height: 1.2;
}

.sac-team-card__year {
  order: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Collapsible: Join / Sponsor Us / Contact Us ---- */
.sac-support {
  padding: 0 0 100px;
}

.sac-accordion {
  max-width: 780px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(74, 17, 23, 0.18);
}

.sac-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 1.05rem;
}

.sac-accordion__summary::-webkit-details-marker { display: none; }

.sac-accordion__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.sac-accordion[open] .sac-accordion__chevron {
  transform: rotate(-135deg);
}

.sac-accordion__body {
  padding: 0 26px 26px;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
}

.sac-accordion__body a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sac-accordion__body a:hover { color: #e8b4bb; }

@media (max-width: 560px) {
  .sac-team__grid { grid-template-columns: 1fr; max-width: 280px; }
}

/* ============================================================
   MEMBER PORTAL PAGE
   ============================================================ */

.portal-page {
  --mp-bg-deep: #00070c;
  --mp-bg-mid: #001e2f;
  --mp-accent: #f2a65a;
  font-family: 'Montserrat', sans-serif;
  background: var(--mp-bg-deep);
  color: #ffffff;
}

/* ---- Hero: rocket launch photo + SEDS -> Student Portal reveal ---- */
.portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
  background:
    linear-gradient(180deg, rgba(0,7,12,0.25) 0%, rgba(0,7,12,0.55) 65%, var(--mp-bg-deep) 100%),
    url('../assets/portal-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portal-hero__title {
  position: relative;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.1;
  margin: 0;
}

.portal-hero__acronym-only {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation:
    solarSpread 1s ease forwards 0.6s,
    solarFadeOut 0.7s ease forwards 1.6s;
}

.portal-hero__expanded {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.1em;
  column-gap: 0.35em;
  opacity: 0;
  animation: solarExpandIn 0.7s ease forwards 1.6s;
}

.portal-hero__word {
  opacity: 0;
  transform: translateY(0.3em);
  animation: solarWordIn 0.8s ease forwards 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero__acronym-only,
  .portal-hero__expanded,
  .portal-hero__word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .portal-hero__acronym-only { display: none; }
}

/* ---- Search bar ---- */
.portal-search {
  padding: 46px 0 20px;
  display: flex;
  justify-content: center;
}

.portal-search__form {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 12px 18px;
}

.portal-search__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #6b6b6b;
}
.portal-search__icon svg { width: 100%; height: 100%; }

.portal-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
}
.portal-search__input::placeholder { color: #9a9a9a; }

.portal-search__submit {
  flex-shrink: 0;
  border: none;
  background: var(--mp-bg-mid);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.portal-search__submit:hover { background: var(--mp-accent); color: #1a1a1a; }

.portal-search__msg {
  min-height: 1.2em;
  text-align: center;
  font-size: 0.85rem;
  color: #d97a3a;
  margin: 12px 0 0;
}

/* ---- Template grid ---- */
.portal-template {
  padding: 40px 0 100px;
}

.portal-template__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 22px;
}

.portal-card {
  position: relative;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background: var(--mp-bg-mid);
  padding: 22px 24px;
  box-sizing: border-box;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}

.portal-card:hover {
  border-color: var(--mp-accent);
  box-shadow:
    0 0 0 4px rgba(242, 166, 90, 0.12),
    0 0 34px 6px rgba(242, 166, 90, 0.45);
  transform: translateY(-2px);
}

.portal-card--name {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}

.portal-card--name .portal-card__value {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--mp-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  text-align: center;
}

.portal-card--small {
  grid-column: span 2;
  min-height: 60px;
}

.portal-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 4px;
}

.portal-card__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-accent);
  margin: 0;
}

.portal-card--points {
  grid-column: span 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portal-card--points .portal-card__label {
  margin-bottom: auto;
}

.portal-card--points .portal-card__value {
  font-size: 2.2rem;
  color: #ffffff;
  margin: auto 0;
}

.portal-card--attendance {
  grid-column: span 2;
  grid-row: span 2;
}

.portal-card--events {
  grid-column: span 1;
  grid-row: span 2;
}

.portal-card__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.portal-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mp-accent);
  line-height: 1.4;
}

.portal-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mp-accent);
}

.portal-card__empty {
  color: #ffffff;
  opacity: 0.6;
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .portal-template__grid { grid-template-columns: repeat(2, 1fr); }
  .portal-card--name,
  .portal-card--small,
  .portal-card--attendance { grid-column: span 2; }
  .portal-card--points,
  .portal-card--events { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 560px) {
  .portal-template__grid { grid-template-columns: 1fr; }
  .portal-card--name,
  .portal-card--small,
  .portal-card--points,
  .portal-card--attendance,
  .portal-card--events { grid-column: span 1; grid-row: auto; }
}

/* ============================================================
   ORBIT LOADER (reusable loading / buffering animation)
   ============================================================
   Drop this markup anywhere a loading state is needed:

     <div class="orbit-loader" role="status" aria-live="polite">
       <span class="orbit-loader__planet"></span>
       <svg class="orbit-loader__track" viewBox="0 0 80 80" aria-hidden="true">
         <ellipse cx="40" cy="40" rx="34" ry="14" fill="none" stroke="#2f6bff" stroke-width="2"/>
       </svg>
       <span class="orbit-loader__moon"></span>
       <span class="sr-only">Loading&hellip;</span>
     </div>

   Toggle visibility with the "is-active" class on a wrapper, or just
   add/remove the element from the DOM. See memberportal.html for a
   working example wired to the search form.
   ============================================================ */

.orbit-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  transform: rotate(-20deg);
}

.orbit-loader__planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d9d9d9;
}

.orbit-loader__track {
  position: absolute;
  inset: 0;
}

.orbit-loader__moon {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f6bff;
  offset-path: path("M 6 40 A 34 14 0 1 1 74 40 A 34 14 0 1 1 6 40");
  offset-rotate: 0deg;
  animation: orbitMove 2.2s linear infinite;
}

@keyframes orbitMove {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-loader__moon { animation: none; offset-distance: 0%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   SUBTEAMS (expandable chip cards) — sedslunabotics.html
   ============================================================ */

.luna-subteams {
  padding: 10px 0 90px;
}

.luna-subteams__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.luna-subteam {
  flex: 0 0 auto;
  width: 220px;
  background: #bfeeff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.luna-subteam__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0a0a0a;
  text-align: left;
}

.luna-subteam__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #0a0a0a;
  transition: transform 0.3s ease;
}
.luna-subteam__chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.luna-subteam.is-open .luna-subteam__chevron {
  transform: rotate(180deg);
}

.luna-subteam__list {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.3s ease;
}

.luna-subteam.is-open .luna-subteam__list {
  max-height: 320px;
  opacity: 1;
  padding: 0 20px 20px;
}

.luna-subteam__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #0a0a0a;
  line-height: 1.4;
}

.luna-subteam__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
  .luna-subteam__chevron,
  .luna-subteam__list { transition: none; }
}

/* ============================================================
   SUBTEAMS — SOLAR SAIL (yellow variant)
   ============================================================ */

.solar-subteams {
  padding: 10px 0 90px;
}

.solar-subteams__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.solar-subteam {
  flex: 0 0 auto;
  width: 220px;
  background: #FFD800;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.solar-subteam__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0a0a0a;
  text-align: left;
}

.solar-subteam__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #0a0a0a;
  transition: transform 0.3s ease;
}
.solar-subteam__chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.solar-subteam.is-open .solar-subteam__chevron {
  transform: rotate(180deg);
}

.solar-subteam__list {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.3s ease;
}

.solar-subteam.is-open .solar-subteam__list {
  max-height: 320px;
  opacity: 1;
  padding: 0 20px 20px;
}

.solar-subteam__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #0a0a0a;
  line-height: 1.4;
}

.solar-subteam__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
  .solar-subteam__chevron,
  .solar-subteam__list { transition: none; }
}

/* ============================================================
   PARTNER FLIP CARDS — page-scoped accent colors
   (structure/mechanics reused from the global .partner-flip
   component; only the back-face border color changes per page)
   ============================================================ */

.luna-page .partner-flip__back { border-color: #bfeeff; }
.solar-page .partner-flip__back { border-color: #FFD800; }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-section {
  padding: 20px 0 100px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.contact-form__required {
  color: var(--color-accent);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact-form__submit {
  align-self: flex-start;
}

.contact-thankyou {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

.contact-thankyou h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.contact-thankyou p {
  color: var(--color-text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .timeline__point { width: 14px; height: 14px; }
  .board__grid { grid-template-columns: 1fr 1fr; }
}
