/* ============================================================
   HKN Psi Chapter — UT Austin
   Design tokens
   ============================================================ */
:root {
  --bg: #0c0a09;
  --bg-raised: #161210;
  --bg-card: #1a1512;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f1ec;
  --text-dim: #b3a89e;
  --orange: #bf5700;        /* UT burnt orange */
  --orange-bright: #ff7a1a;
  --orange-soft: rgba(191, 87, 0, 0.14);
  --gold: #f2a65a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.accent {
  background: linear-gradient(100deg, var(--orange-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
}
.loader__mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--orange-bright);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader__bar {
  width: min(220px, 50vw); height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--orange-bright);
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderPulse { 50% { opacity: 0.4; transform: scale(0.96); } }
@keyframes loaderSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  background: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.35s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(12, 10, 9, 0.82); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__psi {
  font-family: Georgia, serif; font-size: 1.5rem; line-height: 1;
  color: var(--orange-bright);
}
.nav__wordmark {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.04em; font-size: 1.05rem;
}
.nav__wordmark em { font-style: normal; font-weight: 400; color: var(--text-dim); }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links > a:not(.btn) {
  font-size: 0.92rem; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a.is-active { color: var(--orange-bright); }

/* --- Dropdown groups --- */
.nav__group { position: relative; }
.nav__group-btn {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  color: var(--text-dim); padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav__group-btn:hover, .nav__group.is-open .nav__group-btn { color: var(--text); }
.nav__group-btn.is-active { color: var(--orange-bright); }
.nav__caret {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.nav__group.is-open .nav__caret { transform: rotate(225deg) translateY(-1px); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: rgba(22, 18, 16, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.nav__menu::before {  /* hover bridge so the menu doesn't close crossing the gap */
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav__group.is-open .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  font-size: 0.9rem; color: var(--text-dim);
  padding: 0.6rem 0.9rem; border-radius: 9px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__menu a.is-active { color: var(--orange-bright); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
  z-index: 60;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--solid {
  background: linear-gradient(100deg, var(--orange), var(--orange-bright));
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(191, 87, 0, 0.55);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255, 122, 26, 0.5); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange-bright); color: var(--orange-bright); transform: translateY(-2px); }
.btn--small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--big { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 65% at 30% 45%, rgba(12,10,9,0) 0%, rgba(12,10,9,0.55) 70%, rgba(12,10,9,0.92) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%;
  margin: 0 auto; padding: 7rem var(--pad) 4rem;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__sub {
  max-width: 36rem;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  color: var(--text-dim);
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--orange-bright));
  animation: scrollHint 2s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim);
}
@keyframes scrollHint { 50% { transform: scaleY(0.55); opacity: 0.5; } }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.stats__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2.4rem 1.5rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--orange-bright);
  line-height: 1.1;
}
.stat__label {
  display: block; margin-top: 0.4rem;
  font-size: 0.85rem; color: var(--text-dim);
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  max-width: 22ch;
}
.section__lede {
  max-width: 44rem; color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  margin-bottom: 3rem;
}

/* ============================================================
   About
   ============================================================ */
.about__cols {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center; margin-top: 2.5rem;
}
.about__text p { color: var(--text-dim); margin-bottom: 1.2rem; }
.about__text strong { color: var(--text); }

/* CSS-drawn chip */
.about__visual { display: flex; justify-content: center; }
.chip {
  position: relative;
  width: min(320px, 78vw); aspect-ratio: 1;
  background: linear-gradient(145deg, #221b15, #15100c);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px -30px rgba(191, 87, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.chip__die {
  width: 62%; aspect-ratio: 1;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,122,26,0.16), transparent 65%),
    #100c09;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.3rem;
}
.chip__psi {
  font-family: Georgia, serif; font-size: clamp(3rem, 9vw, 4.2rem);
  color: var(--orange-bright); line-height: 1;
  text-shadow: 0 0 30px rgba(255, 122, 26, 0.55);
}
.chip__label { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.28em; color: var(--text); }
.chip__sub { font-size: 0.55rem; letter-spacing: 0.2em; color: var(--text-dim); }

.chip__pin { position: absolute; background: linear-gradient(to bottom, #6b5b4d, #3a312a); }
.chip__pin--t, .chip__pin--b { width: 7%; height: 16px; left: calc(14% + var(--i) * 18%); }
.chip__pin--t { top: -16px; border-radius: 3px 3px 0 0; }
.chip__pin--b { bottom: -16px; border-radius: 0 0 3px 3px; }
.chip__pin--l, .chip__pin--r { height: 7%; width: 16px; top: calc(18% + var(--i) * 18%); }
.chip__pin--l { left: -16px; border-radius: 3px 0 0 3px; }
.chip__pin--r { right: -16px; border-radius: 0 3px 3px 0; }

/* ============================================================
   Programs cards
   ============================================================ */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; margin-top: 2.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 26, 0.4);
  box-shadow: 0 24px 50px -24px rgba(191, 87, 0, 0.45);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   Events timeline
   ============================================================ */
.events { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { position: relative; margin-top: 3rem; padding-left: 2px; }
.timeline__rail {
  position: absolute; top: 0; bottom: 0; left: 37px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.timeline__progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--gold), var(--orange-bright));
  border-radius: 2px;
}
.tevent {
  position: relative;
  display: grid; grid-template-columns: 76px 1fr;
  gap: 1.6rem;
  padding: 1.4rem 0 1.4rem 0;
}
.tevent__date {
  position: relative; z-index: 1;
  width: 76px; height: 76px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.tevent__month { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.tevent__day { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.tevent__body { padding-top: 0.3rem; max-width: 56rem; }
.tevent__body h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.4rem; }
.tevent__body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 0.7rem; }
.tevent__tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--line);
}
.tevent__tag--corp { background: var(--orange-soft); color: var(--orange-bright); border-color: rgba(255,122,26,0.3); }
.tevent__tag--service { background: rgba(242, 166, 90, 0.12); color: var(--gold); border-color: rgba(242,166,90,0.3); }

/* ============================================================
   Officers
   ============================================================ */
.ogrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.officer {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.officer:hover { transform: translateY(-5px); border-color: rgba(255, 122, 26, 0.35); }
.officer__avatar {
  width: 76px; height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #7a3700);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.officer__avatar::after {
  content: attr(data-initials);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: #fff;
}
.officer h3 { font-family: var(--font-display); font-size: 1.05rem; }
.officer__role { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.25rem; }

/* ============================================================
   Sponsors
   ============================================================ */
.sponsors {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(191, 87, 0, 0.12), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; margin-bottom: 3.5rem;
}
.perk {
  border-top: 2px solid var(--orange);
  padding-top: 1.2rem;
}
.perk__num { font-family: var(--font-display); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.2em; }
.perk h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0.5rem 0 0.5rem; }
.perk p { color: var(--text-dim); font-size: 0.9rem; }

.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; align-items: stretch;
  margin-bottom: 3.5rem;
}
.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tier:hover { transform: translateY(-6px); }
.tier--featured {
  border-color: rgba(255, 122, 26, 0.5);
  background: linear-gradient(160deg, rgba(191, 87, 0, 0.16), var(--bg-card) 55%);
  box-shadow: 0 28px 60px -28px rgba(191, 87, 0, 0.5);
}
.tier__badge {
  position: absolute; top: -12px; left: 1.8rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--orange), var(--orange-bright));
  color: #fff; padding: 0.3rem 0.8rem; border-radius: 999px;
}
.tier__name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.6rem; }
.tier__desc { color: var(--text-dim); font-size: 0.95rem; }

.sponsors__cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-raised);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.sponsors__cta p { color: var(--text-dim); margin-bottom: 1.4rem; }
.sponsors__cta .btn {
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
}
.sponsors__note { display: block; margin-top: 1.2rem; font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 3.5rem var(--pad) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr auto;
  gap: 2.5rem; align-items: start;
}
.footer__brand { display: flex; gap: 1rem; }
.footer__psi { font-family: Georgia, serif; font-size: 2.2rem; color: var(--orange-bright); line-height: 1; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; }
.footer__brand strong { color: var(--text); }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--orange-bright); }
.footer__social { display: flex; gap: 0.9rem; }
.footer__social a {
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer__social a:hover { color: var(--orange-bright); border-color: var(--orange-bright); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal {
  text-align: center; padding: 1.4rem var(--pad) 2rem;
  color: var(--text-dim); font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Reveal defaults (GSAP sets final state; this is the pre-state
   only when JS is available — .js-enabled added by main.js)
   ============================================================ */
.js-enabled .reveal { opacity: 0; transform: translateY(34px); }
.js-enabled .reveal-hero { opacity: 0; transform: translateY(40px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .ogrid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .about__cols { grid-template-columns: 1fr; }
  .about__visual { order: -1; margin-bottom: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0;
    background: rgba(12, 10, 9, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column; justify-content: flex-start;
    padding: 5.5rem var(--pad) 3rem;
    gap: 1.1rem;
    overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { font-size: 1.2rem; }
  .nav__burger { display: flex; }

  /* Flatten dropdown groups into labeled sections in the overlay */
  .nav__group { width: 100%; max-width: 320px; text-align: center; }
  .nav__group-btn {
    pointer-events: none; width: 100%; justify-content: center;
    font-family: var(--font-display);
    font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); margin-top: 0.6rem;
  }
  .nav__caret { display: none; }
  .nav__menu {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: none;
    background: none; border: 0; box-shadow: none; backdrop-filter: none;
    min-width: 0; padding: 0; gap: 0.1rem;
  }
  .nav__menu::before { display: none; }
  .nav__menu a { font-size: 1.05rem; text-align: center; padding: 0.45rem; }
  .nav__cta { margin-top: 1rem; }
}

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1.6rem 1rem; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .cards { grid-template-columns: 1fr; }
  .ogrid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .officer { padding: 1.4rem 1rem; }
  .perks { grid-template-columns: 1fr; }

  .timeline__rail { left: 31px; }
  .tevent { grid-template-columns: 64px 1fr; gap: 1.1rem; }
  .tevent__date { width: 64px; height: 64px; border-radius: 12px; }
  .tevent__day { font-size: 1.3rem; }

  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__scroll { display: none; }
}

/* ============================================================
   Subpages
   ============================================================ */
.page-head {
  position: relative;
  padding: clamp(9rem, 18vh, 12rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 75% 80% at 50% -10%, rgba(191, 87, 0, 0.18), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::before {  /* faint circuit grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.page-head__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.page-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0.9rem 0 1.1rem;
  max-width: 18ch;
}
.page-head__lede { max-width: 44rem; color: var(--text-dim); font-size: clamp(1rem, 2.2vw, 1.15rem); }
.page-head__crumb {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}

/* --- Info / eligibility table --- */
.itable {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  font-size: 0.95rem;
}
.itable-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.itable-wrap .itable { border: 0; border-radius: 0; }
.itable th, .itable td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.itable th {
  font-family: var(--font-display); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.itable tr:last-child td { border-bottom: 0; }
.itable td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.itable td { color: var(--text-dim); }

/* --- Requirement checklists --- */
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.req-card {
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem;
}
.req-card > h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.req-card__meta { font-size: 0.85rem; color: var(--gold); margin-bottom: 1.2rem; }
.req-card ul { list-style: none; display: grid; gap: 0.7rem; }
.req-card li {
  position: relative; padding-left: 1.7rem;
  color: var(--text-dim); font-size: 0.95rem;
}
.req-card li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 0.85em; height: 0.45em;
  border-left: 2px solid var(--orange-bright);
  border-bottom: 2px solid var(--orange-bright);
  transform: rotate(-45deg);
}

/* --- Numbered process steps --- */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 1rem; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--orange-bright);
  line-height: 1.2;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; max-width: 56rem; }

/* --- Benefits / pill list --- */
.pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  font-size: 0.88rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
}
.pill em { font-style: normal; color: var(--orange-bright); margin-right: 0.4rem; }

/* --- Officer email link --- */
.officer__email {
  display: inline-block; margin-top: 0.55rem;
  font-size: 0.78rem; color: var(--text-dim);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
  word-break: break-all;
}
.officer__email:hover { color: var(--orange-bright); border-color: var(--orange-bright); }

/* --- Gallery --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gtile {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--gx, 30%) var(--gy, 30%), rgba(255, 122, 26, 0.22), transparent 60%),
    linear-gradient(160deg, #1d1612, #120e0b);
  display: flex; align-items: flex-end;
  transition: transform 0.3s, border-color 0.3s;
}
.gtile:hover { transform: translateY(-5px); border-color: rgba(255, 122, 26, 0.4); }
.gtile__psi {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 3.4rem;
  color: rgba(255, 122, 26, 0.18);
}
.gtile figcaption {
  position: relative; width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem; color: var(--text);
  background: linear-gradient(to top, rgba(12, 10, 9, 0.92), transparent);
}
.gtile figcaption span { display: block; font-size: 0.72rem; color: var(--text-dim); }

/* --- Live photo gallery (Drive-backed) --- */
.gtile--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gtile--photo { cursor: zoom-in; }

.gallery-status {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}
.gallery-status code {
  font-size: 0.85em;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

.pgrid { columns: 3 260px; column-gap: 1.2rem; }
.ptile {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: zoom-in;
  animation: fadeInUp 0.55s ease;
  transition: transform 0.3s, border-color 0.3s;
}
.ptile:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, 0.4); }
.ptile img { width: 100%; height: auto; display: block; min-height: 120px; background: #17110c; }
.ptile figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem; color: var(--text);
}
.ptile__label { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile__date { flex-shrink: 0; color: var(--text-dim); font-size: 0.74rem; }
@keyframes tileIn { to { opacity: 1; } }

.skel {
  break-inside: avoid;
  height: 220px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--bg-card) 40%, #241b14 50%, var(--bg-card) 60%);
  background-size: 200% 100%;
  animation: skelShimmer 1.2s linear infinite;
}
@keyframes skelShimmer { to { background-position: -200% 0; } }

/* --- Lightbox --- */
.lbx {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 4, 3, 0.94);
  display: none;
  align-items: center; justify-content: center;
}
.lbx.is-open { display: flex; }
.lbx figure {
  max-width: min(1200px, 92vw);
  max-height: 88svh;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
}
.lbx img {
  max-width: 100%;
  max-height: 80svh;
  border-radius: 12px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.lbx figcaption {
  color: var(--text-dim); font-size: 0.9rem;
  text-transform: capitalize; text-align: center;
}
.lbx__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lbx__btn:hover { background: var(--orange); color: #fff; }
.lbx__close { top: 1.2rem; right: 1.2rem; }
.lbx__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lbx__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .pgrid { columns: 2 150px; column-gap: 0.8rem; }
  .ptile { margin-bottom: 0.8rem; border-radius: 12px; }
  .ptile figcaption { padding: 0.5rem 0.7rem; }
  .ptile__date { display: none; }
  .lbx__prev { left: 0.5rem; }
  .lbx__next { right: 0.5rem; }
  .lbx__btn { width: 40px; height: 40px; }
}

/* --- Upcoming event panels (live from Google Calendar) --- */
.epanels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.epanel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex; flex-direction: column;
  animation: fadeInUp 0.55s ease;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.epanel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.4);
  box-shadow: 0 24px 50px -26px rgba(191, 87, 0, 0.45);
}
.epanel__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.epanel__date {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  line-height: 1.1;
}
.epanel__month {
  font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--gold);
}
.epanel__day { font-size: 1.35rem; font-weight: 700; }
.epanel__tag {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.epanel__tag--corp {
  background: var(--orange-soft); color: var(--orange-bright);
  border-color: rgba(255, 122, 26, 0.3);
}
.epanel__tag--service {
  background: rgba(242, 166, 90, 0.12); color: var(--gold);
  border-color: rgba(242, 166, 90, 0.3);
}
.epanel__title {
  font-family: var(--font-display);
  font-size: 1.15rem; line-height: 1.25;
  margin-bottom: 0.4rem;
}
.epanel__meta {
  font-size: 0.82rem; color: var(--gold);
  margin-bottom: 0.7rem;
}
.epanel__desc { font-size: 0.92rem; color: var(--text-dim); }

.eskel {
  height: 190px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--bg-card) 40%, #241b14 50%, var(--bg-card) 60%);
  background-size: 200% 100%;
  animation: skelShimmer 1.2s linear infinite;
}

@media (max-width: 640px) {
  .epanels { grid-template-columns: 1fr; gap: 1rem; }
  .epanel { padding: 1.25rem; }
}

/* Season-label variant of the timeline date badge (dateless traditions) */
.tevent__date--season .tevent__month { font-size: 0.66rem; }
.tevent__date--season .tevent__day { font-size: 1.05rem; letter-spacing: 0.02em; }

/* Injected nodes fade themselves in (they can't use .reveal — GSAP binds
   those at load). No starting opacity:0 and no fill mode, so if animations
   are frozen (background/undisplayed tab) the content is simply visible. */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.tevent--in { animation: fadeInUp 0.55s ease; }

/* --- CTA band (shared on subpages) --- */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(191, 87, 0, 0.2), transparent 70%),
    var(--bg-raised);
}
.cta-band__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.01em;
  max-width: 24ch;
}
.cta-band p { color: var(--text-dim); margin-top: 0.5rem; max-width: 40rem; }

/* --- Content blocks --- */
.block { margin-top: clamp(3rem, 7vw, 4.5rem); }
.block:first-child { margin-top: 0; }
.block > h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 1.4rem; letter-spacing: -0.01em;
}
.block > .block__note { color: var(--text-dim); font-size: 0.92rem; margin-top: 1.1rem; }
.block > p { color: var(--text-dim); max-width: 56rem; margin-bottom: 1.2rem; }
.block > p strong { color: var(--text); }

@media (max-width: 720px) {
  .reqs { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 42px 1fr; gap: 1rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
