/* Theta Xi, Alpha Sigma Chapter. Site styles.

   One stylesheet for every page. Order: tokens, base, header, shared blocks,
   then page-specific blocks near the bottom.

   Brand: Theta Xi blue and white. The diagonal "bend" stripe used across the site
   comes from the band on the crest shield.

   House rules, so the site stays consistent as people edit it:
   - Colors come from the tokens below. Don't hardcode new hex values in pages.
   - One corner radius everywhere: var(--radius).
   - One accent color: var(--accent). Navy is for dark bands, not for links.
   - No em dashes in visible text. Use a period, comma or colon. */

:root {
  /* Light theme */
  --bg: #f5f7fa;
  --surface: #fcfdfe;
  --surface-2: #eaeff6;
  --ink: #0c1a2e;
  --ink-soft: #2a3a52;
  --muted: #56647a;
  --line: #d8dfe9;
  --accent: #1a5bbf;          /* Theta Xi blue */
  --accent-strong: #11438f;
  --accent-tint: #e3ecf9;
  --on-accent: #fdfdfe;
  --navy: #0a1d3c;            /* dark brand bands, both themes */
  --navy-2: #12305e;
  --on-navy: #f2f6fc;
  --on-navy-muted: #b6c5dc;
  --on-navy-accent: #9cc0f5;
  --shadow: 0 1px 2px rgba(12, 32, 66, 0.06), 0 10px 28px -12px rgba(12, 32, 66, 0.22);

  --radius: 6px;
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08111f;
    --surface: #0e1a2d;
    --surface-2: #14233b;
    --ink: #e9eef6;
    --ink-soft: #c9d4e4;
    --muted: #97a7bf;
    --line: #22344f;
    --accent: #79a9f0;
    --accent-strong: #a4c4f6;
    --accent-tint: #13284a;
    --on-accent: #08111f;
    --navy: #0c1d39;
    --navy-2: #17345f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: inherit; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }
.button:active { transform: translateY(1px) scale(0.98); }
.button .arrow { transition: transform 0.3s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.on-navy .button { background: var(--on-navy); color: var(--navy); }
.on-navy .button:hover { background: #fff; color: var(--navy); }
.on-navy .button.ghost { background: transparent; color: var(--on-navy); border-color: rgba(242, 246, 252, 0.4); }
.on-navy .button.ghost:hover { border-color: var(--on-navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: auto; }
/* Wordmark: engraved-style small caps "THETA XI" over an italic chapter line, set off from
   the crest by a thin rule */
.brand-name {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  line-height: 1;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}
.brand-name small {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft); /* --muted dropped to 4.4:1 when dark sections scroll under the see-through header (RAIL 55) */
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .nav-join a { background: var(--ink); color: var(--bg); margin-left: 0.5rem; padding-inline: 1.1rem; }
.site-nav .nav-join a:hover,
.site-nav .nav-join a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle .bars span { height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li.nav-join { border-bottom: 0; padding-top: 1rem; }
  .site-nav a { padding: 0.9rem 0.25rem; font-size: 1.2rem; font-family: var(--font-display); border-radius: 0; }
  .site-nav a:hover { background: transparent; }
  .site-nav .nav-join a { margin: 0; text-align: center; font-family: var(--font-body); font-size: 1rem; border-radius: var(--radius); }
}

/* Sections */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h2, .on-navy h3 { color: var(--on-navy); }
.on-navy p { color: var(--on-navy-muted); }
.on-navy .label { color: var(--on-navy-accent); }
.on-navy a:not(.button) { color: #fff; }

/* Signature: diagonal bend stripe taken from the crest shield */
.bend { position: relative; overflow: hidden; isolation: isolate; }
.bend::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  right: -8%;
  width: 34%;
  height: 220%;
  background: rgba(156, 192, 245, 0.07);
  transform: rotate(32deg);
  pointer-events: none;
}

/* Page header (every page except Home) */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 15ch; margin-bottom: 0.35em; }
.page-head .lead { max-width: 42rem; margin: 0; }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.page-jump a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
}
.page-jump a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; }
}

/* Photos and photo slots */

.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder for a photo we don't have yet.
   When the photo lands, swap the whole div for: <div class="photo"><img src="..." alt="..."></div> */
.photo-slot {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 260px;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(121, 169, 240, 0.32), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
  isolation: isolate;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/crest.png") 115% 40% / auto 115% no-repeat;
  opacity: 0.08;
  filter: grayscale(1) brightness(2.5);
}
.photo-slot span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-navy);
  background: rgba(10, 29, 60, 0.6);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
}

figure { margin: 0; }
figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { padding: 0.25rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.stat span { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.4; max-width: 22ch; }
.on-navy .stat { border-color: rgba(182, 197, 220, 0.2); }
.on-navy .stat strong { color: var(--on-navy); }
.on-navy .stat span { color: var(--on-navy-muted); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Panel: a box, used only where grouping means something */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* Forms */

.form { display: grid; gap: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.form-status:empty { display: none; }

@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */

.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { width: 56px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 32ch; margin: 0; }
.footer-brand .motto { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--on-navy); margin-bottom: 0.4rem; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-accent);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(182, 197, 220, 0.18);
  font-size: 0.88rem;
}
.footer-base p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Reveal on scroll. js/site.js adds .js to <html> and .is-in to elements.
   Without JS everything simply shows. */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   HOME
   ------------------------------------------------------------------ */

.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(calc(100dvh - var(--header-h) - 6rem), 680px);
}
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 1.02; margin-bottom: 0.4em; }
.hero .lead { max-width: 33rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-meta img { width: 30px; }

/* Two-photo composition with the bend stripe behind it */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1 / 1.02;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -25%;
  left: 28%;
  width: 38%;
  height: 150%;
  background: var(--accent-tint);
  transform: rotate(32deg);
  z-index: 0;
}
/* Words always sit in front of the stripe (meeting note 14) */
.hero-grid > :first-child { position: relative; z-index: 2; }
.hero-visual .photo, .hero-visual .photo-slot { position: relative; z-index: 1; box-shadow: var(--shadow); min-height: 0; }
.hero-visual .hv-a { grid-column: 1 / 5; grid-row: 1 / 5; place-items: start; }
.hero-visual .hv-b { grid-column: 3 / 7; grid-row: 3 / 7; outline: 6px solid var(--bg); }
.hero-visual .hv-b img { object-position: center 30%; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 560px; aspect-ratio: 1 / 0.92; }
  /* Stacked layout: keep the stripe from sliding up over the buttons (RAIL 51) */
  .hero-visual::before { top: -6%; height: 125%; }
}

/* Mission statement band */
.manifesto blockquote { margin: 0; max-width: 58rem; }
.manifesto blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-navy);
}
.manifesto cite { font-style: normal; font-size: 0.95rem; color: var(--on-navy-muted); }
.manifesto .stats { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(182, 197, 220, 0.2); }

/* Legacy: editorial two-column */
.legacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.legacy-copy p { color: var(--ink-soft); }
.legacy-copy p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.3em;
  line-height: 0.85;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
}
@media (max-width: 860px) {
  .legacy-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .legacy-grid .sticky { position: static; }
}

/* Paths: asymmetric grid of three destinations */
.paths {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: 1rem;
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.path h3 { margin-bottom: 0.35rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.path p { margin: 0 0 1.1rem; color: var(--muted); max-width: 38ch; }
.path .go { font-weight: 600; color: var(--accent); display: inline-flex; gap: 0.4rem; align-items: center; }
.path .go span { transition: transform 0.3s var(--ease); }
.path:hover .go span { transform: translateX(4px); }

.path.join { grid-column: span 7; grid-row: span 2; color: var(--on-navy); background: var(--navy); border-color: var(--navy); min-height: 480px; }
.path.join .path-bg { position: absolute; inset: 0; z-index: -1; }
.path.join .path-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0.6; transition: transform 1.2s var(--ease); }
.path.join:hover .path-bg img { transform: scale(1.03); }
.path.join .path-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 60, 0.05) 25%, rgba(10, 29, 60, 0.94)); }
.path.join h3, .path.join:hover { color: var(--on-navy); }
.path.join p { color: var(--on-navy-muted); }
.path.join .go { color: #fff; }

.path.scholar { grid-column: span 5; background: var(--accent-tint); border-color: transparent; }
.path.scholar .figure-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}
.path.give { grid-column: span 5; }

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path.join, .path.scholar, .path.give { grid-column: auto; grid-row: auto; }
  .path.join { min-height: 400px; }
}

/* Visit strip */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.visit h2 { margin-bottom: 0.25em; }
.visit address { font-style: normal; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------ */

.history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.milestone { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.milestone .year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.milestone h3 { margin-bottom: 0.4rem; }
.milestone p { color: var(--ink-soft); margin: 0; }
.milestone.navy { background: var(--navy); border-color: var(--navy); }
.milestone.navy .year { color: var(--on-navy-accent); }
.milestone.navy h3 { color: var(--on-navy); }
.milestone.navy p { color: var(--on-navy-muted); }

.founders { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; }
.founders h3 { margin: 0; }
.founders ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}
.founders li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }

@media (max-width: 760px) {
  .history, .founders { grid-template-columns: 1fr; }
  .founders ul { column-gap: 1rem; }
}

.purposes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.purposes-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.purposes-aside .photo-slot, .purposes-aside .photo { aspect-ratio: 4 / 5; margin-top: 2rem; min-height: 0; }
.purpose-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.purpose-list li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(182, 197, 220, 0.2);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--on-navy);
}
.purpose-list li::before {
  content: counter(p);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--on-navy-accent);
}
@media (max-width: 860px) {
  .purposes-grid { grid-template-columns: 1fr; }
  .purposes-aside { position: static; }
  .purposes-aside .photo-slot, .purposes-aside .photo { aspect-ratio: 16 / 10; }
}

.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.75rem 1.5rem;
}
.member .photo-slot, .member .photo { aspect-ratio: 4 / 5; min-height: 0; margin-bottom: 1.1rem; }
.member .photo-slot { place-items: center; }
.member .photo-slot .initials { font-family: var(--font-display); font-size: 3.2rem; font-weight: 400; letter-spacing: 0; color: var(--on-navy); background: none; padding: 0; opacity: 0.9; }
.member h3 { margin-bottom: 0.2rem; font-size: 1.4rem; }
.member .meta { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.75rem; }
.member .roles { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.member .roles li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.member p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.board h3 { margin-bottom: 1.25rem; }
.board dl { margin: 0; }
.board dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.board dt { color: var(--muted); }
.board dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 760px) { .boards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   JOIN
   ------------------------------------------------------------------ */

.page-head .photo-slot, .page-head .photo { aspect-ratio: 4 / 3; min-height: 0; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 2rem clamp(1rem, 3vw, 2.25rem) 0 0; }
.value + .value { padding-left: clamp(1rem, 3vw, 2.25rem); border-left: 1px solid var(--line); }
.value h3 { margin-bottom: 0.5rem; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 1.5rem 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(182, 197, 220, 0.18); }
.steps h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
/* Six values in two rows of three (Scholarships PORTAL) */
.values.six { row-gap: 2rem; }
.values.six .value:nth-child(3n+1) { padding-left: 0; border-left: 0; }
@media (max-width: 860px) { .values.six { row-gap: 0; } }


.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-aside p { color: var(--ink-soft); }
.contact-lines { margin-top: 2rem; }
.contact-line { display: grid; gap: 0.15rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line span { font-size: 0.85rem; color: var(--muted); }
.contact-line a { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   SCHOLARSHIPS
   ------------------------------------------------------------------ */

.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.award {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.award .amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.award .amount-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.award h3 { margin-bottom: 0.5rem; }
.award p { color: var(--ink-soft); }
.award .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: auto 0 0; padding: 0.5rem 0 0; }
.award .tags li { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-soft); }
.award .actions { margin-top: 1.25rem; }
.award.featured { background: var(--navy); border-color: var(--navy); }
.award.featured h3 { color: var(--on-navy); }
.award.featured p { color: var(--on-navy-muted); }
.award.featured .amount { color: var(--on-navy-accent); }
.award.featured .amount-note { color: var(--on-navy-muted); }
.award.featured .tags li { background: rgba(255, 255, 255, 0.09); color: var(--on-navy); }
@media (max-width: 760px) { .awards { grid-template-columns: 1fr; } }

.downloads { border-top: 1px solid var(--line); }
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.download strong { display: block; font-size: 1.1rem; }
.download span { color: var(--muted); font-size: 0.9rem; }
.older-issues > summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.older-issues > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.older-issues[open] > summary { border-bottom-color: transparent; }

.page-head figure .photo { aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------------
   NEWS AND EVENTS
   ------------------------------------------------------------------ */

.events { border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.event time { font-family: var(--font-display); line-height: 1; color: var(--accent); }
.event time b { display: block; font-size: 2.6rem; font-weight: 500; }
.event time small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.event h3 { margin-bottom: 0.2rem; }
.event p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .event { grid-template-columns: 4.5rem 1fr; } .event .text-link { grid-column: 2; } }

.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state img { width: 60px; }
.empty-state h3 { margin-bottom: 0.3rem; }
.empty-state p { margin: 0 0 1.1rem; color: var(--muted); max-width: 52ch; }
@media (max-width: 560px) { .empty-state { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   GIVING BACK
   ------------------------------------------------------------------ */

.gifts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1rem; align-items: start; }
.gift {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gift .photo, .gift .photo-slot { aspect-ratio: 16 / 9; border-radius: 0; min-height: 0; }
.gift .photo img { object-position: center 40%; }
.gift-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 3vw, 2.25rem); }
.gift-body p { color: var(--ink-soft); }
.gift .tax { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.6rem; }
.gift .actions { margin-top: auto; padding-top: 0.5rem; }
@media (max-width: 860px) { .gifts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------------ */

.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.org h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.org address { font-style: normal; color: var(--ink-soft); margin-bottom: 1.25rem; }
.org .person { margin: 0 0 0.35rem; }
.org .person strong { display: block; }
.org .person span { color: var(--muted); font-size: 0.95rem; }
.org a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .orgs { grid-template-columns: 1fr; } }

.forms-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; }
.forms-grid.single { grid-template-columns: minmax(0, 42rem); }
.forms-grid h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0.35rem; }
.forms-grid .panel > p { color: var(--muted); }
@media (max-width: 860px) { .forms-grid { grid-template-columns: 1fr; } }


/* ------------------------------------------------------------------
   MOTION AND PHOTO TREATMENT
   Everything that moves lives here and in the matching section of js/site.js.
   How to use it (no JS needed):
   - Stripe reveal:   add class="bend" to a navy section; the stripe draws in on scroll.
   - Staggered build: add data-stagger to a container; its children come in one by one.
   - Count-up number: <strong data-countup>$50K</strong>  (write the real final value; JS reads it)
   - Name ticker:     see the "names" section in index.html. Edit the <li> names only.
   Reduced motion: the block at the end turns all of it off.
   ------------------------------------------------------------------ */

/* Signature motion: the crest's diagonal bend draws itself in */
.js .bend::before { transform: rotate(32deg) scaleY(0); transform-origin: 50% 0; transition: transform 1.4s var(--ease); }
.js .bend.is-in::before { transform: rotate(32deg) scaleY(1); }

.js .hero-visual::before { transform: rotate(32deg) scaleY(0); transform-origin: 50% 0; transition: transform 1.6s 0.3s var(--ease); }
.js .hero-visual.is-in::before { transform: rotate(32deg) scaleY(1); }

/* Headline underline stripe in the hero, drawn on load */
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.02em;
  height: 0.09em;
  background: var(--accent);
  transform: skewX(-32deg) scaleX(1);
  transform-origin: 0 50%;
  opacity: 0.35;
}
.js .hero h1 em::after { transform: skewX(-32deg) scaleX(0); transition: transform 1s 0.6s var(--ease); }
.js .is-in h1 em::after { transform: skewX(-32deg) scaleX(1); }

/* "Where to start" tiles: the bend sweeps across on hover and focus */
.path::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -50%;
  left: -60%;
  width: 34%;
  height: 200%;
  background: currentColor;
  opacity: 0.06;
  transform: rotate(32deg) translateX(0);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.path:hover::after, .path:focus-visible::after { transform: rotate(32deg) translateX(520%); }
.path > * { position: relative; z-index: 1; }
.path.join .path-bg { z-index: -1; position: absolute; }

/* Count-up numbers reserve their final width, so nothing around them shifts while they count.
   The hidden copy holds the space, the live copy sits on top of it in the same grid cell. */
/* Doubled attribute selector on purpose: it has to beat ".stat span" and ".on-navy .stat span" */
[data-countup][data-countup] .cu { position: relative; display: inline-block; margin: 0; max-width: none; font: inherit; letter-spacing: inherit; color: inherit; font-variant-numeric: tabular-nums; }
[data-countup][data-countup] .cu > span { display: inline; margin: 0; max-width: none; font: inherit; letter-spacing: inherit; color: inherit; }
[data-countup][data-countup] .cu > .cu-sizer { visibility: hidden; }
[data-countup][data-countup] .cu > .cu-live { position: absolute; left: 0; top: 0; white-space: nowrap; }

/* Staggered build: children of [data-stagger] get --i from JS */
.js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* Name ticker */
.names { padding-block: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.names .section-head { margin-bottom: 2.5rem; }
.ticker-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.ticker-row:last-of-type { border-bottom: 1px solid var(--line); }
.ticker-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); width: 9.5rem; }
.ticker {
  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);
}
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
}
.ticker li::after { content: ""; width: 0.55rem; height: 1.1rem; background: var(--accent); transform: skewX(-32deg); opacity: 0.55; }
.ticker li small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-left: 0.6rem; }
.ticker-row.alt li { font-style: italic; color: var(--accent); }

.js .ticker-track { animation: ticker var(--ticker-speed, 45s) linear infinite; }
.js .ticker-row.alt .ticker-track { animation-direction: reverse; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.names.paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.ticker-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.ticker-controls p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.ticker-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 40px; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink-soft);
  font: 600 0.85rem var(--font-body); cursor: pointer;
}
.ticker-toggle:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 640px) {
  .ticker-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .ticker-label { width: auto; }
}

/* ------------------------------------------------------------------
   ABOUT PAGE (meeting notes, 2026-10-19)
   Side navigation, Meet the House, member cards, moving background.
   ------------------------------------------------------------------ */

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
}
.about-body { min-width: 0; }
.about-body .section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.about-body section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
/* Navy and tinted bands become panels inside the content column */
.about-body .on-navy,
.about-body .band {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  margin-block: clamp(0.5rem, 2vw, 1.5rem);
}
.about-body .band { border: 1px solid var(--line); }

/* Side navigation: sticky on a computer, a bar under the header on a phone */
.about-nav {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.about-nav-title {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-nav ol { position: relative; margin: 0; padding: 0 0 0 1.1rem; list-style: none; border-left: 1px solid var(--line); }
.about-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem 0.6rem 0.25rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.about-nav .n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease); }
.about-nav a:hover { color: var(--accent); }
.about-nav a.is-active { color: var(--accent); font-weight: 600; transform: translateX(4px); }
.about-nav a.is-active .n { color: var(--accent); }
/* The moving marker. js/site.js sets --ind-y and --ind-h (and --ind-x / --ind-w on a phone). */
.about-nav .about-nav-bar {
  position: absolute;
  left: -2px;
  top: 0;
  width: 3px;
  height: var(--ind-h, 2.5rem);
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(var(--ind-y, 0px));
  transition: transform 0.55s var(--ease), height 0.55s var(--ease);
  pointer-events: none;
}

/* Background that moves: three slanted bars (the crest stripe) drift as you scroll, and a crest
   watermark sits behind the mission. Photos are the best fix for a bland page; these hold the place
   until we have them. */
.about-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.about-bg i {
  position: absolute;
  width: 14rem;
  height: 70rem;
  background: var(--accent-tint);
  opacity: 0.55;
  transform: translateY(calc(var(--sy, 0) * var(--rate, -0.08) * 1px)) rotate(32deg);
}
.about-bg i:nth-child(1) { top: -10rem; right: 8%; --rate: -0.07; }
.about-bg i:nth-child(2) { top: 40rem; right: -6rem; width: 7rem; --rate: -0.14; opacity: 0.4; }
.about-bg i:nth-child(3) { top: 95rem; left: 18%; width: 10rem; --rate: -0.1; opacity: 0.35; }
.about-head { position: relative; }

.mission { position: relative; }
.mission::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 50%;
  width: min(22rem, 40%);
  aspect-ratio: 1 / 1.4;
  transform: translateY(-50%);
  background: url("../assets/images/crest.png") center / contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1);
  pointer-events: none;
}
.mission-grid > * { position: relative; z-index: 1; }

/* Meet the house */
.house .roster-title { margin-top: clamp(2rem, 4vw, 3rem); }
.house-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.house-grid.amenities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.house-tile .photo, .house-tile .photo-slot { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
.house-tile .photo img { transition: transform 0.9s var(--ease); }
.house-tile:hover .photo img { transform: scale(1.04); }
/* The featured tile takes a 2 by 2 block on wide screens so the best photo leads */
@media (min-width: 961px) {
  .house-grid.amenities .feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .house-grid.amenities .feature .photo { aspect-ratio: auto; flex: 1; min-height: 0; }
}
.house-tile figcaption { margin-top: 0.6rem; font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }
.house-visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.house-visit address { font-style: normal; font-size: 1.1rem; color: var(--ink); }

/* Member cards */
.members.exec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.members.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.members .member {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.members .member:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.members .member .photo-slot, .members .member .photo { aspect-ratio: 4 / 5; min-height: 0; margin-bottom: 0.9rem; }
.members.compact-grid .member .photo-slot, .members.compact-grid .member .photo { aspect-ratio: 1 / 1; }
.members .member .photo-slot .initials { font-size: 2.6rem; }
.members.compact-grid .member .photo-slot .initials { font-size: 2.1rem; }
.member-plate { padding-inline: 0.35rem; }
.member-plate h4 { margin: 0 0 0.15rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.members.compact-grid .member-plate h4 { font-size: 1.15rem; }
.member-plate .member-role { margin: 0 0 0.2rem; }
.member-plate .meta { margin: 0; }
.member-year, .member-bio, .member-positions { margin: 0; padding-inline: 0.35rem; }
.member-year { margin-top: 0.75rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.member-year:empty::before { content: "Class year coming soon"; font-weight: 500; font-style: italic; color: var(--muted); }
.member-bio {
  margin: 0.7rem 0.35rem 0;
  padding: 0.7rem 0.8rem;
  min-height: 3.8rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.member-bio:empty::before { content: "Bio coming soon."; font-style: italic; color: var(--muted); }
.member-positions { margin-top: auto; padding-top: 0.8rem; font-size: 0.85rem; }
.member-positions div { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.5rem; padding: 0.3rem 0; border-top: 1px solid var(--line); }
.member-positions dt { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.member-positions dd { margin: 0; color: var(--ink); font-weight: 500; }
.member-positions dd:empty::before { content: "None listed yet"; font-weight: 400; font-style: italic; color: var(--muted); }

@media (max-width: 1080px) {
  .members.compact-grid, .members.exec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .members.compact-grid, .members.exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones and small tablets: nav becomes a bar under the header, everything stacks */
@media (max-width: 960px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .about-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .about-nav::-webkit-scrollbar { display: none; }
  .about-nav-title { display: none; }
  .about-nav ol { display: flex; gap: 0.25rem; width: max-content; padding: 0; border-left: 0; }
  .about-nav a { padding: 0.95rem 0.8rem; min-height: 48px; white-space: nowrap; font-size: 0.95rem; }
  .about-nav .n { display: none; }
  .about-nav a.is-active { transform: none; }
  .about-nav .about-nav-bar { top: auto; bottom: 0; left: 0; height: 3px; width: var(--ind-w, 4rem); transform: translateX(var(--ind-x, 0px)); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
  .about-body section[id] { scroll-margin-top: calc(var(--header-h) + 64px); }
  .about-bg i:nth-child(1) { right: -3rem; }
  .house-grid, .house-grid.amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-grid .feature { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* One card per row, laid out sideways so 27 members do not make a mile-long page */
  .members.exec-grid, .members.compact-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .members .member {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 0.9rem;
    align-items: start;
    padding: 0.8rem;
  }
  .members .member .photo-slot, .members .member .photo,
  .members.compact-grid .member .photo-slot, .members.compact-grid .member .photo { grid-row: 1 / 3; grid-column: 1; aspect-ratio: 1 / 1; width: 76px; margin: 0; }
  .members .member.exec .photo-slot, .members .member.exec .photo { width: 96px; }
  .members .member.exec { grid-template-columns: 96px minmax(0, 1fr); }
  .members .member .photo-slot .initials, .members.compact-grid .member .photo-slot .initials { font-size: 1.6rem; }
  .member-plate { grid-column: 2; grid-row: 1; padding: 0; }
  .member-plate h4, .members.compact-grid .member-plate h4 { font-size: 1.15rem; }
  .member-year { grid-column: 2; grid-row: 2; margin: 0.4rem 0 0; padding: 0; }
  .member-bio { grid-column: 1 / -1; min-height: 0; margin: 0.8rem 0 0; font-size: 0.9rem; padding: 0.65rem 0.75rem; }
  .member-positions { grid-column: 1 / -1; padding: 0.6rem 0 0; }
  .house-visit { flex-direction: column; align-items: flex-start; }
}

/* Home: "Why Theta Xi" quote cards (meeting note 17) and the two links under the legacy text */
.legacy-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.why-card::before {
  content: "\201C";
  position: absolute;
  top: -0.05em;
  right: 0.12em;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.why-kind { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.why-card blockquote { margin: 0 0 1.5rem; }
.why-card blockquote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; color: var(--ink); }
.why-card blockquote p:empty::before { content: "Quote coming soon. Why he joined and what Theta Xi gave him."; font-style: italic; color: var(--muted); }
.why-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 0.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.why-card .who { font-weight: 600; color: var(--ink); }
.why-card .who:empty::before { content: "First Last"; font-weight: 500; color: var(--muted); }
.why-card .what { font-size: 0.9rem; color: var(--muted); }
.why-card .what:empty::before { content: "Class of 20XX"; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* Very narrow phones (320px): the brand line and Menu button together were 22px too wide */
@media (max-width: 360px) {
  .brand-name small { display: none; }
  .nav-toggle { padding-inline: 0.7rem; }
}

/* Reduced motion: everything lands in its final state, the ticker becomes a static wrapped list */
@media (prefers-reduced-motion: reduce) {
  .js .bend::before, .js .hero-visual::before { transform: rotate(32deg) scaleY(1); }
  .js .hero h1 em::after { transform: skewX(-32deg) scaleX(1); }
  .js [data-stagger] > * { opacity: 1; transform: none; }
  .path::after { display: none; }
  .about-bg i { transform: rotate(32deg); }
  .about-nav .about-nav-bar, .about-nav a { transition: none; }
  .js .ticker-track { animation: none; width: auto; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker ul { flex-wrap: wrap; row-gap: 0.5rem; }
  .ticker ul[aria-hidden="true"], .ticker-toggle { display: none; }
}

/* ------------------------------------------------------------------
   ABOUT: mission and roster (added 2026-10-08)
   ------------------------------------------------------------------ */

.mission { border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  border-left: 3px solid var(--accent);
}
.mission-sign { padding-left: clamp(1rem, 2.5vw, 1.75rem); color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }

.roster-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.members { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem 1.25rem; }
.member .member-role { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.member h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.member .meta { margin: 0; }

.roster-groups { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3.5rem, 7vw, 5rem); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 1px solid var(--line); }
.roster li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.roster strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.roster span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .roster-groups { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .roster { grid-template-columns: 1fr; } }

/* News: Instagram tiles */
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ig-post { display: block; border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.ig-post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ig-post .photo-slot, .ig-post .photo { aspect-ratio: 1 / 1; min-height: 0; }
@media (max-width: 640px) { .ig-grid { grid-template-columns: 1fr 1fr; } .ig-post:first-child { grid-column: 1 / -1; } }

/* News: "Around the chapter" photo gallery. The first photo runs two columns wide. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery .photo { aspect-ratio: 1 / 1; }
.gallery .feature { grid-column: span 2; }
.gallery .feature .photo { aspect-ratio: auto; flex: 1; min-height: 14rem; }
.gallery .feature .photo img { position: absolute; inset: 0; object-position: center 45%; }
.gallery figcaption { padding-top: 0.55rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .feature .photo { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Why Theta Xi teaser on Home (the quotes live on why.html). Kept short: it is a link out, not a section. */
.section.why-teaser { padding-block: clamp(2rem, 4vw, 2.75rem); border-bottom: 0; }
.why-teaser-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.why-teaser-inner h2 { margin-bottom: 0.25rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.why-teaser-inner p { margin: 0; max-width: 40rem; }
.load-error { color: var(--muted); font-style: italic; }
.news-post .photo { margin-bottom: 0.9rem; }
[hidden] { display: none !important; }
.news-post .photo { aspect-ratio: 16 / 10; }
.news-post .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   MOBILE PASS (phones, portrait and landscape)
   Kept in one block at the end so it is easy to find, tweak or remove.
   ------------------------------------------------------------------ */

/* Safety net: nothing may push the page sideways. "clip" (not "hidden") keeps sticky bars working. */
html, body { overflow-x: clip; }
/* A long word or email breaks onto the next line instead of running off the screen */
h1, h2, h3, h4, p, li, dd, a { overflow-wrap: break-word; }

/* Content that js/content.js fills in starts with some height, so the page does not jump when it lands */
[data-render][aria-busy="true"] { min-height: 16rem; }

@media (max-width: 1080px) {
  /* Menu button floats at the bottom right (thumb reach) and the menu opens as a sheet above it.
     The header goes solid: a blur is heavy on cheap phones, and it would trap the fixed button inside the header. */
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 2;
    min-height: 52px;
    padding: 0 1.25rem;
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    box-shadow: var(--shadow);
    font-size: 1rem;
  }
  .site-nav {
    inset: auto 0 0 0;
    z-index: 1;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
    /* Tall enough for every link, so Join is never hidden behind the Menu button when the sheet opens */
    max-height: calc(100dvh - var(--header-h));
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    transform: translateY(16px);
  }
  /* Room at the very end of the page so the floating button never sits on the last links */
  .footer-base { padding-bottom: 5.5rem; }
  .about-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

@media (max-width: 480px) {
  .button { white-space: normal; text-align: center; justify-content: center; }
  .actions .button { flex: 1 1 100%; }
  .stat strong { font-size: clamp(1.75rem, 9vw, 2.3rem); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Phone held sideways: the screen is short, so shrink the header and menu rows, and
   don't pin tall blocks that would be taller than the screen */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .brand img { width: 28px; }
  .site-nav a { padding-block: 0.55rem; }
}
@media (max-height: 700px) {
  .legacy-grid .sticky, .purposes-aside { position: static; }
  /* Short phones: tighter menu rows so the whole menu still fits above the Menu button */
  .site-nav a { padding-block: 0.6rem; }
}

/* Touch screens: every tap target at least 44px tall */
@media (pointer: coarse) {
  .text-link, .ticker-toggle, .about-nav a { min-height: 44px; }
  .page-jump a { padding-block: 0.75rem 0.5rem; }
  .site-footer li a, .site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer ul { gap: 0; }
}

/* ------------------------------------------------------------------
   404 (page not found). Reuses the page head, buttons and page-jump links. */
.not-found { min-height: calc(70vh - var(--header-h)); display: flex; align-items: center; }
.not-found .lead { margin-bottom: 2rem; }
.not-found .page-jump { margin-top: 2.5rem; }
/* main gets focus from the skip link on this page only. No ring on the whole page. */
#main[tabindex="-1"]:focus { outline: none; }
