/* ==========================================================================
   Charlotte Baker Memorial Fund — site styles
   Palette pulled from the memorial logo: boardwalk, beach, sunrise, sea.
   ========================================================================== */

:root {
  /* Sea & sky */
  --ink: #0e2635;          /* deep water — primary text & dark sections */
  --ink-2: #16384c;
  --ocean: #1d62a8;        /* logo water line */
  --teal: #2cc3c8;         /* logo ring */
  --teal-deep: #0e8a90;    /* accessible teal for text on light */
  --teal-soft: #d8f5f6;
  --sky: #cdeefb;

  /* Sand & sun */
  --sand: #fbf6ec;         /* page background */
  --sand-2: #f3e7cd;
  --sand-3: #e8d6ae;
  --sun: #f6a623;
  --sun-deep: #d9820b;
  --coral: #ef6f5e;
  --pink: #f08bb4;         /* memorial weekend shirts */
  --wood: #7b5334;         /* boardwalk */
  --wood-light: #a8774d;

  /* Neutrals */
  --text: #213a48;
  --muted: #5a6f7b;
  --line: rgba(14, 38, 53, 0.12);
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(14, 38, 53, 0.06), 0 1px 2px rgba(14, 38, 53, 0.05);
  --shadow: 0 18px 40px -18px rgba(14, 38, 53, 0.28), 0 4px 12px rgba(14, 38, 53, 0.06);
  --shadow-lg: 0 40px 80px -30px rgba(14, 38, 53, 0.45);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor;
}
.center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.display {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); }
.lede { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); color: var(--muted); line-height: 1.6; }
.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; }
em.accent, .accent { font-style: italic; color: var(--teal-deep); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
  box-shadow: 0 10px 24px -12px rgba(14, 38, 53, .55);
  position: relative; isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(14, 38, 53, .6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-sun:hover { background: #ffb53d; }
.btn-teal { --bg: var(--teal-deep); --fg: #fff; }
.btn-teal:hover { background: #0b7a80; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-outline { --bg: transparent; --fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.85); box-shadow: none; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.08rem; }
.btn-heart svg { color: var(--coral); }
.btn-sun.btn-heart svg { color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--teal-deep); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--ease), background-color .4s, box-shadow .4s, color .4s;
  color: var(--ink);
}
.site-header.is-scrolled {
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(14,38,53,.35);
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the
   header itself would make it the containing block for the fixed-position
   mobile menu, cropping the menu to the header's height once scrolled. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 246, 236, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img {
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(14,38,53,.2));
  transition: width .4s var(--ease), height .4s var(--ease), transform .6s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.site-header.is-scrolled .brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand-text span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-deep); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.97rem; color: var(--ink);
  transition: background-color .25s;
}
.nav a:not(.btn):hover { background: rgba(14, 38, 53, .06); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--sun);
}
.nav .btn { min-height: 46px; padding: 0 22px; margin-left: 10px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff;
  align-items: center; justify-content: center;
  position: relative; z-index: 120;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), background-color .2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
    padding: 100px 28px 40px;
    background: var(--ink);
    background-image: radial-gradient(120% 60% at 100% 0%, rgba(44,195,200,.25), transparent 60%),
                      radial-gradient(90% 50% at 0% 100%, rgba(246,166,35,.18), transparent 60%);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path .7s var(--ease);
    visibility: hidden;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
  .nav a:not(.btn) {
    color: #fff; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500;
    padding: 10px 6px; border-radius: 0; letter-spacing: -0.02em;
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .nav a:not(.btn):hover { background: none; color: var(--teal); }
  .nav a[aria-current="page"]:not(.btn)::after { left: auto; right: 6px; top: 50%; bottom: auto; margin-top: -5px; width: 10px; height: 10px; }
  .nav .btn { margin: 24px 0 0; min-height: 60px; font-size: 1.1rem; opacity: 0; transition: opacity .5s var(--ease) .35s; }
  .menu-open .nav a:not(.btn) { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(1) { transition-delay: .12s; }
  .menu-open .nav a:nth-child(2) { transition-delay: .18s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .24s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .30s; }
  .menu-open .nav .btn { opacity: 1; }
  .menu-open .menu-toggle { background: #fff; color: var(--ink); }
  .menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 1rem; }
  .brand img { width: 46px; height: 46px; }
}

/* ==========================================================================
   HERO — the boardwalk at sunrise
   ========================================================================== */
.hero {
  --sea-h: clamp(200px, 31vh, 340px);
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  padding: 96px 0 calc(var(--sea-h) + clamp(110px, 14vh, 140px));
  overflow: hidden;
  background: linear-gradient(180deg, #b9e5fa 0%, #dcf3fb 45%, #fdebd3 82%, #fcdcae 100%);
}
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene-sky { position: absolute; top: 60px; width: clamp(180px, 22vw, 340px); height: auto; }
.scene-sky.left { left: 0; }
.scene-sky.right { right: 0; }
.scene-sea { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--sea-h); }
/* horizon sits 10/320 of the sea band from its top */
.scene-sun {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sea-h) * 0.969 - 8px); /* tucked a few px behind the water so no sky shows through the wave dips */
  width: clamp(220px, 19vw, 290px); aspect-ratio: 400 / 220; overflow: hidden;
}
.scene-sun svg { width: 100%; height: 100%; overflow: visible; }
.scene-oats { position: absolute; bottom: 0; height: calc(var(--sea-h) * 0.5); width: auto; aspect-ratio: 180 / 170; }
.scene-oats.left { left: 3%; }
.scene-oats.right { right: 3%; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 920px; margin-inline: auto; text-align: center; }
.hero-copy .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .hero-actions, .hero-copy .hero-note { justify-content: center; }
.hero h1 { margin-bottom: 22px; font-size: min(clamp(2.5rem, 1.2rem + 4.6vw, 5.4rem), 9.5vh); }
.hero .eyebrow { margin-bottom: 14px; }
@media (max-height: 820px) and (min-width: 901px) { .hero .lede { font-size: 1.1rem; } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { color: var(--ink-2); max-width: 44ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note {
  margin-top: 22px; display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: var(--ink-2); font-weight: 600;
}
.hero-note .ribbon { width: 22px; height: 30px; flex: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* SVG scene animations */
.sun-group { animation: sunrise 3.2s var(--ease) both; }
@keyframes sunrise { from { transform: translateY(160px); } to { transform: none; } }
.cloud { animation: sway ease-in-out infinite alternate; }
.cloud.c1 { animation-duration: 9s; }
.cloud.c2 { animation-duration: 12s; animation-delay: -4s; }
.cloud.c3 { animation-duration: 11s; animation-delay: -7s; }
@keyframes sway { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
.wave { animation: wave linear infinite; }
.wave.w1 { animation-duration: 18s; }
.wave.w2 { animation-duration: 12s; animation-direction: reverse; }
.wave.w3 { animation-duration: 9s; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-720px); } }
.foam { animation: foam 5s ease-in-out infinite; }
@keyframes foam { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(6px); opacity: .55; } }
.bird { animation: bird 6s ease-in-out infinite alternate; }
.bird.b2 { animation-duration: 7.5s; animation-delay: -3s; }
@keyframes bird { from { transform: translate(0, 0); } to { transform: translate(-24px, -10px); } }

@media (max-width: 900px) {
  .hero { --sea-h: clamp(170px, 26vh, 240px); padding-top: 104px; align-items: flex-start; }
  .scene-sun { width: 240px; }
  .scene-sky { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(150px, 18vw, 210px) 0 clamp(110px, 14vw, 170px);
  background: linear-gradient(180deg, #c7ebfa 0%, #e6f6fb 55%, var(--sand) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .display { max-width: 16ch; }
.page-hero .lede { max-width: 58ch; margin-top: 8px; color: var(--ink-2); }
.page-hero-art { position: absolute; inset: auto 0 -1px 0; z-index: 1; pointer-events: none; }
.page-hero-art svg { display: block; }
.page-hero-art svg { width: 100%; height: auto; }
.page-hero .sun-dot {
  --sun: clamp(120px, 16vw, 240px);
  position: absolute; z-index: 0; right: 12%;
  /* centre of the sun sits on the horizon line of the wave band below */
  bottom: calc(7.3vw - var(--sun) / 2);
  width: var(--sun); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid #2a2320;
  background: radial-gradient(circle at 40% 40%, #ffd27a, var(--sun-color, #f6a623) 60%, #f19a1a);
  /* three halo rings, same proportions and colours as the homepage sun */
  box-shadow:
    0 0 0 calc(var(--sun) * .085) rgba(255, 191, 71, .55),
    0 0 0 calc(var(--sun) * .165) rgba(255, 201, 94, .42),
    0 0 0 calc(var(--sun) * .246) rgba(255, 210, 122, .3);
  animation: sunrise 2.8s var(--ease) both;
}
.crumbs { display: flex; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--teal-deep); }

/* ==========================================================================
   Sections
   ========================================================================== */

/* Mission statement */
.mission { padding-block: clamp(80px, 11vw, 150px) clamp(60px, 8vw, 100px); }
.mission-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.18; letter-spacing: -0.025em; color: var(--ink);
  text-wrap: balance; margin: 0;
}
.mission-quote .hl {
  background: linear-gradient(transparent 62%, rgba(44, 195, 200, .35) 62%, rgba(44, 195, 200, .35) 92%, transparent 92%);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1.4s var(--ease) .3s;
}
.mission-quote.is-visible .hl { background-size: 100% 100%; }
.mission-sign { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; }
.mission-sign .hand { font-size: 1.9rem; color: var(--teal-deep); }

/* Section heading row */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head .lede { margin: 0; }

/* How we help — cards */
.help { background: var(--white); border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.5vw, 24px); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.help-card {
  position: relative; overflow: hidden;
  padding: 36px 30px 34px; border-radius: var(--radius);
  background: var(--sand); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.help-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.help-card .icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: 26px; color: var(--ink);
  transition: transform .6s var(--ease);
}
.help-card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.help-card .icon svg { width: 32px; height: 32px; }
.help-card:nth-child(1) .icon { background: var(--teal-soft); }
.help-card:nth-child(2) .icon { background: #fdebc8; }
.help-card:nth-child(3) .icon { background: #fde0ea; }
.help-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.help-card p { color: var(--muted); margin: 0; }
.help-card .num {
  position: absolute; right: 22px; top: 14px;
  font-family: var(--font-display); font-size: 4.4rem; font-weight: 300; line-height: 1;
  color: rgba(14, 38, 53, .06);
}
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }

.families-band {
  margin-top: 26px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--ink); color: #e6f2f5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background-image: radial-gradient(80% 140% at 100% 0%, rgba(44, 195, 200, .28), transparent 60%);
}
.families-band h3 { color: #fff; margin: 0 0 4px; font-size: 1.45rem; }
.families-band p { margin: 0; color: #b8d0d8; max-width: 60ch; }

/* Charlotte's story split */
.story-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.story-visual { position: relative; }
.story-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px; overflow: hidden;
  background: linear-gradient(180deg, #bfe8fb 0%, #e7f7fb 50%, #f3e2bf 51%, #e9d09f 100%);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.story-frame img.portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.story-frame img.logo-fallback { width: 74%; filter: drop-shadow(0 20px 26px rgba(14,38,53,.25)); }
.story-badge {
  position: absolute; right: -18px; bottom: 40px;
  background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.story-badge svg { width: 30px; height: 40px; flex: none; }
.story-badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.15; }
.story-badge span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.story-copy .h2 { margin-bottom: 26px; }
.story-copy p { color: var(--text); }
.story-copy .dropcap::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.6em; line-height: .82;
  padding: 6px 12px 0 0; color: var(--teal-deep); font-weight: 500;
}
@media (max-width: 900px) {
  .story-split { grid-template-columns: 1fr; }
  .story-visual { max-width: 440px; }
  .story-badge { right: 12px; }
}

/* ALS facts — deep water section */
.deep {
  background: var(--ink); color: #cfe2e8; position: relative; overflow: hidden; isolation: isolate;
}
.deep::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(44, 195, 200, .22), transparent 70%),
    radial-gradient(50% 50% at 5% 95%, rgba(29, 98, 168, .45), transparent 70%);
}
.deep h2, .deep h3 { color: #fff; }
.deep .eyebrow { color: var(--teal); }
.deep .lede { color: #a9c3cc; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--ink); padding: 40px 34px; transition: background-color .4s; }
.fact:hover { background: var(--ink-2); }
.fact-num {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem);
  color: var(--teal); line-height: 1; letter-spacing: -0.04em; display: block; margin-bottom: 16px;
}
.fact p { margin: 0; color: #cfe2e8; }
.fact p strong { color: #fff; }
.source { margin-top: 22px; font-size: .85rem; color: #86a3ad; }
.source a { color: var(--teal); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }


/* Memorial weekend */
.weekend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.photo-stack { position: relative; padding-bottom: 60px; }
.photo-stack .p1 { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.photo-stack .p2 {
  position: absolute; right: -20px; bottom: 0; width: 52%;
  border-radius: 18px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow);
  transform: rotate(4deg);
}
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .tag {
  position: absolute; left: 22px; top: -18px; z-index: 3;
  background: var(--pink); color: var(--ink); padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; transform: rotate(-5deg);
  box-shadow: var(--shadow-sm);
}
.event-list { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 4px; }
.event-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed rgba(14, 38, 53, .18);
}
.event-list li:last-child { border-bottom: 0; }
.event-list .ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink);
}
.event-list .ico svg { width: 26px; height: 26px; }
.event-list strong { display: block; font-size: 1.08rem; color: var(--ink); }
.event-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .weekend-grid { grid-template-columns: 1fr; }
  .photo-stack .p2 { right: -6px; }
}

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-grid.two { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.news-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 10px; }
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand-3); }
.news-meta time { color: var(--muted); }
.news-card h3 { font-size: 1.22rem; line-height: 1.2; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.news-card .text-link { margin-top: auto; font-size: .95rem; }
.news-grid.two .news-card h3 { font-size: 1.6rem; }
.news-grid.two .news-card .body { padding: 30px 32px 32px; }
@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid, .news-grid.two { grid-template-columns: 1fr; } }

/* Final CTA — sunset */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 clamp(8px, 1.5vw, 24px) clamp(8px, 1.5vw, 24px);
  border-radius: clamp(28px, 4vw, 56px);
  padding: clamp(90px, 12vw, 160px) 0 clamp(200px, 22vw, 280px);
  text-align: center; color: #fff;
  background: linear-gradient(180deg, #1c3560 0%, #6b4a82 36%, #e0766a 66%, #f6ae5c 88%, #f8c070 100%);
}
.cta h2 { color: #fff; }
.cta .lede { color: rgba(255, 255, 255, .88); max-width: 46ch; margin: 0 auto 38px; }
.cta .eyebrow { color: #ffd9a0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-art { position: absolute; inset: auto 0 0 0; z-index: -1; }
.cta-art svg { width: 100%; height: auto; }
.cta .stars span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }

/* Footer */
.site-footer { padding: clamp(60px, 8vw, 100px) 0 36px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 96px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .96rem; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-weight: 600; transition: color .2s; }
.site-footer a:hover { color: var(--teal-deep); }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: transform .3s var(--ease), background-color .3s;
}
.social a:hover { transform: translateY(-3px); background: var(--teal-deep); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
.footer-bottom .heart { color: var(--coral); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner page components
   ========================================================================== */

/* Long-form prose */
.prose { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); line-height: 1.75; }
.prose p { margin-bottom: 1.3em; }
.prose .dropcap::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.9em; line-height: .78;
  padding: 7px 6px 0 0; color: var(--teal-deep);
}
.pullquote {
  margin: clamp(40px, 6vw, 70px) 0; padding: 0 0 0 clamp(20px, 3vw, 36px);
  border-left: 4px solid var(--sun);
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  line-height: 1.25; color: var(--ink); letter-spacing: -0.02em; font-weight: 400;
}
.pullquote cite { display: block; margin-top: 16px; font-family: var(--font-body); font-style: normal; font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }

/* Family photo feature (story page) */
.family-feature { padding-bottom: clamp(60px, 8vw, 110px); }
.family-photo { position: relative; margin: 0 auto; max-width: min(960px, (100svh - 140px) * 1.6); }
.family-photo picture, .family-photo img { display: block; width: 100%; }
.family-photo img { border-radius: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.family-photo figcaption {
  position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(-22px, -2vw, -16px);
  background: #fff; padding: 8px 22px 10px; border-radius: 999px; box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.family-photo figcaption .hand { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); color: var(--ink); }

/* Journey — sticky heading beside the timeline */
.journey { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.journey-head { position: sticky; top: 130px; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .journey-head { position: static; } }

/* Timeline — the boardwalk */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 6px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, var(--wood-light) 0 18px, var(--wood) 18px 22px);
  opacity: .85;
}
.timeline li { position: relative; padding: 0 0 46px 86px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .marker {
  position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 3px solid var(--sand-3);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .5s, background-color .5s, transform .5s var(--ease);
}
.timeline li.is-visible .marker { border-color: var(--teal); transform: scale(1.04); }
.timeline li.memory .marker { background: var(--ink); color: #fff; border-color: var(--ink); }
.timeline h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.timeline p { color: var(--muted); margin: 0; max-width: 60ch; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* People */
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.person {
  text-align: center; padding: 30px 16px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0 50%, var(--sand-2) 50% 100%);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal);
}
.person strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.person span { font-size: .88rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* Event lineup cards */
.lineup { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lineup-card {
  grid-column: span 3; position: relative; overflow: hidden;
  padding: 34px 30px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.lineup-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lineup-card .icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.lineup-card .icon svg { width: 30px; height: 30px; }
.lineup-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.lineup-card p { color: var(--muted); margin-bottom: 18px; }
.lineup-card .chip { margin-top: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800;
  background: var(--sand); color: var(--ink-2); border: 1px solid var(--line);
}
.bg-teal { background: var(--teal-soft); } .bg-sun { background: #fdebc8; } .bg-pink { background: #fde0ea; }
.bg-sky { background: #dcecfb; } .bg-sand { background: var(--sand-2); }
@media (max-width: 640px) { .lineup { grid-template-columns: 1fr; } .lineup-card { grid-column: auto; } }

/* Save-the-date ticket */
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0;
  background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ticket-main { padding: clamp(30px, 4vw, 50px); position: relative; }
.ticket-main h2 { color: #fff; }
.ticket-main p { color: #b8d0d8; max-width: 52ch; }
.ticket-stub {
  padding: clamp(30px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: var(--sun); color: var(--ink); text-align: center; min-width: 240px;
  border-left: 3px dashed rgba(14, 38, 53, .35); position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -16px; width: 30px; height: 30px; border-radius: 50%; background: var(--sand);
}
.ticket-stub::before { top: -15px; } .ticket-stub::after { bottom: -15px; }
.ticket-stub .big { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.ticket-stub .small { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 720px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 3px dashed rgba(14,38,53,.35); }
  .ticket-stub::before { top: -16px; left: -15px; } .ticket-stub::after { top: -16px; bottom: auto; left: auto; right: -15px; }
}

/* Past weekends */
.past { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.past-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.past-card .year { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--teal-deep); letter-spacing: -0.04em; }
.past-card h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.past-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.past-card li { margin-bottom: 6px; }
@media (max-width: 900px) { .past { grid-template-columns: 1fr; } }

/* Involvement cards */
.involve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.involve-card {
  padding: 30px 26px; border-radius: var(--radius); background: var(--ink-2); color: #cfe2e8;
  border: 1px solid rgba(255,255,255,.08); transition: transform .5s var(--ease), background-color .4s;
}
.involve-card:hover { transform: translateY(-6px); background: #1b4660; }
.involve-card svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 20px; }
.involve-card h3 { font-size: 1.3rem; }
.involve-card p { font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .involve { grid-template-columns: 1fr; } }

/* Donate page */
.donate-hero-card {
  position: relative; background: #fff; border-radius: 32px; box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 56px); overflow: hidden;
}
.donate-hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--ocean), var(--sun), var(--pink));
}
.donate-hero-card h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.secure {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; color: var(--muted); font-weight: 600;
}
.secure svg { width: 18px; height: 18px; color: var(--teal-deep); }
.checklist { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 26px; height: 26px; color: var(--teal-deep); margin-top: 2px; }
.ein {
  margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--sand); font-size: .92rem; color: var(--ink-2);
  display: flex; gap: 12px; align-items: center;
}
.ein svg { width: 22px; height: 22px; flex: none; color: var(--teal-deep); }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way {
  padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.way:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.way .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.way .icon svg { width: 28px; height: 28px; }
.way h3 { font-size: 1.3rem; }
.way p { color: var(--muted); margin: 0 0 14px; font-size: .98rem; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ways { grid-template-columns: 1fr; } }

.where { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.where > div { padding: 36px 32px; color: var(--ink); }
.where > div:nth-child(1) { background: var(--teal-soft); }
.where > div:nth-child(2) { background: #fdebc8; }
.where > div:nth-child(3) { background: #fde0ea; }
.where svg { width: 36px; height: 36px; margin-bottom: 16px; }
.where h3 { font-size: 1.3rem; }
.where p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 800px) { .where { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 800; color: var(--ink); font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none; border-right: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep);
  transform: rotate(45deg) translateY(-4px); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details > div { padding: 0 26px 24px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Wave divider */
.wave-divider { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .js [data-reveal="left"]:not(.is-visible), .js [data-reveal="right"]:not(.is-visible) { transform: translateY(28px); }
}
main { overflow-x: clip; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero.is-ready h1 .line > span { transform: none; }
.js .hero.is-ready h1 .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero.is-ready h1 .line:nth-child(3) > span { transition-delay: .24s; }
.js .hero .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero.is-ready .fade-up { opacity: 1; transform: none; }
.js .hero.is-ready .fade-up.d1 { transition-delay: .45s; }
.js .hero.is-ready .fade-up.d2 { transition-delay: .6s; }
.js .hero.is-ready .fade-up.d3 { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero .fade-up, .js .hero h1 .line > span { opacity: 1 !important; transform: none !important; }
}

/* Print */
@media print {
  .site-header, .hero-scene, .cta-art, .menu-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Sponsor marquee ---------- */
.sponsors .section-head { margin-bottom: clamp(28px, 4vw, 44px); }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0 14px;
  /* Fade the edges so cards slide in and out instead of popping */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  /* Duration is set per-page from JS so the speed stays constant as sponsors are added */
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}

/* Pause for anyone reading a name, by mouse or by keyboard */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.sponsor-chip {
  /* Spacing lives in margin, not flex gap: the track must be exactly two
     identical halves for the -50% loop to be seamless. */
  flex: 0 0 auto;
  margin-right: clamp(18px, 3vw, 34px);
  width: clamp(168px, 20vw, 208px);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.marquee:hover .sponsor-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sponsor-chip img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-chip .name {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}

/* No logo yet: show the name on a sand tile so the card still reads as a card */
.sponsor-chip.is-textonly {
  background: linear-gradient(160deg, var(--sand-2), var(--sand));
}
.sponsor-chip.is-textonly .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  /* No sliding: lay the sponsors out as a static centered grid */
  .marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: var(--gutter);
  }
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto;
    max-width: var(--wrap);
  }
  .sponsor-chip { margin: 0 clamp(9px, 1.5vw, 17px) clamp(18px, 3vw, 34px); }
  .marquee-track .is-clone { display: none; }
}
