/* ============================================================
   Rho Chi Omega — "Pearls & Ivy" Concept
   One-page luxury redesign — concept mockup, not the live site.

   PALETTE — true AKA salmon pink & apple green, at a shinier, richer depth
     --ivy        #123524  deep emerald — primary brand green (grounding)
     --ivy-black  #081912  near-black emerald — footer, overlay nav
     --apple      #8bc34a  apple green — bright accent, shine, hovers
     --apple-deep #4f7a24  deep apple green — text-weight accent on light
     --pearl      #faf6ee  warm ivory — page ground ("pearl" motif)
     --pearl-dim  #f1e9da  deeper ivory — alternating section tint
     --salmon     #f2917e  salmon pink — the AKA pink, true & saturated
     --salmon-deep #c14f3d deep salmon/terracotta — text-weight accent
     --gold       #c9a24d  champagne gold foil — hairlines, numerals
     --ink        #171f19  near-black green-ink — body text

   TYPE
     --font-display  Fraunces — editorial serif, heritage + luxury
     --font-body     Public Sans — clean civic sans for reading
     --font-script   Instrument Serif italic — signature accent moments
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Instrument+Serif:ital@1&family=Public+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --ivy: #123524;
  --ivy-light: #1f5138;
  --ivy-black: #081912;
  --apple: #8bc34a;
  --apple-light: #a9d873;
  --apple-deep: #4f7a24;
  --pearl: #faf6ee;
  --pearl-dim: #f1e9da;
  --rose: #f2917e;
  --rose-deep: #c14f3d;
  --salmon: #f2917e;
  --salmon-light: #ffb6a3;
  --salmon-deep: #c14f3d;
  --gold: #c9a24d;
  --gold-soft: #ecd9a8;
  --sage: #e6ead9;
  --ink: #171f19;
  --ink-soft: #4d564c;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --max: 1220px;
  --edge: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22,.68,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open,
body.modal-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ivy-black);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  display: inline-block;
}
.section-ivy .eyebrow,
.hero .eyebrow { color: var(--salmon-light); }
.section-ivy .eyebrow::before,
.hero .eyebrow::before { background: linear-gradient(90deg, var(--gold-soft), transparent); }

@media (max-width: 560px) {
  .eyebrow { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; }
}

/* Buttons — glossy, shine-swept on hover */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  background: none;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: linear-gradient(160deg, var(--salmon-light), var(--salmon) 55%, var(--salmon-deep)); color: var(--ivy-black); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 22px -12px rgba(193,79,61,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -12px rgba(193,79,61,.6); }
.btn-outline { border-color: rgba(250,246,238,0.5); color: var(--pearl); }
.btn-outline:hover { background: rgba(250,246,238,0.12); border-color: var(--pearl); transform: translateY(-2px); }
.btn-ivy { background: linear-gradient(160deg, var(--ivy-light), var(--ivy) 60%, var(--ivy-black)); color: var(--pearl); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset; }
.btn-ivy:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 30px -12px rgba(8,25,18,.55); }
.btn-ghost { border-color: rgba(18,53,36,.25); color: var(--ivy); }
.btn-ghost:hover { border-color: var(--apple-deep); background: rgba(139,195,74,.08); }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.82rem; }
.btn-apple { background: linear-gradient(160deg, var(--apple-light), var(--apple) 55%, var(--apple-deep)); color: var(--ivy-black); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 22px -12px rgba(79,122,36,.5); }
.btn-apple:hover { transform: translateY(-2px); }

/* ============ Header + overlay menu ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.9rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(10px);
  padding: 1.15rem 0;
  box-shadow: 0 1px 0 rgba(18,53,36,.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-row > * { min-width: 0; flex-shrink: 1; }
.header-actions { flex-shrink: 0; }
.brand { min-width: 0; overflow: hidden; }
.brand > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 0.85rem; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--pearl); transition: color .3s ease; }
.site-header.is-solid .brand { color: var(--ivy-black); }
.brand-mark { width: 50px; height: 50px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 0.2em; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.7em;
  background: var(--ivy);
  color: var(--pearl);
  border: none;
  border-radius: 999px;
  padding: 0.75em 0.7em 0.75em 1.5em;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.menu-toggle:hover { background: var(--ivy-light); transform: translateY(-1px); }
.menu-toggle span.label { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.menu-toggle .burger { width: 40px; height: 40px; border-radius: 50%; background: rgba(250,246,238,0.12); display: flex; align-items: center; justify-content: center; }
.menu-toggle .burger svg { width: 17px; height: 17px; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ivy-black);
  color: var(--pearl);
  display: flex;
  flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.menu-overlay.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
}
.menu-overlay-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.4rem var(--edge) 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.menu-close-row { display: flex; justify-content: space-between; align-items: center; }
.menu-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,246,238,0.1); border: none; color: var(--pearl);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.menu-close:hover { background: rgba(250,246,238,0.2); transform: rotate(90deg); }
.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0.3rem;
}
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  font-weight: 400;
  color: var(--pearl);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.18em 0;
  transition: color .25s ease, transform .25s ease;
}
.menu-links a .mn { font-family: var(--font-body); font-size: 0.9rem; color: var(--gold); font-weight: 600; }
.menu-links a:hover { color: var(--rose); transform: translateX(10px); }
.menu-foot {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(250,246,238,0.14);
  font-size: 0.85rem; color: rgba(250,246,238,0.65);
}
.menu-social { display: flex; gap: 0.8rem; }
.menu-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(250,246,238,0.25); display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.menu-social a:hover { border-color: var(--rose); color: var(--rose); }

@media (max-width: 640px) {
  .menu-toggle span.label { display: none; }
  .menu-toggle { padding: 0.5em; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ink);
  padding-top: 7.2rem;
  background: var(--pearl);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
  opacity: 0.9;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  /* richer, darker green wash — deeper than the pastel version, still short of the old near-black */
  background:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(255,182,163,0.22), transparent 62%),
    radial-gradient(ellipse 70% 60% at 8% 25%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(180deg, rgba(31,81,56,.82) 0%, rgba(24,66,44,.86) 45%, rgba(15,45,30,.93) 100%);
}
.hero-inner {
  position: relative; z-index: 3;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2rem;
  align-items: end;
}
.hero h1 { color: var(--pearl); font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 600; max-width: 20ch; line-height: 1.25; padding-bottom: .1em; text-shadow: 0 4px 28px rgba(8,25,18,.4); }
.hero h1 .script { font-family: var(--font-script); font-style: italic; font-weight: 400; color: var(--salmon-light); }
.hero-subtitle { font-family: var(--font-script); font-style: italic; color: var(--salmon-light); font-size: clamp(1.25rem, 2.3vw, 1.8rem); margin: .45em 0 1.1em; }
.hero-lede { max-width: 44ch; font-size: 1.1rem; color: rgba(250,246,238,.86); margin: 1.2em 0 2em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Upcoming events teaser (hero, left column) */
.events-teaser { margin-top: 1.4rem; }
.events-teaser .et-label {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--salmon-light); margin-bottom: .5em; display: block;
}
.events-teaser .et-sub { font-family: var(--font-script); font-style: italic; color: rgba(250,246,238,.8); font-size: 1rem; margin-bottom: .9em; display: block; }
.et-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.et-chip {
  display: inline-flex; align-items: center; gap: .6em;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(23,31,25,.18);
  border-radius: 999px;
  padding: .55em .55em .55em 1.1em;
  cursor: pointer;
  font-size: .84rem; font-weight: 600; color: var(--ivy-black);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.et-chip:hover { border-color: var(--salmon-deep); background: #fff; transform: translateY(-1px); }
.et-chip .et-plus {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--salmon); color: var(--ivy-black);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0;
}
.hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; text-align: right; }
.pearl-strand { display: flex; align-items: center; gap: 0.45rem; }
.pearl-strand .dot { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, var(--gold-soft) 24%, var(--gold) 65%); box-shadow: 0 1px 2px rgba(0,0,0,.25); opacity: 0.95; }
.pearl-strand .dot:nth-child(2n) { background: radial-gradient(circle at 32% 28%, #fff 0%, var(--salmon-light) 24%, var(--salmon) 65%); }
.hero-since { font-family: var(--font-script); font-style: italic; font-size: 1.15rem; color: var(--salmon-light); }
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(250,246,238,.7); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(rgba(250,246,238,.65), transparent); animation: scrollcue 2.2s ease-in-out infinite; }

/* Hero events — vertical image stack, right column */
.hero-events { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.4rem; }
.hero-events .he-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--salmon-deep); text-align: right;
}
.event-card {
  position: relative;
  width: 168px; height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(23,31,25,.12);
  box-shadow: 0 16px 30px -16px rgba(8,25,18,.3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 38px -16px rgba(8,25,18,.4); }
.event-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card .ec-cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: .5rem .6rem;
  background: linear-gradient(0deg, rgba(8,25,18,.88), transparent);
  color: #fff; font-size: .72rem; font-weight: 700; text-align: left; line-height: 1.2;
}
@media (max-width: 860px) {
  .event-card { width: 100%; height: 90px; }
}
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ Ivy spine — realistic painted ivy, from the chapter's own background art ============ */
.spine-wrap { position: relative; }
.ivy-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 150px; pointer-events: none; display: none; z-index: 1; }
@media (min-width: 1080px) {
  .ivy-spine { display: block; }
  .has-spine { padding-left: 140px; }
}
.ivy-spine .ivy-img {
  position: sticky; top: 0;
  display: block;
  height: 100vh; width: 150px;
  /* real cut-out ivy leaves (transparent bg), tiled top-to-bottom — no wave/badge art, just leaves */
  background-image: url('../images/ivy-leaves-cutout.png');
  background-repeat: repeat-y;
  background-size: 165px auto;
  background-position: left top;
  /* fade the strip's right edge into the page so it reads as decor, not a column */
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 60%, transparent 98%);
  opacity: .96;
}
.ivy-spine svg { position: sticky; top: 0; height: 100vh; width: 128px; overflow: visible; }
.ivy-spine path.vine { fill: none; stroke: var(--ivy-light); stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; }
.ivy-spine .leaf {
  transition: opacity .4s ease, transform .4s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.ivy-spine .leaf.apple { fill: url(#leafGradApple); opacity: 0.92; }
.ivy-spine .leaf.deep { fill: url(#leafGradDeep); opacity: 0.85; }
.ivy-spine .leaf.sage { fill: url(#leafGradSage); opacity: 0.8; }
.ivy-spine .leaf-vein { stroke: rgba(8,25,18,.25); stroke-width: 0.6; fill: none; }
.ivy-spine .node circle { fill: var(--gold); opacity: 0.65; transition: opacity .4s ease, r .4s ease, fill .4s ease; }
.ivy-spine .node.is-active circle { opacity: 1; fill: var(--salmon); r: 5; }

/* ============ Sections ============ */
.section { padding: 4.2rem 0; position: relative; }
.section-sage { background: var(--sage); }

/* Full-section faded background photo, washed with a color overlay so text stays legible */
.section-photo-bg { position: relative; overflow: hidden; }
.section-photo-bg .sec-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .6;
}
.section-photo-bg .sec-bg-wash {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(250,246,238,.58) 0%, rgba(250,246,238,.72) 100%);
}
.section-photo-bg .container { position: relative; z-index: 2; }
.section-dim { background: var(--pearl-dim); }
.section-ivy { background: var(--ivy-black); color: var(--pearl); }
.section-ivy h2, .section-ivy h3 { color: var(--pearl); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-ivy .section-head p { color: rgba(250,246,238,0.72); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stat band */
.stat-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 1.8rem var(--edge); background: var(--pearl-dim); border-top: 1px solid rgba(18,53,36,.1); border-bottom: 1px solid rgba(18,53,36,.1); }
.stat { text-align: center; padding: 0 2.6rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #8a6a2c 0%, #f3e2ae 22%, #c9a24d 45%, #fff6dd 58%, #a6802f 75%, #f3e2ae 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldshift 6s linear infinite;
}
@keyframes goldshift { to { background-position: 240% 0; } }
@media (prefers-reduced-motion: reduce) { .stat .num { animation: none; } }
.stat .label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.35em; }
.stat-sep { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, var(--apple-light) 24%, var(--apple-deep) 70%); opacity: 0.9; box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* Pull-quote */
.quote-block { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 3.4rem; align-items: center; }
@media (max-width: 900px) {
  .quote-block { grid-template-columns: 280px minmax(0,1fr); gap: 2.2rem; }
}
@media (max-width: 720px) {
  .quote-block { grid-template-columns: 1fr; gap: 1.8rem; }
  .quote-portrait { max-width: 300px; margin: 0 auto; }
}
.quote-portrait { width: 100%; aspect-ratio: 4/5; border-radius: 3px; background: linear-gradient(150deg, var(--sage), var(--pearl-dim)); border: 1px solid rgba(18,53,36,.14); display: flex; align-items: center; justify-content: center; color: var(--ivy); font-family: var(--font-script); font-style: italic; font-size: 1.5rem; text-align: center; padding: 1rem; position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8,25,18,.35); }
.quote-portrait::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold); opacity: 0.45; pointer-events: none; z-index: 2; }
.quote-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.quote-portrait .cap { position: relative; z-index: 1; align-self: flex-end; width: 100%; text-align: left; padding: 1.4rem 1.2rem 1.1rem; background: linear-gradient(0deg, rgba(8,25,18,.82), transparent); color: var(--pearl); font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.quote-portrait.has-photo { align-items: flex-end; }
.quote-block blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 400; color: var(--ivy-black); line-height: 1.45; }
.quote-cite { margin-top: 1.3rem; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--rose-deep); }
.quote-cite span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.15em; }

/* Clickable cards (open modals) */
.pop-grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.pop-card {
  text-align: left;
  background: var(--pearl);
  border: 1px solid rgba(18,53,36,.12);
  border-radius: 4px;
  padding: 1.9rem 1.7rem;
  cursor: pointer;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pop-card:hover, .pop-card:focus-visible { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(8,25,18,.35); }
.section-ivy .pop-card { background: rgba(250,246,238,0.04); border-color: rgba(250,246,238,0.14); }
.section-ivy .pop-card:hover { border-color: var(--gold); background: rgba(250,246,238,0.07); }
.pop-card .idx { font-family: var(--font-display); font-style: italic; color: var(--rose-deep); font-size: 1.15rem; }
.section-ivy .pop-card .idx { color: var(--rose); }
.pop-card h3 { font-size: 1.08rem; font-weight: 500; margin: 0.4em 0 0.3em; }
.pop-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.section-ivy .pop-card p { color: rgba(250,246,238,0.68); }
.pop-card .expand {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(18,53,36,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ivy); font-size: 0.75rem;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.pop-card:hover .expand { background: var(--gold); border-color: var(--gold); color: var(--ivy-black); transform: rotate(45deg); }
.section-ivy .pop-card .expand { border-color: rgba(250,246,238,.25); color: var(--pearl); }

/* officer variant */
.officer-photo { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(150deg, var(--sage), var(--pearl-dim)); display: flex; align-items: center; justify-content: center; color: var(--ivy); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; }
.pop-card .role { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-deep); font-weight: 700; }
.section-ivy .pop-card .role { color: var(--rose); }

/* History */
.history-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 2.4rem; align-items: center; }
@media (max-width: 860px) {
  .history-columns { grid-template-columns: 1fr; gap: 2.2rem; }
  .history-figure { max-width: 360px; margin: 0 auto; }
}
.history-figure { background: linear-gradient(150deg, var(--ivy), var(--ivy-black)); border-radius: 4px; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8,25,18,.4); }
.history-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .8; }
.history-figure.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,25,18,.85), rgba(8,25,18,.15) 55%); z-index: 1; }
.history-figure .yr { position: relative; z-index: 2; font-family: var(--font-display); color: var(--pearl); font-size: clamp(3rem,7vw,5rem); text-align: center; }
.history-figure .yr small { display: block; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--rose); margin-top: 0.6em; }
.history-figure::before { content:""; position:absolute; inset:14px; border:1px solid rgba(201,162,77,.4); pointer-events:none; z-index: 3; }

/* Banner (foundation) — shiny emerald green, on-brand with the Foundation's own name */
.banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(139,195,74,.35), transparent 60%),
    linear-gradient(120deg, #0d3320 0%, #17532f 30%, #1f7a45 55%, #14603a 78%, #0b2c1c 100%);
  color: var(--pearl);
  border-radius: 6px;
  padding: 2.2rem clamp(1.5rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.3fr auto; gap: 1.6rem; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(8,25,18,.5);
}
.banner::after {
  /* soft diagonal gloss sweep for a "shiny" finish */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.16) 46%, transparent 62%);
}
.banner h2 { color: var(--pearl); }
.banner p { color: rgba(250,246,238,.82); max-width: 54ch; }
.banner-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; z-index: 1; }
.banner .eyebrow { position: relative; z-index: 1; }

/* Upcoming event feature */
.event-feature { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 2.6rem; align-items: center; }
.ef-photo { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -26px rgba(8,25,18,.4); }
.ef-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ef-photo-btn img { width: 100%; display: block; transition: transform .6s var(--ease); }
.ef-photo-btn:hover img { transform: scale(1.03); }
.ef-body .eyebrow { color: var(--salmon-deep); }
.ef-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.ef-theme { font-family: var(--font-script); font-style: italic; color: var(--apple-deep); font-size: 1.25rem; margin-top: -.4em; margin-bottom: .7em; }
.ef-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 860px) { .event-feature { grid-template-columns: 1fr; gap: 1.8rem; } }

@media (max-width: 760px) { .banner { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.gallery-grid .tile { aspect-ratio: 4/3; border-radius: 3px; background: linear-gradient(150deg, var(--sage), var(--pearl-dim)); display: flex; align-items: flex-end; padding: 0.9rem; color: var(--ivy); font-size: 0.78rem; border: 1px solid rgba(18,53,36,.1); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); font-family: var(--font-display); font-style: italic; position: relative; overflow: hidden; }
.gallery-grid .tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(8,25,18,.3); }
.gallery-grid .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--ease); }
.gallery-grid .tile:hover img { transform: scale(1.06); }
.gallery-grid .tile.has-photo { color: var(--pearl); border-color: transparent; }
.gallery-grid .tile.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,25,18,.78), rgba(8,25,18,.05) 60%); z-index: 1; }
.gallery-grid .tile span { position: relative; z-index: 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Contact / get involved */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 2.2rem; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list a { display: flex; align-items: center; gap: 0.9rem; font-size: 0.98rem; padding-bottom: 1.05rem; border-bottom: 1px solid rgba(250,246,238,0.14); transition: color .2s ease, gap .2s ease; }
.contact-list a:hover { color: var(--rose); gap: 1.2rem; }
.contact-list .ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(250,246,238,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============ Modal ("pop-out window") ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8,25,18,0.72);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.modal {
  background: var(--pearl);
  border-radius: 8px;
  max-width: 620px; width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform .4s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(8,25,18,.5);
  border-top: 3px solid var(--gold);
}
.modal-backdrop.is-open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(18,53,36,.15); background: var(--pearl-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ivy);
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--gold); color: var(--ivy-black); transform: rotate(90deg); }
.modal .eyebrow { margin-bottom: 0.6em; }
.modal h3 { font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal .role-line { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-deep); font-weight: 700; margin-bottom: 1.2rem; }
.modal p { color: var(--ink-soft); font-size: 0.98rem; }
.modal .roster { columns: 2; column-gap: 1.6rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.9rem; }
.modal .roster li { padding: 0.32em 0; border-bottom: 1px dotted rgba(18,53,36,.18); break-inside: avoid; }
@media (max-width: 560px) { .modal .roster { columns: 1; } }
.modal .modal-figure { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(150deg, var(--sage), var(--pearl-dim)); display:flex;align-items:center;justify-content:center;color:var(--ivy); font-family: var(--font-display); font-size:1.6rem; margin-bottom: 1.2rem; }

/* Footer */
.site-footer {
  background: #fff;
  color: var(--ink-soft);
  padding: 5rem 0 2.2rem;
  border-top: 1px solid rgba(23,31,25,.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(23,31,25,.1); }
.footer-grid h4 { color: var(--ivy-black); font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--salmon-deep); }
.footer-emblem { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; color: var(--ivy-black); margin-bottom: 0.5rem; }
.footer-tag { font-family: var(--font-script); font-style: italic; color: var(--salmon-deep); font-size: 1.2rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: 0.8rem; }
.social-row { display: flex; gap: 0.9rem; }
.social-row a { width: 34px; height: 34px; border: 1px solid rgba(23,31,25,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.social-row a:hover { border-color: var(--salmon-deep); color: var(--salmon-deep); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Concept banner ribbon */
.concept-ribbon {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  background: var(--gold);
  color: var(--ivy-black);
  text-align: center;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.04em;
  padding: 0.65em 1em;
}
.concept-ribbon strong { font-weight: 800; }

.text-center { text-align: center; }
.mt-lg { margin-top: 1.8rem; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

/* ============================================================
   v3 additions — brighter palette, sparkle headline, member login,
   upcoming events, leadership pop-out, gallery carousel
   ============================================================ */

/* Bright diagonal section — replaces flat dark-green blocks */
.section-bright {
  position: relative;
  color: var(--ivy-black);
  background: linear-gradient(115deg, var(--pearl) 0%, var(--pearl) 18%, var(--salmon-light) 42%, var(--salmon) 58%, #fdfaf3 78%, var(--apple-light) 100%);
  overflow: hidden;
}
.section-bright h2, .section-bright h3 { color: var(--ivy-black); }
.section-bright .eyebrow { color: var(--salmon-deep); }
.section-bright .eyebrow::before { background: linear-gradient(90deg, var(--apple-deep), transparent); }
.section-bright .section-head p { color: rgba(23,31,25,.72); }
.section-bright .pop-card { background: rgba(255,255,255,.72); backdrop-filter: blur(6px); border-color: rgba(23,31,25,.1); }
.section-bright .pop-card:hover { border-color: var(--apple-deep); background: #fff; }
.section-bright .pop-card .idx { color: var(--salmon-deep); }
.section-bright .pop-card p { color: rgba(23,31,25,.68); }
.section-bright .sec-bg-img { opacity: .22; mix-blend-mode: multiply; }
.section-bright .sec-bg-wash {
  background: linear-gradient(115deg, rgba(250,246,238,.75) 0%, rgba(250,246,238,.4) 18%, rgba(255,182,163,.55) 42%, rgba(242,145,126,.6) 58%, rgba(253,250,243,.5) 78%, rgba(169,216,115,.55) 100%);
}

.section-green {
  position: relative;
  color: var(--pearl);
  background: linear-gradient(120deg, var(--apple-deep) 0%, var(--apple) 35%, var(--ivy-light) 68%, var(--ivy) 100%);
}
.section-green h2, .section-green h3 { color: var(--pearl); }
.section-green .eyebrow { color: #fff; }
.section-green .eyebrow::before { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.section-green .section-head p { color: rgba(250,246,238,.85); }

/* Diagonal seam between sections, aka1908-style */
.diagonal-seam { position: relative; height: 0; }
.diagonal-seam svg { display: block; width: 100%; height: 60px; }
@media (max-width: 700px) { .diagonal-seam svg { height: 32px; } }

/* Sparkle headline */
.sparkle-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg, var(--salmon-deep) 0%, var(--salmon-light) 20%, #fff 32%, var(--salmon) 45%, var(--salmon-deep) 62%, var(--salmon-light) 80%, var(--salmon-deep) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sparkleshift 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 18px rgba(242,145,126,.35));
}
@keyframes sparkleshift { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.sparkle-wrap { position: relative; display: inline-block; }
.sparkle-wrap .spark {
  position: absolute;
  width: 14px; height: 14px;
  color: #fff;
  opacity: 0;
  animation: sparkpop 3.2s ease-in-out infinite;
  pointer-events: none;
}
.sparkle-wrap .spark:nth-child(1) { top: -6%;  left: 6%;   animation-delay: 0s; }
.sparkle-wrap .spark:nth-child(2) { top: 55%;  left: -2%;  animation-delay: .9s; width: 10px; height: 10px; }
.sparkle-wrap .spark:nth-child(3) { top: 8%;   right: 4%;  animation-delay: 1.7s; width: 18px; height: 18px; }
.sparkle-wrap .spark:nth-child(4) { bottom: -8%; right: 22%; animation-delay: 2.4s; width: 11px; height: 11px; }
@keyframes sparkpop { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: .95; transform: scale(1) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .sparkle-text { animation: none; background-position: 40% 0; }
  .sparkle-wrap .spark { animation: none; opacity: .6; }
}

/* Member login */
.member-login {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  color: var(--pearl);
  border: 1px solid rgba(250,246,238,.45);
  border-radius: 999px;
  padding: .72em 1.35em;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, color .3s ease;
}
.member-login:hover { background: rgba(250,246,238,.12); border-color: var(--pearl); transform: translateY(-1px); }
.site-header.is-solid .member-login { color: var(--ivy-black); border-color: rgba(18,53,36,.25); }
.site-header.is-solid .member-login:hover { background: rgba(18,53,36,.06); border-color: var(--ivy); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
@media (max-width: 640px) {
  .member-login span.txt { display: none; }
  .member-login { width: 42px; height: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { gap: .5rem; font-size: 1rem; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions { gap: .4rem; }
  .member-login { width: 44px; height: 44px; }
  .menu-toggle { padding: .4em; }
  .menu-toggle .burger { width: 34px; height: 34px; }
  .container { padding: 0 1rem; }
}

.aka-emblem { height: 60px; width: auto; flex-shrink: 0; }
.site-header.is-solid .aka-emblem { filter: none; }


/* Events modal figure (flyer image) */
.modal .modal-flyer { width: 100%; border-radius: 6px; margin-bottom: 1.4rem; box-shadow: 0 20px 40px -20px rgba(8,25,18,.4); }

/* Leadership: compact preview + all-board modal */
.leadership-columns { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr); gap: 2.2rem; align-items: center; }
@media (max-width: 860px) {
  .leadership-columns { grid-template-columns: 1fr; gap: 2rem; }
  .leadership-columns { direction: ltr; }
  .president-figure { max-width: 320px; margin: 0 auto; order: -1; }
}
.president-figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -28px rgba(8,25,18,.4);
}
.president-figure img { width: 100%; height: 100%; object-fit: cover; }
.president-figure .pf-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(0deg, rgba(8,25,18,.82), transparent);
  color: #fff;
}
.president-figure .pf-cap .role { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); font-weight: 700; display: block; }
.president-figure .pf-cap .name { font-family: var(--font-display); font-size: 1.2rem; display: block; margin-top: .2em; }
.leaders-preview { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.leaders-preview .stack { display: flex; }
.leaders-preview .stack img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--pearl); margin-left: -16px; box-shadow: 0 4px 14px rgba(8,25,18,.18);
}
.leaders-preview .stack img:first-child { margin-left: 0; }
.leaders-preview .more-count {
  width: 64px; height: 64px; border-radius: 50%; margin-left: -16px;
  background: var(--ivy); color: var(--pearl); border: 3px solid var(--pearl);
  display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700;
}
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
.board-card { text-align: center; }
.board-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; border-radius: 8px; margin-bottom: .7rem; box-shadow: 0 10px 20px -12px rgba(8,25,18,.3); }
.board-card .role { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-deep); font-weight: 700; }
.board-card .name { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-top: .18em; color: var(--ivy-black); }
#modal-board .modal { max-width: 1140px; max-height: 90vh; }
#modal-ibw-list .modal { max-width: 1140px; max-height: 90vh; }
/* the detail card can open on top of the full-list modal, so it must win the stack */
#modal-ibw { z-index: 401; }
#modal-visiting-soror .modal { max-width: 660px; }

/* ============ Forms (Visiting Soror Form, etc.) ============ */
.site-form { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ivy-black); line-height: 1.4; }
.form-field .req { color: var(--salmon-deep); }
.form-field input {
  border: 1px solid rgba(18,53,36,.2); border-radius: 8px;
  padding: .75em 1em; font-size: .92rem; font-family: var(--font-body);
  background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus { outline: none; border-color: var(--salmon-deep); box-shadow: 0 0 0 3px rgba(193,79,61,.12); }
.form-field input::placeholder { color: rgba(23,31,25,.35); }
.form-note {
  margin: 0; font-size: .85rem; color: var(--ivy-black); line-height: 1.5;
  background: var(--pearl-dim); border-left: 3px solid var(--apple-deep);
  padding: .85em 1.1em; border-radius: 6px;
}
.form-note a { color: var(--salmon-deep); font-weight: 600; }

/* Gallery carousel */
.carousel-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}
.carousel {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--edge) 1rem;
  scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(18,53,36,.25); border-radius: 999px; }
.carousel .slide {
  flex: 0 0 clamp(220px, 30vw, 320px);
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid rgba(18,53,36,.1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.carousel .slide:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -20px rgba(8,25,18,.35); }
.carousel .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carousel .slide:hover img { transform: scale(1.05); }
.carousel .slide .cap-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.1rem .9rem .8rem;
  background: linear-gradient(0deg, rgba(8,25,18,.85), transparent);
  color: var(--pearl); font-size: .82rem; font-weight: 600; line-height: 1.3;
}
.carousel-nav { display: flex; gap: .6rem; justify-content: flex-end; margin-bottom: 1rem; }
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(18,53,36,.2);
  background: var(--pearl); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ivy); transition: background .2s ease, border-color .2s ease;
}
.carousel-nav button:hover { background: var(--ivy); color: var(--pearl); border-color: var(--ivy); }

/* Foundation logo — large, transparent, sitting above the banner in normal flow */
.foundation-logo-row { margin-bottom: .6rem; }
.foundation-logo-float {
  display: block;
  width: clamp(230px, 23vw, 340px);
  height: auto;
  opacity: .97;
  filter: drop-shadow(0 10px 18px rgba(8,25,18,.16));
}
@media (max-width: 760px) {
  .foundation-logo-float { width: 230px; }
}
.modal .foundation-logo { height: 76px; width: auto; margin-bottom: 1rem; }

/* Simplified target rows (replaces big card grid) */
.target-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.6rem;
  border-top: 1px solid rgba(23,31,25,.12);
}
@media (max-width: 760px) { .target-rows { grid-template-columns: 1fr; } }
.target-row {
  display: flex; align-items: flex-start; gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(23,31,25,.12);
  cursor: pointer;
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left;
  transition: padding-left .25s ease, background .25s ease;
}
.target-row:hover { padding-left: .6rem; background: rgba(255,255,255,.35); }
.target-row .tr-num { font-family: var(--font-display); font-style: italic; color: var(--salmon-deep); font-size: 1.1rem; min-width: 2.4ch; }
.target-row .tr-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ivy-black); flex: 1; }
.target-row .tr-plus {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(23,31,25,.2);
  display: flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--ivy-black); flex-shrink: 0;
}
.target-row:hover .tr-plus { background: var(--apple-deep); border-color: var(--apple-deep); color: #fff; }
.targets-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

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

/* Defensive fix: grid/flex children default to min-width:auto, which lets
   their content (long text, an image before it's out of flow, etc.) refuse
   to shrink and force the whole row — and sometimes the whole page on
   mobile — wider than the viewport. Zero that out everywhere it matters. */
.hero-inner > *,
.quote-block > *,
.history-columns > *,
.contact-grid > *,
.board-grid > *,
.ibw-grid > *,
.leaders-preview > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.target-rows > *,
.footer-grid > * {
  min-width: 0;
}

/* ============ CWJ administration logo (header, transparent) ============ */
.targets-cwj-logo {
  width: clamp(220px, 23vw, 320px); height: auto; flex-shrink: 0; opacity: .96;
  filter: drop-shadow(0 10px 20px rgba(8,25,18,.18));
  align-self: flex-start;
  margin-top: 2.6em; /* aligns the logo beside the "Eight targets, one mission." headline */
}
@media (max-width: 900px) { .targets-cwj-logo { display: none; } }

/* ============ Ivies Beyond the Wall ============ */
.section-ibw {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 88% 0%, rgba(255,214,205,.65), transparent 60%),
    linear-gradient(180deg, #fff 0%, #ffeae4 55%, #ffd6cd 100%);
}
.section-ibw .section-head h2 { color: var(--ivy-black); }
.section-ibw .eyebrow { color: var(--salmon-deep); }
.ibw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .ibw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ibw-grid { grid-template-columns: repeat(2, 1fr); } }
.ibw-card {
  width: 100%;
  background: linear-gradient(180deg, #fff 0%, #ffe3dd 78%, #ffd2c9 100%);
  border: 1px solid rgba(193,79,61,.16);
  border-radius: 10px;
  padding: .75rem .75rem 1.15rem;
  text-align: center;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 14px 28px -18px rgba(193,79,61,.35);
}
.ibw-card:hover, .ibw-card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(193,79,61,.45); }
.ibw-card img, .ibw-card .no-photo {
  width: 100%; aspect-ratio: 1/1.1; object-fit: cover; object-position: center top;
  border-radius: 6px; display: block;
}
.ibw-card .no-photo { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--sage), #fff); color: var(--apple-deep); }
.ibw-card .no-photo img { width: 52%; height: 52%; object-fit: contain; border-radius: 0; }
.ibw-card .soror { display: block; margin-top: .85rem; font-weight: 700; font-size: .8rem; color: var(--ink); }
.ibw-card .nm { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--ivy-black); line-height: 1.2; }
.ibw-card .yr { display: block; margin-top: .3rem; color: var(--salmon-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.ibw-card .lm {
  display: inline-block; margin-top: .8rem;
  font-size: .78rem; font-weight: 700;
  background: #fff; border: 1px solid rgba(23,31,25,.15); border-radius: 6px;
  padding: .45em 1.1em; color: var(--ink);
}
.ibw-card:hover .lm { border-color: var(--salmon-deep); color: var(--salmon-deep); }

/* IBW modal — the example-2 memorial card look, enlarged */
.modal.modal-ibw-card {
  background: linear-gradient(180deg, #fff 0%, #ffe3dd 70%, #ffd2c9 100%);
  border-top-color: var(--salmon);
  text-align: center;
}
.modal.modal-ibw-card .ibw-photo {
  width: min(300px, 70%); aspect-ratio: 1/1.15; object-fit: cover; object-position: center top;
  border-radius: 8px; margin: 0 auto 1.2rem;
  display: block;
  box-shadow: 0 18px 36px -18px rgba(193,79,61,.5);
}
.modal.modal-ibw-card .soror-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.modal.modal-ibw-card h3 { margin: .15em 0 .1em; }
.modal.modal-ibw-card .ibw-year { color: var(--salmon-deep); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.modal.modal-ibw-card .ibw-note { color: var(--ink-soft); font-size: .95rem; margin-top: .8rem; }

/* Tribute poem modal */
.modal .poem { font-family: var(--font-display); font-style: italic; color: var(--ink); line-height: 1.75; }
.modal .poem-cite { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-soft); }

/* larger crest in the header */
.brand .aka-emblem { height: 84px; transition: height .35s var(--ease); }
.site-header.is-solid .brand .aka-emblem { height: 68px; }
@media (max-width: 480px) { .brand .aka-emblem { height: 58px; } .site-header.is-solid .brand .aka-emblem { height: 50px; } }

/* hero: open the photo without the green wash */
.hero-view { display: inline-flex; align-items: center; gap: .55rem; background: rgba(250,246,238,.12); color: var(--pearl); border: 1px solid rgba(250,246,238,.45); border-radius: 999px; padding: .6em 1.2em; font: 700 .76rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.hero-view:hover { background: rgba(250,246,238,.24); border-color: var(--pearl); transform: translateY(-2px); }
.hero-view:focus-visible { outline: 3px solid rgba(242,145,126,.7); outline-offset: 3px; }
#modal-hero-photo .modal { max-width: min(1200px, 94vw); padding: .8rem; background: var(--ivy-black, #081912); }
#modal-hero-photo .modal img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 10px; }
#modal-hero-photo .modal-close { top: .9rem; right: .9rem; }

/* Membership & Reactivation */
.mem-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.mem-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: .3em 0 .6em; }
.mem-quote { margin: 0 0 1.6rem; padding-left: 1.3rem; border-left: 3px solid var(--gold); font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.55; color: var(--ivy-black); max-width: 56ch; }
.mem-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.mem-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.mem-points li { background: #fff; border: 1px solid rgba(18,53,36,.1); border-left: 3px solid var(--salmon); border-radius: 12px; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .1rem; box-shadow: 0 18px 36px -28px rgba(8,25,18,.4); }
.mem-points strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ivy-black); }
.mem-points span { font-size: .86rem; color: var(--ink-soft); }
#modal-membership .modal { max-width: 760px; }
.mem-block { padding: 1.2rem 0 0; margin-top: 1.2rem; border-top: 1px solid rgba(18,53,36,.12); }
.mem-block h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--ivy-black); margin: 0 0 .5rem; }
.mem-block p { color: var(--ink-soft); }
.mem-block a { color: var(--ivy); font-weight: 600; text-decoration-color: rgba(193,79,61,.5); }
.mem-block .btn { margin-top: .4rem; }
@media (max-width: 860px) { .mem-feature { grid-template-columns: 1fr; } }

/* gallery pop-out: wide enough for landscape photos, and never cropped */
#modal-gallery .modal { max-width: min(920px, 94vw); }
#modal-gallery .modal .modal-figure { width: 100%; border-radius: 8px; overflow: hidden; }

/* header: room for the larger crest and the Help button */
@media (max-width: 1000px) { .brand small { display: none; } .brand { white-space: nowrap; } }
@media (max-width: 640px) { .help-link span.txt { display: inline; } .help-link { padding: .6em 1em; } }
@media (max-width: 440px) { .help-link span.txt { display: none; } .help-link { padding: .6em; } }
@media (max-width: 640px) { .brand { font-size: 1.1rem; gap: .6rem; } .brand .aka-emblem { height: 64px; } .site-header.is-solid .brand .aka-emblem { height: 54px; } .header-actions { gap: .5rem; } }

/* Phones: a shorter, simpler hero (the full version stays on tablets and computers) */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 6.6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.2rem; padding-bottom: 2.2rem; align-items: start; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); line-height: 1.15; max-width: none; }
  .hero-subtitle { margin: .35em 0 1em; font-size: 1.2rem; }
  .hero-lede { display: none; }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { padding: .85em 1.3em; font-size: .78rem; }
  .hero-meta { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: .8rem; flex-wrap: wrap; }
  .pearl-strand, .scroll-cue { display: none; }
}
/* very narrow phones: the crest alone in the header, so Help, Login and Menu all fit */
@media (max-width: 440px) { .brand { font-size: 0; gap: 0; } }

/* Phones: the stat numbers sit in a compact two-by-two grid */
@media (max-width: 640px) {
  .stat-band { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem .5rem; padding: 1.2rem 1rem; }
  .stat { padding: 0; }
  .stat-sep { display: none; }
  .stat .num { font-size: 1.75rem; line-height: 1.1; }
  .stat .label { font-size: .6rem; letter-spacing: .1em; margin-top: .25em; }
}
