/* ==========================================================================
   Home page
   ========================================================================== */

.small { font-size: var(--fs-small); }
.on-dark-muted { color: var(--color-on-dark-muted); }
.muted-dark { color: var(--color-on-dark-muted); }

/* Shared image mask (revealed by JS; static fallback shows the image) */
.mask-reveal { overflow: hidden; position: relative; background: var(--ivory-200); }
.mask-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* --- 02 · Hero — title left, photo collage right ------------------------- */

.line-mask { display: block; overflow: hidden; padding-block: 0.25em 0.2em; margin-block: -0.25em -0.2em; } /* room for tall ascenders/descenders */
.line-mask > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .hero .line-mask > span { animation: line-up 1.2s var(--ease-out) 0.15s both; }
  .hero .line-mask:nth-child(2) > span { animation-delay: 0.28s; }
  .hero .intro-rise { animation: rise 1s var(--ease-out) 0.65s both; }
  .hero .intro-fade,   .hero .intro-wipe { animation: wipe-up 1.6s var(--ease-in-out) 0.3s both; }
  .hero__slide.is-active img { animation: settle 2.4s var(--ease-out) both; }
}
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }

.hero { padding-top: calc(var(--header-h) + var(--utility-h) + clamp(1.5rem, 1rem + 1.5vw, 2.5rem)); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }

.hero__dateline {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto minmax(2rem, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.6875rem;
  color: var(--navy);
}
.hero__dateline::before, .hero__dateline::after { content: ""; height: 1px; background: var(--color-rule-strong); }
.hero__dateline::before { grid-column: 2; grid-row: 1; }
.hero__dateline::after { grid-column: 4; grid-row: 1; }
.hero__dateline-city { grid-column: 1; grid-row: 1; }
.hero__dateline-mid { grid-column: 3; grid-row: 1; }
.hero__dateline-date { grid-column: 5; grid-row: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem);
}

/* Left */
.hero__copy { position: relative; container-type: inline-size; display: flex; flex-direction: column; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 14.1cqi; /* "Prayer Breakfast" fills the column */
  white-space: nowrap;
  line-height: 1;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero__lead {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem);
  line-height: 1.35;
  color: var(--ink);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 0; margin-top: 2rem; }
.hero__fact { display: flex; align-items: center; gap: 0.85rem; padding-right: 1.5rem; }
.hero__fact + .hero__fact { padding-left: 1.5rem; border-left: 1px solid var(--color-rule-strong); }
.hero__fact svg { width: 32px; height: 32px; flex: none; color: var(--navy); }
.hero__fact .label { font-size: 0.625rem; color: var(--color-text-muted); letter-spacing: 0.18em; }
.hero__fact-value { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero__actions .btn { min-width: 230px; min-height: 56px; }
.hero__cd { margin-top: auto; padding-top: 1.75rem; }
.hero__cd .label { color: var(--navy); font-size: 0.6875rem; letter-spacing: 0.18em; }
.hero__cd-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 600px; margin-top: 1rem; }
.hero__cd-row > span { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.75rem; }
.hero__cd-row > span:first-child { padding-left: 0; }
.hero__cd-row > span + span { border-left: 1px solid var(--color-rule-strong); }
.hero__cd-row b { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 1.8rem + 1.8vw, 3.5rem); line-height: 0.95; color: var(--navy); }
.hero__cd-row small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }
.hero__note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-muted); }
.hero__note:empty { display: none; }

/* Right: collage + rail */
.hero__visual { display: grid; }
.hero__collage {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 6px;
  min-height: clamp(440px, 36vw, 580px);
}
.hero__main { grid-row: 1 / -1; position: relative; overflow: hidden; margin: 0; background: var(--ivory-200); }
.hero__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__side--top img { object-position: 28% 50%; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease-out), visibility 0s; }
.hero__slide img, .hero__side img { width: 100%; height: 100%; object-fit: cover; }
.hero__side { margin: 0; overflow: hidden; background: var(--ivory-200); }

.hero__rail { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero__rail-line { width: 1px; flex: 1; max-height: 140px; background: var(--color-rule-strong); }
.hero__rail-line:first-child { margin-top: 2rem; }
.hero__count { font-size: 0.6875rem; color: var(--navy); white-space: nowrap; }
.hero__arrow { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); transition: background-color var(--dur-fast), color var(--dur-fast); }
.hero__arrow svg { width: 20px; height: 20px; transform: rotate(90deg); }
.hero__arrow[data-slide-prev] { margin-top: 1rem; }
.hero__arrow:hover { background: var(--navy); color: var(--ivory); }
.hero__caption { margin-top: auto; font-size: 0.625rem; line-height: 1.5; color: var(--color-text-muted); padding-top: 0.75rem; border-top: 1px solid var(--color-rule-strong); }

@media (max-width: 1199px) {
  .hero__dateline { grid-template-columns: auto minmax(2rem, 1fr) auto; }
  .hero__dateline-mid, .hero__dateline::after { display: none; }
  .hero__dateline-date { grid-column: 3; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cd { margin-top: 0; }
}
@media (max-width: 767px) {
  .hero__dateline { grid-template-columns: 1fr auto; }
  .hero__dateline::before { display: none; }
  .hero__dateline-date { grid-column: 2; }
  .hero__fact { padding-right: 1.25rem; }
  .hero__fact + .hero__fact { padding-left: 0; border-left: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__cd-row > span { padding-left: 0.75rem; }
  .hero__cd-row > span:first-child { padding-left: 0; }
  .hero__cd-row b { font-size: 2.125rem; }
  .hero__cd-row small { font-size: 0.5625rem; letter-spacing: 0.1em; }
  .hero__visual { grid-template-columns: 1fr; }
  .hero__collage { min-height: 440px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .hero__side { display: none; }
  .hero__rail { flex-direction: row; justify-content: flex-end; }
  .hero__rail-line { display: none; }
  .hero__arrow svg { transform: none; }
  .hero__arrow[data-slide-prev] { margin-top: 0; }
  .hero__caption { order: -1; margin: 0 auto 0 0; border: 0; padding: 0; }
}
/* --- 03 · About — copy left, layered photos right ----------------------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 3rem;
  align-items: stretch;
}
.about__copy { grid-column: 7 / -1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
.about__title { color: var(--navy); }
.about__lede {
  margin-top: clamp(1.5rem, 1rem + 1vw, 2rem);
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem);
  line-height: 1.35;
  color: var(--ink);
}
.about__text { margin-top: 1.25rem; max-width: 52ch; color: var(--color-text-muted); }
.about__copy .link-arrow { margin-top: 1.5rem; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: auto;
  padding-top: 2.5rem;
}
.about__stats > div { display: flex; flex-direction: column-reverse; gap: 0.5rem; padding: 1.25rem 0 0 1.5rem; border-top: 1px solid var(--color-rule-strong); }
.about__stats > div:first-child { padding-left: 0; }
.about__stats > div + div { border-left: 1px solid var(--color-rule-strong); }
.about__stats dd { font-family: var(--font-serif); font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3.25rem); line-height: 1; color: var(--navy); }
.about__stats dt { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }

.about__visual { grid-column: 1 / span 5; grid-row: 1; position: relative; margin: 0; padding-bottom: 2.5rem; display: flex; flex-direction: column; }
.about__img { flex: 1; min-height: 320px; position: relative; } /* stretches to the text column height */
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__inset {
  position: absolute;
  right: clamp(-6rem, -4vw, -2rem);
  bottom: 4.5rem;
  width: 46%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 8px solid var(--color-bg);
  background: var(--ivory-200);
}
.about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__caption { position: absolute; left: 0; right: 0; bottom: 0; }

@media (max-width: 1023px) {
  .about__copy, .about__visual { grid-column: 1 / -1; grid-row: auto; }
  .about__visual { max-width: 640px; }
  .about__img { flex: none; aspect-ratio: 6 / 5; min-height: 0; }
  .about__inset { right: -1rem; }
}
@media (max-width: 599px) {
  .about__stats > div { padding-left: 0.85rem; }
  .about__stats > div:first-child { padding-left: 0; }
  .about__stats dd { font-size: 1.875rem; }
  .about__inset { width: 58%; bottom: 3.75rem; border-width: 6px; }
}

/* --- 04 · Goals — ruled list with large numerals ----------------------- */

.goals__head { margin-bottom: var(--head-gap); }
.goals__head .h2 { color: var(--navy); }
.goals__sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.25rem;
}
.goals__sub p {
  max-width: 46ch;
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem);
  line-height: 1.3;
  color: var(--ink);
}

.index { border-top: 1px solid var(--color-rule-strong); }
.index__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  padding-block: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
  border-bottom: 1px solid var(--color-rule-strong);
  color: var(--navy);
}
.index__num {
  grid-column: 1 / span 2;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
  line-height: 0.9;
  color: var(--color-rule-strong);
  transition: color var(--dur-base) var(--ease-out);
}
.index__title {
  grid-column: 3 / span 5;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: transform var(--dur-slow) var(--ease-out);
}
.index__text { grid-column: 8 / span 4; color: var(--color-text-muted); }
.index__arrow {
  grid-column: 12;
  justify-self: end;
  display: inline-flex;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.index__arrow svg { width: 32px; height: 32px; }
.index__row:hover .index__arrow, .index__row:focus-visible .index__arrow { opacity: 1; transform: none; }
.index__row:hover .index__num, .index__row:focus-visible .index__num { color: var(--blue); }
.index__row:hover .index__title, .index__row:focus-visible .index__title { transform: translateX(0.5rem); }

@media (max-width: 1023px) {
  .index__row { row-gap: 0.75rem; align-items: start; }
  .index__num { grid-column: 1 / span 2; grid-row: span 2; }
  .index__title { grid-column: 3 / span 9; }
  .index__text { grid-column: 3 / span 9; }
  .index__arrow { grid-row: 1; opacity: 1; transform: none; }
}
@media (max-width: 599px) {
  .index__num { grid-column: 1 / span 3; font-size: 2.5rem; }
  .index__title, .index__text { grid-column: 4 / -1; }
  .index__arrow { display: none; }
}

/* --- 05 · Program — interactive agenda with a swapping photograph ------- */

.program__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: var(--head-gap); }
.program__head .h2 { color: var(--navy); }
.program__note { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; color: var(--ink); }

.agenda { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: stretch; }
.agenda__main { grid-column: 1 / span 7; }
.program__note { margin-bottom: clamp(1.5rem, 1rem + 1vw, 2.25rem); }
.agenda__list { border-top: 1px solid var(--color-rule-strong); }
.agenda__item { border-bottom: 1px solid var(--color-rule-strong); }
.agenda__head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.32fr) 1fr 44px;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
  text-align: left;
  color: var(--navy);
}
.agenda__time {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem);
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}
.agenda__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem);
  line-height: 1.1;
  transition: transform var(--dur-slow) var(--ease-out);
}
.agenda__icon { justify-self: end; align-self: center; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--color-rule-strong); border-radius: 50%; color: var(--navy); transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.agenda__icon svg { width: 14px; height: 14px; }
.agenda__head:hover .agenda__title { transform: translateX(0.35rem); }
.agenda__head:hover .agenda__time { color: var(--blue); }
.agenda__item.is-active .agenda__time { color: var(--blue); }
.agenda__item.is-active .agenda__icon { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: var(--white); }

.agenda__panel { padding: 0 calc(44px + 1.5rem) clamp(1.25rem, 1rem + 0.6vw, 1.5rem) 0; display: grid; grid-template-columns: minmax(7.5rem, 0.32fr) 1fr; gap: 0 1.5rem; }
.agenda__panel[hidden] { display: none; }
.agenda__who { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); padding-top: 0.3rem; }
.agenda__text { color: var(--color-text-muted); max-width: 46ch; }
@media (prefers-reduced-motion: no-preference) {
  .agenda__panel:not([hidden]) { animation: rise 0.6s var(--ease-out) both; }
}

.agenda__visual { grid-column: 9 / -1; position: relative; overflow: hidden; background: var(--ivory-200); } /* height = agenda list */
.agenda__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease-out), transform 1.2s var(--ease-out); }
.agenda__img.is-active { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .agenda__main { grid-column: 1 / -1; }
  .agenda__visual { display: none; }
}
@media (max-width: 599px) {
  .agenda__head { grid-template-columns: 1fr 44px; row-gap: 0.4rem; }
  .agenda__time { grid-column: 1; font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }
  .agenda__title { grid-column: 1; }
  .agenda__icon { grid-column: 2; grid-row: 1 / span 2; }
  .agenda__panel { grid-template-columns: 1fr; padding-right: 0; row-gap: 0.5rem; }
}

/* --- 06 · Speakers — row of profile cards --------------------------------- */

.speakers__head { margin-bottom: var(--head-gap); }
.speakers__head .h2 { color: var(--navy); }
.speakers__sub { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.25rem; }
.speakers__sub p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; color: var(--ink); }

.people {
  --per-view: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--people-gap)) / var(--per-view));
  gap: var(--people-gap);
  --people-gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.people::-webkit-scrollbar { display: none; }
.people:focus-visible { outline-offset: 4px; }
.person { scroll-snap-align: start; }

.people__bar { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem); }
.people__dots { display: flex; align-items: center; gap: 0.5rem; }
.people__dots[hidden] { display: none; }
.people__dot { display: inline-flex; align-items: center; height: 44px; padding: 0; }
.people__dot::before { content: ""; display: block; width: 28px; height: 2px; background: var(--color-rule-strong); transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base); }
.people__dot[aria-current="true"]::before { width: 56px; background: var(--navy); }
.people__dot:hover::before { background: var(--blue); }
.people__arrows { display: flex; gap: 0.5rem; }
.people__arrow { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-rule-strong); border-radius: 50%; color: var(--navy); transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.people__arrow svg { width: 18px; height: 18px; }
.people__arrow:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.people__arrow:disabled { opacity: 0.35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .people { scroll-behavior: auto; } }

.person__link { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--navy); }
.person__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1B3653 0%, var(--navy) 55%, var(--navy-900) 100%);
}
.people .person:nth-child(even) .person__photo { background: linear-gradient(160deg, #2C5578 0%, var(--blue) 50%, var(--navy) 100%); }
.person__photo::after { /* soft light from above, gives the plate depth */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.person__initials {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.8rem + 2vw, 3.75rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.8s var(--ease-out);
}
.person__role { margin-top: 1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.person__name { margin-top: 0.4rem; padding-right: 2rem; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.1875rem, 1rem + 0.4vw, 1.375rem); line-height: 1.2; }
.person__arrow { position: absolute; right: 0; bottom: 0.15rem; display: inline-flex; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.person__arrow svg { width: 20px; height: 20px; }
.person__link:hover .person__initials, .person__link:focus-visible .person__initials { transform: scale(1.08); }
.person__link:hover .person__photo img { transform: scale(1.05); }
.person__link:hover .person__arrow, .person__link:focus-visible .person__arrow { opacity: 1; transform: none; }

@media (max-width: 1199px) { .people { --per-view: 3; } }
@media (max-width: 767px) { .people { --per-view: 2; } }
@media (max-width: 599px) {
  .people { --per-view: 1.25; }
  .person__arrow { opacity: 1; transform: none; }
}

/* --- 07 · Projects — expanding photo panels ------------------------------ */

.projects__head { margin-bottom: var(--head-gap); }
.projects__sub { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.25rem; }
.projects__sub p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; color: var(--ink); }
.projects__head .h2 { color: var(--navy); }

.panels { display: flex; gap: clamp(0.5rem, 0.3rem + 0.6vw, 1rem); height: clamp(440px, 36vw, 580px); }
.panel { flex: 1 1 0; min-width: 0; transition: flex-grow 0.9s var(--ease-out); }
.panel.is-open { flex-grow: 3.4; }
.panel__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-img); color: var(--white); isolation: isolate; }
.panel__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(0.75); transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.panel.is-open .panel__img { transform: none; filter: none; }
.panel__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 26, 43, 0.25) 0%, rgba(11, 26, 43, 0.35) 40%, rgba(11, 26, 43, 0.92) 100%); transition: background-color 0.9s; }
.panel:not(.is-open) .panel__shade { background-color: rgba(11, 26, 43, 0.35); }

/* Collapsed state: number + vertical title */
.panel__tab { position: absolute; inset: clamp(1.25rem, 1rem + 0.8vw, 2rem); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; transition: opacity 0.4s var(--ease-out); }
.panel__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-on-dark); }
.panel__vtitle { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem); line-height: 1; white-space: nowrap; }
.panel.is-open .panel__tab { opacity: 0; pointer-events: none; }

/* Open state: full story at the bottom */
.panel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem, 1rem + 1.5vw, 2.75rem); display: grid; gap: 0.75rem; max-width: 640px; opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out); }
.panel.is-open .panel__body { opacity: 1; transform: none; transition-delay: 0.35s; }
.panel__kicker { display: flex; gap: 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-on-dark); }
.panel__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem); line-height: 1.1; }
.panel__text { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.panel__more { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.panel__more svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.panel__link:hover .panel__more svg { transform: translateX(6px); }
.panel__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .panel, .panel__img, .panel__body, .panel__tab { transition: none; }
}
@media (max-width: 767px) {
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: 380px; }
  .panel__tab { display: none; }
  .panel__body { opacity: 1; transform: none; }
  .panel__img { transform: none; filter: none; }
}

/* --- 08 · Sponsors — lead cards + supporting ticker ---------------------- */

.sponsors__head { margin-bottom: var(--head-gap); }
.sponsors__head .h2 { color: var(--navy); }
.sponsors__sub { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.25rem; }
.sponsors__sub p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; color: var(--ink); }

.lead-sponsors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--color-rule); }
.lead-sponsor {
  display: flex; flex-direction: column;
  min-height: 280px;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.lead-sponsor + .lead-sponsor { border-left: 1px solid var(--color-rule); }
.lead-sponsor__logo { flex: 1; display: flex; align-items: center; justify-content: center; }
.lead-sponsor__logo img { max-width: 72%; max-height: 96px; width: auto; height: auto; object-fit: contain; transition: transform var(--dur-slow) var(--ease-out); }
.lead-sponsor:hover .lead-sponsor__logo img { transform: scale(1.04); }
.lead-sponsor__meta { display: flex; justify-content: space-between; padding-top: 1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }

.ticker { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.ticker__label { margin-bottom: 1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.ticker__viewport {
  overflow: hidden;
  border-block: 1px solid var(--color-rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; align-items: center; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; justify-content: center; gap: 0.75rem; height: 120px; padding-inline: clamp(2.5rem, 2rem + 2vw, 4.5rem); color: var(--navy); }
.ticker__item img { max-height: 54px; width: auto; }
.ticker__item--tall img { max-height: 80px; }
.ticker__item--mark svg { width: 32px; height: 32px; }
.ticker__item--mark span { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__item[aria-hidden="true"] { display: none; }
}

@media (max-width: 767px) {
  .lead-sponsors { grid-template-columns: 1fr; }
  .lead-sponsor { min-height: 200px; }
  .lead-sponsor + .lead-sponsor { border-left: 0; border-top: 1px solid var(--color-rule); }
  .ticker__item { height: 96px; }
}

/* --- 09 · Impact — full-bleed navy band of figures ----------------------- */

.impact { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 2.5rem + 2.5vw, 5rem); background: var(--navy); color: var(--white); }
/* blurred event photo under a navy veil */
.impact::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background: url("../img/uaw-ballroom-wide.jpg") center / cover no-repeat;
  filter: blur(8px) saturate(1);
}
.impact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 36, 58, 0.62); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; text-align: center; }
.stats__item + .stats__item { border-left: 1px solid var(--color-rule-dark); }
.stats__value { font-family: var(--font-serif); font-size: clamp(3rem, 2rem + 3vw, 5.25rem); line-height: 1; color: var(--white); }
.stats__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }

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

/* --- 10 · Partners — logo cards -------------------------------------------- */

.partners__head { margin-bottom: var(--head-gap); }
.partners__head .h2 { color: var(--navy); max-width: 24ch; }
.partners__sub { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.25rem; }
.partners__sub p { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; color: var(--ink); }

.partner-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.partner-card { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--navy); }
.partner-card__logo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--color-rule-strong);
  transition: transform var(--dur-slow) var(--ease-out);
}
.partner-card__logo { position: relative; }
.partner-card__logo img { position: absolute; inset: 11% 8%; width: 84%; height: 78%; object-fit: contain; transition: transform var(--dur-slow) var(--ease-out); }
.partner-card__logo--mark { flex-direction: column; gap: 1rem; color: var(--navy); }
.partner-card__logo--mark svg { width: 88px; height: 88px; }
.partner-card__logo--mark span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.partner-card__role { margin-top: 1.1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.partner-card__name { margin-top: 0.35rem; padding-right: 2.5rem; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.2; }
.partner-card__arrow { position: absolute; right: 0; bottom: 0.2rem; display: inline-flex; color: var(--blue); transition: transform var(--dur-base) var(--ease-out); }
.partner-card__arrow svg { width: 20px; height: 20px; }
.partner-card:hover .partner-card__logo img { transform: scale(1.05); }
.partner-card:hover .partner-card__arrow { transform: translate(3px, -3px); }

@media (max-width: 1023px) { .partner-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .partner-cards { grid-template-columns: 1fr; } }

/* Home partners: Swiper slider (1 / 2 / 3 cards per view) */
.partners-swiper .partner-cards.swiper-wrapper { display: flex; gap: 0; grid-template-columns: none; }
.partners-swiper .swiper-slide { height: auto; }
.partners__bar .people__dot { border: 0; background: none; cursor: pointer; }
.partners__bar .people__dot.is-active::before { width: 56px; background: var(--navy); }
.partners__bar .people__arrow { background: transparent; cursor: pointer; }
.partners__bar .people__arrow:disabled { opacity: 0.3; cursor: default; }
.partners__bar .people__dot:focus-visible, .partners__bar .people__arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.partners__bar.is-static { display: none; }

/* --- 11 · Donate — navy panel with photo --------------------------------- */

.donate__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 520px;
  border-radius: calc(var(--radius-img) + 6px);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.donate__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 1.25rem + 3vw, 4.5rem); }
.donate__title { color: var(--white); }
.donate__text { margin-top: 1.25rem; max-width: 46ch; font-family: var(--font-serif); font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.35; color: var(--color-on-dark-muted); }
.donate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.donate__panel { position: relative; isolation: isolate; }
.donate__copy { position: relative; z-index: 1; }
/* the photo fades into the panel itself, so there is no visible seam */
.donate__media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; margin: 0; z-index: 0; }
.donate__media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 60%);
}

@media (max-width: 1023px) {
  .donate__panel { grid-template-columns: 1fr; }
  .donate__media { position: relative; width: auto; order: -1; aspect-ratio: 16 / 9; }
  .donate__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%); mask-image: linear-gradient(0deg, transparent 0%, #000 55%); }
}
@media (max-width: 599px) {
  .donate__actions .btn { flex: 1 1 100%; }
}

/* --- Scroll reveals (initial state applied only when JS motion is active) - */

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.2em 0.15em; margin-block: -0.2em -0.15em; }
.split-word > span { display: inline-block; }
.js-motion [data-split] .split-word > span { transform: translateY(110%); }
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion [data-mask] { clip-path: inset(100% 0 0 0); }
.js-motion [data-mask] img { transform: scale(1.18); }

/* Sponsor wordmarks (until official logo files are supplied) */
.logo-slot .logo-word {
  border: 0;
  padding: 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  line-height: 1.1;
  color: var(--navy);
}
.honor__logos--lg .logo-word { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); }

/* --- Photography treatment: rounded corners + offset outline ------------ */

.hero__main, .hero__side, .about__img, .about__inset,
.story__media, .person__photo, .mask-reveal {
  border-radius: var(--radius-img);
  overflow: hidden;
}
.about__inset { border-radius: calc(var(--radius-img) + 8px); }
.story__media { box-shadow: none; }

/* A thin navy contour, offset down-right, sits behind key photos */
.hero__collage { padding: 0 var(--plate-offset) var(--plate-offset) 0; position: relative; isolation: isolate; }
.hero__collage::before,
.about__visual::before,
.agenda__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-img);
  pointer-events: none;
}
.hero__collage::before { inset: var(--plate-offset) 0 0 var(--plate-offset); }

.about__visual { isolation: isolate; padding-bottom: 3.25rem; }
.about__visual::before { top: var(--plate-offset); left: var(--plate-offset); right: calc(var(--plate-offset) * -1); bottom: calc(3.25rem - var(--plate-offset)); }

.agenda__visual { isolation: isolate; overflow: visible; background: none; margin: 0 var(--plate-offset) var(--plate-offset) 0; }
.agenda__visual::before { inset: var(--plate-offset) calc(var(--plate-offset) * -1) calc(var(--plate-offset) * -1) var(--plate-offset); }
.agenda__img { border-radius: var(--radius-img); }
.about__caption { border-top: 0; padding-top: 0; }

/* Section intro text runs the full width up to the action on the right */
.goals__sub p, .speakers__sub p, .projects__sub p, .sponsors__sub p, .partners__sub p { flex: 1 1 32rem; max-width: none; }

.lead-sponsor__logo--wide img { max-width: 86%; max-height: 120px; }

/* ==========================================================================
   Mobile QA fixes (2026-10-30) — speakers slider, mobile only
   ========================================================================== */
@media (max-width: 599px) {
  /* Exactly one full card per view (was 1.25 = a cut-off slice of the next card) */
  .people { --per-view: 1; }
  /* Dots + arrows did not fit the bar at 320px (arrows overflowed by 24px).
     Narrower dots with a 24px hit area keep everything inside the viewport. */
  .people__bar { gap: 0.75rem; }
  .people__dots { gap: 0.25rem; flex-wrap: wrap; min-width: 0; }
  .people__dot { min-width: 24px; justify-content: center; }
  .people__dot::before { width: 16px; }
  .people__dot[aria-current="true"]::before { width: 24px; }
  .people__arrows { flex: none; }
}

/* Donate band: the 1fr track resolved to min-content (nowrap buttons) and
   clipped the copy on 320px phones. Let the track shrink and trim padding. */
@media (max-width: 1023px) {
  .donate__panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .donate__copy { padding: 2rem 1.5rem; }
}

/* Home partners: no bottom padding, the donate panel follows straight after */
.section.partners { padding-bottom: 0; }
