/* ============================================================
   NEGRETE SCHOLARSHIP — Design System
   Tokens drive everything; Tweaks flip data-* attributes on <html>.
   ============================================================ */

/* ---------- Color schemes (raw brand hues) ---------- */
:root,
[data-scheme="navy"] {
  --primary: #1d4e89;
  --primary-strong: #16386b;
  --primary-soft: #7aa7d8;
  --gold: #f0a429;
  --gold-soft: #f6c468;
  --ink: #0d1f38;     /* deep background for dark mode */
  --paper: #faf8f3;   /* page background for light mode */
  --tint: #eef3fa;    /* alternating light section */
}
[data-scheme="forest"] {
  --primary: #1f5a44;
  --primary-strong: #143f30;
  --primary-soft: #74b196;
  --gold: #cf9a35;
  --gold-soft: #e3bd6f;
  --ink: #0b1f17;
  --paper: #f8f7f0;
  --tint: #edf3ee;
}
[data-scheme="burgundy"] {
  --primary: #7a2233;
  --primary-strong: #591826;
  --primary-soft: #cd8c9c;
  --gold: #cf9a35;
  --gold-soft: #e6c277;
  --ink: #260d12;
  --paper: #faf6f3;
  --tint: #f6ecec;
}
[data-scheme="slate"] {
  --primary: #2f4669;
  --primary-strong: #213450;
  --primary-soft: #93abcd;
  --gold: #c4703a;
  --gold-soft: #e0966a;
  --ink: #131f2e;
  --paper: #f7f7f4;
  --tint: #eef1f6;
}

/* ---------- Theme mapping (light / dark) ---------- */
[data-theme="light"] {
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: var(--tint);
  --text: #1b212e;
  --text-soft: #59616f;
  --border: color-mix(in srgb, var(--primary) 16%, transparent);
  --hairline: color-mix(in srgb, var(--primary) 9%, transparent);
  --heading: var(--primary);
  --accent: var(--primary);
  --on-accent: #ffffff;
  --eyebrow: color-mix(in srgb, var(--gold) 78%, #7a4b00);
  --shadow-sm: 0 2px 10px -6px color-mix(in srgb, var(--primary) 50%, #000);
  --shadow: 0 24px 60px -34px color-mix(in srgb, var(--primary) 62%, #000);
  --nav-bg: color-mix(in srgb, var(--paper) 80%, transparent);
  --hero-glow: color-mix(in srgb, var(--primary) 8%, transparent);
}
[data-theme="dark"] {
  --bg: var(--ink);
  --surface: color-mix(in srgb, var(--ink) 84%, #ffffff 9%);
  --surface-2: color-mix(in srgb, var(--ink) 91%, #ffffff 4%);
  --text: #ece8df;
  --text-soft: color-mix(in srgb, #ece8df 62%, transparent);
  --border: color-mix(in srgb, #ffffff 13%, transparent);
  --hairline: color-mix(in srgb, #ffffff 8%, transparent);
  --heading: #f5f2ea;
  --accent: var(--primary-soft);
  --on-accent: #0c1c33;
  --eyebrow: var(--gold-soft);
  --shadow-sm: 0 2px 12px -6px rgba(0,0,0,.6);
  --shadow: 0 26px 64px -34px rgba(0,0,0,.78);
  --nav-bg: color-mix(in srgb, var(--ink) 74%, transparent);
  --hero-glow: color-mix(in srgb, var(--primary) 30%, transparent);
}

/* gold button colors (work on both themes) */
:root {
  --on-gold: #2a1a02;
  --maxw: 1160px;
}

/* ---------- Typography pairings ---------- */
[data-font="garamond"] {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --display-weight: 600;
  --display-tracking: 0em;
  --display-scale: 1.08;
}
[data-font="baskerville"] {
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.005em;
  --display-scale: 0.9;
}
[data-font="spectral"] {
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.005em;
  --display-scale: 0.96;
}

/* ---------- Density (section rhythm) ---------- */
[data-density="compact"]  { --section-y: clamp(48px, 6vw, 72px); }
[data-density="regular"]   { --section-y: clamp(72px, 9vw, 116px); }
[data-density="spacious"]  { --section-y: clamp(104px, 13vw, 168px); }

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { background: var(--bg); }
/* The preview/runtime locks html & body backgrounds, so paint the themed
   page backdrop with a fixed layer behind all content instead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  transition: background-color .4s ease;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--heading);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface-2); }
.section--primary { background: var(--primary-strong); color: #fff; }
.section--primary h2, .section--primary h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--eyebrow);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-size: calc(clamp(2rem, 4.4vw, 3.3rem) * var(--display-scale));
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: 1.12rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85em;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: var(--pad-y) 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.3,.7,.4,1), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: var(--shadow); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--border); color: var(--heading); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn--lg { font-size: 1.02rem; --pad-y: 1em; padding-inline: 1.9em; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Sunburst motif (pure CSS) ---------- */
.sunburst {
  position: absolute;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      var(--gold) 0deg 2.2deg,
      transparent 2.2deg 18deg);
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 63%, #000 76%, transparent 78%);
  mask: radial-gradient(closest-side, transparent 62%, #000 63%, #000 76%, transparent 78%);
  opacity: .5;
  pointer-events: none;
}
[data-motion="full"] .sunburst--spin { animation: spin 90s linear infinite; }
[data-motion="subtle"] .sunburst--spin { animation: spin 220s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sunburst--spin { animation: none !important; } }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is VISIBLE by default — the entrance is a one-shot animation added
   on intersect. If JS/animation never runs, content simply shows (no blank). */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-motion="subtle"] .reveal.in { animation: revealUp .8s cubic-bezier(.22,.61,.36,1) both; }
  [data-motion="full"] .reveal.in { animation: revealUp 1s cubic-bezier(.22,.61,.36,1) both; }
  [data-motion="full"] .reveal.in { --rev-shift: 38px; }
  .reveal.in[data-d="1"] { animation-delay: .08s; }
  .reveal.in[data-d="2"] { animation-delay: .16s; }
  .reveal.in[data-d="3"] { animation-delay: .24s; }
  .reveal.in[data-d="4"] { animation-delay: .32s; }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(var(--rev-shift, 20px)); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.3,.7,.4,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }

/* ---------- Image slot styling ---------- */
image-slot[shape="circle"] { border-radius: 50%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.12rem;
  line-height: 1;
  color: var(--heading);
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-top: .25em;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a.lnk {
  font-size: .92rem; font-weight: 500; color: var(--text-soft);
  position: relative; padding: .3em 0;
  transition: color .2s;
}
.nav__links a.lnk::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav__links a.lnk:hover { color: var(--heading); }
.nav__links a.lnk:hover::after { width: 100%; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 128px; padding-bottom: clamp(60px, 8vw, 110px); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 78% 8%, var(--hero-glow), transparent 60%),
    radial-gradient(60% 80% at 8% 100%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 55%);
}
.hero .sunburst--hero { width: 460px; height: 460px; top: -150px; right: -120px; opacity: .28; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--eyebrow);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .5em 1em; margin-bottom: 1.6rem;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); flex-shrink: 0; }
.hero__eyebrow-short { display: none; }
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  font-size: calc(clamp(2.9rem, 6.6vw, 5.4rem) * var(--display-scale));
  line-height: 1.02;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero__sub { margin-top: 1.5rem; font-size: 1.2rem; color: var(--text-soft); max-width: 46ch; }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__stats { margin-top: 3rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.3rem; color: var(--heading); line-height: 1; }
.stat__lbl { font-size: .82rem; color: var(--text-soft); margin-top: .35rem; letter-spacing: .02em; }
.stat + .stat { padding-left: 2.4rem; border-left: 1px solid var(--hairline); }

.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; z-index: 0; inset: -16% -14% -18% -14%;
  border-radius: 44px;
  background:
    radial-gradient(48% 46% at 84% 14%, color-mix(in srgb, var(--gold) 78%, transparent), transparent 66%),
    radial-gradient(58% 54% at 10% 98%, color-mix(in srgb, var(--primary) 66%, transparent), transparent 68%);
  filter: blur(30px);
  opacity: .55;
  pointer-events: none;
}
[data-theme="dark"] .hero__media::before { opacity: .8; }
.hero__media .frame {
  position: relative; z-index: 1; border-radius: 24px; overflow: hidden;
  background: var(--surface); padding: 9px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--hairline));
  box-shadow:
    0 30px 60px -30px color-mix(in srgb, var(--primary) 62%, transparent),
    0 14px 36px -24px color-mix(in srgb, var(--gold) 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent);
}
.hero__media .frame image-slot { border-radius: 15px; overflow: hidden; display: block; }
.hero__media image-slot { width: 100%; height: 520px; }
.hero__badge {
  position: absolute; left: -26px; bottom: 34px; z-index: 3;
  /* White chip — readable on the dark photo in every theme. nowrap + content
     sizing keeps each line intact (no "Applications open / now" breakage). */
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 16px; padding: .9rem 1.15rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .85rem; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.3,.7,.4,1), box-shadow .25s ease, border-color .25s ease;
}
a.hero__badge:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--primary) 55%, #000);
}
a.hero__badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero__badge img { height: 46px; }
.hero__badge__text b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--primary); line-height: 1.15; }
.hero__badge__text span { font-size: .8rem; color: #59616f; }
.hero__badge__arrow { margin-left: .5rem; font-size: 1.15rem; color: var(--primary); transition: transform .25s ease; }
a.hero__badge:hover .hero__badge__arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 12px; }
}

/* Phone: keep the two CTAs side by side, and the stat strip as a tidy 3-up row
   (instead of a wrapping flexbox where the third stat drops to its own line). */
@media (max-width: 560px) {
  /* Shorter eyebrow text so it stays on one line in the pill */
  .hero__eyebrow { letter-spacing: .1em; }
  .hero__eyebrow-full { display: none; }
  .hero__eyebrow-short { display: inline; }

  .hero__cta { flex-wrap: nowrap; gap: .7rem; margin-top: 1.8rem; }
  .hero__cta .btn { flex: 1 1 0; justify-content: center; }
  .hero__cta .btn--lg { font-size: .94rem; padding-inline: 1.05em; }

  .hero__stats { margin-top: 2.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero__stats .stat { padding: 0 .55rem; }
  .hero__stats .stat:first-child { padding-left: 0; }
  .stat + .stat { padding-left: .9rem; }
  .stat__num { font-size: 1.7rem; }
  .stat__lbl { font-size: .72rem; }
}

/* ============================================================
   ABOUT / PILLARS
   ============================================================ */
.lead { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.14; color: var(--heading); font-family: var(--font-display); font-weight: var(--display-weight); max-width: 19ch; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__intro { position: relative; }
.about__intro .eyebrow { margin-bottom: 1.6rem; }
.about__body { padding-top: .4rem; }
.about__body p + p { margin-top: 1.1rem; }
.about__body p { color: var(--text-soft); font-size: 1.08rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pillar { padding: 1.8rem 1.6rem; }
.pillar__mark {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  position: relative;
}
.pillar__mark .ray {
  width: 26px; height: 26px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0 3deg, transparent 3deg 22.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 56%);
  mask: radial-gradient(closest-side, transparent 54%, #000 56%);
}
.pillar__mark .core { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.pillar h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pillar p { color: var(--text-soft); font-size: .98rem; }

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   RECIPIENTS
   ============================================================ */
.recip-group + .recip-group { margin-top: clamp(2.5rem, 5vw, 3.6rem); }
.recip-group__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.recip-group__year {
  font-family: var(--font-display); font-weight: var(--display-weight);
  color: var(--heading); font-size: 1.3rem; white-space: nowrap;
}
.recip-group__rule { flex: 1; height: 1px; background: var(--border); }
.recip-group__count {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); white-space: nowrap;
}

.recips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.recips--3 { grid-template-columns: repeat(3, 1fr); }
.recip {
  padding: 2.2rem 1.8rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.recip image-slot { width: 124px; height: 124px; flex-shrink: 0; box-shadow: var(--shadow-sm); margin-bottom: 1.3rem; }
.recip__tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: .5rem; display: block; width: 100%;
}
.recip h3 { font-size: 1.4rem; line-height: 1.12; text-wrap: normal; width: 100%; }
.recip__meta { color: var(--text-soft); font-size: .92rem; margin-top: .5rem; width: 100%; }
.recip p.note { margin-top: .9rem; color: var(--text-soft); font-size: .95rem; max-width: 30ch; width: 100%; }
.recip__dest {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .45em;
  font-size: .76rem; font-weight: 600; color: var(--accent); white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: .45em .9em; border-radius: 999px;
}
.recip__dest::before { content: "→"; color: var(--gold); font-weight: 700; }

@media (max-width: 820px) {
  .recips, .recips--3 { grid-template-columns: 1fr; }
}
@media (min-width: 521px) and (max-width: 820px) {
  .recips--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EVENTS
   ============================================================ */
.events-head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.follow-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.3rem 1.5rem; border: 1px solid var(--hairline); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-sm); justify-self: end; max-width: 380px;
  transition: transform .35s cubic-bezier(.3,.7,.4,1), box-shadow .35s, border-color .35s;
}
.follow-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border); }
.follow-card__emblem {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; position: relative;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
}
.follow-card__emblem .ray {
  width: 28px; height: 28px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0 3deg, transparent 3deg 22.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 56%);
  mask: radial-gradient(closest-side, transparent 54%, #000 56%);
}
.follow-card__emblem .core { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); }
.follow-card__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.follow-card__text b { font-family: var(--font-display); color: var(--heading); font-size: 1.02rem; line-height: 1.15; overflow-wrap: anywhere; }
.follow-card__text span { font-size: .85rem; color: var(--text-soft); line-height: 1.4; }
.follow-card__arrow { color: var(--accent); font-size: 1.1rem; margin-left: auto; flex-shrink: 0; transition: transform .25s; }
.follow-card:hover .follow-card__arrow { transform: translateX(3px); }

.event { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.event image-slot { width: 100%; height: 420px; box-shadow: var(--shadow); }
.event__tag {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 1rem;
}
.event h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.event p { color: var(--text-soft); font-size: 1.08rem; }
.event__meta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.event__meta .row { display: flex; align-items: center; gap: .7rem; font-size: .98rem; }
.event__meta .row b { color: var(--heading); font-weight: 600; min-width: 76px; }
.event__cta { margin-top: 2rem; }

/* more events list */
.more-events { margin-top: clamp(3rem, 6vw, 4.8rem); }
.more-events__title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--heading); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1.1rem;
}
.more-events__title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.event-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.7rem; }
.event-card__date {
  flex-shrink: 0; width: 58px; text-align: center; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--hairline); margin-bottom: 1.2rem;
}
.event-card__date .m {
  display: block; background: var(--accent); color: var(--on-accent);
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; padding: .35em 0;
}
.event-card__date .d {
  display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.5rem; color: var(--heading); padding: .18em 0; line-height: 1;
}
.event-card__body { min-width: 0; width: 100%; }
.event-card__tag {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow);
}
.event-card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--heading); margin: .35rem 0 .6rem; line-height: 1.14; text-wrap: normal; }
.event-card__meta { font-size: .84rem; color: var(--text); font-weight: 600; line-height: 1.5; }
.event-card__desc { font-size: .9rem; color: var(--text-soft); margin-top: .6rem; line-height: 1.55; }

@media (max-width: 900px) { .event-cards { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .events-head { grid-template-columns: 1fr; }
  .follow-card { justify-self: stretch; max-width: none; }
  .event { grid-template-columns: 1fr; }
  .event__media { order: -1; }
  .event image-slot { height: 300px; }
}

/* ============================================================
   DONATE
   ============================================================ */
.donate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.4rem); align-items: center; }
.give-cards { display: grid; gap: 1.2rem; }
.give {
  display: flex; gap: 1.1rem; padding: 1.5rem 1.6rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  transition: background .3s, transform .3s;
}
.give:hover { transform: translateX(4px); background: rgba(255,255,255,.1); }
.give__n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); line-height: 1; min-width: 1.4em; }
.give h4 { font-family: var(--font-display); color: #fff; font-size: 1.25rem; margin-bottom: .35rem; }
.give p { color: rgba(255,255,255,.72); font-size: .96rem; }
.donate__aside h2 { color: #fff; }
.donate__aside .eyebrow { color: var(--gold-soft); }
.donate__aside p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-top: 1rem; }
.taxbox {
  margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 14px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.7;
}
.taxbox b { color: #fff; }
.donate__cta { margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap; }

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.contact__list { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.contact__row { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--hairline); }
.contact__row:last-child { border-bottom: 0; }
.contact__row .k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); min-width: 92px; padding-top: .35em; }
.contact__row .v { font-size: 1.15rem; color: var(--heading); font-family: var(--font-display); }
.contact__row .v a:hover { color: var(--gold); }
.contact__card { padding: 2.2rem; text-align: center; }
.contact__card img { height: 84px; margin: 0 auto 1.2rem; }
.contact__card h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.contact__card p { color: var(--text-soft); margin-bottom: 1.6rem; }

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary-strong); color: rgba(255,255,255,.78); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer__brand { max-width: 320px; }
.footer__brand img { height: 56px; margin-bottom: 1rem; }
.footer__brand p { font-size: .95rem; color: rgba(255,255,255,.7); }
.footer__nav { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer__col h5 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer__col a { display: block; color: rgba(255,255,255,.74); font-size: .95rem; padding: .3em 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ============================================================
   APPLY PAGE
   ============================================================ */
.apply-intro { position: relative; overflow: hidden; }
.apply-intro::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(64% 56% at 80% 14%, var(--hero-glow), transparent 60%),
    radial-gradient(58% 60% at 4% 96%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 55%);
}
.apply-intro > * { position: relative; z-index: 1; }
.req-section { padding-top: clamp(1.5rem, 4vw, 3rem); }

.apply-hero { padding-top: 140px; padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.apply-hero .sunburst--hero { width: 380px; height: 380px; top: -120px; right: -80px; opacity: .22; }
.apply-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.apply-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-size: calc(clamp(2.5rem,5.5vw,4.2rem) * var(--display-scale)); margin-top: .6rem; }
.apply-hero p { margin-top: 1.3rem; font-size: 1.18rem; color: var(--text-soft); max-width: 52ch; }
.deadline-pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.8rem;
  background: color-mix(in srgb, var(--gold) 18%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--eyebrow); border-radius: 999px; padding: .55em 1.1em; font-size: .9rem; font-weight: 600;
}

.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.req-card { padding: 2rem; }
.req-card h3 { font-size: 1.45rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.req-list li { display: flex; gap: .8rem; font-size: 1rem; color: var(--text-soft); line-height: 1.5; }
.req-list li .chk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--eyebrow);
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
@media (max-width: 760px) { .req-grid { grid-template-columns: 1fr; } }

/* ---- Wizard ---- */
.wizard { max-width: 720px; margin-inline: auto; }
.wizard__steps { display: flex; gap: .5rem; margin-bottom: 2.4rem; }
.wstep { flex: 1; text-align: center; position: relative; }
.wstep__bar { height: 4px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.wstep__bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s cubic-bezier(.4,0,.2,1); }
.wstep.active .wstep__bar i, .wstep.done .wstep__bar i { width: 100%; }
.wstep__lbl { font-size: .72rem; font-weight: 600; letter-spacing: .04em; margin-top: .6rem; color: var(--text-soft); transition: color .3s; }
.wstep.active .wstep__lbl, .wstep.done .wstep__lbl { color: var(--heading); }
@media (max-width: 640px) { .wstep__lbl { display: none; } }

.wcard { padding: clamp(1.8rem, 4vw, 2.8rem); }
.wcard h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.wcard__sub { color: var(--text-soft); margin-top: .5rem; margin-bottom: 2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--heading); margin-bottom: .5rem; }
.field label .opt { color: var(--text-soft); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px;
  padding: .85em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  background: var(--surface);
}
.field input.err, .field textarea.err { border-color: #d4564b; box-shadow: 0 0 0 4px rgba(212,86,75,.14); }
.field .msg { font-size: .8rem; color: #d4564b; margin-top: .4rem; min-height: 1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.upload {
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 1.6rem; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; position: relative;
}
.upload:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .ico { font-size: 1.4rem; color: var(--accent); }
.upload .t { font-weight: 600; color: var(--heading); margin-top: .4rem; font-size: .95rem; }
.upload .s { font-size: .82rem; color: var(--text-soft); margin-top: .2rem; }
.upload.filled { border-style: solid; border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.upload.filled .t { color: var(--eyebrow); }

.consent { display: flex; gap: .9rem; padding: 1.3rem; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--border); align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent label { font-size: .92rem; color: var(--text-soft); line-height: 1.6; }

.wnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.review-list { display: grid; gap: 1rem; }
.review-item { padding: 1rem 1.2rem; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--hairline); }
.review-item .k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .3rem; }
.review-item .v { color: var(--text); font-size: 1rem; white-space: pre-wrap; }
.review-item .v.empty { color: var(--text-soft); font-style: italic; }

.success { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 2rem; }
.success__mark { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.6rem; background: color-mix(in srgb, var(--gold) 20%, transparent); display: grid; place-items: center; }
.success__mark .ring { width: 84px; height: 84px; position: absolute; }
.success h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.success p { color: var(--text-soft); margin: 1rem auto 0; max-width: 48ch; font-size: 1.08rem; }
.success__actions { margin-top: 2.2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* fade between steps — translate only so content is never hidden if the
   animation is frozen mid-frame (visible base state). */
.step-anim { animation: stepIn .45s cubic-bezier(.22,.61,.36,1); }
@keyframes stepIn { from { transform: translateY(12px); } to { transform: none; } }
[data-motion="off"] .step-anim { animation: none; }

/* ============================================================
   PRODUCTION IMAGE SLOTS
   Real <img> replacements for the prototype <image-slot> web
   component. Dimensions/shapes mirror the original slot styling.
   ============================================================ */
.hero__media .frame img.hero__photo {
  width: 100%; height: 520px;
  object-fit: cover; display: block;
  border-radius: 15px;
}
.recip img.recip__photo {
  width: 124px; height: 124px;
  object-fit: cover; display: block;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.event__media img.event__photo {
  width: 100%; height: 420px;
  object-fit: cover; display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .hero__media .frame img.hero__photo { height: 320px; }
  .event__media img.event__photo { height: 300px; }
}
