/* ==========================================================================
   Pi Delta Psi Fraternity, Inc. — Omega Chapter at UConn
   Global stylesheet
   --------------------------------------------------------------------------
   Brand colors live in :root below. Change them in one place and the whole
   site follows.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — red, black, white */
  --black-900: #0a0a0a;   /* page background */
  --black-800: #121212;   /* raised surfaces */
  --black-700: #1a1a1a;
  --black-600: #242424;
  --red-600:  #8f0b20;    /* deep red */
  --red-500:  #c8102e;    /* primary accent */
  --red-400:  #e11d34;    /* brighter accent */
  --red-300:  #ff7280;    /* light tint, for text on black */

  /* Surfaces & text */
  --bg: var(--black-900);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(200, 16, 46, 0.55);
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --text-dim: #808080;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --nav-h: 68px;
  --radius: 14px;
  --radius-sm: 9px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* Focus ring — keyboard users only */
:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 44px, var(--wrap-narrow)); margin-inline: auto; }

section { position: relative; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 12%, rgba(255,255,255,0.02) 88%, transparent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-400);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  max-width: 120px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 18px; }
.section-lede { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.center { text-align: center; }
.center .section-lede { margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__crest { height: 42px; width: auto; flex-shrink: 0; }
.footer .brand__crest { height: 56px; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  color: var(--red-400);
  line-height: 1;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em; }
.brand__sub { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.13em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 3px; }
.nav__link {
  padding: 8px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--red-400); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 38px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.28s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 10px 22px 22px;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent; /* buttons otherwise inherit the UA's buttonface color */
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-400); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(200, 16, 46, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 50% at 82% 78%, rgba(143, 11, 32, 0.28), transparent 60%),
    linear-gradient(165deg, #161616 0%, #0a0a0a 55%, #0d0d0d 100%);
}
.hero__crest {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  height: min(112vh, 1000px);
  width: auto;
  opacity: 0.07;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 900px) { .hero__crest { right: -22%; opacity: 0.05; } }

.hero__content { position: relative; }
.hero__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.94;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.hero h1 .thin { display: block; font-weight: 400; font-style: italic; color: var(--red-400); font-size: 0.44em; letter-spacing: 0.02em; margin-top: 14px; }
.hero__sub {
  font-size: clamp(0.9rem, 1.6vw, 1.06rem);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 26px 0 34px;
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--red-500), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Page header (interior pages) ---------- */
.pagehead {
  padding: calc(var(--nav-h) + 76px) 0 62px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 12% 0%, rgba(200, 16, 46, 0.2), transparent 62%),
    linear-gradient(180deg, var(--black-800), var(--black-900));
}
/* Photo variant of the page header (rush). The overlay keeps the heading
   readable over the image and fades the photo into the page background. */
/* Photo page header. Each page sets --head-img (and optionally --head-focus
   and --head-bright) on its own modifier class below. */
.pagehead--photo {
  /* A page can pin the box to its photo's aspect ratio so nothing is cropped. */
  aspect-ratio: var(--head-ratio, auto);
  min-height: var(--head-minh, 78vh);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 76px;
  background: var(--black-900);
}
.pagehead--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--head-img);
  background-size: cover;
  background-position: var(--head-focus, center 30%);
  filter: brightness(var(--head-bright, 1.22)) saturate(1.06);
  z-index: 0;
}
.pagehead--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10,10,10,var(--scrim-l, 0.86)) 0%,
      rgba(10,10,10,var(--scrim-m, 0.55)) 46%,
      rgba(10,10,10,var(--scrim-r, 0.14)) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 30%, transparent 62%, rgba(10,10,10,0.82) 100%);
}
.pagehead--photo .wrap { position: relative; z-index: 2; }
.pagehead--photo .pagehead__glyph { display: none; }
.pagehead--photo h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  text-shadow: 0 3px 30px rgba(0,0,0,0.75);
}
.pagehead--photo p {
  color: #f0f0f0;
  font-size: 1.12rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85);
}
@media (max-width: 760px) {
  .pagehead--photo { min-height: 64vh; }
  /* too narrow to honour a wide photo ratio; fall back to a cropped band */
  .pagehead--history { --head-ratio: auto; --head-minh: 56vh; --head-focus: center 12%; }
  .pagehead--photo::after {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.42) 40%, rgba(10,10,10,0.88) 100%);
  }
}

/* Per-page photos */
.pagehead--rush   { --head-img: url("../img/rush-hero.webp");   --head-focus: center 30%; }
.pagehead--about  { --head-img: url("../img/about-hero.webp");  --head-focus: center 38%; --head-bright: 1.15;
                    --scrim-l: 0.9; --scrim-m: 0.62; --scrim-r: 0.18; }
.pagehead--chapters{ --head-img: url("../img/chapters-hero.webp"); --head-focus: center 38%; --head-bright: 1.14;
                    --scrim-l: 0.9; --scrim-m: 0.62; --scrim-r: 0.2; }
.pagehead--history{ --head-img: url("../img/history-hero.webp"); --head-focus: center; --head-bright: 1.1;
                    --scrim-l: 0.9; --scrim-m: 0.6; --scrim-r: 0.16;
                    /* match the photo so the full frame is visible */
                    --head-ratio: 960 / 608; --head-minh: 0; }
.pagehead--roster {
  --head-img: url("../img/roster-hero.webp");
  --head-focus: center bottom;
  --head-bright: 1.12;
  --scrim-l: 0.93; --scrim-m: 0.68; --scrim-r: 0.2;
}

.pagehead__glyph { display: none; }
.pagehead--photo h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  text-shadow: 0 3px 30px rgba(0,0,0,0.75);
}
.pagehead--photo p {
  color: #f0f0f0;
  font-size: 1.12rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85);
}
@media (max-width: 760px) {
  .pagehead--photo { min-height: 64vh; }
  /* too narrow to honour a wide photo ratio; fall back to a cropped band */
  .pagehead--history { --head-ratio: auto; --head-minh: 56vh; --head-focus: center 12%; }
  .pagehead--photo::after {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.42) 40%, rgba(10,10,10,0.88) 100%);
  }
}

.pagehead__glyph { display: none; }
.pagehead--photo h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.pagehead--photo p { color: #e6e6e6; text-shadow: 0 1px 14px rgba(0,0,0,0.7); }
@media (max-width: 760px) {
  .pagehead--photo::after {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.82) 45%, rgba(10,10,10,0.95) 100%);
  }
}

.pagehead__glyph {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--font-display);
  font-size: clamp(11rem, 26vw, 22rem);
  line-height: 0.8;
  color: rgba(255,255,255,0.025);
  user-select: none;
  pointer-events: none;
}
.pagehead h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); margin-bottom: 12px; }
.pagehead p { color: var(--text-muted); max-width: 58ch; font-size: 1.04rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--black-900); padding: 30px 24px; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: var(--red-400);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-hover); }
.card__glyph {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

/* Crest icons on the pillar cards */
.card__iconwrap {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.3);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card__iconwrap {
  background: rgba(200, 16, 46, 0.2);
  border-color: var(--red-500);
  transform: translateY(-2px);
}
.card__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: filter 0.3s var(--ease);
}
.card:hover .card__icon { filter: brightness(1.3); }

/* The four pillars always sit on one row on desktop. */
.grid--pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .grid--pillars { grid-template-columns: minmax(0, 1fr); } }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.card--link { display: block; }
.card--link .card__go {
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-400);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.25s var(--ease);
}
.card--link:hover .card__go { gap: 13px; }

/* ---------- Prose ---------- */
.prose { color: var(--text-muted); font-size: 1.03rem; }
.prose h2 { color: var(--text); }
.prose h3 { color: var(--text); font-size: 1.3rem; margin-top: 2em; }
.prose strong { color: var(--text); font-weight: 600; }
.pull {
  border-left: 2px solid var(--red-500);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--red-300);
}
.pull cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 16px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 15px; height: 1.5px;
  background: var(--red-500);
}

/* ---------- Controls (search + filters) ---------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}
.search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 13px 44px 13px 44px;
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.search input::placeholder { color: var(--text-dim); }
/* Hide the browser's native clear control — we render our own. */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input:focus { outline: none; border-color: var(--border-strong); background: var(--surface-hover); }
.search__icon {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.95rem;
}
.search__clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  display: none;
}
.search__clear:hover { color: var(--text); }
.search__clear.is-visible { display: block; }

.select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 13px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--border-strong); }
.select option { background: var(--black-800); color: var(--text); }

.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--red-500); border-color: var(--red-500); color: var(--black-900); }

.resultcount {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 26px;
}
.resultcount b { color: var(--red-400); }

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Roster ---------- */
.classblock {
  margin-bottom: 4px;
}
.classblock__head {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 14px;
  background: var(--black-900);
  border-bottom: 1px solid var(--border-strong);
}
.classblock__greek {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-500);
  width: 42px;
  flex-shrink: 0;
  text-align: center;
}
.classblock__meta { flex: 1; min-width: 0; }
.classblock__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.classblock__term {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-300);
  font-weight: 700;
}
.classblock__count {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
  white-space: nowrap;
}
.classblock__body { padding: 18px 4px 40px; }

.educators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 0 0 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #fff;
}
.educators em { font-style: italic; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.educators span b { color: var(--red-400); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; margin-right: 8px; }

.brothers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(305px, 100%), 1fr)); gap: 10px; }
.brother {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.brother:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateX(3px); }
.brother__num {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--red-500);
  flex-shrink: 0;
  min-width: 30px;
  font-weight: 700;
}
.brother__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
}
.brother__line {
  font-style: italic;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
  white-space: nowrap;
}
/* the longest names need a touch less type to stay on one line mid-range */
@media (max-width: 1100px) {
  .brother__name { font-size: 0.89rem; }
  .brother { padding: 11px 13px; }
}
.brother mark { background: rgba(200, 16, 46, 0.5); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-500), rgba(200,16,46,0.2));
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--black-900);
  border: 2px solid var(--red-500);
}
.tl-item__term { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-400); font-weight: 700; margin-bottom: 5px; }
.tl-item__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.tl-item__class { font-size: 0.83rem; color: var(--text-dim); }

/* ---------- Board ---------- */
.exec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.exec__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.exec__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--red-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.exec__card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.exec__card:hover::before { transform: scaleY(1); }
.exec__role { font-size: 0.7rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--red-400); font-weight: 700; margin-bottom: 12px; }
.exec__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.exec__line { font-size: 0.88rem; color: var(--text-dim); font-style: italic; margin-top: 3px; }

/* Exec board: cards on the left, the board poster on the right. */
.execwrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.execwrap .exec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.execposter { margin: 0; }
.execposter img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 1000px) {
  .execwrap { grid-template-columns: 1fr; }
  .execposter { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .execwrap .exec { grid-template-columns: 1fr; }
}

.committee {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: rgba(255,255,255,0.018);
  transition: border-color 0.25s, background 0.25s;
}
.committee:hover { border-color: var(--border-strong); background: var(--surface); }
.committee h3 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red-400);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.committee ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.committee li { font-size: 0.9rem; font-weight: 600; }
.committee li span { display: block; font-size: 0.78rem; color: var(--text-dim); font-style: italic; font-weight: 400; }

/* ---------- Chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.chapter:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }
.chapter.is-home { border-color: var(--red-500); background: rgba(200,16,46,0.14); }
.chapter__greek {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--red-500);
  min-width: 64px;
  font-weight: 700;
  flex-shrink: 0;
}
.chapter__school { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.chapter__badge {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-400);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}
.chapter mark { background: rgba(200, 16, 46, 0.5); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item__head {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 44px 24px 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.acc-item__head:hover { color: var(--red-300); }
.acc-item__head::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--red-400);
  transition: transform 0.3s var(--ease);
}
.acc-item.is-open .acc-item__head::after { transform: translateY(-50%) rotate(45deg); }
.acc-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.acc-item.is-open .acc-item__body { grid-template-rows: 1fr; }
.acc-item__inner { overflow: hidden; }
.acc-item__inner > div { padding-bottom: 26px; color: var(--text-muted); max-width: 74ch; }

/* ---------- Photo-backed section ----------
   A normal section with a photo behind it. Declare the image on a modifier
   class here, never inline: a url() in a custom property resolves against
   the stylesheet that uses it, not the page. */
.section--photo {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 13vw, 168px) 0;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--band-img);
  background-size: cover;
  background-position: var(--band-focus, center);
  /* scale slightly when blurring so the blur does not bleed transparent edges */
  transform: scale(var(--band-scale, 1));
  filter: brightness(var(--band-bright, 1.12)) saturate(1.05) blur(var(--band-blur, 0px));
}
.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.94) 0%,
    rgba(10,10,10,0.72) 38%,
    rgba(10,10,10,0.72) 62%,
    rgba(10,10,10,0.96) 100%);
}
.section--photo > * { position: relative; z-index: 2; }
.section--photo h2 { text-shadow: 0 3px 28px rgba(0,0,0,0.8); }
.section--photo .section-lede { color: #ececec; text-shadow: 0 2px 16px rgba(0,0,0,0.85); }

.section--banquet { --band-img: url("../img/band-banquet.webp"); --band-focus: center 42%; }
/* Standalone brand graphic block */
.brandmark {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery figure:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.gallery img {
  width: 100%;
  height: auto;            /* beats the width/height attributes so aspect-ratio applies */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.gallery figcaption {
  padding: 13px 16px 15px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 62px 0 34px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015));
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 42ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--red-300); }
.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer__legal { display: grid; gap: 5px; }
.footer__credit { color: var(--text-dim); font-size: 0.76rem; }
.footer__credit b { color: var(--red-400); font-weight: 600; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.footer__social a:hover { border-color: var(--red-500); color: var(--red-400); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Scroll reveal ----------
   Not used on the roster page, whose list renders immediately. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  z-index: 90;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--red-400); transform: translateY(-3px); }

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

/* ---------- Print ---------- */
@media print {
  .nav, .totop, .hero__scroll, .controls, .chiprow { display: none !important; }
  body { background: #fff; color: #000; }
  .classblock__head { position: static; }
}
