/* =========================================================
   Texas A&M Iron Spikes — site styles
   Palette: Aggie maroon + white. Layout language after siwacap.com:
   full-bleed photo heroes, floating pill nav, light large headlines,
   frosted cards, generous whitespace.
   ========================================================= */

:root {
  /* Color tokens */
  --maroon: #500000;
  --maroon-600: #6b0f0f;
  --maroon-800: #3a0000;
  --maroon-950: #1a0303;
  --maroon-tint: #f6f0f0;
  --white: #ffffff;
  --ink: #161212;
  --text: #221c1c;
  --muted: #5e5454;
  --line: #e8e0e0;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.24);

  /* Type */
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-eyebrow: 0.75rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);

  /* Space (8pt rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1240px;

  /* Shape + motion */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 3, 3, 0.06), 0 2px 8px rgba(26, 3, 3, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(26, 3, 3, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* Layers */
  --z-nav: 40;
  --z-menu: 50;
  --z-dialog: 100;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
main:focus { outline: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--maroon); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.site-header:not(.is-solid) :focus-visible,
.mobile-menu :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--maroon);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--maroon-tint); }
.section--dark { background: var(--maroon-950); color: var(--on-dark-muted); }
.section--maroon { background: var(--maroon); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3,
.section--maroon h2, .section--maroon h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
/* Centered labels get a dash on both sides so they stay visually centered */
.creed .eyebrow::after,
.center .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.on-dark .eyebrow,
.section--dark .eyebrow,
.section--maroon .eyebrow,
.hero .eyebrow { color: var(--on-dark-muted); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.section--dark .lead, .section--maroon .lead { color: var(--on-dark-muted); }

.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); }
}
.section-head .eyebrow { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--maroon);
  --btn-fg: var(--white);
  --btn-line: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
    border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:hover { --btn-bg: var(--maroon-800); --btn-line: var(--maroon-800); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--maroon); --btn-line: var(--white); }
.btn--light:hover { --btn-bg: var(--maroon-tint); --btn-line: var(--maroon-tint); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: var(--white); --btn-line: rgba(255, 255, 255, 0.45); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.18); --btn-line: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--maroon); --btn-line: rgba(80, 0, 0, 0.35); }
.btn--outline:hover { --btn-bg: var(--maroon); --btn-fg: var(--white); --btn-line: var(--maroon); }

/* Locked / not-yet-open action (e.g. Rookie Applications) */
.btn--locked,
.btn--locked:hover {
  --btn-bg: var(--maroon-tint);
  --btn-fg: var(--muted);
  --btn-line: var(--line);
  cursor: not-allowed;
  transform: none;
}
.btn--locked svg, .btn--locked:hover svg { transform: none; }
.locked-note { margin-top: var(--s-2); font-size: 0.95rem; font-weight: 500; color: var(--maroon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid rgba(80, 0, 0, 0.3);
  padding-bottom: 2px;
  transition: border-color var(--t-fast) ease, gap var(--t-fast) var(--ease-out);
}
.text-link:hover { border-color: var(--maroon); gap: 0.7rem; }
.text-link svg { width: 16px; height: 16px; }
.section--dark .text-link, .section--maroon .text-link { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.section--dark .text-link:hover, .section--maroon .text-link:hover { border-color: var(--white); }

/* ---------- Header / floating pill nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding-top: 14px;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  max-width: 1360px;
  margin-inline: auto;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  pointer-events: auto;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease,
    box-shadow var(--t-med) ease, backdrop-filter var(--t-med) ease;
}
@media (min-width: 640px) { .site-header { padding-inline: var(--gutter); } }
@media (max-width: 639px) { .site-header__inner { margin-inline: 10px; } }

.site-header.is-solid .site-header__inner {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(80, 0, 0, 0.1);
  box-shadow: var(--shadow-md);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}

.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 64px; width: 64px; margin-block: -10px; transition: transform var(--t-med) var(--ease-out); }
.brand:hover img { transform: rotate(-8deg); }
.brand .brand__dark { display: none; }
.site-header.is-solid .brand__light { display: none; }
.site-header.is-solid .brand__dark { display: block; }

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.nav-pill a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.nav-pill a:hover { background: rgba(255, 255, 255, 0.16); }
.nav-pill a[aria-current="page"] { background: var(--white); color: var(--maroon); }

.site-header.is-solid .nav-pill { background: var(--maroon-tint); border-color: transparent; }
.site-header.is-solid .nav-pill a { color: var(--text); }
.site-header.is-solid .nav-pill a:hover { background: rgba(80, 0, 0, 0.07); }
.site-header.is-solid .nav-pill a[aria-current="page"] { background: var(--maroon); color: var(--white); }

.header-cta { display: none; }
.site-header:not(.is-solid) .header-cta { --btn-bg: var(--white); --btn-fg: var(--maroon); --btn-line: var(--white); }
.site-header:not(.is-solid) .header-cta:hover { --btn-bg: var(--maroon-tint); --btn-line: var(--maroon-tint); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.menu-toggle svg { width: 20px; height: 20px; }
.site-header.is-solid .menu-toggle { background: var(--maroon); border-color: var(--maroon); }

@media (min-width: 1200px) {
  .nav-pill { display: flex; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .menu-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) var(--s-5);
  background: var(--maroon);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out),
    visibility 0s linear var(--t-med);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 38px; width: auto; }
.menu-close {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-close svg { width: 22px; height: 22px; }
.mobile-menu nav { margin-top: var(--s-5); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu nav a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-5); display: grid; gap: var(--s-2); }
.mobile-menu__foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 var(--s-6);
  color: var(--on-dark);
  overflow: hidden;
  background: var(--maroon-950);
}
.hero__media,
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 3, 3, 0.7) 0%, rgba(20, 3, 3, 0.35) 45%, rgba(20, 3, 3, 0) 70%),
    linear-gradient(180deg, rgba(20, 3, 3, 0.55) 0%, rgba(20, 3, 3, 0.1) 30%, rgba(20, 3, 3, 0.35) 58%, rgba(20, 3, 3, 0.9) 100%);
}
.hero__grid { display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1fr 340px; } }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__sub { max-width: 46ch; margin-top: var(--s-3); font-size: var(--fs-lead); color: var(--on-dark-muted); }
.hero .btn-row { margin-top: var(--s-4); }

.glass-card {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(30, 6, 6, 0.38);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: var(--on-dark-muted);
}
.glass-card__stat { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.glass-card__label { margin-top: 0.4rem; font-weight: 500; color: var(--white); }
.glass-card p { margin-top: var(--s-2); font-size: 0.95rem; }

/* Home hero: logo-led, no photo */
.hero--brand {
  align-items: center;
  padding-block: 132px var(--s-6);
  background: var(--maroon); /* flat Aggie maroon, no gradient */
}
.hero--brand::after { display: none; } /* no photo scrim needed */
/* Centered crest layout */
.hero--crest { overflow: hidden; }
.crest-watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(92vh, 900px, 130vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
}
.crest-stack { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.crest-logo { width: min(100%, 880px); }
.hero .crest-title {
  max-width: 34ch;
  margin-top: var(--s-2);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.86);
}
.crest-stack .btn-row { justify-content: center; margin-top: var(--s-2); }
.wordmark__logo {
  height: auto;
  animation: wordmark-in 900ms var(--ease-out) both;
}
.wordmark__caption {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
@keyframes wordmark-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 699px) {
  .hero--crest { padding-top: 110px; }
  .wordmark__caption { font-size: 0.7rem; letter-spacing: 0.18em; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__logo, .crest-watermark { animation: none; }
}

.hero--short { min-height: 80vh; min-height: 80svh; }
.notfound__logo { width: 150px; height: 150px; margin: 0 auto var(--s-4); }
.hero .center h1 { margin-inline: auto; }

/* Wide feature photo (home intro) */
.feature-photo { position: relative; margin: var(--s-6) 0 0; }
.feature-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 900px) { .feature-photo img { aspect-ratio: 21 / 9; } }
.feature-photo figcaption { position: absolute; right: var(--s-3); bottom: var(--s-3); max-width: 340px; }
@media (max-width: 699px) {
  .feature-photo figcaption { position: static; margin-top: var(--s-2); background: var(--maroon); border-color: var(--maroon); }
}

/* Interior page hero */
.hero--page { min-height: 72vh; min-height: 72svh; }
.hero--page h1 { max-width: 16ch; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .split--reverse .split__media { order: -1; }
  .split--wide-media { grid-template-columns: 0.9fr 1.1fr; }
}
.split__body h2 { margin-bottom: var(--s-3); }
.split__body .lead + p,
.split__body p + p { margin-top: 0; }
.split__body .btn-row, .split__body .text-link { margin-top: var(--s-4); }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.split__media--landscape img { aspect-ratio: 4 / 3; }

/* Service: partner photo with logo + stat badges */
.split__media.partner-media img.partner-photo { aspect-ratio: 4 / 3; object-position: center 60%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.partner-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 1rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.partner-badge__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.split__media .partner-badge img { width: 170px; height: auto; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
.stat-badge {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--maroon);
  color: var(--white);
}
.stat-badge__num { flex: none; font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-badge__label { padding-left: var(--s-3); border-left: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.975rem; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 699px) {
  .split__media .partner-badge img { width: 120px; }
  .partner-badge { top: var(--s-2); left: var(--s-2); padding: 0.55rem 0.75rem 0.5rem; }
  .stat-badge { padding: var(--s-3); gap: var(--s-2); }
  .stat-badge__label { padding-left: var(--s-2); font-size: 0.9rem; }
}

.media-badge {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  max-width: calc(100% - 3rem);
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s-4) var(--s-3); background: var(--white); }
.stat__num { display: block; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; color: var(--maroon); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: var(--s-2); font-weight: 500; color: var(--ink); }
.stat__note { display: block; margin-top: 0.3rem; font-size: 0.925rem; color: var(--muted); }

/* ---------- Pillar cards ---------- */
.pillars { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--on-dark-muted);
  text-decoration: none;
  background: var(--maroon-800);
}
.pillar img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26, 3, 3, 0.05) 15%, rgba(26, 3, 3, 0.55) 50%, rgba(26, 3, 3, 0.95) 100%);
}
.pillar:hover img { transform: scale(1.05); }
.pillar__num {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.pillar h3 { color: var(--white); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 400; letter-spacing: -0.02em; }
.pillar p { margin-top: var(--s-1); max-width: 34ch; }
.pillar__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  font-weight: 500;
  color: var(--white);
}
.pillar__go svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.pillar:hover .pillar__go svg { transform: translateX(4px); }

/* ---------- Principles list (numbered, Siwa "Key Strengths") ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
.principle {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.principle__num { font-size: 0.85rem; font-weight: 600; color: var(--on-dark-muted); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.principle h3 { margin-bottom: 0.4rem; }
.section:not(.section--dark):not(.section--maroon) .principles { border-color: var(--line); }
.section:not(.section--dark):not(.section--maroon) .principle { border-color: var(--line); }
.section:not(.section--dark):not(.section--maroon) .principle__num { color: var(--maroon); }

/* ---------- Photo marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--s-2);
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: clamp(220px, 18vw + 120px, 340px);
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  flex: none;
}
.marquee__track img:nth-child(3n + 2) { aspect-ratio: 4 / 3; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-controls { display: flex; justify-content: flex-end; margin-top: var(--s-3); }
.pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.pause-btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee-controls { display: none; }
}

/* ---------- Letter ---------- */
.letter { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .letter { grid-template-columns: 380px 1fr; gap: var(--s-7); } }
.letter__photo { position: relative; }
.letter__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 900px) { .letter__photo { position: sticky; top: 110px; } }
.letter__body { font-size: 1.125rem; max-width: 62ch; }
.letter__body h2 { margin-bottom: var(--s-4); }
.letter__sig { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.letter__sig strong { display: block; font-weight: 600; color: var(--ink); }
.letter__sig span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Creed ---------- */
.creed { position: relative; overflow: hidden; text-align: center; }
.creed__mark {
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 520px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}
.creed blockquote { position: relative; margin: 0 auto; max-width: 860px; }
.creed blockquote p {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.creed--wide blockquote { max-width: 980px; }
.creed blockquote footer { margin-top: var(--s-4); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maroon); }
.section--dark.creed blockquote p, .section--maroon.creed blockquote p { color: var(--white); }
.section--maroon.creed blockquote footer, .section--dark.creed blockquote footer { color: var(--on-dark-muted); }

/* ---------- People / officers ---------- */
.people { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.person { display: flex; flex-direction: column; }
.person__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--maroon-tint);
}
.person__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--t-slow) var(--ease-out);
}
.person:hover .person__photo img { transform: scale(1.04); }
.person__role {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}
.person h3 { margin-top: var(--s-2); font-size: 1.25rem; }
.person__meta { flex: 1; margin: 0.2rem 0 0.5rem; font-size: 0.95rem; color: var(--muted); } /* grows so contact links line up across a row */
.person__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--maroon);
  text-decoration: none;
}
.person__contact:hover { text-decoration: underline; text-underline-offset: 3px; }
.person__contact svg { width: 16px; height: 16px; }

/* ---------- Feature cards (events / activities) ---------- */
.cards { display: grid; gap: var(--s-3); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-3) var(--s-4); flex: 1; }
.card__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); }
.card__body p { color: var(--muted); }
.card__highlight {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--maroon-tint);
  color: var(--maroon);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Simple icon list */
.check-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0.75rem; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--maroon); }

/* Steps */
.steps { display: grid; gap: var(--s-3); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: var(--s-1); }
.step p { color: var(--muted); }
.step .btn, .step .text-link { margin-top: var(--s-3); }
.code-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Gallery + lightbox ---------- */
.gallery { columns: 2 180px; column-gap: var(--s-2); }
@media (min-width: 900px) { .gallery { columns: 3 240px; } }
/* Even grid variant for same-shape photo sets */
.gallery--grid { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
@media (min-width: 900px) { .gallery--grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.gallery--grid .gallery__item { margin: 0; }
.gallery--grid .gallery__item img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 var(--s-2);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--maroon-tint);
  cursor: zoom-in;
  break-inside: avoid;
}
.gallery__item img { width: 100%; height: auto; transition: transform var(--t-slow) var(--ease-out), opacity var(--t-fast) ease; }
.gallery__item:hover img { transform: scale(1.03); }

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 2, 2, 0.94);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(14, 2, 2, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in var(--t-med) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--gutter); }
.lightbox__count { font-size: 0.9rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__nav { display: flex; justify-content: center; gap: var(--s-2); padding: var(--s-2) var(--gutter) var(--s-3); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--t-fast) ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn svg { width: 22px; height: 22px; }
.lightbox :focus-visible { outline-color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
  color: var(--on-dark-muted);
  background: var(--maroon);
}
.cta-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(58, 0, 0, 0.95) 0%, rgba(80, 0, 0, 0.82) 55%, rgba(80, 0, 0, 0.55) 100%); }
.cta-band h2 { color: var(--white); max-width: 15ch; }
.cta-band .lead { color: var(--on-dark-muted); max-width: 48ch; margin-top: var(--s-3); }
.cta-band .btn-row { margin-top: var(--s-4); }
.cta-band__note { margin-top: var(--s-4); font-size: 0.95rem; }
.cta-band__note strong { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: var(--on-dark-muted); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-top { display: grid; gap: var(--s-4); padding-bottom: var(--s-4); }
@media (max-width: 899px) {
  .footer-top { grid-template-columns: 1fr 1fr; column-gap: var(--s-3); }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand p { margin-top: var(--s-2); max-width: 32ch; }
.footer-col h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  text-decoration: none;
  transition: color var(--t-fast) ease;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--white); }
.footer-col svg { width: 18px; height: 18px; flex: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pillar img, .person__photo img, .gallery__item img, .card { transition: none; }
}

/* Misc */
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.maxw-prose { max-width: 62ch; }

.mobile-menu[hidden] { display: none; }
