/* ==========================================================================
   The Pundit Ravindranath Maharaj Memorial Foundation
   ========================================================================== */

:root {
  --ink: #211b17;
  --muted: #675f58;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --saffron: #d56f26;
  --saffron-dark: #9f4618;
  --gold: #c9973f;
  --maroon: #6f2438;
  --green: #214b3b;
  --blue: #1c5575;
  --line: rgba(33, 27, 23, 0.14);
  --shadow: 0 18px 46px rgba(45, 33, 23, 0.13);
  --shadow-soft: 0 10px 26px rgba(45, 33, 23, 0.08);
  --radius: 10px;

  --header-h: 68px;
  --shell: min(1160px, calc(100% - clamp(28px, 6vw, 56px)));
  --section-y: clamp(46px, 6.2vw, 84px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.58;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- typography */

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.05rem);
  font-weight: 600;
  line-height: 1.06;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--saffron-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--maroon));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* -------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  background: rgba(253, 250, 244, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(253, 250, 244, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(45, 33, 23, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  transition: transform 420ms var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong {
  color: var(--maroon);
  font-size: 0.98rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  color: #3b332d;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:not(.nav-donate) {
  position: relative;
  padding: 8px 0;
  transition: color 200ms ease;
}

.site-nav a:not(.nav-donate)::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 280ms var(--ease);
}

.site-nav a:not(.nav-donate):hover,
.site-nav a.is-active {
  color: var(--saffron-dark);
}

.site-nav a:not(.nav-donate):hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-donate {
  padding: 9px 16px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  transition: background 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}

.nav-donate:hover {
  background: #17392c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(33, 75, 59, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.nav-toggle:hover {
  border-color: var(--saffron);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 260ms var(--ease), opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px) 0 clamp(72px, 8vw, 104px);
  text-align: center;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -10%, #fff8ea 0%, #fdf3e2 38%, #f8ecd9 68%, #f4e6d0 100%);
}

.hero-backdrop::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  content: "";
  background: linear-gradient(transparent, var(--paper));
}

.hero-glow {
  position: absolute;
  top: -14%;
  left: 50%;
  width: min(760px, 105vw);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(213, 111, 38, 0.2) 0%, rgba(201, 151, 63, 0.1) 42%, transparent 68%);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: glow-breathe 9s ease-in-out infinite;
}

.hero-rays {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 22%,
      rgba(201, 151, 63, 0.16) 0deg 3deg,
      transparent 3deg 12deg
    );
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 62%);
  animation: rays-drift 60s linear infinite;
}

.hero-content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  width: var(--shell);
}

.hero-logo {
  display: block;
  width: clamp(148px, 20vw, 232px);
  margin-bottom: clamp(14px, 2vw, 22px);
  filter: drop-shadow(0 16px 34px rgba(111, 36, 56, 0.16));
  animation: logo-float 7s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--saffron-dark);
}

.hero h1 {
  max-width: 26ch;
  margin: 0;
  color: var(--maroon);
  font-size: clamp(2.1rem, 4.9vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(14px, 2vw, 20px) 0 0;
  color: var(--saffron-dark);
  font-size: clamp(0.7rem, 1.5vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-tagline i {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: rotate(45deg);
}

.hero-lede {
  max-width: 60ch;
  margin: 16px 0 0;
  color: #554d46;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 26px);
  padding: 6px 14px 6px 6px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(111, 36, 56, 0.22);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}

.hero-announcement:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.hero-announcement-tag {
  padding: 4px 10px;
  color: #fbe7bd;
  background: var(--maroon);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-announcement i {
  font-style: normal;
  transition: transform 240ms var(--ease);
}

.hero-announcement:hover i {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------- buttons */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, background 200ms ease, color 200ms ease,
    border-color 200ms ease;
}

.button::before {
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 620ms var(--ease);
}

.button:hover::before {
  left: 120%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 17, 14, 0.16);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
}

.button.outline {
  color: var(--maroon);
  border-color: rgba(111, 36, 56, 0.4);
  background: rgba(255, 255, 255, 0.7);
}

.button.outline:hover {
  color: #fff;
  background: var(--maroon);
  border-color: var(--maroon);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.button.secondary.dark {
  color: #fff;
  background: var(--green);
}

.button.full {
  width: 100%;
}

/* ---------------------------------------------------------- quick info cards */

.quick-info {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: var(--shell);
  margin: clamp(-64px, -5vw, -44px) auto 0;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 300ms var(--ease), box-shadow 300ms ease, border-color 300ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(213, 111, 38, 0.4);
  box-shadow: 0 22px 44px rgba(45, 33, 23, 0.14);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: var(--saffron-dark);
  background: linear-gradient(140deg, #fdf1e2, #f9e6cf);
  border-radius: 12px;
  transition: transform 380ms var(--ease), background 300ms ease, color 300ms ease;
}

.quick-icon svg {
  width: 24px;
  height: 24px;
}

.quick-card:hover .quick-icon {
  color: #fff;
  background: linear-gradient(140deg, var(--saffron), var(--saffron-dark));
  transform: rotate(-8deg) scale(1.08);
}

.quick-label {
  color: var(--saffron-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quick-card strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.14;
}

.quick-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.quick-more i {
  font-style: normal;
  transition: transform 280ms var(--ease);
}

.quick-card:hover .quick-more i {
  transform: translateX(5px);
}

/* ------------------------------------------------------------------ sections */

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.section-heading.wide {
  max-width: 860px;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.quick-info p,
.info-card p,
.work-grid p,
.section-heading p,
.intro-copy p,
.split-content p,
.contact-copy p,
.donate-panel p,
.form-note,
dd {
  color: var(--muted);
}

/* --------------------------------------------------------------------- intro */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.intro-copy {
  font-size: 1.02rem;
}

.intro-copy p {
  margin: 0 0 14px;
}

.intro-closing {
  margin-bottom: 0 !important;
  color: var(--maroon) !important;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card,
.info-card,
.work-grid article,
.donation-form,
.volunteer-form,
.calendar-browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  overflow: hidden;
  transition: transform 340ms var(--ease), box-shadow 340ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.feature-card > div {
  padding: 20px;
}

.feature-card span,
.quick-info span.quick-label {
  display: block;
  margin-bottom: 5px;
  color: var(--saffron-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------- split band */

.split-band {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.05fr);
  gap: 0;
  padding: 0;
  background: #f2ece1;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.split-band:hover .split-media img {
  transform: scale(1.04);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
}

.split-content > p:not(.eyebrow) {
  margin: 14px 0 0;
}

.visit-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.visit-list article {
  padding-left: 16px;
  border-left: 3px solid var(--saffron);
  transition: border-color 260ms ease, transform 260ms var(--ease);
}

.visit-list article:hover {
  border-left-color: var(--maroon);
  transform: translateX(4px);
}

.visit-list h3 {
  margin-bottom: 2px;
  font-size: 0.98rem;
}

.visit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.split-content > .button {
  align-self: start;
}

/* --------------------------------------------------------------------- about */

.foundation-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(24px, 4.5vw, 64px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 42px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.registration-copy h3,
.objectives-heading h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
}

.registration-copy p:not(.eyebrow) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.registration-copy p:last-child {
  margin-bottom: 0;
}

.registration-facts {
  gap: 0;
  margin: 0;
  border-left: 3px solid var(--saffron);
}

.registration-facts div {
  display: grid;
  gap: 1px;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 240ms ease;
}

.registration-facts div:hover {
  background: #fdf6ec;
}

.registration-facts div:last-child {
  border-bottom: 0;
}

.registration-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.registration-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.objectives-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4.5vw, 64px);
  padding: clamp(32px, 4.5vw, 56px) 0;
}

.objectives-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objectives-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 300ms var(--ease);
}

.objectives-list li:hover {
  padding-left: 8px;
}

.objectives-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.objectives-list span {
  color: var(--saffron-dark);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.objectives-list p {
  margin: 0;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  font-weight: 600;
  line-height: 1.42;
}

.accountability-statement {
  display: grid;
  grid-template-columns: minmax(170px, 0.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3.5vw, 48px);
  padding: clamp(26px, 3.6vw, 44px) 0;
  color: #fff;
  background: var(--green);
  box-shadow: 50vw 0 var(--green), -50vw 0 var(--green);
}

.accountability-statement .eyebrow {
  color: #ffd7a1;
}

.accountability-statement p {
  margin: 0;
  font-size: 0.94rem;
}

.accountability-statement p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(26px, 3.5vw, 42px);
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 22px;
  transition: transform 300ms var(--ease), box-shadow 300ms ease, border-color 300ms ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(213, 111, 38, 0.35);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.14;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
}

.identity-figure {
  margin: clamp(26px, 3.5vw, 42px) 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.identity-figure img {
  width: 100%;
  height: auto;
}

.identity-figure figcaption {
  padding: 13px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------------- work */

.work {
  width: 100%;
  background: #f7f2e8;
}

.work > * {
  width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.work-grid article {
  overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms ease;
}

.work-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.work-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.work-grid article:hover img {
  transform: scale(1.06);
}

.work-grid h3 {
  margin: 16px 18px 6px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.work-grid p {
  margin: 0;
  padding: 0 18px 20px;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ calendar */

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.events h2 > span {
  display: inline-block;
}

.events h2 .calendar-range {
  white-space: nowrap;
}

.calendar-browser {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 26px);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-toolbar h3 {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
}

.calendar-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 200ms ease, background 200ms ease, transform 200ms var(--ease), opacity 200ms ease;
}

.calendar-arrow:hover:not(:disabled) {
  color: #fff;
  background: var(--green);
  transform: scale(1.08);
}

.calendar-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.calendar-month-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
  padding: 4px;
  background: #f0eee8;
  border-radius: var(--radius);
}

.calendar-month-tabs button {
  min-height: 36px;
  padding: 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 200ms ease, background 200ms ease;
}

.calendar-month-tabs button:hover,
.calendar-month-tabs button.is-selected {
  color: #fff;
  background: var(--green);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  animation: calendar-fade 340ms var(--ease);
}

.calendar-weekday {
  padding: 4px 2px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  aspect-ratio: 1;
  padding: 4px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.calendar-day:not(.is-empty):hover {
  border-color: var(--saffron);
  transform: translateY(-2px) scale(1.04);
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day-number {
  font-size: clamp(0.76rem, 1.4vw, 0.9rem);
  font-weight: 600;
}

.calendar-day.has-event {
  color: var(--maroon);
  background: #fff1dc;
  border-color: rgba(213, 111, 38, 0.26);
  font-weight: 700;
}

.calendar-event-marker {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--saffron);
  border-radius: 50%;
  transform: translateX(-50%);
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  animation: pop 300ms var(--ease);
}

.calendar-day.is-selected .calendar-event-marker {
  background: #ffd7a1;
}

.calendar-agenda {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(160deg, #fdf6ec, #fbf1e2);
  border: 1px solid rgba(201, 151, 63, 0.3);
  border-radius: var(--radius);
}

.calendar-agenda-heading {
  margin-bottom: 12px;
}

.calendar-agenda-heading .eyebrow {
  margin: 0 0 4px;
}

.calendar-agenda-heading h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.calendar-agenda-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
}

.calendar-agenda-list article {
  min-width: 0;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--saffron);
  border-radius: 8px;
  animation: agenda-in 380ms var(--ease) both;
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}

.calendar-agenda-list article:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.calendar-agenda-list article:nth-child(2) { animation-delay: 40ms; }
.calendar-agenda-list article:nth-child(3) { animation-delay: 80ms; }
.calendar-agenda-list article:nth-child(4) { animation-delay: 120ms; }
.calendar-agenda-list article:nth-child(n + 5) { animation-delay: 160ms; }

.calendar-agenda-list h4 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.calendar-agenda-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-agenda-list article.is-featured {
  border-left-color: var(--maroon);
  background: linear-gradient(160deg, #fff, #fffaf1);
}

.calendar-agenda-list .calendar-agenda-meta {
  margin-top: 4px;
  color: var(--saffron-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-agenda-days {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  list-style: none;
}

.calendar-agenda-days strong {
  color: var(--maroon);
}

.calendar-agenda-flyer {
  display: inline-block;
  margin-top: 8px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(111, 36, 56, 0.35);
  transition: color 200ms ease, border-color 200ms ease;
}

.calendar-agenda-flyer:hover {
  color: var(--saffron-dark);
  border-color: var(--saffron-dark);
}

.calendar-agenda-empty {
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

time {
  display: block;
  margin-bottom: 5px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------ gala fundraiser */

.gala {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(201, 151, 63, 0.28), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(213, 111, 38, 0.18), transparent 50%),
    linear-gradient(160deg, #4a1424, #6f2438 55%, #4a1424);
}

.gala::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(115deg, rgba(255, 215, 161, 0.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.gala-panel {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  width: var(--shell);
  margin: 0 auto;
}

.gala-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: end;
}

.gala .eyebrow {
  color: #f3cd85;
}

.gala h2 {
  color: #fbe7bd;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-style: italic;
}

.gala-lede {
  max-width: 58ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.gala-countdown {
  padding: 14px 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(243, 205, 133, 0.4);
  border-radius: var(--radius);
}

.gala-countdown[hidden] {
  display: none;
}

.gala-countdown-label {
  margin: 0 0 6px;
  color: #f3cd85;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gala-countdown-units {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gala-countdown-units span {
  display: grid;
  justify-items: center;
}

.gala-countdown-units strong {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.gala-ticket {
  margin: 0;
  padding: clamp(6px, 1vw, 10px);
  background: linear-gradient(135deg, #f3cd85, #b8862f 50%, #f3cd85);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 26px 60px rgba(20, 4, 10, 0.45);
  transition: transform 420ms var(--ease), box-shadow 420ms ease;
}

.gala-ticket:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 34px 70px rgba(20, 4, 10, 0.55);
}

.gala-ticket img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.gala-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.gala-facts > div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 205, 133, 0.28);
  border-top: 3px solid #f3cd85;
  border-radius: var(--radius);
}

.gala-facts dt {
  margin-bottom: 4px;
  color: #f3cd85;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gala-facts dd {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.gala-price {
  color: #fbe7bd;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.gala-details {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 24px;
}

.gala-details-label {
  margin: 0 0 8px;
  color: #f3cd85;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gala-lineup,
.gala-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gala-lineup li {
  padding: 8px 14px;
  color: #3a0f1c;
  background: #fbe7bd;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.gala-notes li {
  padding: 8px 14px;
  color: #fbe7bd;
  border: 1px dashed rgba(243, 205, 133, 0.55);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.gala-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 1px solid rgba(243, 205, 133, 0.25);
}

.gala-actions p {
  margin: 0 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.button.gold {
  color: #3a0f1c;
  background: linear-gradient(135deg, #fbe7bd, #e2b25d);
}

.button.outline-light {
  color: #fbe7bd;
  border-color: rgba(243, 205, 133, 0.6);
  background: transparent;
}

.button.outline-light:hover {
  color: #3a0f1c;
  background: #fbe7bd;
}

.gala-directions {
  margin-left: auto;
  color: #fbe7bd;
  font-size: 0.88rem;
  font-weight: 700;
}

.gala-directions i {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  transition: transform 240ms var(--ease);
}

.gala-directions:hover i {
  transform: translateX(4px);
}

.gala-sponsors {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* ----------------------------------------------------------------- slideshow */

.slideshow {
  position: relative;
}

.slideshow-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #1b1512;
}

.slideshow-track {
  display: flex;
  will-change: transform;
  transition: transform 620ms var(--ease);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 54px clamp(18px, 3vw, 34px) clamp(18px, 3vw, 28px);
  color: #fff;
  background: linear-gradient(transparent, rgba(18, 13, 10, 0.55) 45%, rgba(18, 13, 10, 0.9));
}

.slide figcaption span {
  color: #ffd7a1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease 120ms, transform 480ms var(--ease) 120ms;
}

.slide figcaption strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.12;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease 200ms, transform 480ms var(--ease) 200ms;
}

.slide.is-active figcaption span,
.slide.is-active figcaption strong {
  opacity: 1;
  transform: translateY(0);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  transform: translateY(-50%);
  box-shadow: 0 6px 18px rgba(20, 15, 12, 0.3);
  transition: background 220ms ease, color 220ms ease, transform 260ms var(--ease), opacity 220ms ease;
}

.slide-arrow:hover {
  color: #fff;
  background: var(--saffron);
  transform: translateY(-50%) scale(1.08);
}

.slide-arrow.prev {
  left: clamp(10px, 2vw, 18px);
}

.slide-arrow.next {
  right: clamp(10px, 2vw, 18px);
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slideshow-dots button {
  width: 30px;
  height: 6px;
  padding: 0;
  background: rgba(33, 27, 23, 0.18);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background 260ms ease, width 300ms var(--ease);
}

.slideshow-dots button:hover {
  background: rgba(33, 27, 23, 0.34);
}

.slideshow-dots button.is-active {
  width: 46px;
  background: var(--saffron);
}

.slideshow-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.slideshow-count [data-slide-current] {
  color: var(--maroon);
}

/* -------------------------------------------------------------------- donate */

.donate {
  width: 100%;
  background: #263f3a;
}

.donate-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  width: var(--shell);
  margin: 0 auto;
  color: #fff;
}

.donate-panel h2 {
  color: #fff;
}

.donate-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.donate-panel > div > p:not(.eyebrow) {
  margin: 12px 0 0;
}

.donate-panel .eyebrow {
  color: #ffd7a1;
}

.donate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.donate-options li {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  transition: background 240ms ease, transform 240ms var(--ease), border-color 240ms ease;
}

.donate-options li:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 161, 0.5);
  transform: translateY(-2px);
}

.bank-details {
  margin-top: 20px;
  padding: 20px;
  color: var(--ink);
  background: #fff;
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius);
}

.bank-details .bank-label {
  margin: 0;
  color: var(--saffron-dark) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bank-details dl {
  gap: 9px;
  margin-top: 13px;
}

.bank-details dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.bank-details dd {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.donation-form,
.volunteer-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 500;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(213, 111, 38, 0.16);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amounts button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9f2e8;
  cursor: pointer;
  font-weight: 700;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.amounts button:hover {
  border-color: var(--saffron);
  transform: translateY(-2px);
}

.amounts button.is-selected {
  color: #fff;
  background: var(--saffron);
  border-color: var(--saffron);
}

.form-note {
  min-height: 20px;
  margin: 0;
  font-size: 0.86rem;
}

/* .donate-panel p would otherwise paint this white on the white form card */
.donation-form .form-note,
.volunteer-form .form-note {
  color: var(--muted);
}

/* ----------------------------------------------------------------- volunteer */

.volunteer-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.volunteer-form .button,
.volunteer-form .form-note {
  grid-column: 1 / -1;
}

.volunteer-form .button {
  justify-self: start;
}

/* ------------------------------------------------------------------- contact */

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
}

dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

dt {
  font-size: 0.86rem;
  font-weight: 900;
}

dd {
  margin: 0;
  font-size: 0.94rem;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(28, 85, 117, 0.1) 25%, transparent 25% 50%, rgba(36, 86, 74, 0.1) 50% 75%, transparent 75%),
    #fff;
  background-size: 38px 38px;
  box-shadow: var(--shadow-soft);
  transition: border-color 260ms ease, transform 300ms var(--ease), box-shadow 300ms ease;
}

.map-link:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.map-link > span:last-child {
  display: grid;
  gap: 2px;
}

.map-link small {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-link strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.map-pin {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 10px solid var(--maroon);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transition: transform 320ms var(--ease);
}

.map-link:hover .map-pin {
  transform: rotate(-45deg) translateY(-4px);
}

.map-pin::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* -------------------------------------------------------------------- footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 52px);
  color: #fff;
  background: #171310;
}

.site-footer strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: #ffd7a1;
}

/* -------------------------------------------------------------- back to top */

.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: var(--maroon);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 0 10px 24px rgba(111, 36, 56, 0.35);
  transition: opacity 300ms ease, transform 300ms var(--ease), visibility 300ms, background 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--saffron-dark);
}

/* ---------------------------------------------------------------- animations */

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 620ms var(--ease) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.reveal-left {
  transform: translateX(-26px);
}

.motion-ready .reveal.reveal-right {
  transform: translateX(26px);
}

.motion-ready .reveal.reveal-scale {
  transform: scale(0.965);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-content > * {
  animation: hero-enter 760ms both var(--ease);
}

.hero-content > :nth-child(1) { animation-delay: 40ms; }
.hero-content > :nth-child(2) { animation-delay: 160ms; }
.hero-content > :nth-child(3) { animation-delay: 240ms; }
.hero-content > :nth-child(4) { animation-delay: 340ms; }
.hero-content > :nth-child(5) { animation-delay: 420ms; }
.hero-content > :nth-child(6) { animation-delay: 500ms; }
.hero-content > :nth-child(7) { animation-delay: 580ms; }

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}

@keyframes rays-drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes calendar-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes agenda-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { transform: scale(0.86); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ tablet */

@media (max-width: 1020px) {
  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 6px) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: calc(100svh - var(--header-h) - 24px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
    animation: nav-drop 280ms var(--ease);
  }

  .site-nav a:not(.nav-donate) {
    padding: 13px 14px;
    border-left: 3px solid transparent;
    border-radius: 7px;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  }

  .site-nav a:not(.nav-donate)::after {
    display: none;
  }

  .site-nav a:not(.nav-donate):hover,
  .site-nav a.is-active {
    border-left-color: var(--saffron);
    background: #fff5e8;
  }

  .nav-donate {
    margin-top: 6px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .quick-info,
  .intro-grid,
  .split-band,
  .calendar-layout,
  .donate-panel,
  .contact,
  .foundation-profile,
  .objectives-block {
    grid-template-columns: 1fr;
  }

  /* keep three across so the third card never orphans onto its own row */
  .quick-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .quick-card {
    padding: 18px 16px 16px;
  }

  .quick-card strong {
    font-size: 1.3rem;
  }

  .quick-card p {
    font-size: 0.84rem;
  }

  .quick-more {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .accountability-statement {
    grid-template-columns: 1fr 1fr;
  }

  .accountability-statement .eyebrow {
    grid-column: 1 / -1;
  }

  .card-grid.three,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-media {
    min-height: 320px;
  }

  .calendar-agenda {
    position: static;
  }

  .calendar-agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .feature-card img {
    height: 260px;
  }

  .gala-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 640px);
    --section-y: clamp(38px, 9vw, 54px);
  }

  body {
    font-size: 0.95rem;
  }

  .site-header {
    gap: 10px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .brand {
    max-width: calc(100% - 56px);
  }

  .brand small {
    display: none;
  }

  .site-nav {
    inset: calc(var(--header-h) + 6px) 14px auto;
  }

  .hero {
    padding: clamp(18px, 5vw, 30px) 0 clamp(56px, 12vw, 76px);
  }

  .hero-logo {
    width: clamp(136px, 42vw, 180px);
    margin-bottom: 12px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    line-height: 1.06;
  }

  .hero-tagline {
    gap: 9px;
    letter-spacing: 0.22em;
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 290px);
  }

  .quick-info {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: -36px;
  }

  .section-heading,
  .section-heading.wide,
  .intro-copy,
  .feature-card > div,
  .split-content,
  .registration-copy,
  .objectives-heading,
  .accountability-statement,
  .info-card,
  .work-grid article,
  .donate-panel > div,
  .contact-copy,
  .identity-figure figcaption,
  .calendar-agenda-heading {
    text-align: center;
  }

  .quick-card {
    align-items: center;
    text-align: center;
  }

  .card-grid.three,
  .work-grid,
  .volunteer-form,
  .donate-options,
  .accountability-statement,
  .calendar-agenda-list {
    grid-template-columns: 1fr;
  }

  .accountability-statement .eyebrow {
    grid-column: auto;
  }

  .split-content {
    padding: 34px 18px;
  }

  .split-content > .button,
  .volunteer-form .button {
    justify-self: center;
    align-self: center;
  }

  .visit-list article {
    padding: 14px 0 0;
    text-align: center;
    border-top: 3px solid var(--saffron);
    border-left: 0;
  }

  .visit-list article:hover {
    transform: none;
  }

  .registration-facts {
    border-top: 3px solid var(--saffron);
    border-left: 0;
  }

  .registration-facts div {
    padding: 12px 0;
    text-align: center;
  }

  .objectives-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .objectives-list li:hover {
    padding-left: 0;
  }

  .split-media {
    min-height: 240px;
  }

  .feature-card img,
  .work-grid img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .calendar-browser {
    padding: 14px 10px 18px;
  }

  .calendar-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .calendar-arrow {
    width: 38px;
    height: 38px;
  }

  .calendar-day {
    min-height: 38px;
    padding: 2px;
    border-radius: 6px;
  }

  .calendar-agenda-list article:hover {
    transform: none;
  }

  .slide img {
    aspect-ratio: 4 / 3;
  }

  .slide figcaption {
    padding: 40px 16px 16px;
  }

  .slide-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slideshow-controls {
    justify-content: center;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .bank-details {
    padding-left: 18px;
    border-top: 4px solid var(--saffron);
    border-left: 0;
    text-align: center;
  }

  .donate-options,
  .bank-details dl,
  .contact-copy dl {
    text-align: center;
  }

  .map-link {
    min-height: 240px;
    flex-direction: column;
    text-align: center;
  }

  .amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 720px) {
  .hero-announcement {
    max-width: 100%;
    text-align: left;
  }

  .gala-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gala-lede {
    margin-inline: auto;
  }

  .gala-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gala-lineup,
  .gala-notes {
    justify-content: center;
  }

  .gala-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .gala-actions p,
  .gala-directions {
    grid-column: 1 / -1;
    margin: 0;
  }

  .gala-sponsors {
    text-align: center;
  }
}

@media (max-width: 420px) {
  :root {
    --shell: min(100% - 26px, 420px);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  .hero-tagline {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .events h2 .calendar-range {
    font-size: 0.8em;
  }

  .amounts {
    grid-template-columns: 1fr;
  }

  .gala-facts {
    grid-template-columns: 1fr;
  }

  .hero-announcement {
    font-size: 0.76rem;
  }

  .hero-announcement-date {
    display: none;
  }
}

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .motion-ready .reveal,
  .hero-content > * {
    opacity: 1;
    transform: none;
  }

  .slide figcaption span,
  .slide figcaption strong {
    opacity: 1;
    transform: none;
  }
}
