/* =========================================================
   Ivy Preparatory Political Alliance
   Brand: navy (IPPA design system) · Layout: soft panels, pills, organic masks
   ========================================================= */

:root {
  /* Brand (from IPPA design system) */
  --navy-900: #073763;
  --navy-700: #0d3c5a;
  --blue-500: #0b5394;
  --orange-400: #ff924d; /* org chart branch A */
  --teal-400: #00c2cb;   /* org chart branch B */

  /* Surfaces: cool mist in place of the reference's sage-cream */
  --bg: #e9eef3;
  --frame: #f4f7fa;
  --panel: #e3eaf1;
  --panel-deep: #d3dfea;
  --tint: #c5d8ea;
  --white: #ffffff;

  /* Text */
  --ink: #0e2438;
  --ink-2: #44596c;
  --ink-3: #5d7082;
  --line: #cbd6e0;

  /* Dark panel */
  --night: #06243f;
  --night-2: #0a3257;
  --on-night: #eaf1f8;
  --on-night-2: #aabfd3;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Homemade Apple", cursive;

  /* Shape */
  --r-frame: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --pill: 999px;

  /* Space (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -24px rgba(7,55,99,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Frame (the big rounded page panel from the reference) ---------- */
.frame {
  max-width: 1360px;
  margin: 16px auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff 0%, rgba(255,255,255,0) 60%),
    var(--frame);
  border-radius: var(--r-frame);
  overflow: clip; /* clip, not hidden: keeps the sticky header working */
  box-shadow: 0 30px 80px -50px rgba(7,55,99,.45);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--s3);
  padding: 18px clamp(16px, 4vw, 40px);
  background: rgba(244,247,250,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-700); display: grid; place-items: center; overflow: hidden; flex: none;
}
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--frame); z-index: 1; }
.brand-mark-fallback { font-family: var(--serif); color: #fff; font-size: 17px; letter-spacing: .02em; }
.brand-mark-light img { background: var(--white); }
.brand-name { font-family: var(--serif); font-size: 17px; line-height: 1.1; font-weight: 500; color: var(--navy-900); }

.nav { margin-inline: auto; }
.nav ul {
  display: flex; gap: 4px; padding: 5px;
  background: var(--panel); border-radius: var(--pill);
}
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--white); color: var(--navy-900); }
.nav a.is-active { background: var(--white); color: var(--navy-900); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--panel); color: var(--navy-900); cursor: pointer;
  place-items: center;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 6px 6px 22px;
  border-radius: var(--pill); border: 0;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--blue-500); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--tint); }
.btn-on-dark { background: var(--white); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--tint); }
.btn-ghost-light { padding: 6px 22px; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(234,241,248,.35); background: transparent; }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-night); }
.btn-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--navy-900);
  transition: transform .25s var(--ease);
}
.btn-light .btn-dot, .btn-on-dark .btn-dot { background: var(--navy-900); color: #fff; }
.btn-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-dot { transform: rotate(45deg); }
.btn-dot-sm { width: 30px; height: 30px; background: var(--white); }
.header-cta { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 18px;
  border-radius: var(--pill); background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-dark { background: var(--night); color: var(--on-night); box-shadow: none; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px var(--tint); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5);
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) 0;
  min-height: 760px;
}
.hero-copy { text-align: center; padding-top: var(--s4); position: relative; z-index: 2; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; vertical-align: middle;
  transform: translateY(-.12em);
  padding: 10px 20px; margin-right: .15em;
  border-radius: var(--pill); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-2);
}
.hero-sub { max-width: 34em; margin: var(--s4) auto 0; font-size: 18px; color: var(--ink-2); }

.value-rail {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: var(--s3); font-size: 15px; color: var(--ink-3);
}
.value-rail li { display: flex; align-items: center; gap: 14px; }
.value-rail li + li::before { content: ""; width: 36px; height: 1px; background: var(--ink-3); opacity: .6; }
.value-rail li:nth-child(2) { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s4); }

/* Hero side cards */
.hero-cards { display: flex; flex-direction: column; gap: var(--s2); position: relative; z-index: 2; }
.spot-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, #edf2f6 100%);
  border-radius: var(--r-lg); padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}
.spot-card-quiet { background: var(--panel); }
.spot-card-quiet .spot-title { color: var(--ink-2); }
.spot-title { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; color: var(--navy-900); }
.spot-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.rule { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.spot-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  min-height: 44px; padding: 4px 4px 4px 16px; border-radius: var(--pill);
  background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--navy-900);
}
.spot-link:hover { background: var(--white); }
.spot-link .btn-dot { box-shadow: inset 0 0 0 1px var(--line); }

/* Organic photo masks (the reference's blob crops) */
.blob {
  position: relative; overflow: hidden;
  margin-top: 16px; aspect-ratio: 4 / 3;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(150deg, var(--blue-500), var(--navy-900));
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-a { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.blob-b { border-radius: 60% 40% 50% 50% / 40% 55% 45% 60%; aspect-ratio: 16 / 7; }
.blob-c { border-radius: 48% 52% 38% 62% / 55% 42% 58% 45%; aspect-ratio: 4 / 5; margin: 0; }
.blob::after { /* subtle leaf/laurel hint when no photo is present */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.blob img { position: relative; z-index: 1; }

/* The emblem */
.emblem {
  grid-column: 1 / -1;
  position: relative; justify-self: center;
  width: min(600px, 100%); height: 300px; margin-top: var(--s5);
  overflow: hidden;
}
.emblem-arc { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; overflow: visible; }
.emblem-arc text {
  font-family: var(--serif); font-size: 27px; letter-spacing: .1em; fill: var(--navy-700);
  text-transform: uppercase;
}
.emblem-disc {
  position: absolute; left: 50%; top: 110px; transform: translateX(-50%);
  width: 380px; height: 380px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.08), transparent 55%),
    var(--navy-700);
  display: grid; place-items: start center; padding-top: 70px;
  box-shadow: 0 -20px 60px -30px rgba(7,55,99,.6);
}
.emblem-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.emblem-est { position: relative; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; text-align: center; color: rgba(234,241,248,.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.section + .section { padding-top: 0; }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.h2-xl { font-size: clamp(40px, 5.6vw, 76px); }
.h2-light { color: var(--on-night); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: var(--ink); }
.lead { margin-top: var(--s3); font-size: 18px; color: var(--ink-2); max-width: 36em; }
.section-note { color: var(--ink-2); max-width: 36em; }
.muted-small { font-size: 14px; color: var(--ink-3); margin-top: var(--s2); }

.section-head { margin-bottom: var(--s5); }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s4); }
.section-head.center { text-align: center; }
.section-head.center .section-note { margin: var(--s3) auto 0; }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.photo-card {
  position: relative; margin: 0;
  background: var(--panel); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px);
}
.badge-float {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--pill);
  background: var(--white); color: var(--navy-900);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-soft);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s5); }
.value { background: var(--panel); border-radius: var(--r-md); padding: var(--s3); }
.value h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-top: var(--s2); color: var(--navy-900); }
.value p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.value-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 16px; background: var(--navy-900); color: #fff;
}
.value-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-icon-light { background: var(--tint); color: var(--navy-900); }

.pledge {
  margin-top: var(--s3); padding: var(--s3);
  border-radius: var(--r-md); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
}
.pledge strong { color: var(--navy-900); }

.founder-note { margin: var(--s5) 0 0; }
.founder-note p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--ink); max-width: 30em; }
.founder-note footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--s2); }
.signature { font-family: var(--script); font-size: 22px; color: var(--navy-700); }
.founder-note cite { font-style: normal; font-size: 14px; color: var(--ink-3); }

/* ---------- Chapters ---------- */
.chapter-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2);
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.chapter {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel) 0%, #eef3f7 100%);
  overflow: hidden;
}
.chapter-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--navy-900); }
.chapter-meta { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.chapter-open { font-style: italic; color: var(--ink-3); }
.chapter-mono {
  margin: auto auto 0; width: 128px; height: 128px;
  display: grid; place-items: center;
  border-radius: 44% 56% 50% 50% / 52% 46% 54% 48%;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-900));
  font-family: var(--serif); font-size: 44px; color: rgba(255,255,255,.92);
}
.chapter:nth-child(even) .chapter-mono { border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%; background: linear-gradient(150deg, var(--navy-700), #1f5f8f); }
.chapter-branch {
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--s3); font-size: 13px; color: var(--ink-3);
}
.chapter-branch::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-400); }
.chapter[data-branch="b"] .chapter-branch::before { background: var(--teal-400); }

.team { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); align-items: center; }
.team-head .section-note { margin-top: var(--s2); }
.team-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: start; }
.person { border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); }
.person-a { transform: rotate(-2deg); }
.person-b { transform: rotate(1.5deg) translateY(18px); }
.person-c { transform: rotate(-1deg); }
.person-photo {
  position: relative; aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(115deg, rgba(11,83,148,.14) 0 3px, transparent 3px 14px),
    var(--tint);
  display: grid; place-items: center;
}
.person-b .person-photo { background: repeating-linear-gradient(65deg, rgba(255,255,255,.12) 0 3px, transparent 3px 14px), var(--blue-500); }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.person-initials { font-family: var(--serif); font-size: 52px; color: var(--navy-900); }
.person-b .person-initials { color: #fff; }
.person-body { padding: 16px 18px 20px; background: var(--tint); }
.person-b .person-body { background: var(--night); color: var(--on-night); }
.person-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.person-role { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.person-b .person-role { color: var(--on-night-2); }

/* ---------- Events ---------- */
.fishbowl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.fishbowl-visual {
  background: var(--panel); border-radius: var(--r-lg);
  padding: var(--s4); display: grid; place-items: center; gap: var(--s2);
}
.fishbowl-visual svg { width: min(340px, 100%); height: auto; }
.fb-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.fb-inner { fill: var(--white); stroke: var(--tint); stroke-width: 1.5; }
.fb-listener { fill: var(--panel-deep); stroke: #9fb4c7; stroke-width: 1.5; }
.fb-speaker { fill: var(--navy-900); }
.fb-legend { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.fb-key { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.fb-key-s { background: var(--navy-900); }
.fb-key-l { background: var(--panel-deep); box-shadow: inset 0 0 0 1.5px #9fb4c7; margin-left: 12px; }

.stat-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: var(--s4);
  color: var(--on-night);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(11,83,148,.85), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night));
}
.stat-num { font-family: var(--serif); font-size: clamp(72px, 9vw, 120px); line-height: .9; letter-spacing: -0.03em; }
.stat-label { margin-top: 8px; font-size: 16px; font-weight: 600; }
.stat-body { margin-top: var(--s3); color: var(--on-night-2); }
.topic-list { margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list li {
  padding: 8px 14px; border-radius: var(--pill);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(234,241,248,.18);
  font-size: 14px;
}

.read { margin-top: var(--s6); }
.read-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: end; margin-bottom: var(--s3); }
.read-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.read-cell { padding: var(--s4) var(--s3); position: relative; }
.read-cell + .read-cell { border-left: 1px solid var(--line); }
.read-letter {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 22px; background: var(--panel);
  font-family: var(--serif); font-size: 36px; color: var(--navy-900);
}
.read-cell h4 { margin-top: var(--s3); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.read-cell p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.read-cell-accent {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: var(--on-night); border-radius: var(--r-md);
}
.read-cell-accent p { color: var(--on-night-2); }
.read-cell-accent .read-letter { background: rgba(255,255,255,.12); color: #fff; }

.events-lower { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.rule-card, .timeline-card { background: var(--panel); border-radius: var(--r-lg); padding: var(--s4); }
.rule-card .h3 { margin-top: var(--s3); }
.rule-card p { margin-top: var(--s2); color: var(--ink-2); }
.rule-card .muted-small { color: var(--ink-3); }
.timeline { margin-top: var(--s3); counter-reset: tl; }
.timeline li {
  position: relative; padding: 0 0 var(--s3) 40px;
  border-left: 1px solid var(--line); margin-left: 11px;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -12px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 6px var(--navy-900);
}
.tl-when { font-size: 14px; font-weight: 600; color: var(--blue-500); }
.tl-what { font-family: var(--serif); font-size: 20px; line-height: 1.3; margin-top: 2px; }

/* ---------- Support ---------- */
.support {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, #ffffff 0%, transparent 60%),
    linear-gradient(135deg, var(--tint), var(--panel));
}
.support-copy .btn { margin-top: var(--s4); }
.support-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.support-list li { background: rgba(255,255,255,.72); border-radius: var(--r-md); padding: var(--s3); }
.support-list h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy-900); }
.support-list p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ (dark panel) ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5);
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px);
  color: var(--on-night);
  background:
    radial-gradient(50% 60% at 10% 100%, rgba(11,83,148,.55), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.faq-intro p { margin-top: var(--s3); color: var(--on-night-2); max-width: 26em; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.faq-list { display: grid; gap: 10px; align-content: start; }
.faq-item {
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(234,241,248,.14);
  transition: background-color .2s var(--ease);
}
.faq-item[open] { background: rgba(255,255,255,.08); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 60px; padding: 14px 16px 14px 22px;
  cursor: pointer; list-style: none; font-size: 17px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-color: var(--tint); border-radius: var(--r-md); }
.faq-plus {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.1);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.faq-plus svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--white); color: var(--navy-900); }
.faq-body { padding: 0 22px 20px; color: var(--on-night-2); max-width: 40em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2);
  background: var(--panel); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px);
}
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.req { color: var(--blue-500); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font-size: 16px;
  transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(11,83,148,.18); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { font-size: 14px; color: #b42318; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: var(--pill); background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.seg input:checked + span { background: var(--navy-900); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.form-status { font-size: 15px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4);
  padding: var(--s5) clamp(16px, 4vw, 40px);
  background: var(--night); color: var(--on-night);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--serif); font-size: 20px; }
.footer-tag { font-size: 14px; color: var(--on-night-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-nav a { font-size: 15px; color: var(--on-night-2); text-decoration: none; padding: 10px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { grid-column: 1 / -1; padding-top: var(--s3); border-top: 1px solid rgba(234,241,248,.14); font-size: 13px; color: var(--on-night-2); }

/* ---------- Page-load moment (the one orchestrated animation) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line, .js .hero-sub, .js .value-rail, .js .hero-actions, .js .hero-cards, .js .emblem {
    opacity: 0; transform: translateY(14px);
  }
  .js.is-loaded .hero-title .line, .js.is-loaded .hero-sub, .js.is-loaded .value-rail,
  .js.is-loaded .hero-actions, .js.is-loaded .hero-cards {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js.is-loaded .hero-title .line:nth-child(2) { transition-delay: .08s; }
  .js.is-loaded .hero-title .line:nth-child(3) { transition-delay: .16s; }
  .js.is-loaded .hero-sub { transition-delay: .26s; }
  .js.is-loaded .value-rail { transition-delay: .32s; }
  .js.is-loaded .hero-actions { transition-delay: .38s; }
  .js.is-loaded .hero-cards { transition-delay: .3s; }
  .js.is-loaded .emblem { opacity: 1; transform: none; transition: opacity 1s var(--ease) .45s, transform 1.1s var(--ease) .45s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-cards { flex-direction: row; }
  .hero-cards > * { flex: 1; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 76px 12px auto 12px; z-index: 50;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; border-radius: var(--r-md); padding: 8px; background: var(--white); box-shadow: 0 24px 60px -20px rgba(7,55,99,.4); }
  .nav a { min-height: 48px; padding: 12px 16px; font-size: 16px; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }

  .mission-grid, .contact, .support, .faq { grid-template-columns: 1fr; }
  .photo-card { max-width: 520px; }
  .section-head.split, .read-head { grid-template-columns: 1fr; }
  .fishbowl-grid, .events-lower { grid-template-columns: 1fr; }
  .read-grid { grid-template-columns: 1fr 1fr; }
  .read-cell:nth-child(3) { border-left: 0; }
  .read-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .frame { margin: 0; border-radius: 0; }
  .brand-name { font-size: 15px; }
  .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .hero-pill { font-size: 13px; padding: 8px 14px; }
  .hero-sub { font-size: 17px; }
  .hero-cards { flex-direction: column; }
  .emblem { height: 220px; }
  .emblem-arc text { font-size: 27px; }
  .emblem-disc { width: 280px; height: 280px; top: 92px; padding-top: 48px; }
  .values { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; max-width: 340px; }
  .person-a, .person-b, .person-c { transform: none; }
  .read-grid { grid-template-columns: 1fr; }
  .read-cell + .read-cell { border-left: 0; border-top: 1px solid var(--line); }
  .support-list { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

/* ---------- Vacant chapters (no student leader yet) ---------- */
.chapter.is-vacant { background: repeating-linear-gradient(135deg, rgba(7,55,99,.035) 0 10px, transparent 10px 20px), var(--panel); }
.chapter.is-vacant .chapter-name { color: var(--ink-2); }
.chapter.is-vacant .chapter-mono {
  position: relative;
  background: var(--panel-deep);
  color: rgba(7,55,99,.35);
}
.chapter.is-vacant .chapter-mono::before,
.chapter.is-vacant .chapter-mono::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 150px; height: 5px; border-radius: 5px;
  background: var(--navy-900);
  transform-origin: center;
}
.chapter.is-vacant .chapter-mono::before { transform: translate(-50%, -50%) rotate(45deg); }
.chapter.is-vacant .chapter-mono::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.section-note a { color: var(--blue-500); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal: elements rise into place as they enter the viewport */
  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* X strokes draw across vacant chapters once revealed */
  .js .chapter.is-vacant .chapter-mono::before,
  .js .chapter.is-vacant .chapter-mono::after {
    transition: transform .5s var(--ease);
  }
  .js .chapter.is-vacant:not(.is-in) .chapter-mono::before { transform: translate(-50%, -50%) rotate(45deg) scaleX(0); }
  .js .chapter.is-vacant:not(.is-in) .chapter-mono::after  { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
  .js .chapter.is-vacant.is-in .chapter-mono::before { transition-delay: calc(var(--i, 0) * 70ms + .45s); }
  .js .chapter.is-vacant.is-in .chapter-mono::after  { transition-delay: calc(var(--i, 0) * 70ms + .65s); }

  /* Cards lift on hover */
  .chapter, .person-body, .value, .support-list li, .spot-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .7s var(--ease); }
  .chapter:hover, .value:hover, .support-list li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(7,55,99,.45); }
  .person { transition: transform .4s var(--ease), opacity .7s var(--ease); }
  .person:hover { transform: rotate(0) translateY(-6px); }

  /* Emblem breathes slowly */
  .emblem-disc { animation: emblem-float 7s ease-in-out infinite; }
  @keyframes emblem-float { 50% { transform: translateX(-50%) translateY(-8px); } }

  /* Fishbowl: speakers take turns talking */
  .fb-speaker { transform-box: fill-box; transform-origin: center; animation: speak 5s var(--ease) infinite; animation-delay: calc(var(--n) * 1s); }
  @keyframes speak {
    0%, 16%, 100% { transform: scale(1); fill: var(--navy-900); }
    6% { transform: scale(1.35); fill: var(--blue-500); }
  }
  .fb-listener { opacity: 0; transition: opacity .4s var(--ease); transition-delay: calc(var(--n) * 40ms); }
  .fishbowl-visual.is-in .fb-listener { opacity: 1; }

  /* Timeline line draws downward */
  .timeline li { border-left-color: transparent; }
  .timeline li::after {
    content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px;
    background: var(--line); transform: scaleY(0); transform-origin: top;
    transition: transform .6s var(--ease); transition-delay: calc(var(--n) * .35s + .3s);
  }
  .timeline li:last-child::after { display: none; }
  .timeline-card.is-in .timeline li::after { transform: scaleY(1); }
  .timeline li::before { transform: scale(0); transition: transform .4s var(--ease); transition-delay: calc(var(--n) * .35s + .2s); }
  .timeline-card.is-in .timeline li::before { transform: scale(1); }

  /* FAQ answers slide open */
  .faq-item[open] .faq-body { animation: faq-open .35s var(--ease); }
  @keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

  /* Arrow buttons nudge on hover */
  .spot-link:hover .btn-dot { transform: rotate(45deg); }
  .spot-link .btn-dot { transition: transform .25s var(--ease); }
}
