/* The Ninfa Laurenzo Scholarship Fund — site styles
   Brand colors are set once here; change them in :root. */
:root {
  --blue: #0b1f9e;
  --navy: #071466;
  --gold: #f2c76d;
  --gold-ink: #8a5d0a;
  --red: #ac1b20;
  --orange: #f08a12;
  --green: #2f7d3a;
  --teal: #3a9fb0;
  --pink: #e0558b;
  --cream: #fbf7ef;
  --sand: #f3ecdf;
  --ink: #1b1e33;
  --muted: #5b5e70;
  --line: #e4dccb;
  --white: #fff;

  --f-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;

  --text-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --text-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --text-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem);

  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sec: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(7, 20, 102, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--text-base); line-height: 1.65; color: var(--ink); background: var(--cream); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow-wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0 var(--sec); }
.section--alt { background: var(--sand); }
.section__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.narrow { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* Type */
.eyebrow { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: var(--text-sm); color: var(--gold-ink); margin: 0 0 .9rem; }
.eyebrow--gold { color: var(--gold); }
.title { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: var(--text-xl); color: var(--navy); }
.title--sm { font-size: var(--text-lg); letter-spacing: .06em; margin-top: 2rem; }
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.script--gold { color: var(--gold-ink); font-size: 1.25em; }
.lede { font-size: var(--text-lg); line-height: 1.45; color: var(--navy); font-weight: 400; }
.lede--sm { font-size: var(--text-lg); }
.prose p:last-child { margin-bottom: 0; }
.prose--light { color: rgba(255,255,255,.9); }
.prose--light strong { color: #fff; }
.textlink { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-sm); color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.footer .textlink { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-sm); padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; line-height: 1.1; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.8rem; font-size: var(--text-base); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #ffd98a; color: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* Fiesta stripe */
.stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; }
.stripe i:nth-child(1) { background: var(--gold); }
.stripe i:nth-child(2) { background: var(--red); }
.stripe i:nth-child(3) { background: var(--blue); }
.stripe i:nth-child(4) { background: var(--orange); }
.stripe i:nth-child(5) { background: var(--green); }
.stripe i:nth-child(6) { background: var(--teal); }

/* Announcement */
.announce { background: var(--navy); color: #fff; display: flex; gap: .9rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .55rem var(--gutter); font-size: var(--text-sm); text-align: center; }
.announce__text { font-family: var(--f-script); font-size: 1.35rem; color: var(--gold); line-height: 1.2; }
.announce__btn { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; border-radius: 999px; padding: .3rem .9rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-xs); cursor: pointer; text-decoration: none; }
.announce__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251,247,239,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1280px; margin: 0 auto; padding: .6rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: 52px; }
.brand__text { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; line-height: 1.05; }
.brand__the { font-weight: 500; }
.brand__sub { font-weight: 500; font-size: .82rem; letter-spacing: .14em; color: var(--gold-ink); }
.sitenav { display: flex; align-items: center; gap: 1.1rem; }
.sitenav ul { list-style: none; display: flex; gap: .2rem; }
.sitenav ul a { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: var(--navy); text-decoration: none; padding: .5rem .55rem; border-radius: 6px; }
.sitenav ul a:hover, .sitenav ul a[aria-current="page"] { color: var(--blue); background: rgba(11,31,158,.07); }
.sitenav__donate { padding: .65rem 1.2rem; }
.navtoggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -8px; } .navtoggle__bars::after { top: 8px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(8px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .navtoggle { display: block; }
  .sitenav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.2rem; display: none; box-shadow: var(--shadow); }
  .sitenav.is-open { display: flex; }
  .sitenav ul { flex-direction: column; }
  .sitenav ul a { display: block; padding: .8rem .4rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sitenav__donate { margin-top: .8rem; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,102,.55) 0%, rgba(11,31,158,.72) 55%, rgba(7,20,102,.92) 100%); }
.hero__inner { position: relative; text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter); max-width: 900px; }
.hero__logo { width: clamp(170px, 22vw, 250px); margin: 0 auto 1.5rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.hero__quote { margin: 0 0 2rem; }
.hero__quote p { font-family: var(--f-script); color: var(--gold); font-size: var(--text-2xl); line-height: 1.15; margin: 0 0 .6rem; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero__quote cite { font-family: var(--f-label); font-style: normal; text-transform: uppercase; letter-spacing: .3em; font-size: var(--text-sm); }
.hero__ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Mission */
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mission .lede { font-size: var(--text-xl); line-height: 1.3; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.stats li { text-align: center; }
.stats__num { display: block; font-family: var(--f-label); font-weight: 700; font-size: var(--text-2xl); color: var(--blue); line-height: 1; }
.stats__label { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: .4rem; }

.photo-band { display: grid; grid-template-columns: 1.4fr 0.8fr 1.4fr; height: clamp(220px, 34vw, 440px); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* History */
.history { background: var(--blue); color: #fff; padding-bottom: 0; }
.history__head { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.5rem); margin-bottom: 2.5rem; }
.history__portrait { width: clamp(130px, 18vw, 210px); aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 0 10px rgba(242,199,109,.18); flex-shrink: 0; }
.history__title { margin: 0; color: #fff; }
.history__kicker { display: block; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; font-size: var(--text-lg); }
.history__title .script { color: var(--gold); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; }
.history__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.history__quote { color: var(--gold); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); margin: 1.6rem 0 1rem; line-height: 1.1; }
.history__archive { display: grid; grid-template-columns: 1.6fr .75fr 1fr; gap: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; height: clamp(220px, 32vw, 420px); }
.history__archive img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); }

/* Students */
.students__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.student { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 1rem; cursor: pointer; text-align: center; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; align-items: center; height: 100%; }
.student:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.student img, .student__initials { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.student__initials { display: grid; place-items: center; font-family: var(--f-script); font-size: 4rem; color: var(--blue); }
.student__name { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); font-size: 1.05rem; margin-top: .85rem; padding: 0 .6rem; line-height: 1.15; }
.student__school { font-size: var(--text-xs); color: var(--muted); padding: .2rem .7rem 0; line-height: 1.35; }
.story { display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; align-items: start; }
.story img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.story h3 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); font-size: var(--text-xl); margin: 0; }
.story__school { color: var(--gold-ink); font-weight: 600; margin: .1rem 0 1rem; }
.story__text { font-size: var(--text-base); line-height: 1.7; margin: 0; }

/* Events */
.events { background: var(--sand); }
.tba { text-align: center; background: #fff; border: 2px dashed var(--gold); border-radius: var(--radius); padding: 2rem 1.5rem; max-width: 620px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.tba__title { font-family: var(--f-script); color: var(--blue); font-size: var(--text-2xl); line-height: 1; margin: 0 0 .5rem; }
.tba p:last-child { margin: 0; }
.upcoming { list-style: none; display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.upcoming__item { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; background: #fff; border-radius: var(--radius); overflow: hidden; align-items: center; }
.upcoming__item img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.upcoming__item > div { padding: 1.5rem 1.5rem 1.5rem 0; }
.signature { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.signature__item > a, .signature__item > img { text-decoration: none; color: inherit; display: block; }
.signature__item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.signature__item h3 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); font-size: var(--text-lg); margin-bottom: .35rem; }
.signature__item p { color: var(--muted); font-size: var(--text-sm); margin-bottom: .8rem; }
.signature__item a:hover h3 { color: var(--blue); }

/* Volunteer */
.volunteer__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.volunteer__grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.volunteer .prose { margin-bottom: 1.6rem; }

/* News */
.news { background: #fff; border-top: 1px solid var(--line); }
.newslist { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: 2.5rem; }
.newslist--all { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.newsitem__link { display: flex; flex-direction: column; height: 100%; background: var(--cream); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.newsitem__link:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.newsitem:nth-child(3n+2) .newsitem__link { border-top-color: var(--red); }
.newsitem:nth-child(3n+3) .newsitem__link { border-top-color: var(--teal); }
.newsitem__meta { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; margin-bottom: .6rem; }
.newsitem__title { font-size: var(--text-lg); color: var(--navy); line-height: 1.25; margin-bottom: .6rem; }
.newsitem__summary { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.newsitem .textlink { align-self: flex-start; margin-top: auto; }

/* Interior pages */
.pagehead { background: var(--blue); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; }
.pagehead__title { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: var(--text-2xl); max-width: 22ch; margin: .6rem 0 0; line-height: 1.05; }
.pagehead__sub { font-family: var(--f-script); color: var(--gold); font-size: var(--text-xl); margin: .8rem 0 0; line-height: 1.2; }
.backlink { color: var(--gold); text-decoration: none; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-sm); font-weight: 600; }
.backlink:hover { color: #fff; }

.notice { background: #fff; border-left: 6px solid var(--red); border-radius: 8px; padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.notice--open { border-left-color: var(--green); }
.notice--soft { border-left-color: var(--gold); margin-top: 2rem; }
.notice__title { font-weight: 700; color: var(--navy); font-size: var(--text-lg); line-height: 1.35; }
.notice p:last-child { margin-bottom: 0; }

.apply { display: grid; grid-template-columns: 1fr 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.reqs { padding-left: 1.4rem; display: grid; gap: .8rem; }
.reqs li::marker { font-family: var(--f-label); font-weight: 700; color: var(--blue); }
.prompt { background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 2rem; }
.prompt p:last-child { margin: 0; font-style: italic; }
.apply__side { position: sticky; top: 110px; }
.docs { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.docs a { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); padding: .85rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--navy); line-height: 1.3; }
.docs a:hover { border-color: var(--blue); }
.docs__icon { font-family: var(--f-label); font-size: .75rem; letter-spacing: .08em; background: var(--red); color: #fff; padding: .25rem .4rem; border-radius: 4px; flex-shrink: 0; }

.market { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.market .title--sm:first-child { margin-top: 0; }
.market__img { border-radius: var(--radius); position: sticky; top: 110px; }
.dates { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.dates li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; color: var(--navy); font-size: var(--text-sm); }
.dates li.is-past { color: var(--muted); text-decoration: line-through; opacity: .7; }
.dates__note { margin-top: .8rem; }
.rules { padding-left: 1.2rem; display: grid; gap: .45rem; }
.market__ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 .6rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: var(--text-sm); }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .9rem; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(11,31,158,.15); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row--3 { grid-template-columns: 2fr 1fr 1fr; }
.form fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: .8rem; background: rgba(255,255,255,.5); }
.form legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; font-size: var(--text-sm); }
.checks { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.checks--cols { grid-template-columns: repeat(3, 1fr); align-items: start; }
.checkgroup { display: grid; gap: .3rem; }
.checkgroup__title { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold-ink); margin: 0 0 .2rem; }
.form .check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; color: var(--ink); cursor: pointer; }
.form .check input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); margin-top: .25rem; flex-shrink: 0; }
.form .check--block { font-size: var(--text-sm); }
.form .check.is-past { display: none; }
.form__error { color: var(--red); font-weight: 600; margin: 0; }
.form__note { margin: -.3rem 0 0; }
.form .btn { justify-self: start; }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__side img { border-radius: var(--radius); margin-top: 1.5rem; }

/* Celebration */
.letter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.letter img { border-radius: var(--radius); box-shadow: var(--shadow); }
.letter__greet { font-size: var(--text-xl); color: var(--blue); margin-bottom: .6rem; }
.gallery { list-style: none; columns: 3 260px; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery__item { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: 10px; overflow: hidden; }
.gallery__item img { width: 100%; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.sponsors { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sponsors img { border-radius: 8px; border: 1px solid var(--line); }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 18px; max-width: min(760px, 94vw); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.35); background: #fff; }
.modal::backdrop { background: rgba(7,20,102,.7); backdrop-filter: blur(3px); }
.modal__box { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal__close { position: absolute; top: .5rem; right: .7rem; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer; padding: .3rem .6rem; border-radius: 8px; }
.modal__close:hover { background: var(--sand); }
.modal--media { max-width: min(1100px, 96vw); background: #000; }
.modal--media .modal__box { padding: 0; }
.modal--media .modal__close { color: #fff; z-index: 2; background: rgba(0,0,0,.4); }
.modal--media img { width: 100%; max-height: 82vh; object-fit: contain; }
.modal--media figcaption { color: #fff; padding: .8rem 1.2rem; font-size: var(--text-sm); }
.modal--video { max-width: min(480px, 92vw); }
.video { position: relative; aspect-ratio: 4/5; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.88); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.footer__logo { width: 120px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 1.4rem; }
.footer__msg { font-size: var(--text-lg); line-height: 1.45; color: #fff; max-width: 34ch; }
.footer__ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.footer__qr { width: 110px; height: 110px; background: #fff; border-radius: 10px; padding: 6px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer__links { list-style: none; display: grid; gap: .35rem; font-size: var(--text-sm); }
.footer__links a { text-decoration: none; }
.footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 1.4rem var(--gutter) 2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--text-xs); color: rgba(255,255,255,.65); }

/* Responsive */
@media (max-width: 900px) {
  .mission__grid, .history__cols, .volunteer__grid, .apply, .market, .contact, .letter, .footer__inner { grid-template-columns: 1fr; }
  .signature, .newslist { grid-template-columns: 1fr 1fr; }
  .apply__side, .market__img { position: static; }
  .checks--cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand__text { font-size: .92rem; }
  .brand img { width: 44px; height: 44px; }
  .stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band img:nth-child(3) { display: none; }
  .history__head { flex-direction: column; text-align: center; }
  .history__archive { grid-template-columns: 1fr 1fr; height: auto; }
  .history__archive img { aspect-ratio: 1; }
  .history__archive img:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .students__grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .story { grid-template-columns: 1fr; text-align: center; }
  .story img { margin: 0 auto; width: 130px; height: 130px; }
  .signature, .newslist, .newslist--all, .footer__cols { grid-template-columns: 1fr; }
  .upcoming__item { grid-template-columns: 1fr; }
  .upcoming__item > div { padding: 0 1.3rem 1.4rem; }
  .form__row, .form__row--3, .checks--cols { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Long emails/URLs never overflow small screens */
main a, .notice, .footer a { overflow-wrap: anywhere; }
.apply__main, .apply__side, .grid > * { min-width: 0; }
