/* ==========================================================================
   Delta Sigma Pi, Gamma Sigma Chapter — site styles
   Colors and fonts live in the :root block below. Change them there once and
   the whole site updates.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Greek letters (ΔΣΠ) come from Noto Serif Display, since Instrument Serif has no Greek */
@font-face { font-family: "DSP Greek"; src: url("../fonts/noto-serif-display-greek-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0370-03FF; font-display: swap; }

:root {
  /* Brand colors (kept from the original site) */
  --purple: #553F87;
  --purple-deep: #251A41;
  --purple-ink: #1E1631;
  --gold: #E7CE8E;
  --gold-strong: #D9B865;

  /* Neutrals */
  --paper: #F6F4FA;
  --lilac: #ECE7F5;
  --white: #FFFFFF;
  --muted: #6B6380;
  --line: rgba(85, 63, 135, 0.16);

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "DSP Greek", Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* No rubber-band scrolling past the top or bottom of the page */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior-y: none; background: var(--purple-deep); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--purple-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--purple-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
/* Big page titles: Manrope 600 with tight tracking, like the pct-illinois.com rush page */
.display { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.065em; line-height: .98; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.h-xl { font-size: clamp(3rem, 7vw, 6.25rem); }
.h-lg { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.015em; }
.h-md { font-family: var(--font-serif); font-size: clamp(1.9rem, 3vw, 2.6rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 60ch; }
.prose p { margin: 0 0 1.1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.kicker { font-size: .95rem; font-weight: 600; color: var(--purple); margin: 0 0 18px; }
.on-dark .kicker { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--purple-ink); }
.btn-gold:hover { background: #F0DCA6; }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: #6650A0; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  color: var(--white);
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(246, 244, 250, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--purple-ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-letters { font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--gold); transition: color .3s; }
.site-header.is-solid .brand-letters, body:not(.has-hero) .brand-letters { color: var(--purple); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; font-size: .98rem; letter-spacing: -0.01em; }
.brand-text span { font-size: .78rem; opacity: .75; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: 999px; transition: background .2s; }
.main-nav a:not(.btn):hover { background: rgba(127, 110, 170, .14); }
.main-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.main-nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--purple-deep); color: var(--white); padding: 12px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 16px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--gold); }
  .main-nav .btn { margin: 20px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--purple-deep); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
/* Zoomed in slightly and nudged right so the group and the stairs sit in the middle */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 40%; transform: scale(1.08) translateX(3.5%); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(37,26,65,.55) 0%, rgba(37,26,65,.1) 30%, rgba(37,26,65,.55) 62%, rgba(30,22,49,.96) 100%),
    linear-gradient(90deg, rgba(37,26,65,.65) 0%, rgba(37,26,65,0) 65%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); width: 100%; }
.hero-letters {
  font-family: var(--font-serif); color: var(--gold);
  font-size: clamp(7rem, 22vw, 19rem); line-height: .78; letter-spacing: -0.02em;
  margin: 0 0 clamp(20px, 3vw, 36px) -0.04em; display: flex;
}
.hero-letters span { display: inline-block; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.8rem); }
.hero-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--gold); margin: 14px 0 0; line-height: 1.15; }
.hero-sub { margin: 18px 0 0; max-width: none; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* The one orchestrated moment: the letters rise in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-letters span { animation: rise 1.1s var(--ease) both; }
  .hero-letters span:nth-child(2) { animation-delay: .12s; }
  .hero-letters span:nth-child(3) { animation-delay: .24s; }
  .hero-copy { animation: fade 1s .55s var(--ease) both; }
  @keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; background: var(--purple-deep); color: var(--white); overflow: hidden; }
.page-head-media { position: absolute; inset: 0; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-head-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,26,65,.4), rgba(37,26,65,.95)); }
.page-head-inner { position: relative; padding-top: calc(76px + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); }
.page-head .lede { color: rgba(255,255,255,.82); margin-top: 22px; }
.page-head-letters { position: absolute; right: var(--gutter); bottom: -0.18em; font-family: var(--font-serif); font-size: clamp(10rem, 26vw, 24rem); line-height: 1; color: rgba(231, 206, 142, .09); pointer-events: none; user-select: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.on-dark { background: var(--purple-deep); color: var(--white); }
.on-purple { background: var(--purple); color: var(--white); }
.on-lilac { background: var(--lilac); }
.on-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 48ch; color: var(--muted); }
.on-dark .section-head p { color: rgba(255,255,255,.72); }

/* ---------- Intro + stats ---------- */
.intro { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.intro-crest { width: clamp(150px, 18vw, 240px); flex: none; opacity: .92; }
@media (max-width: 760px) { .intro { flex-direction: column-reverse; align-items: flex-start; gap: 28px; } .intro-crest { width: 110px; } }
.intro-statement { font-family: var(--font-serif); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 22ch; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; color: var(--purple); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 26px; }
}

/* ---------- Pillars (expanding photo panels) ---------- */
.pillars { display: flex; gap: 12px; height: clamp(440px, 62vh, 620px); }
.pillar {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden;
  color: var(--white); transition: flex .6s var(--ease); background: var(--purple-deep);
}
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,26,65,0) 35%, rgba(37,26,65,.92) 100%); }
.pillar-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px; z-index: 1; }
.pillar h3 { font-family: var(--font-serif); font-size: clamp(1.8rem, 2.2vw, 2.25rem); white-space: nowrap; }
.pillar p { margin: 10px 0 0; max-width: 40ch; font-size: .98rem; color: rgba(255,255,255,.86); opacity: 0; max-height: 0; transition: opacity .4s var(--ease), max-height .5s var(--ease); }
@media (hover: hover) and (min-width: 1180px) {
  .pillars:hover .pillar { flex: .9; }
  .pillars .pillar:hover, .pillars .pillar:focus-within { flex: 1.5; }
  .pillar:hover img { transform: scale(1.04); }
  .pillar:hover p, .pillar:focus-within p { opacity: 1; max-height: 220px; }
}
/* Smaller screens and touch: a grid with every description showing */
@media (max-width: 1179px), (hover: none) {
  .pillars { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .pillar { min-height: 340px; }
  .pillar p { opacity: 1; max-height: none; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 280px; }
}

/* ---------- President letter ---------- */
.letter { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.letter-photo { position: sticky; top: 110px; }
.letter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: var(--radius); }
.letter-photo figcaption { margin-top: 16px; font-size: .95rem; color: rgba(255,255,255,.7); }
.letter-photo figcaption strong { display: block; color: var(--white); font-size: 1.05rem; }
.letter-body .prose p { font-size: 1.08rem; color: rgba(255,255,255,.86); }
.letter-body .prose p:first-child { font-family: var(--font-serif); font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.3; color: var(--white); }
.signature { margin-top: 36px; }
.signature span { display: block; color: rgba(255,255,255,.7); }
.signature strong { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 2.4rem; color: var(--gold); line-height: 1.2; margin-top: 4px; }
@media (max-width: 860px) {
  .letter { grid-template-columns: 1fr; }
  .letter-photo { position: static; max-width: 380px; }
}

/* ---------- Gallery (sideways-scrolling photo strip) ---------- */
.gallery-title { font-size: clamp(3rem, 8vw, 7rem); text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.marquee { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; outline-offset: -3px; }
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee-track { display: flex; width: max-content; padding: 18px 0 22px; }
/* Collage: three rows of mixed-size tiles, each slightly tilted */
.collage {
  --row: clamp(120px, 13.5vw, 205px); --col: calc(var(--row) * 1.5);
  display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(3, var(--row));
  grid-auto-columns: var(--col); gap: 12px; padding-right: 12px;
}
.collage figure {
  margin: 0; overflow: hidden; border-radius: 8px; background: var(--lilac);
  border: 4px solid var(--white); box-shadow: 0 6px 18px -8px rgba(30,22,49,.35);
  transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.collage figure:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 14px 30px -12px rgba(30,22,49,.5); position: relative; z-index: 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.collage .t-big { grid-row: span 2; grid-column: span 2; }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sponsor { display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 130px; padding: 26px 34px; text-decoration: none; }
.sponsor img { max-height: 58px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.sponsor:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); }
.contact-info p { color: var(--muted); max-width: 40ch; }
.contact-links { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; padding: 8px 0; }
.contact-links a:hover { color: var(--purple); }
.contact-links svg { width: 20px; height: 20px; color: var(--purple); }
.form-placeholder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--purple-ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-actions button:disabled { opacity: .6; cursor: progress; transform: none; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); }
.form-note[data-state="shown"] { color: var(--purple); font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-ink); color: rgba(255,255,255,.78); padding: clamp(64px, 8vw, 110px) 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.footer-motto { font-family: var(--font-serif); font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; color: var(--white); margin: 0; }
.footer-motto em { color: var(--gold); }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer-cols h2 { font-family: var(--font-sans); font-size: .85rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- Brothers ---------- */
.filter-bar { position: sticky; top: 76px; z-index: 20; background: rgba(246, 244, 250, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
/* Centered, but still scrolls sideways cleanly on small screens */
.filters .chip:first-child { margin-left: auto; }
.filters .chip:last-child { margin-right: auto; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: transparent; color: var(--purple-ink);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--purple); }
.chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.group { padding: clamp(48px, 6vw, 80px) 0 0; }
.roster-wrap { max-width: 1520px; padding-bottom: var(--section); }
.group[hidden] { display: none; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.group-head span { color: var(--muted); font-size: .95rem; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(18px, 2.8vw, 44px); }
@media (max-width: 1060px) { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .roster { grid-template-columns: repeat(2, 1fr); } }

.member { display: block; text-decoration: none; color: inherit; }
.member-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--lilac); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s var(--ease), filter .6s var(--ease); }
.member-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(85,63,135,0) 55%, rgba(37,26,65,.45) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
/* LinkedIn badge: sits in the corner, fades in on hover */
.member-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: #0A66C2; box-shadow: 0 2px 10px rgba(30,22,49,.18);
  opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.member-badge svg { width: 17px; height: 17px; }
.member-name { margin: 14px 0 0; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.member-role { margin: 3px 0 0; font-size: .9rem; line-height: 1.35; color: var(--purple); font-weight: 600; }
.member-role.is-brother { color: var(--muted); font-weight: 500; }

a.member:hover .member-photo img, a.member:focus-visible .member-photo img { transform: scale(1.04); }
a.member:hover .member-photo::after, a.member:focus-visible .member-photo::after { opacity: 1; }
a.member:hover .member-badge, a.member:focus-visible .member-badge { opacity: 1; transform: none; }
a.member:hover .member-name { text-decoration: underline; text-decoration-color: var(--gold-strong); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.member:focus-visible { outline: none; }
a.member:focus-visible .member-photo { outline: 3px solid var(--gold-strong); outline-offset: 3px; }

/* Touch screens can't hover, so show a LinkedIn badge on every card instead */
@media (hover: none), (pointer: coarse) {
  a.member .member-badge { opacity: 1; transform: none; }
}

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.split-crest { display: flex; gap: 28px; align-items: flex-start; }
.split-crest img { width: 120px; flex: none; }
.purpose { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.3; max-width: 34ch; margin: 0; }
.history-photo { margin: clamp(40px, 5vw, 64px) 0 0; }
.history-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 50%; border-radius: var(--radius); }
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.timeline li { padding: 22px 20px 0 0; }
.timeline li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.timeline strong { display: block; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--purple); line-height: 1; }
.timeline span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.values { display: grid; gap: clamp(56px, 8vw, 110px); }
.value { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.value:nth-child(even) .value-media { order: 2; }
.value-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.value h3 { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 18px; }
@media (max-width: 860px) {
  .split, .value { grid-template-columns: 1fr; }
  .value:nth-child(even) .value-media { order: 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
}
@media (max-width: 520px) { .split-crest { flex-direction: column; } .split-crest img { width: 96px; } }

/* ---------- Recruitment ---------- */
.rush-layout { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.rush-flyer { position: sticky; top: 110px; }
.rush-flyer img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(37,26,65,.5); }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--lilac); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; font-weight: 600; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--purple); margin-top: 2px; }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { line-height: 1; }
.event-date .m { display: block; font-size: .85rem; font-weight: 700; color: var(--purple); }
.event-date .d { display: block; font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; margin-top: 4px; }
.event-date .w { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.event h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.tag { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--purple-deep); color: var(--gold); white-space: nowrap; }
.tag.open { background: transparent; color: var(--purple); border: 1.5px solid var(--line); }
.event.is-invite .event-date .d { color: var(--muted); }
@media (max-width: 960px) { .rush-layout { grid-template-columns: 1fr; } .rush-flyer { position: static; max-width: 420px; } }
@media (max-width: 560px) { .event { grid-template-columns: 70px 1fr; } .event .tag { grid-column: 2; justify-self: start; } .event-date .d { font-size: 2.1rem; } }

.video-slot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #3A2A63 0%, var(--purple-deep) 60%); display: grid; place-items: center; text-align: center; color: var(--white); }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot .soon { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.4rem); color: var(--gold); }
.video-slot .play { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid rgba(231,206,142,.5); display: grid; place-items: center; margin: 0 auto 18px; }
.video-slot .play svg { width: 22px; height: 22px; color: var(--gold); margin-left: 4px; }

.eligibility { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eligibility li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.eligibility svg { width: 28px; height: 28px; color: var(--purple); }
.eligibility p { margin: 0; }
@media (max-width: 860px) { .eligibility { grid-template-columns: 1fr; } }

.flyers { columns: 4 220px; column-gap: 12px; }
.flyers figure { margin: 0 0 12px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--lilac); }
.flyers img { width: 100%; height: auto; }

/* ---------- Sponsorship ---------- */
.benefits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.benefits li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.benefits svg { width: 22px; height: 22px; color: var(--purple); flex: none; }
.cta-panel { background: var(--purple); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.cta-panel h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.cta-panel p { color: rgba(255,255,255,.8); margin: 0 0 26px; }
.cta-panel .cta-contact { margin: 22px 0 0; font-size: .95rem; color: rgba(255,255,255,.75); }
.cta-panel .cta-contact a { color: var(--gold); font-weight: 700; word-break: break-all; }

.packet-viewer { border-radius: var(--radius); overflow: hidden; background: #3A3150; box-shadow: 0 30px 70px -40px rgba(0,0,0,.7); }
.packet-viewer iframe { display: block; width: 100%; height: min(88vh, 1100px); border: 0; }
.packet-cover { display: none; position: relative; max-width: 420px; text-decoration: none; color: var(--white); }
.packet-cover img { width: 100%; border-radius: var(--radius); }
.packet-cover span { display: block; margin-top: 12px; font-weight: 600; color: var(--gold); }
/* Phones can't show PDFs inline well, so show the cover and open the PDF on tap */
@media (max-width: 760px) {
  .packet-viewer { display: none; }
  .packet-cover { display: block; }
}

/* ---------- Loading / errors ---------- */
.load-error { max-width: 640px; margin: 160px auto; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.load-error h1 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 12px; }
.load-error code { background: var(--lilac); padding: 2px 6px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
