/* Olave Family Foundation · v2 "Every Sunday Gives Back"
   Photo-led scroll. Brand: logo scarlet, near-black, cool grey. Barlow Condensed = game-day display,
   Barlow = body. The Didone "OLAVE" lives in the logo only. */

:root {
  --red: #c61922; --red-on-dark: #ff4d55; --red-deep: #9e1219; --red-glow: rgba(198, 25, 34, .35);
  --ink: #0d0d0f; --ink-2: #1a1a1e; --ink-3: #2a2a30;
  --grey: #a9b0b5; --grey-2: #5f666b; --grey-3: #d9dde0; --field: #8a9095;
  --paper: #f4f5f6; --white: #ffffff;
  --text: #16171a; --text-2: #4a4f54;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --sig: "Allura", cursive;
  --max: 1200px; --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: .005em; line-height: .95; text-transform: uppercase; }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: clamp(28px, 3.2vw, 40px); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.eyebrow { font: 700 14px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::before { background: var(--red); }
.kicker { font-size: clamp(28px, 3.4vw, 40px); }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); max-width: 54ch; }

/* placeholders: anything still owed by the family is outlined in red (same rule as v1) */
.tbc { outline: 1.5px dashed var(--red); outline-offset: 3px; border-radius: 2px; }
.tbc-tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--red); border: 1.5px dashed var(--red); border-radius: 99px; padding: 4px 9px; vertical-align: middle; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius); font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn i { font-size: 18px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -12px var(--red-glow); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-glass { background: rgba(13, 13, 15, .35); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--grey-3); }

/* campaign banner */
.campaign { background: var(--ink); color: var(--white); font-size: 14px; }
.campaign p { max-width: var(--max); margin: 0 auto; padding: 9px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.campaign i { color: var(--red); font-size: 17px; }
.campaign a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) { .campaign span { display: none; } .campaign p::before { content: "Turkey Drive · Nov 17"; font-weight: 600; } }
@media (max-width: 400px) { .campaign { font-size: 13px; } .campaign p > i { display: none; } }

/* header: solid white so the full-color logo reads cleanly */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--grey-3); }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 44px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--text); padding: 8px 0; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.follow { position: relative; }
.follow summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--grey-3); font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.follow summary::-webkit-details-marker { display: none; }
.follow summary i { font-size: 20px; }
.follow summary .caret { font-size: 13px; transition: transform .25s; }
.follow[open] summary .caret { transform: rotate(180deg); }
.follow summary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.follow-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: var(--white); border-radius: 8px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px var(--grey-3); padding: 8px; }
.follow-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; text-decoration: none; }
.follow-menu a:hover { background: var(--paper); }
.follow-menu img, .follow-menu .num { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.follow-menu img { object-fit: contain; background: var(--paper); padding: 5px; }
.follow-menu .num { display: grid; place-items: center; background: var(--ink); color: var(--white); font: 800 19px/1 var(--display); box-shadow: inset 0 0 0 2px var(--red); }
.follow-menu b { display: block; font-weight: 600; }
.follow-menu small { color: var(--grey-2); font-size: 14px; }
@media (max-width: 960px) { .links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 560px) {
  :root { --nav-h: 62px; }
  .brand img { height: 34px; }
  .follow summary span, .follow summary .caret { display: none; }
  .follow summary { padding: 0 12px; }
  .nav .wrap { gap: 12px; }
  .nav-right .btn-red { padding: 0 16px; }
}

/* hero: full-bleed photo, Chris's face upper-left, copy low over the darkened hoodie */
.hero { position: relative; min-height: min(calc(100svh - var(--nav-h) - 38px), 880px); display: grid; align-items: end; color: var(--white); isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 12%; z-index: -2; animation: settle 1.8s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(13, 13, 15, 0) 30%, rgba(13, 13, 15, .55) 62%, rgba(13, 13, 15, .92) 100%),
  linear-gradient(90deg, rgba(13, 13, 15, .55) 0%, rgba(13, 13, 15, 0) 55%); }
.hero-copy { padding-top: 180px; padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 { font-size: clamp(56px, 8.2vw, 120px); line-height: .86; letter-spacing: -.005em; }
.hero h1 span { color: var(--red); -webkit-text-stroke: 0; text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.hero .lede { color: rgba(255, 255, 255, .88); margin-top: 22px; max-width: 50ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-width: 720px) {
  /* phones: show the whole moment (Chris and the student), not a face crop */
  .hero { min-height: 0; align-items: start; }
  .hero-img { height: calc(100vw * .667); object-position: 50% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(13, 13, 15, 0) 0, rgba(13, 13, 15, 0) calc(100vw * .667 - 110px), rgba(13, 13, 15, .85) calc(100vw * .667 - 20px), #0d0d0f calc(100vw * .667)); }
  .hero-copy { padding-top: calc(100vw * .667 - 40px); padding-bottom: 32px; }
  .hero .cta .btn { width: 100%; }
}

/* the Sunday loop */
.loop { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 110px) 0; }
.loop .kicker { color: var(--grey); margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 clamp(20px, 3vw, 40px) 0 0; }
.steps li + li { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--ink-3); }
.steps .step-n { display: block; font: 800 16px/1 var(--display); letter-spacing: .2em; color: var(--red-on-dark); margin-bottom: 18px; }
.steps i { font-size: 34px; color: var(--white); }
.steps h3 { margin: 16px 0 10px; font-size: clamp(28px, 2.8vw, 36px); }
.steps p { color: var(--grey); max-width: 30ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li, .steps li + li { padding: 0 0 0 22px; border-left: 2px solid var(--ink-3); }
  .steps li:first-child { border-left-color: var(--red); }
}

/* impact numbers */
.impact { background: var(--paper); padding: clamp(48px, 6vw, 72px) 0; }
.impact ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.impact li { border-top: 3px solid var(--ink); padding-top: 16px; }
.impact li:first-child { border-top-color: var(--red); }
.impact li > i { display: block; width: 1em; height: 1em; margin-bottom: 12px; font-size: 30px; color: var(--ink); }
.impact strong { display: block; font: 800 clamp(56px, 6.5vw, 88px)/.9 var(--display); color: var(--ink); }
.impact li > span { display: block; margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 22ch; }
@media (max-width: 760px) { .impact ul { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* our work: full-screen photo chapters */
.chapters-intro { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(32px, 4vw, 48px); }
.eyebrow.dark { color: var(--red); }
.chapter { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); }
.chapter > img, .chapter > video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: var(--pos, 50% 50%); z-index: -2; transform: translate3d(0, var(--py, 0px), 0) scale(var(--s)); transition: --s 1.8s var(--ease), filter .9s var(--ease); }
.js .chapter > img { --s: 1.08; }
.js .chapter.in > img { --s: 1; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 13, 15, .9) 0%, rgba(13, 13, 15, .6) 38%, rgba(13, 13, 15, 0) 68%), linear-gradient(0deg, rgba(13, 13, 15, .6) 0%, rgba(13, 13, 15, 0) 40%); }
.chapter.right::after { background: linear-gradient(270deg, rgba(13, 13, 15, .9) 0%, rgba(13, 13, 15, .6) 38%, rgba(13, 13, 15, 0) 68%), linear-gradient(0deg, rgba(13, 13, 15, .6) 0%, rgba(13, 13, 15, 0) 40%); }
.chapter .wrap { padding-top: 120px; padding-bottom: clamp(40px, 7vw, 96px); display: flex; }
.chapter.right .wrap { justify-content: flex-end; }
.ch-card { max-width: 480px; }
.ch-n { display: block; font: 800 clamp(64px, 8vw, 110px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); margin-bottom: 14px; }
.ch-card h3 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.ch-card > p { color: rgba(255, 255, 255, .92); font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.nuggets { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.nuggets li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.nuggets i { color: var(--red); font-size: 20px; background: var(--white); border-radius: 50%; padding: 4px; flex: none; }
.meta { margin-top: 20px; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; color: var(--grey); font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta i { color: var(--white); font-size: 16px; }
@media (max-width: 720px) {
  .chapter { min-height: 88svh; }
  .chapter::after, .chapter.right::after { background: linear-gradient(0deg, rgba(13, 13, 15, .95) 0%, rgba(13, 13, 15, .7) 42%, rgba(13, 13, 15, 0) 72%); }
  .chapter.right .wrap { justify-content: flex-start; }
}

/* film strip */
.strip { background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 88px) 0 clamp(56px, 7vw, 88px); }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.strip .kicker { color: var(--white); }
.strip-nav { display: flex; align-items: center; gap: 10px; }
.strip-count { color: var(--grey); font: 700 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; margin-right: 6px; }
.strip-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: background .2s, border-color .2s, opacity .2s; }
.strip-btn:hover { background: var(--red); border-color: var(--red); }
.strip-btn:disabled { opacity: .3; cursor: default; background: transparent; border-color: var(--ink-3); }
@media (hover: none) { .strip-btn { display: none; } }
@media (max-width: 560px) { .strip-count { display: none; } }
.strip-hint { color: var(--grey); font: 700 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; display: flex; gap: 6px; align-items: center; }
.strip-row { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.strip-row::-webkit-scrollbar { display: none; }
.strip-row li { flex: none; width: clamp(220px, 24vw, 320px); scroll-snap-align: start; }
.strip-row li.wide { width: clamp(352px, 38.4vw, 512px); }
.strip-row li.wide img { aspect-ratio: 1.28; }
.strip-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); transition: transform .7s var(--ease), opacity .5s var(--ease), filter .9s var(--ease), box-shadow .7s var(--ease); }
.strip-row span { display: block; margin-top: 10px; color: var(--grey); font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }

/* events */
.events { padding: clamp(72px, 9vw, 120px) 0; }
.events h2 { max-width: 16ch; }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.ev { background: var(--white); border: 1px solid var(--grey-3); border-radius: 6px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ev:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .4); }
.ev-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; }
.date { position: absolute; left: 14px; top: 14px; background: var(--red); color: var(--white); padding: 8px 12px 7px; text-align: center; border-radius: 3px; }
.date b { display: block; font: 800 24px/1 var(--display); text-transform: uppercase; }
.date span { font: 700 12px/1 var(--display); letter-spacing: .14em; }
.ev-body { padding: 20px 22px 22px; }
.ev h3 { font-size: 24px; line-height: 1; }
.ev-soon .date { background: var(--white); color: var(--ink); }
.ev-more { margin-top: 22px; color: var(--text-2); max-width: 62ch; }
.where { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-2); flex-wrap: wrap; }
.ev-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grey-3); display: flex; gap: 20px; }
.ev-actions a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ev-actions a:hover { color: var(--red); }
.ev-actions i { color: var(--red); font-size: 18px; }
@media (max-width: 1040px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  /* phones: events become one swipeable row instead of three stacked cards */
  .ev-grid { display: flex; max-width: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .ev-grid::-webkit-scrollbar { display: none; }
  .ev { flex: 0 0 78%; scroll-snap-align: start; }
}

/* recently: an event that has already happened, under the upcoming ones. The same card frame and date chip,
   with the chip in ink; the place and link rows reuse .where and .ev-actions. Its photos sit in .recap-photos above the link. */
.recap { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: start; padding: 22px; background: var(--white); border: 1px solid var(--grey-3); border-radius: 6px; }
.recap > * { grid-column: 2; }
.recap .date { grid-column: 1; grid-row: 1 / span 3; position: static; background: var(--ink); }
.recap h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1; }
.recap-photos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 300px); gap: 12px; }
.recap-photos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) {
  /* phones: the date sits beside the label, everything else runs full width; the link is a full-size tap target */
  .recap { column-gap: 14px; padding: 18px 18px 8px; }
  .recap > * { grid-column: 1 / -1; }
  .recap .date { grid-column: 1; grid-row: 1; }
  .recap .eyebrow { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .recap h3 { margin-top: 16px; }
  .recap .ev-actions { padding-top: 0; }
  .recap .ev-actions a { min-height: 44px; }
  .recap-photos { grid-auto-columns: minmax(0, 1fr); gap: 8px; }
}

/* family: headline, two real photos, the story, the five of them in a row, then a five-year timeline */
.family { background: var(--paper); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.family-grid { display: grid; grid-template-columns: 6fr 6fr; grid-template-areas: "photos head" "photos copy" "portrait portrait" "people people" "time time"; column-gap: clamp(32px, 6vw, 88px); align-items: start; }
.family-head { grid-area: head; align-self: end; }
.family-photos { grid-area: photos; position: relative; padding: 0 12% 18% 0; }
.family-copy { grid-area: copy; }
.timeline { grid-area: time; }
.family h2 { font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 18px; }
.family-photos figure { margin: 0; }
.fp-main img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.fp-inset { position: absolute; right: 0; bottom: 0; width: 52%; }
.fp-inset img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.family .lede { margin-top: 4px; }
.story { margin-top: 18px; color: var(--text); max-width: 54ch; }
.family-portrait { grid-area: portrait; margin: clamp(44px, 5vw, 72px) 0 0; }
.family-portrait img { width: 100%; height: auto; border-radius: var(--radius); }
.family-portrait figcaption { margin-top: 10px; color: var(--text-2); font: 700 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.people { grid-area: people; list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.people li { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: center; align-content: start; }
.people li:last-child { border-top-color: var(--red); }
.people img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--grey-3); }
.people b { display: block; font: 800 26px/1 var(--display); text-transform: uppercase; }
.people span { display: block; margin-top: 4px; color: var(--text-2); font: 700 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.people p { grid-column: 1 / -1; margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, 1fr); } }
.words { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 8px 12px; border: 1.5px solid var(--grey-3); border-radius: 99px; background: var(--white); }
/* timeline: a red line draws across as you scroll; each year lights up as the line reaches it */
.timeline { --fill: 0px; list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 23px; left: 23px; height: 2px; border-radius: 2px; }
.timeline::before { right: 0; background: var(--grey-3); }
.timeline::after { width: var(--fill); max-width: calc(100% - 23px); background: var(--red); box-shadow: 0 0 12px var(--red-glow); transition: width .12s linear; }
.timeline li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.tl-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--grey-3); color: var(--grey-2); font-size: 22px; transition: background .45s var(--ease-out), border-color .45s var(--ease-out), color .45s var(--ease-out), transform .6s var(--ease-press), box-shadow .45s var(--ease-out); }
.tl-year { display: block; margin-top: 18px; font: 800 44px/1 var(--display); color: var(--ink); letter-spacing: .01em; transition: color .45s var(--ease-out), transform .6s var(--ease-out); }
.tl-text { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--text); transition: color .5s var(--ease-out), transform .6s var(--ease-out); }
.tl-sub { display: block; margin-top: 4px; font: 700 12px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); transition: transform .6s var(--ease-out) .08s; }
/* before the line arrives: dimmed and slightly low (never hidden). Dimmed means --grey-2, the lightest grey that
   still passes WCAG AA on the paper background; fading with opacity or --grey-3 left this text unreadable. */
.js .timeline li:not(.on) .tl-year, .js .timeline li:not(.on) .tl-text { color: var(--grey-2); transform: translateY(8px); }
.js .timeline li:not(.on) .tl-sub { transform: translateY(8px); }
.timeline li.on .tl-dot { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.08); box-shadow: 0 8px 22px -8px var(--red-glow); }
.timeline li.on:last-child .tl-dot { animation: tl-pulse 2.4s var(--ease-out) .4s infinite; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 25, 34, .45); } 70% { box-shadow: 0 0 0 16px rgba(198, 25, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 25, 34, 0); } }
@media (hover: hover) { .timeline li:hover .tl-dot { transform: scale(1.14) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) {
  .timeline::after { transition: none; }
  .js .timeline li .tl-year, .js .timeline li .tl-text, .js .timeline li .tl-sub { color: inherit; opacity: 1; transform: none; }
  .timeline li .tl-dot { background: var(--red); border-color: var(--red); color: var(--white); }
  .timeline li.on:last-child .tl-dot { animation: none; }
}
@media (max-width: 860px) {
  .family-grid { grid-template-columns: 1fr; grid-template-areas: "head" "photos" "copy" "portrait" "people" "time"; }
  .family-photos { max-width: 480px; margin-bottom: 28px; }
  .people { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .people li { align-items: start; padding: 16px 0 18px; row-gap: 6px; }
  .people img { grid-row: 1 / span 2; }
  .people p { grid-column: 2; margin-top: 0; }
  .timeline { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .timeline::before, .timeline::after { top: 23px; left: 23px; width: 2px; height: auto; }
  .timeline::before { bottom: 23px; right: auto; }
  .timeline::after { width: 2px; height: var(--fill); max-width: none; max-height: calc(100% - 46px); transition: height .12s linear; }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; align-items: start; }
  .tl-dot { grid-row: span 3; }
  .tl-year { margin-top: 2px; font-size: 38px; }
  .tl-text, .tl-sub { grid-column: 2; }
}

/* give */
.give { padding: clamp(72px, 9vw, 120px) 0; }
.give-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.give h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 18px; }
.freq { display: inline-flex; margin-top: 30px; padding: 4px; background: var(--paper); border-radius: 99px; }
.freq button { border: 0; background: none; padding: 10px 20px; border-radius: 99px; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.freq button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.amount-group { margin-top: 16px; }
.amounts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amounts button { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; border: 1.5px solid var(--grey-3); background: var(--white); border-radius: 6px; padding: 14px 14px 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); font: inherit; color: inherit; }
.amounts button:hover { border-color: var(--ink); }
.amounts button[aria-pressed="true"] { border-color: var(--red); background: #fff5f5; box-shadow: inset 0 0 0 1px var(--red); }
.amounts b { display: block; font: 800 34px/1 var(--display); }
.amounts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--text-2); }
.tbc-note { margin: 12px 0 22px; }
#give-btn { margin-top: 20px; }
.trust { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.trust i { color: var(--red); font-size: 20px; flex: none; }
.give-photo { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 5; }
.give-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.give-photo img.swap { opacity: 0; }
.give-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; color: var(--white); background: linear-gradient(0deg, rgba(13, 13, 15, .92), rgba(13, 13, 15, 0)); font-size: 19px; line-height: 1.35; }
.give-photo strong { font: 800 44px/1 var(--display); display: block; color: var(--white); margin-bottom: 4px; }
@media (max-width: 900px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-photo { aspect-ratio: 4 / 3; }
  .amounts { grid-template-columns: 1fr 1fr; }
}

/* auction: signed photo of the week */
.auction { background: var(--ink); color: var(--white); padding: clamp(72px, 9vw, 130px) 0; position: relative; overflow: hidden; }
.auction::before { content: "12"; position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font: 800 clamp(280px, 40vw, 620px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); pointer-events: none; }
.auction-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; }
/* the photo is of the physical print, edges and signature included, so it is never cropped or framed */
.mat { position: relative; transform: rotate(-2.5deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.mat img { width: 100%; height: auto; }
.print-note { margin-top: 34px; font-size: 13px; color: var(--grey); padding: 4px 6px; }
.auction .eyebrow { color: var(--red-on-dark); }
.auction h2 { font-size: clamp(48px, 7vw, 96px); }
.auction .lede { color: var(--grey); margin-top: 18px; }
.lot { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.lot div { border-left: 2px solid var(--red); padding-left: 14px; }
.lot dt { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.lot dd { margin: 10px 0 0; font: 700 20px/1.1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.lot .tbc { display: inline-block; padding: 2px 5px; }
.auction-actions { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bid-msg { color: var(--grey); font-size: 15px; max-width: 34ch; }
/* photos still to come: small, no bid button */
.up-next { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink-3); }
.up-next-h { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.up-next ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.up-next li { display: flex; align-items: center; gap: 12px; }
.up-next img { height: 64px; width: auto; }
.up-next span { font-size: 15px; line-height: 1.3; color: var(--grey); }
.up-next b { display: block; font: 700 18px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
/* after the last photo's week: no photo, just the line that more are coming */
.auction.ended .auction-grid { grid-template-columns: 1fr; }
.field-row { display: flex; gap: 8px; max-width: 460px; }
.field-row input { flex: 1; min-width: 0; min-height: 50px; border-radius: var(--radius); border: 1.5px solid var(--field); padding: 0 14px; font: 400 17px var(--sans); background: var(--white); color: var(--text); }
.auction .field-row input { border-color: #6f767b; background: var(--ink-2); color: var(--white); }
.field-row input:focus { border-color: var(--red); }
.field-row input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.field-row input[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.field-err { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--red-deep); }
.field-err:empty { display: none; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.field-row .btn { min-height: 50px; }
@media (max-width: 900px) {
  .auction-grid { grid-template-columns: 1fr; }
  .print { max-width: 460px; }
}

/* newsletter */
.news { background: var(--paper); padding: clamp(56px, 7vw, 88px) 0; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.news h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.news p { color: var(--text-2); }
.news small { display: block; margin-top: 8px; color: var(--grey-2); }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }

/* sponsors: one-color, even logo wall */
.sponsors { padding: clamp(64px, 8vw, 100px) 0; text-align: center; }
.sponsors .eyebrow { justify-content: center; }
.logo-wall { list-style: none; margin: 34px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.logo-wall li { display: grid; place-items: center; height: 72px; }
.logo-wall img { max-height: 46px; max-width: min(100%, 170px); width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .4s var(--ease-out), opacity .4s var(--ease-out); }
.logo-wall img.on-white { mix-blend-mode: multiply; max-height: 64px; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall .lg { display: none; }
.logo-wall .nologo img { display: none; }
.logo-wall .nologo .lg { display: block; }
.lg { color: var(--grey-2); transition: color .3s; line-height: 1.1; }
.logo-wall li:hover .lg { color: var(--ink); }
.logo-wall .lg { font: 700 17px/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; max-width: 16ch; }
.lg-ap { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--sans); letter-spacing: -.01em; }
.lg-ap img { width: 30px; height: auto; opacity: .7; }
.sponsor-cta { margin-top: 24px; color: var(--text-2); display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.sponsor-cta a { font-weight: 600; color: var(--red); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) { .logo-wall { grid-template-columns: 1fr 1fr; gap: 28px 24px; } .logo-wall li { height: 60px; } }

/* footer */
.foot { background: var(--ink); color: var(--grey); padding-top: clamp(56px, 7vw, 88px); }
.f-top { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.f-logo { width: 200px; height: auto; }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot h3.f-h { color: var(--white); font-size: 16px; letter-spacing: .16em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.foot a:hover { color: var(--white); }
.foot li { display: flex; align-items: center; gap: 8px; }
.legal { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.powered { background: #070708; padding: 16px 0 18px; }
.powered .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.powered .pw { color: var(--grey); letter-spacing: .06em; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.powered .pw img { width: 18px; height: auto; filter: invert(1) brightness(.75); }
.powered .yk img { width: 13px; }
.powered .pw:hover { color: var(--white); }
.powered i { width: 1px; height: 16px; background: var(--ink-3); }
@media (max-width: 520px) { .powered i { display: none; } .powered .wrap { gap: 10px 16px; } }
@media (max-width: 860px) {
  .f-top { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-logo { width: 160px; }
}
@media (max-width: 520px) {
  /* phone footer: compact logo, links in two columns, follow + contact side by side where they fit */
  .foot { padding-top: 44px; }
  .f-top { gap: 28px; }
  .f-logo { width: 112px; }
  .f-cols { grid-template-columns: 1fr; gap: 26px; }
  .foot h3.f-h { font-size: 13px; letter-spacing: .18em; margin-bottom: 10px; color: var(--grey); }
  .f-cols > div:first-child ul { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .foot ul { gap: 4px; }
  .foot li, .foot a { min-height: 40px; }
  .f-cols > div:nth-child(2) ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .foot .scam { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--ink-3); border-radius: 6px; line-height: 1.4; align-items: flex-start; }
  .foot .scam i { margin-top: 2px; }
  .legal { margin-top: 32px; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.5; }
}

/* mobile give bar */
.givebar { display: none; }
@media (max-width: 720px) {
  .givebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #0d0d0f; transform: translateY(110%); transition: transform .35s var(--ease); }
  .givebar.show { transform: none; }
  .btn-glass-dark { background: var(--ink-3); color: var(--white); min-width: 52px; padding: 0 14px; }
  body { padding-bottom: 0; }
  .foot { padding-bottom: 76px; }
}

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2), .impact li.reveal:nth-child(2), .ev.reveal:nth-child(2) { transition-delay: .1s; }
.steps li.reveal:nth-child(3), .impact li.reveal:nth-child(3), .ev.reveal:nth-child(3) { transition-delay: .2s; }
.ev.reveal:nth-child(4) { transition-delay: .3s; }
.impact li.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chapter > img { transform: none; }
}
@media (max-width: 560px) { .mat { transform: rotate(-1.5deg); } }

/* ============================================================
   MOTION LAYER · smooth & unhurried. One easing family:
   --ease-out  (long soft settle) for entrances and scroll
   --ease-press (quick in, springy out) for taps
   Everything below is off under prefers-reduced-motion.
   ============================================================ */
@property --s { syntax: "<number>"; inherits: false; initial-value: 1; }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-press: cubic-bezier(.34, 1.56, .64, 1); --t-slow: 1.1s; --t-med: .8s; }
html { -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }

/* view transitions between the version menu and the pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.01); } }

/* blur-up photos: tiny preview is blurred until the full photo has decoded */
img.lqip { filter: blur(16px) saturate(1.1); clip-path: inset(0 round var(--radius)); }
img.lqip.loaded { filter: none; }
.hero-img.lqip { clip-path: none; }
.strip-row img.lqip, .ev-photo img.lqip, .family-photo img.lqip, .mat img.lqip { transition: filter .9s var(--ease-out), transform .7s var(--ease-out), opacity .5s var(--ease-out), box-shadow .7s var(--ease-out); }

/* hero: staged title-card reveal (eyebrow → line 1 → line 2 → lede → buttons) */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero h1 .line > span { display: block; color: var(--white); text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.hero h1 .line.red > span { color: var(--red); }
.js .hero .seq { opacity: 0; transform: translateY(18px); }
.js .hero h1.seq { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); }
.hero.go .seq { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.hero.go h1 .line > span { transform: none; transition: transform 1.2s var(--ease-out); }
.hero.go .eyebrow { transition-delay: .15s; }
.hero.go h1 .line:nth-child(1) > span { transition-delay: .3s; }
.hero.go h1 .line:nth-child(2) > span { transition-delay: .45s; }
.hero.go .lede { transition-delay: .75s; }
.hero.go .cta { transition-delay: .95s; }
.hero-img { animation: settle 2.4s var(--ease-out) both; }

/* section headlines: line-by-line mask (lines are built in JS once fonts are ready) */
.mline { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mline > span { display: inline-block; }
.js .mask:not(.in) .mline > span { transform: translateY(110%); }
.mask.in .mline > span { transform: none; transition: transform 1.1s var(--ease-out); }
.mask.in .mline:nth-child(2) > span { transition-delay: .09s; }
.mask.in .mline:nth-child(3) > span { transition-delay: .18s; }
.mask.in .mline:nth-child(4) > span { transition-delay: .27s; }

/* header: progress line, shrink on scroll, active section */
.nav { transition: box-shadow .5s var(--ease-out); }
.nav .wrap, .brand img { transition: height .6s var(--ease-out); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.nav.small { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.nav.small .wrap { height: 58px; }
.nav.small .brand img { height: 34px; }
@media (max-width: 560px) { .nav.small .wrap { height: 54px; } .nav.small .brand img { height: 28px; } }
.links a.on { color: var(--red); }
.links a.on::after { transform: scaleX(1); }

/* taps: press-in with a springy release; heart beats on Give */
.btn, .amounts button, .freq button, .strip-btn, .follow summary { transition: background .25s, color .25s, box-shadow .25s, transform .45s var(--ease-press); }
.btn:active, .amounts button:active, .freq button:active, .strip-btn:active, .follow summary:active { transform: scale(.96); transition-duration: .08s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.28); } 40% { transform: scale(.94); } 60% { transform: scale(1.12); } }
.btn .ph-heart { display: inline-block; }
.btn.beat .ph-heart { animation: beat .75s var(--ease-out); }
@media (hover: hover) { .btn:hover .ph-heart { animation: beat .75s var(--ease-out); } }
.magnetic { transition: transform .6s var(--ease-out), background .25s, box-shadow .25s; }

/* impact numbers: scoreboard roll */
[data-count] { display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.odo { display: inline-flex; }
.odo-d { display: block; height: 1em; overflow: hidden; line-height: 1; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(0); transition-property: transform; transition-timing-function: cubic-bezier(.12, .9, .22, 1); will-change: transform; }
.odo-strip span { display: block; height: 1em; line-height: 1; }
.odo-fix { line-height: 1; }
.odo-suf { line-height: 1; color: var(--red); display: inline-block; transform: scale(0); transform-origin: 20% 70%; }
.landed .odo-suf { transform: scale(1); transition: transform .6s var(--ease-press); }
/* the rolling columns are picture only: copying the section takes the real value from the hidden .sr text, not the 0-9 strips */
.odo, .odo-fix, .odo-suf { -webkit-user-select: none; user-select: none; }
.impact li { position: relative; border-top-color: var(--grey-3) !important; }
.impact li::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.impact li:first-child::before { background: var(--red); }
.impact.rolling li::before { transform: scaleX(1); transition: transform 1.8s cubic-bezier(.12, .9, .22, 1); }
.impact.rolling li:nth-child(2)::before { transition-delay: .18s; }
.impact.rolling li:nth-child(3)::before { transition-delay: .36s; }
.impact.rolling li:nth-child(4)::before { transition-delay: .54s; }
/* caption rises out from behind a mask (like the headlines) instead of fading, so whatever shows is at full contrast */
.js .impact li > span { clip-path: inset(0 0 100% 0); transform: translateY(10px); }
.impact li.landed > span { clip-path: inset(0); transform: none; transition: clip-path .7s var(--ease-out), transform .7s var(--ease-out); }
.impact strong { font-feature-settings: "tnum"; }
@media (prefers-reduced-motion: reduce) { .impact li::before { transform: none; } .js .impact li > span { clip-path: none; transform: none; } .odo-suf { transform: none; } }

/* gift picker: layered photos cross-fade with a slow push-in */
.give-photo img { position: absolute; inset: 0; transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out); }
.give-photo img.swap { opacity: 0; transform: scale(1.06); }
.give-photo figcaption { z-index: 2; }
#give-amt { font-variant-numeric: tabular-nums; }
.give-done { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--ink); font-weight: 500; }
.give-done i { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 16px; flex: none; }
.btn.done { background: var(--ink); }

/* gallery: lift the photo you're on, soften the rest (hover devices only) */
.strip-row img { cursor: pointer; }
@media (hover: hover) {
  .strip-row:hover li img { opacity: .55; }
  .strip-row li:hover img { opacity: 1; transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9); }
}
.strip-row li span { transition: color .4s; }
.strip-row li:hover span { color: var(--white); }


/* signed print: tilts toward the cursor with a glare */
.print { perspective: 1100px; }
.mat { transition: transform .9s var(--ease-out); transform-style: preserve-3d; }
.mat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%); opacity: 0; transition: opacity .6s var(--ease-out); mix-blend-mode: soft-light; }
.print.tilting .mat { transition: transform .15s linear; }
.print.tilting .mat::after { opacity: 1; }

/* mobile-first touches */
@media (max-width: 560px) {
  .nav { backdrop-filter: none; background: var(--white); }
  .follow-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 10px; border-radius: 14px; animation: sheet-up .5s var(--ease-out); z-index: 70; }
  .follow[open] summary::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 69; }
  .follow-menu a { padding: 14px 12px; }
}
@keyframes sheet-up { from { transform: translateY(110%); } }
.strip-row.hint { animation: nudge 1.4s var(--ease-out); }
@keyframes nudge { 35% { transform: translateX(-56px); } }


@media (prefers-reduced-motion: reduce) {
  .js .hero .seq, .js .hero h1 .line > span, .js .mask .mline > span { opacity: 1 !important; transform: none !important; }
  img.lqip { filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* lightbox: swipeable track, subtle side arrows flanking the photo */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #09090b; color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto auto; align-items: center; animation: lb-in .5s var(--ease-out); }
.lightbox.closing { animation: lb-out .35s var(--ease-out) forwards; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-stage { position: relative; height: 100%; min-height: 0; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: 64px 12px 8px; }
.lb-track { position: relative; height: 100%; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; }
.lb-track.dragging { cursor: grabbing; }
.lb-track img { max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: translate3d(var(--dx, 0px), 0, 0); transition: transform .55s var(--ease-out), opacity .35s var(--ease-out); pointer-events: none; }
.lb-track.dragging img { transition: none; }
.lb-track img.swap { opacity: 0; }
.lb-side { height: min(46vh, 380px); width: 44px; justify-self: center; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .07); color: var(--white); display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: background .3s, transform .45s var(--ease-press); }
.lb-side:hover { background: rgba(255, 255, 255, .16); }
.lb-side:active { transform: scale(.94); }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--white); display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.lb-close:hover { background: var(--red); }
.lb-meta { margin: 0; display: flex; justify-content: center; gap: 18px; padding: 12px 16px 8px; font: 700 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.lb-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 16px 20px; flex-wrap: wrap; }
.lb-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: width .4s var(--ease-out), background .4s; }
.lb-dots i.on { width: 22px; background: var(--red); }
@media (max-width: 720px) {
  .lb-stage { grid-template-columns: 34px 1fr 34px; padding: 60px 4px 4px; }
  .lb-side { width: 30px; height: 120px; border-radius: 15px; font-size: 18px; background: rgba(255, 255, 255, .06); }
  .lb-track img { max-height: calc(100svh - 150px); }
}

.print-note .credit { display: block; margin-top: 6px; font-size: 12px; color: var(--grey); }
.print-note .credit a { color: inherit; }

/* ============================================================
   PHONE READING ORDER: label → headline → photo → body → action.
   Wrappers dissolve (display: contents) so their children can be
   ordered around the photo.
   ============================================================ */
@media (max-width: 720px) {
  /* safety net: anything added to these wrappers later lands at the end, never above the heading */
  .chapter .ch-card > *, .give-copy > *, .auction-copy > * { order: 50; }
  /* program chapters: number + title on dark, then the photo, then the details */
  .chapter { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: var(--ink); }
  .chapter::after { display: none; }
  .chapter .wrap { display: contents; }
  .chapter .ch-card { display: contents; }
  .chapter .ch-n { order: 1; padding: 40px var(--gutter) 0; margin: 0; font-size: 56px; }
  .chapter .ch-card h3 { order: 2; padding: 10px var(--gutter) 20px; margin: 0; }
  .chapter > img, .chapter > video { order: 3; position: relative; top: 0; height: auto; aspect-ratio: 4 / 3; margin: 0; transform: translate3d(0, 0, 0) scale(var(--s)); }
  .chapter { overflow: hidden; }
  .chapter .ch-card > p:not(.meta) { order: 4; padding: 22px var(--gutter) 0; text-shadow: none; }
  .chapter .nuggets { order: 5; padding: 0 var(--gutter); }
  .chapter .meta { order: 6; padding: 0 var(--gutter) 44px; }
  .chapter.right .wrap { justify-content: initial; }

  /* give: label + headline + lede, then the photo, then the picker and button */
  .give-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .give-copy { display: contents; }
  .give-copy > .eyebrow { order: 1; }
  .give-copy > h2 { order: 2; }
  .give-copy > .lede { order: 3; }
  .give-photo { order: 4; margin-top: 22px; aspect-ratio: 16 / 10; }
  .give-copy > .freq { order: 5; align-self: flex-start; }
  .give-copy > .amount-group { order: 6; width: 100%; }
  .give-copy > #give-btn { order: 7; margin-top: 20px; }
  .give-copy > .give-done { order: 8; }
  .give-copy > .trust { order: 9; }

  /* auction: label + headline, then the print, then details and bidding */
  .auction-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .auction-copy > .eyebrow, .give-copy > .eyebrow { justify-content: flex-start; }
  .auction-copy { display: contents; }
  .auction-copy > .eyebrow { order: 1; }
  .auction-copy > h2 { order: 2; }
  .print { order: 3; margin: 30px 0 10px; }
  .auction-copy > .lede { order: 4; }
  .auction-copy > .lot { order: 5; }
  .auction-copy > .fmv { order: 6; }
  .auction-copy > .auction-actions { order: 7; }
  .auction-copy > .up-next { order: 8; }
}

.fmv { margin: 14px 0 0; font-size: 13px; color: var(--grey); max-width: 46ch; }
.consent { margin: 8px 0 0; font-size: 14px; color: var(--grey-2); }
.consent a { color: inherit; }
.foot .scam { color: var(--white); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.officers { font-size: 14px; color: var(--grey-2); margin: 10px 0 0; }
@media (max-width: 720px) { html { scroll-padding-bottom: 88px; } }
.foot li > .tbc { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; }

/* ============================================================
   PHONE DENSITY: same content, less scrolling. Short sequences
   become compact rows; long lists become one swipeable row, the
   way events already do. Nothing is hidden or removed.
   ============================================================ */
@media (max-width: 720px) {
  /* how Sunday gives back: number and icon sit beside each step instead of above it */
  .loop { padding: 48px 0; }
  .loop .kicker { margin-bottom: 26px; }
  .steps { gap: 22px; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 4px; padding-left: 16px; align-items: start; }
  .steps .step-n { grid-column: 1; grid-row: 1; margin: 6px 0 0; }
  .steps i { grid-column: 1; grid-row: 2; font-size: 28px; }
  .steps h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 26px; }
  .steps p { grid-column: 2; grid-row: 2; max-width: none; }

  /* impact numbers: a smaller icon so the two-by-two grid stays compact */
  .impact li > i { margin-bottom: 8px; font-size: 24px; }

  /* program chapters: the number tucks beside the title instead of taking its own line */
  .chapter { position: relative; }
  .chapter .ch-n { position: absolute; top: 20px; right: var(--gutter); padding: 0; font-size: 44px; line-height: 1; }
  .chapter .ch-card h3 { padding: 24px calc(var(--gutter) + 64px) 16px var(--gutter); }
  .chapter .meta { padding-bottom: 32px; }

  /* family: a squarer lead photo, the five of them in one swipeable row, and a tighter timeline */
  .fp-main img { aspect-ratio: 1 / 1; }
  .family-photos { margin-bottom: 20px; }
  .family-portrait { margin-top: 28px; }
  .people { display: flex; gap: 12px; margin: 28px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .people::-webkit-scrollbar { display: none; }
  .people li { flex: 0 0 76%; scroll-snap-align: start; padding: 14px 0 0; row-gap: 0; align-content: start; }
  .people img { grid-row: auto; }
  .people p { grid-column: 1 / -1; margin-top: 12px; }
  .timeline { gap: 16px; margin-top: 36px; }
  .timeline::before, .timeline::after { top: 18px; left: 17px; }
  .timeline::before { bottom: 18px; }
  .timeline::after { max-height: calc(100% - 36px); }
  .timeline li { grid-template-columns: 36px max-content 1fr; column-gap: 12px; align-items: baseline; }
  .tl-dot { width: 36px; height: 36px; font-size: 17px; grid-row: span 2; align-self: start; }
  .tl-year { grid-column: 2; margin-top: 0; font-size: 26px; line-height: 36px; }
  .tl-text { grid-column: 3; margin-top: 0; font-size: 15px; }
  .tl-sub { grid-column: 2 / -1; margin-top: 0; }

  /* thumbs: every control is at least 44px tall */
  .campaign p { padding-top: 0; padding-bottom: 0; min-height: 44px; }
  .campaign a { min-height: 44px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .freq button { min-height: 44px; }
  .foot li, .foot a { min-height: 44px; }

  /* small print stays readable */
  .fmv, .print-note { font-size: 14px; }
  .print-note .credit { font-size: 13px; }
  .legal { font-size: 14px; }
}
