/* Dream Builders Mission site styles (November 2026 design).
   Layout and proportions follow radiatinghope.org; sizes are fluid against its 1425 px desktop measurements. */
:root {
  --black: #000;
  --white: #fff;
  --grey: #6b7177;
  --line: #d9e0e5;
  --mist: #f2f7f7;
  --chip: #eef3f4;
  --teal: #0e6e78;
  --fs: clamp(17px, 1.467vw, 22px);          /* body, 20.9 px at 1425 */
  --fs-s: 16px;
  --fs-h2: clamp(32px, 3.48vw, 54px);        /* section titles, 49.6 px */
  --fs-xl: clamp(40px, 5.28vw, 82px);        /* big statements, 75.3 px */
  --fs-story: clamp(22px, 2.2vw, 34px);
  --gut: clamp(16px, 5.6vw, 96px);           /* 80 px side margin */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 var(--fs)/1.4 var(--font); letter-spacing: -.02em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; font-weight: 400; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }

.display { font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.025em; }

/* Pill buttons */
.pbtn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border-radius: 999px; font-size: var(--fs-s); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.pbtn-white { background: #fff; color: #000; }
.pbtn-white:hover { background: #ececec; }
.pbtn-ghost { border: 1.5px solid #fff; color: #fff; background: transparent; }
.pbtn-ghost:hover { background: #fff; color: #000; }
.pbtn-black { background: #000; color: #fff; }
.pbtn-black:hover { background: #2b2b2b; }
.pbtn-line { background: #fff; border-color: var(--line); color: #000; }
.pbtn-pumpkin { background: #d9631e; color: #fff; box-shadow: 0 10px 28px -12px rgba(120,40,0,.6); }
.pbtn-pumpkin:hover { background: #b9500f; }
.pbtn-line:hover { border-color: #000; }
.pbtn-sm { height: 48px; }

/* Announcement bar; i18n.js adds the EN/ES switch at its end */
.topbar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 110px; background: #e7f1f1; font-size: var(--fs-s); line-height: 1.3; }
.tb-news { display: inline-flex; align-items: center; gap: 8px; text-align: center; }
.tb-news b { padding: 3px 7px; border-radius: 3px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.tb-news svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.tb-news:hover svg { transform: translateX(3px); }
.tb-contact-area { display: none; }
.lang-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.lang-toggle button { border: 0; background: transparent; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--grey); cursor: pointer; }
.lang-toggle button.active { background: #000; color: #fff; }

/* Header over the hero */
.hdr { position: fixed; z-index: 30; left: 0; right: 0; top: 42px; height: 120px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); color: #fff; pointer-events: none; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hdr.hide-ends .brand, .hdr.hide-ends .hdr-right { opacity: 0; pointer-events: none; }
.hdr.scrolled { color: #000; height: 96px; transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s; }
.hdr.scrolled:not(.hide-ends) { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.hdr.scrolled .pill { top: 25px; }
.hdr.scrolled .hdr-help { color: #444; }
.hdr.scrolled .hdr-right .pbtn-white { background: #000; color: #fff; }
.hdr.scrolled .hdr-right .pbtn-white:hover { background: #2b2b2b; }
.hdr > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; transition: opacity .3s; }
.brand img { width: 60px; height: 60px; border-radius: 50%; }
.brand b { font-weight: 600; letter-spacing: .14em; }
.hdr-right { display: flex; align-items: center; gap: 24px; transition: opacity .3s; }
.hdr-help { font-size: var(--fs-s); font-weight: 500; }
.hdr-help:hover { text-decoration: underline; text-underline-offset: 4px; }
.hdr-right .pbtn { height: 48px; }

/* Center menu pill; floats at the top once the page scrolls */
.pill { position: absolute; left: 50%; top: 37px; transform: translateX(-50%); display: flex; gap: 2px; padding: 0 6px; height: 46px; align-items: center; border-radius: 8px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); transition: background-color .3s, color .3s; }
.hdr.scrolled .pill { background: rgba(221,221,221,.58); }
.dd { position: relative; }
.dd > button { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 10px; border: 0; background: transparent; font-size: var(--fs-s); font-weight: 500; cursor: pointer; }
.dd > button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.dd-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 220px; padding: 8px; border-radius: 8px; background: #fff; color: #000; box-shadow: 0 16px 40px -12px rgba(0,0,0,.28); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: var(--fs-s); }
.dd-menu a:hover { background: var(--mist); }
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover > button svg, .dd.open > button svg { transform: rotate(180deg); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); position: relative; cursor: pointer; }
.hdr.scrolled .menu-btn { background: rgba(221,221,221,.58); }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 23px; } .menu-btn span:nth-child(3) { top: 29px; }

/* Hero */
.hero { position: relative; height: calc(100svh - 42px); min-height: 620px; max-height: 1000px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #fff; }
.hero-mask { position: absolute; inset: 0; overflow: hidden; background: #1c2a2b; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-mask::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 30%), linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.05) 100%), linear-gradient(0deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 40%); }
.hero-in { position: relative; padding: 0 var(--gut) clamp(40px, 6.5vh, 70px); max-width: calc(800px + 2 * var(--gut)); }
.hero h1 { font-size: var(--fs-xl); line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; max-width: 11em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* Opening sequence start states (js/site.js plays it; html.anim is removed if the animation library is missing) */
.anim .hero-mask { clip-path: polygon(30% 30%, 70% 30%, 70% 70%, 30% 70%); transform: translateY(100%) scaleY(2); }
.anim .hero-img { transform: scale(1.5); }
.anim .hero-h { visibility: hidden; }
.anim .hero-btns, .anim .hdr, .anim .tb-news, .anim .lang-toggle { opacity: 0; }

/* Split text: lines slide up from behind a mask; story letters fill in */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln-i { display: block; will-change: transform; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wd { display: inline-block; white-space: nowrap; }
.ov { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }

/* Statement */
.statement { padding: clamp(80px, 9.2vw, 140px) var(--gut) clamp(100px, 13vw, 190px); text-align: center; border-bottom: 1px solid var(--line); }
.statement .display { max-width: 1260px; margin: 0 auto; }

/* Our story: the text fills from grey to black as it scrolls into view */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; padding: clamp(64px, 6.5vw, 100px) var(--gut) clamp(96px, 10vw, 150px); }
.story-k { font-size: var(--fs-s); }
/* The label and photo sit as one block toward the middle of the page, next to the text */
.story-l { justify-self: end; width: min(440px, 100%); margin-right: clamp(0px, 4.5vw, 72px); }
.story-photo { margin: 28px 0 0; max-width: 440px; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 16%; border-radius: 8px; }
.story-text { padding-top: 50px; }
.story-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--grey); letter-spacing: -.01em; }
.story-text { font-size: var(--fs-story); line-height: 1.4; letter-spacing: -.025em; max-width: 640px; }
.story-text p + p { margin-top: 1em; }
.story-text .ch { will-change: opacity; }

/* Map */
.mapsec { position: relative; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(80px, 10vw, 150px); }
.map { position: relative; width: min(760px, 86vw); margin: 0 auto; }
.map-clip { position: relative; }
.map img { width: 100%; height: auto; }
.map-ping { position: absolute; left: 66.96%; top: 45.49%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--teal); }
.map-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); }
@media (prefers-reduced-motion: no-preference) { .map-ping::after { animation: ping 2.4s ease-out infinite; } @keyframes ping { to { transform: scale(5); opacity: 0; } } }
.map-text { position: absolute; left: 50%; top: 55%; width: min(1180px, calc(100vw - 2 * var(--gut))); transform: translateX(-50%); text-align: center; }
.map-text .display { text-shadow: 0 0 30px #fff, 0 0 12px #fff; }
.map-text p { margin: 14px auto 28px; max-width: 860px; text-shadow: 0 0 14px #fff, 0 0 6px #fff; }

/* Sponsors: label and line on the left, a divider, then the logos scrolling left (like OnEarth's partner strip) */
.sponsors { display: flex; align-items: center; gap: 40px; margin: 0 var(--gut); padding: 0 0 clamp(80px, 9vw, 130px); }
.sp-text { flex: 0 0 440px; display: flex; flex-direction: column; gap: 16px; padding-right: 40px; border-right: 1px solid #ccc; }
.sp-k { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.sp-k .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.sp-p { font-size: 16px; line-height: 1.5; letter-spacing: -.01em; color: #616161; }
.sp-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.sp-track { display: flex; width: max-content; animation: sp-scroll var(--sp-dur, 22s) linear infinite; }
.sp-marquee:hover .sp-track { animation-play-state: paused; }
.sp-set { display: flex; align-items: center; gap: 72px; padding: 6px 72px 6px 0; margin: 0; list-style: none; }
.sp-set img { height: 32px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.sp-set img.sp-tall { height: 46px; }
.sp-set img:hover { filter: none; opacity: 1; }
@keyframes sp-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sp-track { animation: none; width: auto; }
  .sp-set { flex-wrap: wrap; row-gap: 24px; padding-right: 0; }
  .sp-set[aria-hidden] { display: none; }
  .sp-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Donate */
.give { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: clamp(80px, 9vw, 130px) var(--gut) clamp(90px, 10vw, 150px); color: #fff; text-align: center; }
.give-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.give::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15,24,26,.42); }
.give > .display { max-width: 1000px; }
.give-card { width: min(544px, 100%); margin-top: 44px; padding: 32px 32px 0; border-radius: 20px; background: #fff; color: #000; text-align: center; overflow: hidden; }
.give-lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: -.02em; max-width: 380px; margin: 0 auto 28px; }
.gform { border: 1px solid #e5e8eb; border-radius: 12px 12px 0 0; border-bottom: 0; padding: 22px 16px 0; text-align: left; font-size: 15px; letter-spacing: 0; }
.gform-k { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.gform-k svg { width: 17px; height: 17px; fill: #12a150; }
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: #f1f3f5; margin-bottom: 16px; }
.freq button { height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; }
.freq button.on { background: #fff; border-color: var(--teal); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.amts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.amts button { height: 50px; border: 1.5px solid transparent; border-radius: 6px; background: #f1f3f5; font-size: 16px; font-weight: 600; cursor: pointer; }
.amts button:hover { background: #e7eaee; }
.amts button.on { background: #fff; border-color: var(--teal); color: var(--teal); }
.other { display: flex; align-items: center; gap: 6px; height: 50px; margin-top: 12px; padding: 0 14px; border: 1px solid #dfe3e7; border-radius: 6px; font-size: 16px; }
.other:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,110,120,.15); }
.other span:first-child { color: #555; }
.other span:last-child { color: #777; font-size: 14px; }
.other input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.note-tg { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.note-tg input { width: 18px; height: 18px; accent-color: var(--teal); }
#noteTxt { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #dfe3e7; border-radius: 6px; font: inherit; font-size: 15px; resize: vertical; }
.gform-go { width: 100%; height: 50px; margin-top: 18px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.gform-go:hover { background: #0a5560; }
.gform-go:disabled { background: #a9cbcf; cursor: default; }
.gform-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px -16px 0; padding: 12px; background: #f3f4f6; font-size: 14px; font-weight: 500; color: #333; }
.gform-foot svg { width: 15px; height: 15px; fill: currentColor; }
.give-after { margin-top: clamp(40px, 4.5vw, 64px); }

/* Two-column intro (Fight hunger with us, In the news) */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two h2 { max-width: 420px; }
.two-r p + p { margin-top: .8em; }

/* Ways to help */
.ways { padding: clamp(72px, 6.6vw, 100px) var(--gut) clamp(60px, 6vw, 90px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 90px); }
.card { position: relative; aspect-ratio: 413 / 517; border-radius: 8px; overflow: hidden; color: #fff; isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.25) 100%); }
.card:hover img { transform: scale(1.08); }
.card-t { position: absolute; left: 21px; top: 22px; font-size: var(--fs); }
.glass { position: absolute; left: 21px; right: 21px; bottom: 22px; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 6px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: var(--fs-s); font-weight: 500; transition: background-color .2s; }
.arr { position: relative; width: 16px; height: 14px; overflow: hidden; }
.arr svg { position: absolute; inset: 0; width: 16px; height: 14px; fill: currentColor; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.arr .a2 { transform: translateX(-110%); }
.card:hover .arr .a1 { transform: translateX(110%); }
.card:hover .arr .a2 { transform: translateX(0); }
.card:hover .glass { background: rgba(255,255,255,.32); }

/* Upcoming events */
.events { padding: clamp(40px, 4vw, 60px) var(--gut) clamp(80px, 9vw, 130px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.chips button { height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-size: var(--fs); cursor: pointer; color: var(--grey); }
.chips button:hover { color: #000; }
.chips button.on { border-color: #000; color: #000; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; padding: 10px 0; }
.ev[hidden] { display: none; }
.tile { width: 90px; height: 100px; border: 1px solid #e3e7ea; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.25; letter-spacing: -.01em; }
.tile span { font-size: 14px; }
.tile b { font-size: 24px; font-weight: 400; line-height: 1.2; margin: 1px 0; }
/* Events without a repeating day show their badge in the square */
.tile-note { padding: 8px; }
.tile-note span { font-size: 13px; font-weight: 500; line-height: 1.25; }
.tile.hot { border-color: #d9631e; background: #d9631e; color: #fff; }
.ev-t p { line-height: 1.4; }

/* Flyers carousel */
.flyers { padding: 0 var(--gut) clamp(80px, 9vw, 130px); }
.flyers-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.flyers-nav { display: flex; gap: 10px; }
.circ { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #000; background: #fff; display: grid; place-items: center; cursor: pointer; }
.circ svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.circ:hover { background: #000; color: #fff; }
.fl-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fl-track::-webkit-scrollbar { display: none; }
/* The whole flyer shows in a frame (flyers are taller than the old card, so nothing gets cut off), name underneath */
.fl { position: relative; flex: 0 0 calc((100% - 72px) / 3.25); border: 0; padding: 0; background: none; color: #000; text-align: left; cursor: pointer; scroll-snap-align: start; }
.fl-img { position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: #eef2f3; }
.fl-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.fl:hover .fl-img img { transform: scale(1.04); }
.fl-t { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.fl-t b { font-weight: 400; font-size: var(--fs); line-height: 1.3; }
.fl-t span { font-size: 15px; color: var(--grey); }
.fl-open { position: absolute; z-index: 2; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.fl-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Thanksgiving feature: the card grows to fill the screen as the section scrolls past */
.feature { position: relative; height: 100vh; min-height: 560px; background: radial-gradient(ellipse at 50% 45%, #f8ead6 0%, #f0d6b3 60%, #e8c497 100%); border-radius: 0 0 40px 40px; overflow: hidden; }
.feature-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.feature-el { position: relative; width: 100%; height: 100%; overflow: hidden; }
.feature-el img { position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; min-height: 560px; max-width: none; object-fit: cover; transform: translate(-50%, -50%); }
.feature-el::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(70,28,4,.42) 0%, rgba(70,28,4,.3) 45%, rgba(55,20,2,.6) 100%); }
.feature-in { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100vw - 32px); display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.feature-icon { width: clamp(72px, 7.4vw, 108px); margin-bottom: 14px; transform-origin: 50% 96%; filter: drop-shadow(0 6px 16px rgba(60,20,0,.35)); }
@media (prefers-reduced-motion: no-preference) { .feature-icon { animation: sway 3.2s ease-in-out infinite; } @keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } } }
.feature-k { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fde68a; margin-bottom: 6px; }
.feature-t { text-shadow: 0 4px 30px rgba(60,20,0,.35); }

/* Autumn leaves drifting down the Thanksgiving section */
.leaves { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; top: -60px; will-change: transform; animation: fall linear infinite; }
.leaf svg { display: block; width: 100%; height: auto; animation: flutter ease-in-out infinite alternate; }
@keyframes fall { to { transform: translateY(calc(100vh + 120px)); } }
@keyframes flutter { from { transform: translateX(-26px) rotate(-35deg); } to { transform: translateX(26px) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .leaves { display: none; } }
.feature-t { font-size: clamp(42px, 6.5vw, 100px); line-height: 1.08; letter-spacing: -.045em; }
.feature-s { margin: 6px 0 22px; font-size: var(--fs); }

/* In the news */
.news { padding: clamp(90px, 6.6vw, 100px) var(--gut) clamp(60px, 6vw, 90px); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 4.2vw, 60px); }
.nw-img { display: block; border-radius: 8px; overflow: hidden; }
.nw img { width: 100%; aspect-ratio: 305 / 360; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.nw:hover img { transform: scale(1.08); }
.nw-t { display: block; margin-top: 18px; font-size: 16px; line-height: 1.4; letter-spacing: -.015em; }
.nw:hover .nw-t { text-decoration: underline; text-underline-offset: 3px; }
.nw-d { display: block; margin-top: 6px; font-size: 15px; color: var(--grey); letter-spacing: -.01em; }

/* Banner */
.cta { padding: clamp(40px, 4vw, 60px) var(--gut) clamp(100px, 8.6vw, 124px); }
.cta-box { position: relative; min-height: 248px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; isolation: isolate; color: #fff; }
.cta-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.cta-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.05) 100%); }
.cta-in { padding: 40px clamp(24px, 4.6vw, 66px); }
.cta-in p { font-size: clamp(21px, 1.8vw, 28px); line-height: 1.33; letter-spacing: -.025em; margin-bottom: 28px; }

/* Footer */
.foot { margin: 0 var(--gut); border-top: 1px solid var(--line); padding-top: clamp(56px, 4.9vw, 70px); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: clamp(64px, 6.5vw, 96px); }
.foot-cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 16px; letter-spacing: -.015em; }
.foot-cols .foot-h { font-size: var(--fs); margin-bottom: 16px; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }
.foot-row-l, .foot-row-r { display: flex; align-items: center; gap: 24px; }
.chip { padding: 9px 16px; border-radius: 4px; background: var(--chip); }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { padding: 22px 0 0; font-size: 13px; line-height: 1.55; color: var(--grey); letter-spacing: -.005em; max-width: 1100px; }
.foot-last { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 40px; font-size: 15px; color: var(--grey); letter-spacing: -.01em; }

/* Flyer viewer */
.viewer { width: min(92vw, 640px); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.viewer::backdrop { background: rgba(0,0,0,.72); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.viewer-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.viewer-lang[hidden] { display: none; }
.viewer-lang button { border: 0; background: transparent; padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--grey); cursor: pointer; }
.viewer-lang button[aria-pressed="true"] { background: #000; color: #fff; }
.viewer-x { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.viewer img { width: 100%; height: auto; max-height: calc(94vh - 66px); object-fit: contain; background: #f4f6f7; }

/* Phone menu */
.mnav { position: fixed; inset: 0; z-index: 35; overflow-y: auto; padding: 150px var(--gut) 40px; background: #fff; display: flex; flex-direction: column; gap: 28px; overscroll-behavior: contain; }
.mnav[hidden] { display: none; }
.mnav-group { display: flex; flex-direction: column; }
.mnav-group p { font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.mnav-group a { padding: 8px 0; font-size: 26px; letter-spacing: -.03em; }
.mnav .pbtn { align-self: flex-start; }
/* A full menu taller than the screen scrolls instead of squashing its items */
.mnav > * { flex-shrink: 0; }

@media (max-width: 991px) { .fl { flex-basis: calc((100% - 48px) / 2.6); } }
@media (max-width: 767px) { .fl-track { gap: 16px; } .fl { flex-basis: calc((100% - 16px) / 1.2); } }

@media (max-width: 1100px) {
  .hdr-help { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 900px) {
  .topbar { padding: 8px 76px 8px 16px; justify-content: flex-start; }
  .tb-news { text-align: left; font-size: 14px; }
  .tb-news svg { display: none; }
  .hdr { height: 84px; }
  .brand img { width: 50px; height: 50px; }
  .pill { display: none; }
  .hdr-right { gap: 10px; }
  .menu-btn { display: block; color: #fff; }
  .hdr.scrolled .menu-btn { color: #000; }
  .hdr.hide-ends .hdr-right { opacity: 1; pointer-events: auto; }
  .hdr.hide-ends .hdr-right .pbtn { opacity: 0; pointer-events: none; }
  .menu-open .hdr { transform: none !important; top: 0 !important; z-index: 45; height: 84px; background: #fff; color: #000; }
  .menu-open .hdr .brand, .menu-open .hdr .hdr-right, .menu-open .hdr .hdr-right .pbtn { opacity: 1; pointer-events: auto; }
  .menu-open .hdr .pbtn-white { background: #000; color: #fff; }
  .menu-open .menu-btn { background: rgba(221,221,221,.58); color: #000; }
  .mnav { padding-top: 110px; }
  .story, .two { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 4.2; }
  .map-text { position: relative; left: auto; top: auto; width: auto; transform: none; margin-top: -6%; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .story-l { justify-self: stretch; width: auto; margin-right: 0; }
  .story-photo { max-width: 360px; }
  .story-text { padding-top: 0; }
  .sponsors { flex-direction: column; align-items: stretch; gap: 28px; }
  .sp-text { flex-basis: auto; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #ccc; }
  .sp-set { gap: 48px; padding-right: 48px; }
}

@media (max-width: 600px) {
  .hero { min-height: 560px; }
  /* Phones: one short line in the top banner, the donation amounts in one row */
  .tb-more { display: none; }
  .topbar { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .amts { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
  .fl-t b { font-size: 18px; }
  .ev { grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
  .tile { width: 76px; height: 86px; }
  .tile b { font-size: 21px; }
  .ev > .pbtn { grid-column: 2; justify-self: start; height: 44px; }
  .flyers-head { flex-wrap: wrap; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-t { font-size: 44px; }
  .give-card { padding: 26px 18px 0; }
  .gform { padding: 18px 12px 0; }
  .gform-foot { margin: 18px -12px 0; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-last { flex-direction: column; }
}

/* =================== Inner pages =================== */
/* Shorter photo header with the same opening reveal */
.hero-page { height: min(80svh, 780px); min-height: 540px; }
.hero-page .hero-in { max-width: calc(1000px + 2 * var(--gut)); }
.hero-page h1 { max-width: 13em; }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: var(--fs); line-height: 1.45; letter-spacing: -.015em; }
.anim .hero-sub { opacity: 0; }

.sec { padding: clamp(80px, 8.4vw, 130px) var(--gut); }
.sec-line { border-top: 1px solid var(--line); }
.k { font-size: var(--fs-s); color: var(--grey); margin-bottom: 20px; }
.prose { max-width: 620px; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Title on the left, text on the right, a hairline between rows */
.rows { margin-top: clamp(44px, 5vw, 76px); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: clamp(24px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; font-size: clamp(22px, 2.1vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.row p { max-width: 560px; color: #2d3134; }

/* Text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-photo { margin: 0; }
.split-photo img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.split h2 + .prose { margin-top: 26px; }

/* Forms: a white card, on a photo (like the donate box) or on the page */
.fsec .display { max-width: 900px; }
.fcard { width: min(760px, 100%); margin-top: 44px; padding: clamp(24px, 3.2vw, 44px); border-radius: 20px; background: #fff; color: #000; text-align: left; }
.fcard .give-lead { margin: 0 0 28px; max-width: none; text-align: left; }
.fcard-line { margin-top: 0; border: 1px solid var(--line); border-radius: 12px; }
.fcard-h { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; font-size: 16px; letter-spacing: -.005em; }
.fgrid .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > span { font-size: 15px; font-weight: 500; }
.fld input, .fld select, .fld textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d5dbe0; border-radius: 6px; background: #fff; color: #000; font: inherit; font-size: 16px; }
.fld textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.fld select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,110,120,.15); }
.fset { grid-column: 1 / -1; margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.fset legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid #d5dbe0; border-radius: 6px; font-size: 15px; line-height: 1.3; cursor: pointer; }
.check:has(input:checked) { border-color: var(--teal); background: #f0f7f7; }
.check input, .consent input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--teal); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.consent input { margin-top: 1px; }
.fsend { height: 54px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.fsend:hover { background: #0a5560; }
.fsend:disabled { background: #a9cbcf; cursor: default; }
.fmsg { padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 1.45; }
.fmsg[hidden] { display: none; }
.fmsg-ok { background: #e6f3f0; color: #0b5248; }
.fmsg-bad, .fmsg-need { background: #fdeceb; color: #8a1f1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.opt { color: var(--grey); font-weight: 400; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cinfo { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.ci { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ci-k { color: var(--grey); font-size: var(--fs-s); padding-top: 3px; }
.ci a { display: inline-block; padding: 6px 0; }
.ci a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmap { margin-top: 28px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.cmap iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Events page: each event with its flyer */
.evp-list { display: flex; flex-direction: column; }
.evp { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.evp:first-child { padding-top: 0; }
.evp-flyer { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.evp-flyer img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.evp-flyer:hover img { transform: scale(1.04); }
.evp-flyer .fl-open { position: absolute; left: 16px; bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.evp-badge { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 4px; background: var(--chip); font-size: 14px; font-weight: 500; }
.evp-badge.hot { background: #d9631e; color: #fff; }
.evp-t { font-size: var(--fs-h2); }
.evp-meta { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.evp-meta li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.evp-mk { color: var(--grey); }
.evp-about { margin-top: 22px; max-width: 640px; }
.evp .pbtn { margin-top: 28px; }

/* In the news page */
.press { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(40px, 4.4vw, 64px) 0; border-bottom: 1px solid var(--line); }
.press:first-child { padding-top: 0; }
.press-img { border-radius: 8px; overflow: hidden; }
.press-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press blockquote { margin: 0; font-size: var(--fs-story); line-height: 1.38; letter-spacing: -.025em; }
.press h2 { font-size: var(--fs-h2); }
.press-src { margin-top: 20px; color: var(--grey); font-size: var(--fs-s); }
.press .pbtn { margin-top: 28px; }

/* The partner strip at the top of a section */
.sponsors-top { padding-top: clamp(80px, 8vw, 120px); }

/* Banner: a second line and more than one button */
.cta-in .cta-sub { max-width: 34em; margin: -14px 0 28px; font-size: var(--fs-s); line-height: 1.5; letter-spacing: -.01em; opacity: .92; }
.cta-in .btn-row { margin-top: 0; }

@media (max-width: 900px) {
  .row, .split, .contact-grid, .press, .evp { grid-template-columns: 1fr; }
  .row { gap: 10px; }
  .split-rev .split-photo { order: -1; }
  .evp-flyer { max-width: 380px; }
  .press-img { order: -1; }
}
@media (max-width: 380px) {
  /* Small phones: the logo needs the room; Contact is still in the menu */
  .hdr-right .pbtn { display: none; }
}
@media (max-width: 600px) {
  .hero-page { min-height: 500px; }
  .fgrid, .checks { grid-template-columns: 1fr; }
  .fcard { padding: 22px 18px; }
  .ci { grid-template-columns: 1fr; gap: 4px; }
  .evp-meta li { grid-template-columns: 90px 1fr; }
}
