/* VOICE   occasion, but grown-up: a foundation, not a party flyer
   IDEA    an Apple-style product page where the "product" is the foundation's year
   PICTURE the giant red "Dec 19" on black, plus colour tiles with cropped seasonal shapes
   COLOUR  white / #f5f5f7 / black bands; lilac-violet from the logo for actions; one colour per program
   TYPE    SF Pro via the system stack (Inter on non-Apple devices)
   LAYOUT  centred hero + event (Apple-style), everything else left-aligned in a 1240px column */

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --night: #000000;
  --night-ink: #f5f5f7;
  --night-muted: #a1a1a6;
  --violet: #6f3fc7;
  --violet-hover: #5c32a8;
  --lilac: #c9a8ee;
  --red: #ff3b47;
  --gutter: max(22px, calc((100% - 1240px) / 2));
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.02em; line-height: 1.07; }
p { margin: 0; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* Buttons and links */
.links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin-top: 26px; }
.pill { display: inline-block; background: var(--violet); color: #fff; border-radius: 980px; padding: 12px 22px; font-size: 17px; line-height: 1.1; white-space: nowrap; }
.pill:hover { background: var(--violet-hover); text-decoration: none; }
.pill-sm { padding: 6px 13px; font-size: 13px; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: "\203A"; display: inline-block; margin-left: .3em; font-size: 1.15em; line-height: 0; transition: transform .2s; }
.more:hover::after { transform: translateX(3px); }
.more.on-dark { color: var(--lilac); }

/* Global nav */
.gnav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.gnav-in { height: 52px; display: flex; align-items: center; gap: 32px; padding-inline: var(--gutter); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font: 600 15px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
/* The mark is a white disc with no ring, so it gets its depth from a soft shadow */
.logo img, .contact > img { filter: drop-shadow(0 1px 1.5px rgba(26,15,42,.22)) drop-shadow(0 3px 8px rgba(111,63,199,.18)); }
.contact > img { filter: drop-shadow(0 2px 3px rgba(26,15,42,.18)) drop-shadow(0 10px 22px rgba(111,63,199,.22)); }
.gnav nav { display: flex; gap: 28px; margin-left: auto; }
.gnav nav a { color: var(--ink-2); font-size: 13px; letter-spacing: -.01em; }
.gnav nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter) 0; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); max-width: 13em; margin-inline: auto; }
.sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; letter-spacing: -.012em; color: var(--muted); max-width: 32em; margin: 18px auto 0; }
.mission { padding-bottom: clamp(24px, 4vw, 40px); }


/* Programs */
.programs { background: var(--mist); padding: clamp(64px, 9vw, 112px) var(--gutter); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.head h2, .story h2, .help h2, .faq h2 { font-size: clamp(36px, 5vw, 56px); }
.head p { color: var(--muted); font-size: 19px; max-width: 28em; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; border-radius: 24px; overflow: hidden; color: #fff; text-align: center; min-height: 540px; display: flex; flex-direction: column; }
.tile-copy { padding: 52px 32px 0; position: relative; z-index: 1; }
.tile h3 { font-size: clamp(30px, 3.4vw, 40px); }
.tile p { font-size: 19px; color: rgba(255,255,255,.86); margin: 8px auto 14px; max-width: 22em; }
.tile .art { margin-top: auto; width: 100%; height: 300px; display: block; }
.t-red { background: #c8102e; }
.t-orange { background: #b94e18; }
.t-blue { background: #1769b8; }
.t-lilac { background: #6f3fc7; }
.tile .more.on-dark { color: #fff; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.years { font: 700 clamp(180px, 28vw, 400px)/.8 var(--display); letter-spacing: -.07em; color: var(--violet); white-space: nowrap; }
.years span { font-size: .4em; vertical-align: top; letter-spacing: 0; margin-left: .05em; }
.story-copy p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.story-copy h2 { margin-bottom: 6px; }

/* Ways to help */
.help { background: var(--mist); padding: clamp(64px, 9vw, 112px) var(--gutter); }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.way { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.way h3 { font-size: 24px; margin-bottom: 8px; }
.way p { color: var(--muted); margin-bottom: 20px; flex: 1; }

/* Partners (black band) */
.partners { background: var(--night); color: #fff; text-align: center; padding: clamp(64px, 9vw, 104px) var(--gutter); }
.partners h2 { font-size: clamp(32px, 4.4vw, 48px); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; margin: 48px 0 40px; }
.logos img { height: 128px; width: auto; border-radius: 14px; }
.wordmark { font: 600 26px/1.08 var(--display); letter-spacing: -.02em; text-align: left; padding-left: 16px; border-left: 3px solid var(--lilac); }

/* FAQ */
.faq { background: var(--mist); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding: clamp(64px, 9vw, 112px) var(--gutter); }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 19px/1.3 var(--display); letter-spacing: -.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 28px/.8 var(--sans); color: var(--muted); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 40px 24px 0; }

/* Contact */
.contact { text-align: center; padding: clamp(72px, 10vw, 120px) var(--gutter); }
.contact img { margin: 0 auto 24px; }
.contact h2 { font-size: clamp(36px, 5vw, 56px); }
.contact .pill { margin-top: 28px; }

/* Footer */
.foot { background: var(--mist); color: var(--muted); font-size: 13px; line-height: 1.45; padding: 28px var(--gutter) 24px; }
.notes { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.cols h4 { font: 600 13px/1.3 var(--sans); color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.cols a { display: block; color: var(--ink-2); margin-bottom: 8px; }
.legal { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal a { color: var(--ink-2); }
.logo-link img { height: 128px; width: auto; }

/* Narrow screens */
@media (max-width: 900px) {
  .gnav nav { display: none; }
  .gnav-in { justify-content: space-between; }
  .head, .story, .faq { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .years { text-align: left; }
}
@media (max-width: 680px) {
  .bento, .ways { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 460px; }
  .tile .art { height: 230px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos img, .logo-link img { height: 96px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Logo intro (index.html) ---------- */
.intro-screen { display: none; }
html.intro .intro-screen { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #fff; cursor: default; }
.intro-mark { width: clamp(124px, 15vw, 176px); aspect-ratio: 1; filter: drop-shadow(0 4px 6px rgba(26,15,42,.14)) drop-shadow(0 18px 36px rgba(111,63,199,.26)); will-change: transform; }
.intro-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.i-disc, .i-petal, .i-core { transform-box: view-box; transform-origin: 32px 32px; }
.i-disc { animation: i-disc .75s cubic-bezier(.2, .8, .2, 1) both; }
.i-petal { animation: i-petal .75s cubic-bezier(.3, 1.35, .45, 1) both; animation-delay: calc(.35s + var(--d) * .09s); }
.i-core { animation: i-core .5s cubic-bezier(.3, 1.7, .45, 1) .9s both; }
@keyframes i-disc { from { opacity: 0; transform: scale(.6); } }
@keyframes i-petal { from { opacity: 0; transform: scale(.25) rotate(-50deg); } }
@keyframes i-core { from { transform: scale(0); } }

html.intro .gnav .logo img { visibility: hidden; }
html.intro.intro-landed .gnav .logo img { visibility: visible; }
html.intro main > section:nth-child(-n+2) { opacity: 0; transform: translateY(28px); }
html.intro.intro-reveal main > section:nth-child(-n+2) { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
html.intro.intro-reveal main > section:nth-child(2) { transition-delay: .25s; }

/* Sponsor logo wall: every logo sits on the same white tile so mixed formats read as one set */
.logos:has(.wordmark:only-child) { margin: 32px 0 18px; }
.logos:has(.wordmark:only-child) .wordmark { font-size: 18px; padding-left: 12px; }
.logo-wall { list-style: none; padding: 0; margin: 0 auto 36px; max-width: 1200px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-wall li { position: relative; flex: 0 0 138px; height: 90px; background: #fff; border-radius: 14px; box-shadow: 0 8px 18px -14px rgba(0,0,0,.7); }
.logo-wall a { position: absolute; inset: 0; }
.logo-wall img, .logo-wall a img { position: absolute; inset: 7px 10px; width: calc(100% - 20px); height: calc(100% - 14px); object-fit: contain; border-radius: 0; }
@media (max-width: 640px) {
  .logo-wall { gap: 8px; }
  .logo-wall li { flex-basis: calc((100% - 16px) / 3); height: auto; aspect-ratio: 3 / 2; border-radius: 10px; }
  .logo-wall img, .logo-wall a img { inset: 5px 7px; width: calc(100% - 14px); height: calc(100% - 10px); }
}
/* A sponsor without a logo: their name, set simply on the same tile */
.logo-wall .name-tile { display: grid; place-items: center; text-align: center; padding: 8px; color: #1d1d1f; font: 500 14px/1.1 var(--sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif); letter-spacing: -.01em; }
.logo-wall .name-tile b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 640px) { .logo-wall .name-tile { font-size: 11px; } .logo-wall .name-tile b { font-size: 15px; } }
