/*
 * Ewe Association of Colorado — Masterpiece refinement layer
 * This file intentionally sits last in the cascade. It upgrades presentation
 * while leaving the association's manually curated content and assets intact.
 */

:root {
  --eac-ink: #07132f;
  --eac-navy: #0c1940;
  --eac-navy-soft: #172652;
  --eac-cream: #fbf8f2;
  --eac-sand: #f2eadf;
  --eac-gold: #e8b923;
  --eac-gold-light: #f4d870;
  --eac-rust: #b94c2d;
  --eac-green: #174d47;
  --eac-line: rgba(12, 25, 64, .13);
  --eac-radius-sm: 12px;
  --eac-radius: 20px;
  --eac-radius-lg: 30px;
  --eac-shadow-sm: 0 10px 30px rgba(7, 19, 47, .08);
  --eac-shadow: 0 24px 70px rgba(7, 19, 47, .12);
  --eac-shadow-dark: 0 34px 100px rgba(2, 8, 26, .35);
  --eac-ease: cubic-bezier(.2, .75, .2, 1);
}

html {
  scroll-padding-top: 12px;
  scrollbar-color: var(--eac-gold) var(--eac-navy);
}

body {
  color: var(--eac-ink);
  background: var(--eac-cream);
  font-kerning: normal;
}

body::before { height: 4px; }

.shell { width: min(1180px, calc(100% - 56px)); }

:where(h1, h2, h3, blockquote) {
  letter-spacing: -.035em;
  text-wrap: balance;
}

:where(p, li) { text-wrap: pretty; }

main > section { position: relative; }
:where(main > section[id], .welcome-ribbon) { scroll-margin-top: 0; }

/* Stable section geometry keeps direct links such as #leadership accurate. */
.affiliation,
.belong,
.gathering-feature,
.leadership,
.faq,
.about,
.contact {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.overline {
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .24em;
}

.overline::before { width: 38px; }

.pill {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
}

.pill.gold {
  color: var(--eac-ink);
  background: linear-gradient(135deg, var(--eac-gold-light), var(--eac-gold));
  box-shadow: 0 14px 34px rgba(232, 185, 35, .22);
}

.pill.gold:hover { filter: saturate(1.08) brightness(1.04); }

/* Header */
.site-header {
  border-top: 4px solid transparent;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 8, 24, .76), rgba(3, 8, 24, .2) 72%, transparent);
}

.site-header.scrolled {
  border-bottom-color: rgba(12, 25, 64, .09);
  color: var(--eac-navy);
  background: rgba(251, 248, 242, .93);
  box-shadow: 0 15px 48px rgba(7, 19, 47, .11);
  backdrop-filter: blur(20px) saturate(1.25);
}

.nav {
  min-height: 78px;
  gap: 30px;
}

.brand { min-width: 202px; }
.brand img { width: 43px; height: 43px; }
.brand strong { font-size: .92rem; }
.brand small { color: var(--eac-gold); letter-spacing: .2em; }

.nav-menu { gap: 21px; }
.nav-menu a {
  padding-block: 28px 24px;
  font-size: .69rem;
  font-weight: 750;
}

.nav-menu a::before { display: none; }
.nav-menu a::after { bottom: 18px; height: 2px; }
.nav-actions { gap: 14px; }
.nav-actions > a:first-child { font-weight: 750; }

/* Hero */
.hero {
  min-height: max(760px, 100svh);
  height: auto;
  background: var(--eac-navy);
}

.hero::before {
  background:
    radial-gradient(circle at 78% 41%, rgba(232, 185, 35, .18), transparent 24%),
    linear-gradient(115deg, transparent 0 72%, rgba(255, 255, 255, .06) 72% 72.1%, transparent 72.1%);
}

.hero::after {
  right: -260px;
  bottom: -470px;
  width: 850px;
  height: 850px;
  box-shadow: 0 0 0 80px rgba(232, 185, 35, .035), 0 0 0 160px rgba(255, 255, 255, .017);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(3, 7, 21, .52), transparent 26%),
    linear-gradient(90deg, rgba(3, 8, 26, .84) 0%, rgba(5, 11, 30, .64) 43%, rgba(6, 12, 30, .29) 74%),
    linear-gradient(0deg, rgba(3, 7, 22, .78), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(290px, .83fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
  min-height: max(760px, 100svh);
  padding-block: 98px 82px;
}

.hero-copy { max-width: 770px; }

.hero-copy::before {
  content: "EAC \2022  EST. 2002";
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .67);
  letter-spacing: .3em;
}

.hero-copy::after {
  top: 82px;
  left: -31px;
  height: 210px;
  background: linear-gradient(var(--eac-gold), transparent);
}

.country-badge {
  padding: 8px 14px;
  border-color: rgba(255, 255, 255, .34);
  color: var(--eac-gold-light);
  background: rgba(4, 10, 29, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 760px;
  margin-block: 16px 18px;
  font-size: clamp(3.55rem, 5.75vw, 6.1rem);
  line-height: .91;
  letter-spacing: -.057em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, .3);
}

.hero h1 em { color: var(--eac-gold); }

.hero-copy > p:not(.country-badge) {
  max-width: 620px;
  color: rgba(255, 255, 255, .87);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-buttons { gap: 12px; margin-top: 25px; }
.hero-buttons .pill { min-height: 53px; padding-inline: 25px; }
.hero-buttons .glass {
  border-color: rgba(255, 255, 255, .47);
  background: rgba(6, 13, 35, .24);
  backdrop-filter: blur(10px);
}

.hero-stats {
  gap: 10px;
  margin-top: 27px;
}

.hero-stats div {
  min-width: 108px;
  padding: 10px 15px 9px;
  border-color: rgba(255, 255, 255, .2);
  border-radius: var(--eac-radius-sm);
  background: rgba(4, 10, 29, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
}

.hero-stats strong { color: var(--eac-gold); font-size: 1.75rem; }
.hero-stats span { color: rgba(255, 255, 255, .74); }

.hero-proof {
  margin-top: 18px;
  color: rgba(255, 255, 255, .71);
  letter-spacing: .1em;
}

.hero-emblem {
  width: min(29vw, 365px);
  aspect-ratio: 1;
  padding: 22px;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(4, 10, 28, .29);
  box-shadow: var(--eac-shadow-dark), inset 0 0 65px rgba(232, 185, 35, .1);
  backdrop-filter: blur(10px);
}

.hero-emblem img {
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.hero-slide-dots {
  bottom: 28px;
  padding: 9px 12px;
  background: rgba(3, 8, 25, .49);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.hero-slide-dot { width: 23px; }
.hero-slide-dot.active { width: 45px; background: var(--eac-gold); }

/* Welcome */
.welcome-ribbon {
  padding-block: clamp(90px, 10vw, 128px);
  background:
    radial-gradient(circle at 90% 8%, rgba(232, 185, 35, .2), transparent 27%),
    radial-gradient(circle at 8% 92%, rgba(185, 76, 45, .18), transparent 28%),
    linear-gradient(140deg, #08132f, #0e1d47 64%, #101f4d);
}

.welcome-ribbon::after {
  content: "EAC";
  position: absolute;
  right: 5vw;
  bottom: -3.5rem;
  color: rgba(255, 255, 255, .025);
  font: 600 clamp(10rem, 24vw, 22rem)/.8 var(--display);
  letter-spacing: -.09em;
}

.welcome-ribbon-inner { gap: 58px 92px; }
.welcome-heading h2 {
  max-width: 760px;
  font-size: clamp(3.1rem, 5.6vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.welcome-heading h2 em { color: var(--eac-gold); }
.welcome-copy p { color: rgba(255, 255, 255, .75); line-height: 1.8; }
.welcome-copy a { margin-top: 8px; color: var(--eac-gold-light); }
.welcome-facts {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.welcome-facts article { min-height: 112px; justify-content: center; padding-inline: 34px; }
.welcome-facts strong { color: #fff; font-size: 1.5rem; }

/* Story */
.story {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 16%, rgba(232, 185, 35, .08), transparent 25rem),
    var(--eac-cream);
}

.story > .narrow { padding-top: clamp(100px, 11vw, 142px); }
.story h2 {
  max-width: 900px;
  font-size: clamp(3.25rem, 5.8vw, 5.8rem);
  line-height: .96;
}
.story .lead { max-width: 740px; font-size: 1.08rem; line-height: 1.8; }

.purpose-grid { gap: 18px; margin-top: 52px; }
.purpose-grid article {
  min-height: 220px;
  padding: 32px;
  border: 1px solid rgba(12, 25, 64, .07);
  border-radius: var(--eac-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 243, 234, .96));
  box-shadow: var(--eac-shadow-sm);
  transition: transform .35s var(--eac-ease), box-shadow .35s, border-color .35s;
}
.purpose-grid article:hover {
  border-color: rgba(185, 76, 45, .24);
  box-shadow: var(--eac-shadow);
  transform: translateY(-7px);
}
.purpose-grid article:nth-child(2) { transform: translateY(22px); }
.purpose-grid article:nth-child(2):hover { transform: translateY(15px); }
.purpose-grid article span { color: var(--eac-rust); }
.purpose-grid h3 { font-size: 1.34rem; }
.purpose-grid p { color: #566075; line-height: 1.72; }

.story-timeline { padding-block: clamp(88px, 10vw, 130px); }
.story-timeline::before { background: linear-gradient(transparent, var(--eac-gold) 8% 92%, transparent); }
.history-card {
  padding: 28px 30px;
  border: 1px solid rgba(12, 25, 64, .11);
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 17px 48px rgba(7, 19, 47, .075);
  backdrop-filter: blur(10px);
}
.history-card span { color: var(--eac-rust); }
.history-card h3 { font-size: 1.27rem; }
.history-card p { color: #596276; line-height: 1.7; }
.history-dot {
  border-color: var(--eac-cream);
  background: var(--eac-navy);
  box-shadow: 0 0 0 1px rgba(12, 25, 64, .13), 0 9px 24px rgba(7, 19, 47, .15);
}

.first-executives { padding-bottom: clamp(96px, 11vw, 138px); }
.executive-grid { gap: 17px; }
.executive-grid article {
  min-height: 210px;
  border-radius: var(--eac-radius);
  background: linear-gradient(150deg, var(--eac-navy-soft), var(--eac-navy));
  box-shadow: 0 20px 50px rgba(7, 19, 47, .16);
}

.motto { padding-block: clamp(94px, 11vw, 135px); }
.motto::before {
  content: "MI NA MIA";
  position: absolute;
  inset: auto 0 1rem;
  color: rgba(255, 255, 255, .025);
  font: 600 clamp(5rem, 14vw, 12rem)/1 var(--display);
  letter-spacing: .02em;
  text-align: center;
  pointer-events: none;
}
.motto blockquote { font-size: clamp(2.65rem, 5vw, 4.65rem); }
.mission-grid { gap: 20px; }
.mission-grid article {
  min-height: 215px;
  padding: 35px;
  border-radius: var(--eac-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Authentic image ribbon */
.portrait-strip { background: #07122f; }
.portrait-track { gap: 0; }
.portrait-track figure { min-height: 520px; }
.portrait-track figure + figure { border-left: 1px solid rgba(255, 255, 255, .16); }
.portrait-track img { filter: saturate(.92) contrast(1.04); }
.portrait-track figure:hover img { filter: saturate(1.04) contrast(1.04); }
.portrait-track figcaption { padding: 32px; }

/* Legacy Fund */
.legacy-stage { gap: clamp(48px, 6vw, 82px); }
.legacy-story h2 { letter-spacing: -.055em; }
.legacy-photo {
  border-radius: 180px 24px 24px 24px;
  box-shadow: var(--eac-shadow-dark);
}
.legacy-proof {
  border-radius: var(--eac-radius-sm);
  background: rgba(4, 10, 27, .2);
}
.legacy-builder-card,
.legacy .donation-box { border-radius: var(--eac-radius); }
.legacy-builder-card { background: linear-gradient(145deg, #f7df87, var(--eac-gold) 78%); }
.legacy .donation-box {
  box-shadow: 0 34px 90px rgba(2, 8, 26, .34), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
}
.legacy .donate-main { min-height: 58px; }

/* Gallery */
.gallery {
  background:
    radial-gradient(circle at 88% 7%, rgba(47, 92, 162, .27), transparent 28rem),
    radial-gradient(circle at 2% 90%, rgba(185, 76, 45, .15), transparent 31rem),
    linear-gradient(145deg, #0b1738, #111f4b 60%, #0c193d);
}
.gallery-shell { padding-block: clamp(100px, 11vw, 138px); }
.gallery-heading h2 {
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  line-height: .95;
}
.gallery-toolbar { margin-top: 58px; }
.gallery-filters button {
  min-height: 42px;
  padding-inline: 17px;
  backdrop-filter: blur(8px);
}
.gallery-grid { grid-auto-rows: 110px; gap: 16px; }
.gallery-card {
  border-radius: 16px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .21);
}
.gallery-card:hover {
  border-color: rgba(232, 185, 35, .62);
  box-shadow: 0 31px 80px rgba(0, 0, 0, .31);
  transform: translateY(-5px);
}
.gallery-card-copy { right: 24px; bottom: 23px; left: 24px; }
.gallery-card-copy strong { font-size: 1.18rem; }
.gallery-feature .gallery-card-copy strong { font-size: clamp(1.75rem, 2.7vw, 2.55rem); }
.gallery-footnote { color: rgba(255, 255, 255, .56); }

/* CEANA */
.ceana-countdown {
  background:
    linear-gradient(105deg, rgba(5, 12, 35, .96), rgba(9, 20, 52, .87)),
    var(--eac-navy);
}
.ceana-countdown::after {
  content: "2026";
  position: absolute;
  right: 2vw;
  bottom: -3.2rem;
  color: rgba(255, 255, 255, .025);
  font: 600 clamp(9rem, 23vw, 21rem)/.8 var(--display);
  letter-spacing: -.07em;
}
.ceana-countdown-layout { gap: clamp(48px, 7vw, 92px); }
.ceana-countdown-copy h2 { font-size: clamp(3.25rem, 5.5vw, 5.45rem); line-height: .95; }
.ceana-details { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .035); }
.ceana-timer-card {
  border-radius: var(--eac-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: var(--eac-shadow-dark), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
}
.ceana-timer strong { color: var(--eac-gold-light); }

/* Affiliation */
.affiliation { padding-block: clamp(102px, 11vw, 142px); background: var(--eac-cream); }
.affiliation-copy { gap: 56px; }
.affiliation-copy h2 { font-size: clamp(3.15rem, 5vw, 5rem); line-height: .98; }
.affiliation-copy > p { color: #525d73; line-height: 1.8; }
.affiliation-stats { gap: 15px; margin-top: 54px; }
.affiliation-stats > div {
  min-height: 145px;
  border-color: rgba(12, 25, 64, .1);
  border-radius: var(--eac-radius);
  box-shadow: var(--eac-shadow-sm);
}
.program-grid { gap: 16px; }
.program-grid article {
  min-height: 200px;
  padding: 29px;
  border-color: rgba(12, 25, 64, .11);
  border-radius: var(--eac-radius);
  background: rgba(255, 255, 255, .72);
  transition: transform .3s var(--eac-ease), box-shadow .3s, border-color .3s;
}
.program-grid article:hover {
  border-color: rgba(185, 76, 45, .22);
  box-shadow: var(--eac-shadow-sm);
  transform: translateY(-5px);
}
.partners article { border-radius: var(--eac-radius); box-shadow: var(--eac-shadow-sm); }

/* Belong */
.belong { padding-block: clamp(100px, 11vw, 140px); background: var(--eac-sand); }
.belong-heading h2 { font-size: clamp(3.2rem, 5.5vw, 5.4rem); line-height: .96; }
.belong-heading > p { line-height: 1.82; }
.belong-grid { gap: 18px; margin-top: 58px; }
.belong-card {
  min-height: 370px;
  border-radius: var(--eac-radius);
  box-shadow: var(--eac-shadow-sm);
}
.belong-card > div { min-height: 370px; padding: 46px 32px 31px; }
.belong-card h3 { font-size: 1.85rem; }
.belong-serve { background: linear-gradient(145deg, var(--eac-navy-soft), var(--eac-navy)); }
.belong-note {
  padding: 24px 28px;
  border-radius: var(--eac-radius-sm);
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--eac-shadow-sm);
  backdrop-filter: blur(10px);
}

/* Monthly gathering */
.gathering-feature {
  background:
    radial-gradient(circle at 80% 15%, rgba(232, 185, 35, .16), transparent 31%),
    linear-gradient(135deg, #07122f, #12234f 72%);
}
.gathering-feature-inner { gap: clamp(52px, 7vw, 90px); }
.gathering-photo {
  min-height: 640px;
  border-radius: 24px 200px 24px 24px;
  box-shadow: var(--eac-shadow-dark);
}
.gathering-content h2 { letter-spacing: -.055em; }
.next-gathering-date { background: rgba(255, 255, 255, .065); backdrop-filter: blur(12px); }

/* Leadership */
.leadership {
  overflow: hidden;
  padding-block: clamp(102px, 11vw, 142px);
  background:
    radial-gradient(circle at 90% 13%, rgba(232, 185, 35, .1), transparent 23rem),
    var(--eac-cream);
}
.leadership h2 { max-width: 960px; font-size: clamp(3.15rem, 5.55vw, 5.55rem); line-height: .96; }
.leadership > .shell > p:not(.overline) { max-width: 640px; color: #5a6479; font-size: 1rem; }
.board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-top: 50px;
}
.board-grid article:not(.board-card-photo) {
  min-height: 208px;
  padding: 27px 22px;
  border: 1px solid rgba(12, 25, 64, .11);
  border-radius: var(--eac-radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 15px 42px rgba(7, 19, 47, .065);
  transition: transform .3s var(--eac-ease), box-shadow .3s, border-color .3s;
}
.board-grid article:hover {
  border-color: rgba(232, 185, 35, .68);
  box-shadow: 0 25px 58px rgba(7, 19, 47, .12);
  transform: translateY(-6px);
}
.board-grid .board-card-profile { min-height: 285px; }
.board-profile-photo {
  width: 116px;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: 56px 56px 16px 16px;
  box-shadow: 0 16px 36px rgba(7, 19, 47, .2);
}
.board-profile-photo img { object-position: center 21%; }
.board-grid h3 { max-width: 210px; margin-inline: auto; font-size: 1.08rem; line-height: 1.12; }
.board-grid article > b {
  width: 58px;
  height: 58px;
  border-color: var(--eac-gold);
  color: var(--eac-rust);
  background: rgba(232, 185, 35, .055);
}
.board-grid article.board-card-president {
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
  background: linear-gradient(145deg, #192957, var(--eac-navy));
  box-shadow: 0 24px 64px rgba(7, 19, 47, .25);
}
.board-card-president .board-profile-photo { border-color: var(--eac-gold); }
.board-grid article.board-card-treasurer {
  border-color: rgba(12, 25, 64, .11);
  color: var(--eac-navy);
  background: #fff;
}
.board-card-treasurer .board-profile-photo {
  width: 126px;
  background: #fff;
}
.board-card-treasurer .board-profile-photo img {
  object-fit: contain;
  object-position: center;
  transform: scale(1);
}
.board-card-selase .board-profile-photo img {
  object-position: center 38%;
}

@media (min-width: 1121px) {
  .board-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .board-grid article { grid-column: span 2; }
  .board-grid article:nth-child(5) { grid-column: 2 / span 2; }
  .board-grid article:nth-child(6) { grid-column: 4 / span 2; }
  .board-grid article:nth-child(7) { grid-column: 6 / span 2; }
}

@media (max-width: 1380px) {
  .site-tools { display: none; }
}

/* FAQ */
.faq { padding-block: clamp(98px, 10vw, 132px); background: var(--eac-sand); }
.faq-shell { gap: 80px; }
.faq h2 { font-size: clamp(3.05rem, 5.3vw, 5.15rem); line-height: .97; }
.questions { border-top: 1px solid rgba(12, 25, 64, .12); }
.questions details {
  margin-top: 10px;
  border-radius: var(--eac-radius-sm);
  background: rgba(255, 255, 255, .5);
}
.questions details[open] { background: rgba(255, 255, 255, .82); box-shadow: var(--eac-shadow-sm); }
.questions summary { min-height: 68px; padding-inline: 18px; }
.questions details p { padding-inline: 18px; }

/* About — intentionally retains the user's single-column manual layout */
.about {
  overflow: hidden;
  padding-block: clamp(102px, 12vw, 152px);
  background:
    radial-gradient(circle at 88% 17%, rgba(232, 185, 35, .15), transparent 29%),
    radial-gradient(circle at 8% 94%, rgba(185, 76, 45, .13), transparent 25%),
    linear-gradient(145deg, #08132f, #111f4b);
}
.about::after {
  content: "MIA";
  position: absolute;
  right: 3vw;
  bottom: -2rem;
  color: rgba(255, 255, 255, .025);
  font: 600 clamp(10rem, 25vw, 22rem)/.8 var(--display);
  letter-spacing: -.09em;
  pointer-events: none;
}
.about .about-grid { width: min(780px, calc(100% - 56px)); }
.about-copy { max-width: 670px; }
.about-copy h2 {
  margin-bottom: 31px;
  color: var(--eac-gold);
  font-size: clamp(4rem, 7vw, 6.25rem);
  letter-spacing: -.06em;
}
.about-copy > p:not(.overline) { color: rgba(255, 255, 255, .86); font-size: 1.04rem; line-height: 1.78; }
.about-copy .tags { gap: 9px; margin-top: 34px; }
.about-copy .tags span {
  padding: 10px 15px;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(8px);
}

/* Contact */
.contact {
  overflow: hidden;
  padding-block: clamp(100px, 11vw, 142px);
  background:
    radial-gradient(circle at 12% 10%, rgba(232, 185, 35, .12), transparent 23rem),
    var(--eac-cream);
}
.contact-grid { gap: clamp(56px, 8vw, 100px); align-items: start; }
.contact-grid > div:first-child > img {
  width: 84px;
  height: 84px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 15px 38px rgba(7, 19, 47, .13);
}
.contact h2 { font-size: clamp(3.2rem, 5.5vw, 5.4rem); line-height: .96; }
.contact-grid > div:first-child > p:not(.overline) { color: #566075; line-height: 1.78; }
.contact-grid > div:first-child > a {
  border-radius: var(--eac-radius-sm);
  transition: border-color .2s, background .2s, transform .2s;
}
.contact-grid > div:first-child > a:hover {
  border-color: rgba(185, 76, 45, .35);
  background: rgba(255, 255, 255, .8);
  transform: translateX(4px);
}
.contact form {
  padding: clamp(30px, 4vw, 45px);
  border: 1px solid rgba(12, 25, 64, .09);
  border-radius: var(--eac-radius-lg);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--eac-shadow);
  backdrop-filter: blur(18px);
}
.contact input,
.contact textarea,
.contact select {
  min-height: 50px;
  border-radius: 10px;
  background: rgba(251, 248, 242, .88);
}
.contact textarea { min-height: 132px; }
.contact button[type="submit"] { min-height: 54px; }

/* Footer and utilities */
.footer { background: linear-gradient(145deg, #060f29, #0d1a41); }
.footer-shell { gap: 44px; padding-block: 58px 46px; }
.footer-brand img { box-shadow: 0 11px 32px rgba(0, 0, 0, .22); }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: var(--eac-gold-light); }
.footer-give { border-radius: var(--eac-radius); background: rgba(255, 255, 255, .045); }
.footer-bottom { border-color: rgba(255, 255, 255, .12); }

.site-tool,
.back-top {
  border-color: rgba(12, 25, 64, .12);
  box-shadow: var(--eac-shadow-sm);
  backdrop-filter: blur(12px);
}
.back-top { background: linear-gradient(135deg, var(--eac-gold-light), var(--eac-gold)); }

.mobile-dock {
  border-color: rgba(12, 25, 64, .1);
  background: rgba(251, 248, 242, .94);
  box-shadow: 0 -12px 36px rgba(7, 19, 47, .12);
  backdrop-filter: blur(18px);
}

/* Motion is progressive: content remains visible when JavaScript is absent. */
.reveal-item,
.welcome-reveal { opacity: 1; transform: none; }

.motion-ready .reveal-item:not(.in-view),
.motion-ready .welcome-reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(22px);
}

.motion-ready .reveal-item,
.motion-ready .welcome-reveal {
  transition: opacity .58s var(--eac-ease), transform .58s var(--eac-ease);
}

.motion-ready .purpose-grid article.reveal-item:nth-child(2) { transform: translateY(22px); }
.motion-ready .purpose-grid article.reveal-item:nth-child(2).in-view { transform: translateY(20px); }

/* Responsive */
@media (max-width: 1120px) {
  .nav-menu { gap: 15px; }
  .nav-menu a { font-size: .64rem; }
  .brand { min-width: 184px; }
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(240px, .68fr); gap: 46px; }
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 42px, 760px); }
  .site-header { border-top-width: 3px; transform: none !important; }
  body.menu-open .site-header { z-index: 110; }
  .site-header:not(.scrolled) { background: linear-gradient(180deg, rgba(3, 8, 24, .82), transparent); }
  .nav { min-height: 72px; }
  .brand { min-width: 0; }
  .nav-menu {
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 98px 28px 38px;
    background: rgba(251, 248, 242, .98);
    backdrop-filter: blur(20px);
  }
  .nav-menu a { padding: 12px 0; font-size: 1.25rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: max(780px, 100svh); padding-block: 125px 130px; }
  .hero-copy { max-width: 700px; }
  .hero h1 { font-size: clamp(3.7rem, 10vw, 6rem); }
  .hero-emblem { display: none; }
  .welcome-ribbon-inner,
  .gallery-heading,
  .belong-heading,
  .affiliation-copy,
  .faq-shell { grid-template-columns: 1fr; gap: 30px; }
  .welcome-facts { margin-top: 22px; }
  .purpose-grid article:nth-child(2),
  .purpose-grid article:nth-child(2):hover,
  .motion-ready .purpose-grid article.reveal-item:nth-child(2),
  .motion-ready .purpose-grid article.reveal-item:nth-child(2).in-view { transform: none; }
  .legacy-photo { border-radius: 140px 20px 20px 20px; }
  .gallery-toolbar { align-items: flex-start; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:first-child { max-width: 670px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 34px); }
  .hero { min-height: 760px; }
  .hero-inner { min-height: 760px; padding-block: 114px 118px; }
  .hero-copy::before { margin-bottom: 17px; font-size: .5rem; }
  .hero h1 { margin-block: 17px 19px; font-size: clamp(3.05rem, 15vw, 4.55rem); }
  .hero-copy > p:not(.country-badge) { font-size: .9rem; line-height: 1.68; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; }
  .hero-buttons .pill { justify-content: center; width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .hero-stats div { min-width: 0; padding: 12px 7px; text-align: center; }
  .hero-stats strong { font-size: 1.55rem; }
  .hero-proof { gap: 7px 16px; }
  .hero-slide-dots { bottom: 73px; }
  .welcome-ribbon { padding-block: 78px 74px; }
  .welcome-ribbon-inner { gap: 24px; }
  .welcome-heading h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .welcome-facts { grid-template-columns: 1fr; }
  .welcome-facts article { min-height: 0; padding: 19px 0; }
  .welcome-facts article + article { border-top: 1px solid rgba(255, 255, 255, .16); border-left: 0; }
  .story > .narrow { padding-top: 82px; }
  .story h2,
  .gallery-heading h2,
  .leadership h2,
  .faq h2,
  .contact h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .purpose-grid { gap: 12px; margin-top: 39px; }
  .purpose-grid article { min-height: 0; padding: 27px; }
  .history-card { padding: 23px 24px; }
  .mission-grid { gap: 12px; }
  .mission-grid article { min-height: 0; padding: 28px; }
  .portrait-track figure { min-height: 420px; }
  .legacy-photo { min-height: 410px; border-radius: 100px 16px 16px 16px; }
  .legacy-builder-card { border-radius: 17px; }
  .gallery-shell { padding-block: 80px 90px; }
  .gallery-toolbar { display: grid; margin-top: 38px; }
  .gallery-filters { flex-wrap: nowrap; max-width: calc(100vw - 34px); overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .gallery-filters button { flex: 0 0 auto; }
  .gallery-total { order: -1; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .gallery-card,
  .gallery-card.gallery-feature,
  .gallery-card.gallery-wide,
  .gallery-card.gallery-tall,
  .gallery-card:nth-child(2) { grid-column: auto; grid-row: auto; min-height: 310px; }
  .gallery-card.gallery-feature { min-height: 410px; }
  .ceana-countdown-copy h2 { font-size: clamp(2.8rem, 13vw, 4.1rem); }
  .ceana-timer-card { border-radius: 19px; }
  .affiliation,
  .belong,
  .leadership,
  .faq,
  .about,
  .contact { padding-block: 80px; }
  .affiliation-copy h2,
  .belong-heading h2 { font-size: clamp(2.8rem, 13vw, 4.05rem); }
  .belong-grid { gap: 12px; margin-top: 40px; }
  .belong-card,
  .belong-card > div { min-height: 330px; }
  .belong-note { grid-template-columns: 1fr; gap: 12px; }
  .belong-note .pill { justify-content: center; }
  .gathering-photo { min-height: 420px; border-radius: 17px 96px 17px 17px; }
  .board-grid { grid-template-columns: 1fr; gap: 12px; }
  .board-grid article:not(.board-card-photo) { min-height: 185px; }
  .board-grid .board-card-profile { min-height: 278px; }
  .board-profile-photo { width: 122px; }
  .board-card-treasurer .board-profile-photo { width: 132px; }
  .faq-shell { gap: 38px; }
  .about .about-grid { width: calc(100% - 34px); }
  .about-copy h2 { font-size: clamp(3.7rem, 18vw, 5.3rem); }
  .about-copy > p:not(.overline) { font-size: .94rem; }
  .contact form { padding: 27px 20px; border-radius: 20px; }
  .footer-shell { padding-bottom: 90px; }
}

/* Homepage Events portal — a visible doorway into the full Events experience. */
.events-portal {
  padding: clamp(78px, 9vw, 126px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(232, 185, 35, .12), transparent 28%),
    var(--eac-cream);
}

.events-portal-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(570px, 67vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(232, 185, 35, .28);
  border-radius: var(--eac-radius-lg);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--eac-shadow-dark);
  transform: translateZ(0);
  transition: transform .55s var(--eac-ease), box-shadow .55s var(--eac-ease);
}

.events-portal-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: calc(var(--eac-radius-lg) - 10px);
  pointer-events: none;
}

.events-portal-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(.9) contrast(1.03);
  transition: transform 1.1s var(--eac-ease), filter .7s var(--eac-ease);
}

.events-portal-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 38, .96) 0%, rgba(5, 17, 50, .86) 43%, rgba(7, 19, 47, .26) 76%),
    linear-gradient(0deg, rgba(4, 13, 38, .86) 0%, transparent 56%);
}

.events-portal-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  max-width: 800px;
  padding: clamp(56px, 7vw, 92px);
}

.events-portal-copy .overline {
  display: block;
  margin-bottom: 24px;
  color: var(--eac-gold-light);
  text-transform: uppercase;
}

.events-portal-copy > strong {
  display: block;
  max-width: 760px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.8rem, 7.8vw, 7.2rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.events-portal-copy > strong em {
  color: var(--eac-gold);
  font-style: normal;
}

.events-portal-description {
  display: block;
  max-width: 610px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.events-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  margin-top: 34px;
  padding: 0 25px;
  border-radius: 999px;
  color: var(--eac-ink);
  background: var(--eac-gold);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 13px 34px rgba(232, 185, 35, .24);
}

.events-portal-cta b {
  font-size: 1.15rem;
  transition: transform .35s var(--eac-ease);
}

.events-portal-tags {
  position: absolute;
  z-index: 3;
  right: clamp(38px, 5vw, 72px);
  bottom: clamp(42px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 350px;
}

.events-portal-tags > span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 19, 47, .48);
  backdrop-filter: blur(12px);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .events-portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 44px 110px rgba(2, 8, 26, .42);
  }
  .events-portal-card:hover > img {
    transform: scale(1.045);
    filter: saturate(1) contrast(1.06);
  }
  .events-portal-card:hover .events-portal-cta b { transform: translateX(5px); }
}

@media (max-width: 760px) {
  .events-portal { padding-block: 72px; }
  .events-portal-card {
    min-height: 670px;
    border-radius: 20px;
  }
  .events-portal-card::before { inset: 10px; border-radius: 14px; }
  .events-portal-card > img { object-position: 58% center; }
  .events-portal-shade {
    background: linear-gradient(0deg, rgba(3, 12, 38, .98) 0%, rgba(5, 17, 50, .79) 66%, rgba(7, 19, 47, .28) 100%);
  }
  .events-portal-copy {
    align-self: end;
    padding: 40px 28px 132px;
  }
  .events-portal-copy > strong {
    font-size: clamp(3.25rem, 15vw, 5rem);
    line-height: .92;
  }
  .events-portal-description { margin-top: 23px; font-size: .96rem; }
  .events-portal-cta { margin-top: 26px; }
  .events-portal-tags {
    right: 28px;
    bottom: 38px;
    left: 28px;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (hover: none) {
  .purpose-grid article:hover,
  .program-grid article:hover,
  .belong-card:hover,
  .board-grid article:hover,
  .gallery-card:hover { transform: none; }
}

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

@media (forced-colors: active) {
  .pill,
  .board-grid article,
  .gallery-card,
  .contact form { border: 1px solid CanvasText; }
}

@media print {
  body { color: #000; background: #fff; }
  .welcome-ribbon,
  .gallery,
  .legacy,
  .ceana-countdown,
  .gathering-feature,
  .about,
  .footer { color: #000 !important; background: #fff !important; }
}
