/* ==========================================================================
   Texas A&M Design Build Fly — site stylesheet
   --------------------------------------------------------------------------
   Table of contents:
     1. Fonts & custom properties (brand colors, spacing, type scale)
     2. Reset & base element styles
     3. Layout helpers (container, section, grid)
     4. Buttons
     5. Navigation
     6. Hero
     7. Section headers & decorative dividers
     8. Cards (leadership / events / announcements / companies)
     9. Forms
    10. Footer
    11. Scroll-reveal animation system
    12. Responsive breakpoints
    13. Reduced-motion / accessibility overrides
   ========================================================================== */

/* Fonts are loaded from components/head.html via a <link>, not @import
   here — @import blocks CSS parsing until the font sheet downloads, a
   <link> in <head> lets the browser fetch it in parallel. */

/* 1. Custom properties ---------------------------------------------------- */
:root {
  /* Brand colors — dark, modern, maroon-accented */
  --color-primary: #7d1a26;
  --color-primary-light: #b23a44;
  --color-primary-dark: #430a10;
  --color-off-white: #f3f1ec;
  --color-ink: #f3f1ec;
  --color-steel: #a29c95;
  --color-steel-light: #6f6a65;
  --color-border: rgba(243, 241, 236, 0.09);
  --color-border-strong: rgba(243, 241, 236, 0.18);
  --color-bg: #0a0a0b;
  --color-bg-alt: #111113;
  --color-surface: #17171a;
  --color-surface-2: #1e1e22;

  --color-success: #3fa06a;
  --color-error: #d24b4b;

  /* Type */
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Shape — sharper, more engineered than the old pill/rounded look */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 0 1px rgba(178, 58, 68, 0.4), 0 16px 40px rgba(125, 26, 38, 0.25);

  --nav-height: 5.5rem;
  --nav-height-scrolled: 4.25rem;
  --max-width: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  padding-top: var(--nav-height);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-off-white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

ul {
  margin: 0;
}

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

/* Thin, dark scrollbar with a maroon thumb (WebKit/Blink only; harmless elsewhere) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
  border: 2px solid var(--color-bg);
}

/* 3. Layout helpers --------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.text-center {
  text-align: center;
}

/* 4. Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--color-primary);
  color: var(--color-off-white);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-off-white);
  border-color: var(--color-border-strong);
}

.btn--ghost:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-off-white);
}

.btn--on-dark {
  background: var(--color-off-white);
  color: var(--color-bg);
  border-color: var(--color-off-white);
}

.btn--on-dark:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-off-white);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

/* 5. Navigation --------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.is-scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 2.6rem;
  transition: height 0.3s var(--ease);
}

.nav.is-scrolled .nav__logo {
  height: 2.1rem;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-off-white);
  opacity: 0.8;
  position: relative;
  padding: 0.4rem 0;
  transition: opacity 0.3s var(--ease);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  opacity: 1;
}

.nav__toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.6rem;
  height: 2px;
  background: var(--color-off-white);
  transform: translate(-50%, -50%);
  transition: 0.3s var(--ease);
}

.nav__toggle span::before {
  top: -0.55rem;
}

.nav__toggle span::after {
  top: 0.55rem;
}

.nav__mobile {
  display: none;
}

/* 6. Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
  color: var(--color-off-white);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(180deg, rgba(6, 6, 7, 0.55) 0%, rgba(6, 6, 7, 0.45) 35%, rgba(6, 6, 7, 0.88) 82%, #0a0a0b 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.75) 0%, rgba(6, 6, 7, 0.15) 55%, rgba(6, 6, 7, 0.55) 100%),
    url("../img/brand/hero.jpg?v=3");
  background-size: cover;
  background-position: center 56%;
  filter: grayscale(35%) contrast(1.08) brightness(0.85);
  z-index: -2;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 241, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at 20% 80%, black 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: 0 var(--space-lg) var(--space-2xl);
  width: 100%;
}

.hero__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-md);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--color-off-white);
  opacity: 0.75;
  margin-bottom: var(--space-sm);
  display: block;
}

.hero h1 {
  color: var(--color-off-white);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin-bottom: var(--space-md);
}

.hero h2 {
  color: var(--color-steel);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 34rem;
  margin-bottom: var(--space-lg);
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mission-photo-frame {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
}

.mission-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  left: auto;
  transform: none;
  width: 1.6rem;
  height: 2.6rem;
  border: 1px solid rgba(243, 241, 236, 0.35);
  border-radius: 999px;
}

.hero__seal {
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: min(50rem, 60vw);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px);
  animation: heroSealIn 1.4s var(--ease) forwards;
  animation-delay: 1.8s;
}

.hero__seal img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) brightness(0.5);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__seal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero__scroll-cue::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary-light);
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* 7. Section headers & decorative dividers ------------------------------------- */
.section-header {
  position: relative;
  display: inline-block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  height: 3px;
  width: 3.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.section-header--center {
  display: block;
  text-align: center;
}

.section-header--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.page-header {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: var(--space-sm) 0 var(--space-sm);
}

.page-subheader {
  text-align: center;
  color: var(--color-steel);
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xs);
  display: block;
}

.eyebrow--center {
  text-align: center;
}

/* Decorative "orbit" divider: cheap, elegant, built entirely from CSS/SVG */
.orbit-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-xl) 0;
  color: var(--color-primary-light);
  opacity: 0.6;
}

.orbit-divider::before,
.orbit-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 8rem;
  background: linear-gradient(90deg, transparent, currentColor);
}

.orbit-divider::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.orbit-divider svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

/* Blueprint-style grid background, used behind a few section wrappers */
.blueprint-bg {
  position: relative;
  overflow: hidden;
}

.blueprint-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 241, 236, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 0;
  pointer-events: none;
}

.blueprint-bg > .container {
  position: relative;
  z-index: 1;
}

/* 8. Cards ---------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-primary);
  border-color: rgba(178, 58, 68, 0.4);
}

/* Leadership cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* For a short, uneven row of cards (e.g. 2 faculty sponsors) — a plain
   grid leaves them stuck to the left with dead space on the right.
   Flex + justify-content lets them sit centered as a group instead. */
.people-grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.people-grid--center > * {
  flex: 0 1 15.5rem;
  max-width: 20rem;
}

.person-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-2);
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

/* Shown instead of a broken image when a board/faculty member doesn't
   have a headshot uploaded yet — see person_photo_html() in functions.php. */
.person-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-card__photo--placeholder svg {
  width: 32%;
  height: 32%;
  color: var(--color-steel-light);
}

.card:hover .person-card__photo img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1);
}

.person-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.person-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-off-white);
  margin-bottom: 0.15rem;
}

.person-card__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-sm);
}

.person-card__bio {
  font-size: 0.9rem;
  color: var(--color-steel);
  flex: 1;
}

.person-card__footer {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-off-white);
}

.person-card__footer a {
  color: var(--color-off-white);
}

.person-card__footer svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

/* DBF Leadership sub-teams (Management, Stability & Control, ...) */
.leadership-team {
  margin-bottom: var(--space-2xl);
}

.leadership-team:last-child {
  margin-bottom: 0;
}

.leadership-team__title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.leadership-team__excerpt {
  text-align: center;
  color: var(--color-steel);
  max-width: 38rem;
  margin: 0 auto var(--space-lg);
  font-size: 0.95rem;
}

/* Bare leadership role cards: photo, name, role -- no bio, no contact
   info. Fixed body min-height (instead of letting bio text drive it,
   like the full person-card does) keeps every card the same height
   across every sub-team, regardless of how long a given role name is. */
.person-card--role .person-card__body {
  min-height: 9rem;
  justify-content: center;
}

/* Announcement / event cards */
.feature-card {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  align-items: center;
}

.feature-card__image {
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--color-steel);
  margin-bottom: var(--space-sm);
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.announcement-card {
  /* No padding here on purpose -- .card already clips overflow to its
     own border-radius, so an edge-to-edge image at the top of the card
     picks up rounded corners automatically with no extra CSS. Text
     content gets its own padding via .announcement-card__body. */
}

.announcement-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.announcement-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-card__body {
  padding: var(--space-md);
}

.announcement-card__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.announcement-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.announcement-card p {
  color: var(--color-steel);
  margin-bottom: 0;
}

.announcement-card--empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-steel);
  padding: var(--space-xl) var(--space-md);
  grid-column: 1 / -1;
}

.announcement-card--empty svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto var(--space-sm);
  color: var(--color-primary-light);
}

/* Company cards */
.company-card {
  padding: var(--space-md);
}

.company-card__logo {
  height: 5rem;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.company-card__logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.company-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.company-card p {
  color: var(--color-steel);
  font-size: 0.92rem;
}

.company-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Simple content cards (join / research / industry) */
.info-card {
  padding: var(--space-lg);
}

.info-card h2, .info-card h3 {
  margin-top: 0;
}

/* The single, full-width membership card (now that it's the only path to
   joining) — a bit more room and a touch of visual weight so it doesn't
   read like a leftover half of a two-column grid. */
.info-card--wide {
  max-width: none;
  padding: var(--space-xl) var(--space-lg);
  border-left: 3px solid var(--color-primary);
}

.info-card--wide h3 {
  font-size: 1.4rem;
}

.info-card--wide p {
  font-size: 1.05rem;
  max-width: 52rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* 8b. "Why Join DBF?" — mission copy with a scattered backdrop of partner
   logos. Logos are decorative (aria-hidden), low-opacity, grayscale, and
   hidden on small screens where there isn't room for them not to collide
   with the text. ------------------------------------------------------- */
.mission-logos-wrap {
  position: relative;
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mission-logos img {
  position: absolute;
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.16;
}

.mission-logos-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  text-align: center;
}

.mission-logos-copy {
  font-size: 1.08rem;
  color: var(--color-steel);
  text-align: left;
}

@media (max-width: 900px) {
  .mission-logos {
    display: none;
  }

  .mission-logos-wrap {
    min-height: 0;
  }
}

/* 8c. Sponsors — tiered sections of company cards, reusing .company-card.
   Each tier gets an accent color guessed from common tier names (falls
   back to the site maroon for a custom tier name). ------------------- */
.sponsor-tier {
  margin-bottom: var(--space-2xl);
}

.sponsor-tier__title::after {
  background: linear-gradient(90deg, var(--tier-color, var(--color-primary)), transparent);
}

.sponsor-tier--platinum { --tier-color: #22d3ee; }
.sponsor-tier--platinum .sponsor-tier__title { text-shadow: 0 0 18px rgba(34, 211, 238, 0.45); }
.sponsor-tier--gold { --tier-color: #d4af6a; }
.sponsor-tier--silver { --tier-color: #a9a9a9; }
.sponsor-tier--bronze { --tier-color: #b0764c; }
.sponsor-tier--default { --tier-color: var(--color-primary-light); }

.company-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-steel-light);
}

.company-card__logo--placeholder svg {
  width: 40%;
  height: 40%;
}

/* Sponsor logos float directly on the page: no card, no box, no visible
   company name -- just a clickable, roughly-square logo mark. */
.sponsor-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.sponsor-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(20rem, 45vw);
  height: min(20rem, 45vw);
  transition: transform 0.3s var(--ease);
}

.sponsor-logo-tile:hover {
  transform: scale(1.08);
}

.sponsor-logo-tile img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-logo__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55%;
  height: 55%;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-steel-light);
}

.sponsor-logo__placeholder svg {
  width: 42%;
  height: 42%;
}

/* 8d. Sponsorship benefits — tier comparison cards on the Sponsors page.
   Scoped to .sponsors-page; reuses the same accent colors as the
   .sponsor-tier headings above so the two sections read as one system. */
.sponsors-page {
  text-align: center;
}

.tier-benefits {
  margin-top: var(--space-xl);
}

.tier-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-xl);
}

.tier-card {
  --tier-rgb: 178, 58, 68;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--tier-color, var(--color-primary-light));
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Ambient glow in the tier's own color, plus the lift shadow: both
     rest and hover carry the same two shadow layers (only blur/spread/
     alpha change), so hovering fades the glow in smoothly instead of a
     shadow layer snapping in partway through. */
  box-shadow: 0 0 20px rgba(var(--tier-rgb), 0.1), var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease);
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 38px rgba(var(--tier-rgb), 0.32), var(--shadow-md);
}

.tier-card--bronze { --tier-color: #b0764c; --tier-rgb: 176, 118, 76; }
.tier-card--silver { --tier-color: #a9a9a9; --tier-rgb: 169, 169, 169; }
.tier-card--gold { --tier-color: #d4af6a; --tier-rgb: 212, 175, 106; }

.tier-card__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tier-color, var(--color-off-white));
  margin: 0 0 0.35rem;
}

.tier-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-steel-light);
  margin: 0 0 var(--space-sm);
}

.tier-card__price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-off-white);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin: 0 0 var(--space-md);
}

.tier-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-steel);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tier-card__list li {
  margin: 0 0 var(--space-sm);
}

.tier-card__list li:last-child {
  margin-bottom: 0;
}

.tier-card__list li:not(:first-child)::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--tier-color, var(--color-primary-light));
}

.tier-card__inherits {
  color: var(--color-off-white);
  font-style: italic;
}

/* Platinum spans the full width of the Bronze / Silver / Gold row above
   it, and trades their tall single-column layout for a short, wide one:
   the tier header sits left of a divider, the "includes" note runs
   across the top of the benefit area, and the three remaining Platinum-
   only benefits sit in their own columns beneath it. */
.tier-card--platinum {
  --tier-color: #22d3ee;
  --tier-rgb: 34, 211, 238;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "header inherits"
    "header list";
  align-items: center;
  column-gap: var(--space-xl);
  row-gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  /* Both states carry the same two shadow layers (glow + lift shadow),
     differing only in blur/spread/alpha, so box-shadow can interpolate
     smoothly on hover instead of snapping in a layer that wasn't there
     at rest. Platinum's glow runs a little brighter than the other
     tiers' since it's the top of the ladder. */
  box-shadow: 0 0 24px rgba(var(--tier-rgb), 0.16), 0 16px 40px rgba(0, 0, 0, 0);
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease);
}

.tier-card--platinum:hover {
  box-shadow: 0 0 48px rgba(var(--tier-rgb), 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.tier-card--platinum .tier-card__header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: var(--space-xl);
  border-right: 1px solid var(--color-border-strong);
}

.tier-card--platinum .tier-card__name,
.tier-card--platinum .tier-card__label {
  margin: 0 0 0.3rem;
}

.tier-card--platinum .tier-card__price {
  margin: 0;
}

.tier-card--platinum .tier-card__inherits {
  grid-area: inherits;
  margin: 0 0 var(--space-xs);
  font-size: 0.92rem;
}

.tier-card--platinum .tier-card__list--row {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(3, minmax(11rem, 1fr));
  gap: 0.25rem var(--space-lg);
}

.tier-card--platinum .tier-card__list--row li {
  margin: 0;
}

.tier-card--platinum .tier-card__list--row li::before {
  content: none;
}

.tier-benefits-disclaimer {
  max-width: 42rem;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-steel);
}

/* 9. Forms ------------------------------------------------------------------ */
.status-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

.status-message--error {
  background: rgba(210, 75, 75, 0.12);
  color: var(--color-error);
}

/* 10. Footer ------------------------------------------------------------------ */
.footer {
  background: var(--color-bg-alt);
  color: var(--color-off-white);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer h3 {
  color: var(--color-off-white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer p {
  color: var(--color-steel);
  font-size: 0.92rem;
}

.footer a {
  color: var(--color-off-white);
}

.footer__brand-mark {
  height: 2.8rem;
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.footer__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-primary-light);
}

.footer__muted {
  color: var(--color-steel-light);
  font-size: 0.92rem;
}

.footer__email {
  margin-bottom: 0.4rem;
}

.footer__email a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-off-white);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

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

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.footer__instagram {
  margin-top: 0.5rem;
}

.footer__instagram a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--color-steel);
  transition: color 0.25s var(--ease);
}

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

.footer__social a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s var(--ease);
}

.footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.footer__social a:hover svg {
  fill: var(--color-off-white);
}

.footer__social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--color-steel);
  transition: fill 0.25s var(--ease);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--color-steel-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 11. Scroll-reveal animation system -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

.reveal--fade {
  transform: none;
}

.reveal--scale {
  transform: translateY(20px) scale(0.96);
}

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

/* 12. Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .container {
    padding: 0 var(--space-md);
  }

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

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

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

  .tier-card--platinum .tier-card__list--row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(8, 8, 9, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 7rem var(--space-lg) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 1050;
  }

  .nav__mobile.is-open {
    transform: translateX(0);
  }

  .nav__mobile a {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-off-white);
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .tier-benefits-grid {
    grid-template-columns: 1fr;
  }

  .tier-card--platinum {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "inherits"
      "list";
    text-align: center;
    padding: var(--space-lg) var(--space-md);
  }

  .tier-card--platinum .tier-card__header {
    border-right: none;
    border-bottom: 1px solid var(--color-border-strong);
    padding-right: 0;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xs);
  }

  .tier-card--platinum .tier-card__inherits {
    text-align: center;
  }

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

  .feature-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-card__image {
    margin: 0 auto;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: var(--space-xl) 0;
  }

  h1.page-header {
    font-size: 2.1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}

/* 13. Reduced motion / accessibility --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn,
  .nav,
  .nav__logo,
  .person-card__photo img {
    transition: none !important;
    animation: none !important;
  }

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

  .hero__scroll-cue::before {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}
