/* SDLF site styles: fonts, tokens, then components. Ported from the approved mockup (D-028); EB Garamond display with Albert Sans text. */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* ---------- Tokens ---------- */
:root {
  /* Cascea's colors (D-024, locked) */
  --midnight: #0A1F44;
  --gold: #E0AA45;
  --paper: #FAFAF9;
  /* Supporting roles, tinted from her navy */
  --deep: #06152F;          /* Gala field */
  --mist: #EDF0F5;          /* second light field */
  --ink: #0A1F44;           /* text on light: 15.6:1 */
  --ink-soft: #4A5670;      /* secondary on light: 7.0:1 */
  --gold-ink: #8A6417;      /* gold text on light: 5.1:1 */
  --on-dark: #FAFAF9;       /* text on navy: 15.6:1 */
  --on-dark-soft: #AEB8CC;  /* secondary on navy: 8.2:1 */
  --unlit: #8893AC;         /* a Circle line already passed: 5.3:1 */
  --rule-light: rgba(10, 31, 68, .16);
  --rule-dark: rgba(224, 170, 69, .42);
  --gold-wash: rgba(224, 170, 69, .13);  /* the giant faint year behind each Programs panel */
  --hover-light: rgba(10, 31, 68, .04);  /* row hover on a light field */

  /* Type */
  --font-ui: "Albert Sans", system-ui, sans-serif;
  --font-display: "EB Garamond", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.012em;

  --t-hero: clamp(2.5rem, 1.1rem + 5.2vw, 5.75rem);
  --t-statement: clamp(1.75rem, 1.05rem + 2.6vw, 3.25rem);
  --t-circle: clamp(2rem, 1rem + 4vw, 4.5rem);
  --t-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --t-h3: 1.3125rem;
  --t-lede: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --t-body: clamp(1.125rem, 1.08rem + .2vw, 1.1875rem);
  --t-small: .9375rem;

  /* Space */
  --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem;
  --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --section: clamp(5.5rem, 4rem + 7vw, 11rem);
  --tight: clamp(4rem, 3rem + 4vw, 7rem);       /* between sections that belong together */
  --gutter: clamp(1.25rem, .6rem + 3vw, 3.5rem);
  --wide: 75rem;

  /* Shape and motion */
  --radius: 2px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-soft) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--midnight); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--midnight); outline-offset: 4px; border-radius: var(--radius); }
.dark :focus-visible, .gala :focus-visible { outline-color: var(--gold); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--midnight); color: var(--on-dark); padding: .75rem 1rem; z-index: 10; }
.skip:focus { top: .75rem; }
.nw { white-space: nowrap; }

/* ---------- Actions (the button system) ---------- */
/* Outlined, square, sentence case. Fills on hover; no pills, no shadows. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 1px solid currentColor; border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 500 1rem/1 var(--font-ui); letter-spacing: .01em; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .14s var(--ease-out);
  cursor: pointer;
}
.btn[hidden] { display: none; }
.btn:active { transform: scale(.97); }
.dark .btn, .gala .btn { color: var(--on-dark); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); }
  .dark .btn:hover, .gala .btn:hover { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
}

.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .35em; text-decoration-color: var(--gold-ink);
}
.dark .link, .gala .link { text-decoration-color: var(--gold); }
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }

/* "Coming soon": plainly not a button */
.soon { display: inline-flex; align-items: center; min-height: 3.25rem; color: var(--ink-soft); font-weight: 500; font-size: 1rem; }
.dark .soon, .gala .soon { color: var(--on-dark-soft); }
.soon b { font-weight: 500; margin-right: .5em; color: var(--ink); }
.dark .soon b, .gala .soon b { color: var(--on-dark); }


/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule-light); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 5.5rem; }
.brand img { height: 4rem; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .5rem 0; border-bottom: 1px solid transparent; }
@media (hover: hover) { .nav a:not(.btn):hover { border-bottom-color: var(--gold-ink); } }
.nav .btn, .header-give { min-height: 3.25rem; padding: 0 2rem; font-size: 1.0625rem; background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); }
@media (hover: hover) { .nav .btn:hover, .header-give:hover { background: transparent; color: var(--ink); } }
.menu-btn { display: none; }
.header-give { display: none; }
@media (max-width: 860px) {
  .site-header .wrap { min-height: 4.5rem; }
  .brand img { height: 3.25rem; }
  .menu-btn { display: inline-flex; min-height: 2.75rem; padding: 0 1.1rem; }
  /* on phones Donate stays in view beside Menu (her 2026-10-29 note: "straight to donate") */
  .header-give { display: inline-flex; min-height: 3rem; padding: 0 1.5rem; margin-left: auto; margin-right: calc(var(--s3) - var(--s5)); }
  .nav .btn { display: none; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-light); padding: var(--s3) var(--gutter) var(--s6);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--rule-light); }
  .nav .btn { margin-top: var(--s5); }
}

/* ---------- Hero: the sling sends one stone; it lands as the full stop and multiplies ---------- */
.dark { background: var(--midnight); color: var(--on-dark); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 5.5rem), 60rem);
  display: flex; align-items: center; padding: var(--s9) 0;
}
.hero .net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .sling {
  position: absolute; z-index: 1; top: -9%; right: clamp(1.5rem, 8vw, 9rem);
  height: 98%; width: auto; transform-origin: 50% 0;
}
/* with motion, the canvas draws the hand so the cords can bend; the image stays for layout and as the still */
.hero.canvas-hand .sling { visibility: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 48rem; }
.hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); }
.hero h1 .s1 { display: block; font-size: clamp(1.375rem, .95rem + 1.5vw, 2.5rem); line-height: 1.25; color: var(--on-dark-soft); max-width: 24ch; margin-bottom: .55em; }
.hero h1 .s2 { display: block; font-size: clamp(3.1rem, 1.2rem + 6.2vw, 6rem); line-height: 1.02; max-width: 11ch; }
/* the gold stone that becomes the full stop */
.stone { display: inline-block; width: .13em; height: .13em; margin-left: .05em; border-radius: 50%; background: var(--gold); vertical-align: baseline; }
.js-motion .hero h1:not(.landed) .stone { opacity: 0; }
.hero h1.landed .stone { transition: opacity .12s ease-out; }
.hero .lede { margin-top: var(--s6); font-size: var(--t-lede); color: var(--on-dark-soft); }
.hero .actions { justify-content: flex-start; }
.hero .btn { background: var(--midnight); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s4) var(--s6); margin-top: var(--s7); }
@media (max-width: 900px) {
  .hero { align-items: flex-end; min-height: 0; padding: 15rem 0 var(--s9); }
  .hero .sling { height: 16rem; top: -1.5rem; right: 6vw; }
}

/* ---------- What the Foundation does ---------- */
.does { padding: var(--tight) 0 0; }
.does .mission { font: var(--display-weight) clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.25 var(--font-display); letter-spacing: var(--display-track); max-width: 32ch; }
.does .how { margin-top: var(--s5); color: var(--ink-soft); max-width: 62ch; }
.does-list { list-style: none; margin: var(--s7) 0 0; padding: 0; border-bottom: 1px solid var(--rule-light); }
.does-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s3) var(--s7); padding: var(--s5) 0; border-top: 1px solid var(--rule-light); }
.does-list h3 { font: var(--display-weight) clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.25 var(--font-display); }
.does-list h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule-light); transition: text-decoration-color 160ms ease; }
.does-list p { color: var(--ink-soft); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .does-list h3 a:hover { text-decoration-color: currentColor; } }
@media (max-width: 760px) { .does-list li { grid-template-columns: 1fr; } }

/* ---------- Creed ---------- */
.creed { padding: var(--tight) 0 0; text-align: center; }
.creed p { font: var(--display-weight) clamp(1.375rem, 1.1rem + 1.1vw, 2rem)/1.5 var(--font-display); letter-spacing: -.005em; }

/* ---------- Why Shaun ---------- */
.why { padding: var(--tight) 0 var(--section); }
.why .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.why h2 { font-size: var(--t-h2); color: var(--ink-soft); margin-bottom: var(--s6); }
.why .statement { font: var(--display-weight) var(--t-statement)/1.14 var(--font-display); letter-spacing: var(--display-track); max-width: 22ch; }
.why .follow { margin-top: var(--s7); max-width: 34em; color: var(--ink-soft); font-size: var(--t-lede); line-height: 1.55; }
.why .link { display: inline-block; margin-top: var(--s5); }

/* His seven ways (Blueprint §2), each with a small gold stone like the hero's */
.shaun-ways { list-style: none; margin: 0; padding: calc(var(--t-h2) * 1.25 + var(--s6)) 0 0; display: grid; gap: var(--s4); }
.shaun-ways li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--s4); align-items: baseline; font: var(--display-weight) clamp(1.25rem, 1.05rem + .6vw, 1.5rem)/1.3 var(--font-display); color: var(--ink); }
.pebble { position: relative; width: .62em; height: .52em; background: var(--gold); border-radius: 55% 45% 52% 48% / 48% 58% 42% 52%; transform: rotate(calc(var(--r, 0) * 1deg)); }
.shaun-ways li:nth-child(2n) .pebble { --r: 24; border-radius: 48% 52% 45% 55% / 56% 44% 58% 42%; }
.shaun-ways li:nth-child(3n) .pebble { --r: -18; width: .56em; }
.pebble::after { content: ""; position: absolute; inset: -.35em; border: 1px solid var(--gold); border-radius: 50%; opacity: 0; }
/* With JavaScript the stones wait above their lines and drop in once, one after another */
.shaun-ways.js-drop .pebble { opacity: 0; transform: translateY(-1.1rem) rotate(calc(var(--r, 0) * 1deg)); }
.shaun-ways.js-drop.in .pebble { opacity: 1; transform: rotate(calc(var(--r, 0) * 1deg)); transition: transform .5s var(--ease-out), opacity .25s ease; transition-delay: calc(var(--i, 0) * 80ms); }
@keyframes ripple { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }
@media (hover: hover) and (pointer: fine) { .shaun-ways li:hover .pebble::after { animation: ripple .7s var(--ease-out); } }
.shaun-ways li.tapped .pebble::after { animation: ripple .7s var(--ease-out); }
@media (max-width: 760px) { .why .wrap { grid-template-columns: 1fr; gap: var(--s7); } .shaun-ways { padding-top: 0; } }

/* ---------- Two paths + the Legacy Year ---------- */
.paths { background: var(--mist); padding: var(--section) 0; }
.paths h2 {
  font: var(--display-weight) var(--t-statement)/1.12 var(--font-display); letter-spacing: var(--display-track);
  text-align: center; max-width: 22ch; margin: 0 auto var(--s9);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-light); }
.pair > div { padding: var(--s7) clamp(1rem, 3vw, 3.5rem) 0; }
.pair > div + div { border-left: 1px solid var(--rule-light); }
.pair h3 { font: 500 var(--t-h3)/1.3 var(--font-ui); margin-bottom: var(--s4); }
.pair p { color: var(--ink-soft); max-width: 30em; }
.pair p + p { margin-top: var(--s3); }
.paths .heart {
  font: var(--display-weight) clamp(1.375rem, 1.1rem + 1.1vw, 2rem)/1.4 var(--font-display);
  text-align: center; max-width: 30ch; margin: var(--s9) auto 0;
}
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair > div { padding: var(--s6) 0 0; }
  .pair > div + div { border-left: 0; border-top: 1px solid var(--rule-light); margin-top: var(--s6); }
}

.year { margin-top: var(--s10); }
.year-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); }
.year-head h3 { font: var(--display-weight) var(--t-h2)/1.2 var(--font-display); }
.year-nav { display: flex; gap: var(--s3); }
.year-nav button {
  width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, opacity .18s ease, transform .14s var(--ease-out);
}
.year-nav button:active { transform: scale(.95); }
.year-nav button[aria-disabled="true"] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .year-nav button:not([aria-disabled="true"]):hover { background: var(--midnight); color: var(--on-dark); } }
.year-nav svg { width: 1.1rem; height: 1.1rem; }
.ruler { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1px solid var(--rule-light); padding-bottom: var(--s3); color: var(--ink-soft); font-size: .8125rem; font-weight: 500; }
.ruler span { text-align: left; }
.ruler .fill { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--midnight); transform-origin: 0 50%; transform: scaleX(var(--p, .08)); transition: transform .3s var(--ease-out); }
.stops {
  list-style: none; margin: 0; padding: var(--s6) 0 var(--s5);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 21rem); gap: var(--s7);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--ink-soft) transparent;
}
.stop { scroll-snap-align: start; }
.stop .when { font-size: var(--t-small); font-weight: 500; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.stop h4 { font: 500 var(--t-h3)/1.3 var(--font-ui); margin: var(--s3) 0 var(--s3); }
.stop p:last-child { color: var(--ink-soft); }
@media (max-width: 760px) { .ruler span:nth-child(even) { visibility: hidden; } .year-nav { display: none; } .stops { grid-auto-columns: 80%; gap: var(--s5); } }

/* ---------- Officially Recognized (her words, 2026-10-27) ---------- */
.recognized { padding: var(--section) 0; }
.recognized .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s8); align-items: start; }
.recognized h2 { font: var(--display-weight) var(--t-statement)/1.12 var(--font-display); letter-spacing: var(--display-track); }
.recognized .lead { font-size: var(--t-lede); line-height: 1.55; max-width: 34em; }
.recognized .said p { max-width: 38em; }
.recognized .said p + p { margin-top: var(--s5); }
.recognized .said p:not(.lead, .sign) { color: var(--ink-soft); }
.recognized .sign { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule-light); font: var(--display-weight) var(--t-h2)/1.25 var(--font-display); color: var(--gold-ink); }
@media (max-width: 860px) { .recognized .wrap { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- The Circle, told by scrolling ---------- */
.circle { text-align: center; }
.circle-stage { padding: var(--section) 0 var(--s9); }
.circle-lines { list-style: none; margin: 0; padding: 0; }
.circle-lines li { font: var(--display-weight) var(--t-statement)/1.2 var(--font-display); letter-spacing: var(--display-track); padding: clamp(.6rem, 1.6vh, 1.25rem) var(--gutter); text-wrap: balance; }
.circle-lines li.turn { color: var(--gold); margin-top: clamp(1.5rem, 4vh, 3rem); }

/* Scroll-told mode: the section holds still while each line takes the screen */
.scrolly .circle-track { height: calc(6 * 75svh + 100svh); }
.scrolly .circle-stage { position: sticky; top: 0; height: 100svh; padding: 0; display: grid; place-items: center; overflow: hidden; }
.scrolly .circle-lines { position: relative; transition: transform .8s var(--ease-out); }
.scrolly .circle-lines li {
  font-size: var(--t-circle); margin: 0; padding-block: clamp(.4rem, 1.2vh, .9rem);
  opacity: 0; transform: translateY(1.5rem) scale(.96);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .6s ease;
}
.scrolly .circle-lines li.past { opacity: 1; color: var(--unlit); transform: scale(.62); }
.scrolly .circle-lines li.on { opacity: 1; color: var(--on-dark); transform: none; }
.scrolly .circle-lines li.turn.on { color: var(--gold); }
.scrolly .circle-lines li.turn { margin-top: 0; }
.scrolly .circle-count { position: absolute; bottom: var(--s6); left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.circle-count { display: none; }
.scrolly .circle-count span { width: .4rem; height: .4rem; border-radius: 50%; background: var(--unlit); opacity: .5; transition: opacity .3s ease, background-color .3s ease; }
.scrolly .circle-count span.on { background: var(--gold); opacity: 1; }

/* ---------- Ways to Get Involved: doors that open ---------- */
.ways { padding: var(--s9) 0 var(--section); }
.ways h2 { font-size: var(--t-h2); text-align: center; margin-bottom: var(--s7); color: var(--on-dark); }
.program { list-style: none; margin: 0 auto; padding: 0; max-width: 56rem; }
.door { border-top: 1px solid var(--rule-dark); }
.door:last-child { border-bottom: 1px solid var(--rule-dark); }
.door h3 { margin: 0; font: inherit; }
.row {
  width: 100%; display: flex; align-items: baseline; gap: var(--s4);
  padding: clamp(1.1rem, 2.4vh, 1.6rem) var(--s2); background: none; border: 0; text-align: left; cursor: pointer;
  transition: background-color .2s ease;
}
.row .name { font: var(--display-weight) clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.25 var(--font-display); }
.row .leader { flex: 1; min-width: 2rem; border-bottom: 1px dotted var(--rule-dark); transform: translateY(-.35em); }
.row .when { font-size: var(--t-small); font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .when.is-soon { color: var(--on-dark-soft); }
.plus { position: relative; width: .9rem; height: .9rem; flex: none; align-self: center; margin-left: var(--s3); transition: transform .25s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); }
.plus::after { transform: rotate(90deg); }
.door.open .plus { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .row:hover { background: rgba(250, 250, 249, .05); } }
/* Without JavaScript every door is open; doors.js adds .doors-js, which closes them until tapped */
.panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease-out); }
.program.doors-js .panel { grid-template-rows: 0fr; }
.program.doors-js .door.open .panel { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; min-height: 0; }
.panel-body { padding: 0 var(--s2) var(--s6); transition: opacity .2s ease; }
.program.doors-js .panel-body { opacity: 0; }
.program.doors-js .door.open .panel-body { opacity: 1; transition-delay: .08s; }
.program:not(.doors-js) .plus { display: none; }
.panel-body p { color: var(--on-dark-soft); max-width: 40rem; }
.panel-body .note { margin-top: var(--s3); font-size: var(--t-small); line-height: 1.6; }
.panel-body .actions + .note { margin-top: var(--s5); }
.panel-body .actions { justify-content: flex-start; margin-top: var(--s5); gap: var(--s3) var(--s5); }
.reveal .door { opacity: 0; transform: translateY(.75rem); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.in .door { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .row { flex-wrap: wrap; gap: .3rem var(--s3); padding-inline: 0; }
  .row .name { flex: 1 1 calc(100% - 3rem); }
  .row .leader { display: none; }
  .row .when { order: 3; flex-basis: 100%; white-space: normal; }
  .panel-body { padding-inline: 0; }
}

/* ---------- Kindness in Motion ---------- */
.kim { padding: var(--section) 0; }
.kim .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.kim h2 { font-size: var(--t-h2); color: var(--ink-soft); margin-bottom: var(--s5); }
.kim .statement { font: var(--display-weight) clamp(1.625rem, 1.1rem + 1.9vw, 2.625rem)/1.2 var(--font-display); letter-spacing: var(--display-track); }
.kim .side p { color: var(--ink-soft); }
.kim .window { margin-top: var(--s5); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.kim .actions { justify-content: flex-start; margin-top: var(--s6); gap: var(--s3) var(--s5); }
@media (max-width: 860px) { .kim .wrap { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Gala: an invitation, with the days left ---------- */
.gala { background: var(--deep); color: var(--on-dark); padding: var(--section) 0; text-align: center; }
.gala .card { max-width: 42rem; margin: 0 auto; padding: var(--s8) 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.gala .sub { color: var(--on-dark-soft); font-size: var(--t-small); font-weight: 500; letter-spacing: .02em; }
.gala h2 { font: var(--display-weight) clamp(2.75rem, 1.6rem + 4.6vw, 5rem)/1 var(--font-display); letter-spacing: var(--display-track); margin: var(--s5) 0 var(--s6); }
.gala .when { font-size: var(--t-lede); line-height: 1.55; font-variant-numeric: tabular-nums; }
.gala .where { color: var(--on-dark-soft); margin-top: var(--s4); }
.countdown { display: flex; align-items: baseline; justify-content: center; gap: .6rem; margin-top: var(--s7); }
.countdown[hidden] { display: none; }
.countdown .num { font: var(--display-weight) clamp(3.5rem, 2rem + 6vw, 6rem)/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown .unit { color: var(--on-dark-soft); font-weight: 500; }
.gala .actions { margin-top: var(--s7); flex-direction: column; gap: var(--s4); }
.gala .actions .secondary { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s6); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--s9) 0 var(--s7); }
.site-footer .sign { font: var(--display-weight) clamp(2rem, 1.3rem + 2.8vw, 3.5rem)/1.1 var(--font-display); letter-spacing: var(--display-track); max-width: 14ch; }
.site-footer .grid { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s8); align-items: end; margin-bottom: var(--s8); }
.site-footer .brand img { height: 5.5rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; text-align: right; }
.site-footer nav a { text-decoration: none; font-weight: 500; }
.site-footer .legal { border-top: 1px solid var(--rule-light); padding-top: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); color: var(--ink-soft); font-size: var(--t-small); }
.site-footer .legal p { max-width: 46em; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; gap: var(--s6); } .site-footer nav { text-align: left; } }

/* Reduced motion: keep fades that explain a change, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transition: none; }
  .plus, .btn, .year-nav button { transition-property: background-color, color, opacity; }
  .shaun-ways li:hover .pebble::after, .shaun-ways li.tapped .pebble::after { animation: none; }
}

/* ---------- 404 ---------- */
.lost { padding: var(--section) 0; }
.lost .statement { font: var(--display-weight) var(--t-statement)/1.14 var(--font-display); letter-spacing: var(--display-track); margin-bottom: var(--s6); }

/* ---------- Quick ways in, right under the opening ---------- */
.quick { border-bottom: 1px solid var(--rule-light); }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick li + li { border-left: 1px solid var(--rule-light); }
.quick a { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 3rem; padding: var(--s5); text-decoration: none; font-weight: 500; }
.quick li:first-child a { padding-left: 0; }
.quick a::after { content: "→"; content: "→" / ""; color: var(--gold-ink); transition: transform .2s var(--ease-out); }
@media (hover: hover) { .quick a:hover::after { transform: translateX(.25rem); } }
@media (max-width: 760px) {
  .quick ul { grid-template-columns: 1fr; }
  .quick li + li { border-left: 0; border-top: 1px solid var(--rule-light); }
  .quick a { padding: var(--s4) 0; }
}
