/* ==========================================================================
   Ian Gray — Variation 2 (interactive)
   Same brand palette and typefaces as v1, dark-forward and motion-led.
   ========================================================================== */

:root {
  --primary-blue: #0E4595;
  --deep-navy:    #082D63;
  --bright-blue:  #1E5EB8;
  --light-blue:   #E8F0FA;
  --pale-blue:    #F4F7FC;
  --white:        #FFFFFF;
  --charcoal:     #252A30;
  --cool-grey:    #6B7280;

  /* Derived from the navy for depth on dark sections. */
  --ink:          #061F47;
  --ink-2:        #0A2A5C;
  --sky:          #9CC3F5;   /* light accent that holds 4.5:1 on navy */

  --grey-text:    #5A6472;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap:      1240px;
  --wrap-nar:  780px;
  --gutter:    clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --r:    12px;
  --r-lg: 20px;

  --sh-sm: 0 2px 10px rgba(4, 20, 48, .10);
  --sh-md: 0 14px 40px rgba(4, 20, 48, .16);
  --sh-lg: 0 30px 80px rgba(4, 20, 48, .40);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-blue); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--bright-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On dark sections the navy ring disappears — use the light accent instead. */
.numbers :focus-visible, .why :focus-visible, .family :focus-visible,
.supporters :focus-visible, .site-footer :focus-visible, .site-header :focus-visible,
.hero :focus-visible, .rail :focus-visible {
  outline-color: var(--sky);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -130%);
  z-index: 300;
  background: var(--white); color: var(--primary-blue);
  padding: .9rem 1.6rem;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--r) var(--r);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

/* ------------------------------------------------------------ typography */

.section { padding-block: var(--section-y); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--bright-blue);
  margin: 0 0 .85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem);
  color: var(--deep-navy);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section-intro { color: var(--grey-text); margin: 0; font-size: 1.05rem; }

/* Dark sections invert the head colours */
.numbers .eyebrow, .why .eyebrow, .family .eyebrow, .supporters .eyebrow { color: var(--sky); }
.why .section-title, .family .section-title, .supporters .section-title { color: #fff; }
.why .section-intro, .family .section-intro, .supporters .section-intro { color: rgba(255,255,255,.72); }

.inline-link {
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(14,69,149,.3);
}
.inline-link:hover { border-bottom-color: var(--primary-blue); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .82rem;
  line-height: 1;
  padding: 1.1rem 2rem;
  border-radius: 100px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary-blue); border-color: var(--primary-blue); color: #fff;
  box-shadow: 0 8px 24px rgba(14,69,149,.4);
}
.btn-primary:hover { background: var(--bright-blue); border-color: var(--bright-blue); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--primary-blue); }

.btn-outline { background: transparent; border-color: var(--primary-blue); color: var(--primary-blue); }
.btn-outline:hover { background: var(--primary-blue); color: #fff; }

.round-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
  background: #fff;
  color: var(--primary-blue);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .25s var(--spring);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--primary-blue); color: #fff; transform: scale(1.08); }

/* -------------------------------------------------------- scroll progress */

.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 3px;
  z-index: 210;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--bright-blue), var(--sky));
}

/* ----------------------------------------------------------------- header */

/* Stays off-screen over the hero and slides in once it scrolls past. */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(6, 31, 71, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
}
.site-header.is-stuck { transform: translateY(0); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.header-logo img { height: 32px; width: auto; }

.primary-nav ul { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.9rem); }
.primary-nav a {
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav .nav-cta {
  background: var(--primary-blue);
  color: #fff;
  padding: .75rem 1.3rem;
  border-radius: 100px;
}
.primary-nav .nav-cta:hover { background: var(--bright-blue); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem;
  color: #fff;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 24px; }
.nav-toggle-bars span {
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------- rail (dots) */

.rail {
  position: fixed; right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 190;
}
.rail ul { display: grid; gap: 14px; }
.rail a {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
}
.rail span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  transition: transform .3s var(--spring), background-color .3s var(--ease);
}
.rail a:hover span { transform: scale(1.4); background: #fff; }
.rail a.is-current span { background: var(--sky); transform: scale(1.65); }
/* Over light sections the white dots vanish */
.rail.on-light span { background: rgba(14,69,149,.30); box-shadow: none; }
.rail.on-light a:hover span { background: var(--primary-blue); }
.rail.on-light a.is-current span { background: var(--primary-blue); }

/* ------------------------------------------------------------------- hero */

/* Two columns: identity on the left, the vote panel on the right. Splitting
   them roughly halves the stacked height, which is what lets every element
   sit at a proper display size and still fit one screen. */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3.5vh, 3.5rem) 0 clamp(3.5rem, 8vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,31,71,.86) 0%, rgba(6,31,71,.62) 46%, rgba(6,31,71,.44) 100%),
    linear-gradient(180deg, rgba(14,69,149,.20), rgba(6,31,71,.52));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(100% - (var(--gutter) * 2), var(--wrap));
}

/* ---- left column ---- */

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  padding: .5rem 1.1rem;
  border-radius: 100px;
  margin: 0 0 clamp(1rem, 2.4vh, 1.6rem);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(156,195,245,.7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(156,195,245,.65); }
  70%  { box-shadow: 0 0 0 10px rgba(156,195,245,0); }
  100% { box-shadow: 0 0 0 0 rgba(156,195,245,0); }
}

.hero-logo { margin: 0 0 clamp(1rem, 2.4vh, 1.6rem); }
.hero-logo img {
  width: min(100%, 620px);
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.45));
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  font-size: clamp(1.5rem, .95rem + 2.15vw, 2.85rem);
  color: #fff;
  background: var(--primary-blue);
  padding: .5em .85em .44em;
  border-radius: 8px;
  margin: 0 0 clamp(1.1rem, 2.6vh, 1.75rem);
}

/* Ian's motto. Sentence case in the condensed face so it reads as a quote
   rather than competing with the all-caps tagline above it. */
.hero-motto {
  margin: 0;
  padding-left: clamp(.9rem, 1.6vw, 1.25rem);
  border-left: 3px solid rgba(255,255,255,.30);
  max-width: 32ch;
}
.hero-motto p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.05rem);
  line-height: 1.22;
  color: rgba(255,255,255,.96);
  margin: 0 0 .5rem;
  text-wrap: balance;
}
.hero-motto cite {
  font-style: normal;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: rgba(255,255,255,.58);
}

/* ---- right column: the vote panel ---- */

.hero-panel {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  box-shadow: 0 24px 60px rgba(4,20,48,.35);
}

.countdown { margin: 0 0 clamp(1.2rem, 2.6vh, 1.75rem); }
.countdown-label {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgba(255,255,255,.72);
  margin: 0 0 .9rem;
  text-align: center;
}
.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.4rem, 1vw, .6rem);
}
.countdown-units li {
  text-align: center;
  padding: clamp(.7rem, 1.6vh, 1rem) .3rem clamp(.55rem, 1.2vh, .8rem);
  border-radius: var(--r);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
}
.cd-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2.1vw, 3.1rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  display: block;
  font-size: .63rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.62);
  margin-top: .4rem;
}

.hero-actions { display: grid; gap: .7rem; }
.hero-actions .btn { width: 100%; padding: 1.15rem 1.5rem; font-size: .86rem; }

.scroll-cue {
  position: absolute; bottom: clamp(.85rem, 2.2vh, 1.6rem); left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%;
  width: 3px; height: 7px; border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%,100% { opacity: 0; transform: translate(-50%, 0); }
  35%     { opacity: 1; }
  70%     { opacity: 0; transform: translate(-50%, 12px); }
}

/* ------------------------------------------------------------- stat band */

.numbers { background: var(--ink); padding-block: clamp(3.5rem, 7vw, 6rem); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.stat { padding: 1rem .5rem; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: .6rem;
}
.stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.66);
  line-height: 1.5;
  max-width: 22ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------- timeline */

.story { background: var(--white); }

.timeline-rail { position: relative; margin-bottom: clamp(2rem, 4vw, 3rem); }
.timeline-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--light-blue);
  transform: translateY(-50%);
}
.timeline-line span {
  display: block; height: 100%; width: 0%;
  background: var(--primary-blue);
  transition: width .45s var(--ease);
}
.timeline-years {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .35rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}
.yr {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .4vw, 1.15rem);
  letter-spacing: .04em;
  padding: .55rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--light-blue);
  background: #fff;
  color: var(--grey-text);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .25s var(--spring);
}
.yr:hover { color: var(--primary-blue); border-color: var(--bright-blue); }
.yr[aria-selected="true"] {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
  transform: scale(1.06);
}

.timeline-panels { position: relative; }
.pane {
  display: none;
  background: var(--pale-blue);
  border-radius: var(--r-lg);
  border-left: 5px solid var(--primary-blue);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.pane.is-active { display: block; animation: paneIn .45s var(--ease) both; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.pane-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1;
  color: var(--bright-blue);
  margin: 0 0 .35rem;
}
.pane-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  color: var(--deep-navy);
  margin: 0 0 1rem;
}
.pane p { max-width: 68ch; }
.pane-media { margin-top: 1.5rem; border-radius: var(--r); overflow: hidden; max-width: 460px; }
.pane-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ------------------------------------------------------------ cause grid */

.community { background: var(--pale-blue); }
.cause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(.85rem, 1.8vw, 1.25rem);
}
.cause {
  background: #fff;
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--light-blue);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cause:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--bright-blue);
}
.cause-tag {
  display: inline-block;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--bright-blue);
  background: var(--light-blue);
  padding: .3rem .65rem;
  border-radius: 100px;
  margin-bottom: .9rem;
}
.cause h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  color: var(--deep-navy);
  margin: 0 0 .5rem;
  line-height: 1.15;
}
.cause p { font-size: .9rem; color: var(--grey-text); margin: 0; line-height: 1.6; }

.strip { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; border-radius: var(--r-lg); overflow: hidden; }
.strip img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; object-position: center 60%; }
.strip figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(6,31,71,.92), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(1rem, .8rem + .9vw, 1.6rem);
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}

/* ----------------------------------------------------------------- family */

.family { background: var(--ink); }
.family-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.family-copy { color: rgba(255,255,255,.80); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.shot {
  display: block; width: 100%; padding: 0;
  border: 0; background: var(--ink-2);
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.shot:hover img { transform: scale(1.07); }

/* -------------------------------------------------------------------- why */

.why { background: var(--deep-navy); }
.why-inner { max-width: var(--wrap-nar); margin-inline: auto; }
.why .section-head { text-align: center; margin-inline: auto; }
.why-copy {
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  line-height: 1.85;
}
.why-copy em { color: #fff; }

.pullquote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-left: 5px solid var(--sky);
  background: rgba(255,255,255,.06);
  border-radius: 0 var(--r) var(--r) 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.7rem);
  color: #fff;
  margin: 0;
}
.pullquote span { color: var(--sky); }

.why-signoff {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
  color: #fff;
  text-align: center;
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------- card deck */

.voices { background: var(--light-blue); }
.voices .section-head { text-align: center; margin-inline: auto; }

.deck-wrap { max-width: 760px; margin-inline: auto; }

.deck {
  position: relative;
  min-height: 300px;
  touch-action: pan-y;
  outline-offset: 8px;
  transition: height .4s var(--ease);
}
.card {
  position: absolute;
  inset: 0 0 auto 0;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--sh-md);
  transform-origin: 50% 100%;
  transition: transform .45s var(--spring), opacity .35s var(--ease), visibility .35s;
  cursor: grab;
  user-select: none;
}
.card:active { cursor: grabbing; }

/* Stacked states, applied by JS. Quotes vary from 20 to 120 words, so the deck
   is sized to the front card and the ones behind are clipped to match —
   otherwise a long card stacked behind a short one spills past the deck. */
.card[data-pos="0"]  { transform: translateY(0) scale(1);           opacity: 1;   z-index: 5; }
.card[data-pos="1"]  { transform: translateY(14px) scale(.955);     opacity: .75; z-index: 4; }
.card[data-pos="2"]  { transform: translateY(28px) scale(.91);      opacity: .45; z-index: 3; }
.card[data-pos="3"]  { transform: translateY(40px) scale(.875);     opacity: .2;  z-index: 2; }
.card[data-pos="off"]{ transform: translateY(54px) scale(.85);      opacity: 0;   z-index: 1; visibility: hidden; }

.card:not([data-pos="0"]) { height: 100%; overflow: hidden; }
/* Only the front card shows its text — the ones behind read as blank edges,
   which is what makes the stack look like a stack. */
.card:not([data-pos="0"]) > * { visibility: hidden; }

.card-quote {
  font-size: clamp(1rem, .95rem + .35vw, 1.15rem);
  line-height: 1.8;
  color: var(--charcoal);
  margin: 0 0 1.5rem;
}
.card-by {
  border-top: 2px solid var(--light-blue);
  padding-top: 1.1rem;
  display: grid; gap: .1rem;
}
.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.15rem;
  color: var(--primary-blue);
}
.card-org { font-size: .82rem; color: var(--grey-text); }

.deck-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.deck-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: var(--deep-navy);
  margin: 0;
  min-width: 4.5ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ supporters */

.supporters { background: var(--ink); overflow: hidden; }
.supporters .section-head { margin-bottom: 0; }

.marquee {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  gap: clamp(.85rem, 1.6vw, 1.25rem);
}
.marquee-row { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: clamp(.85rem, 1.6vw, 1.25rem);
  width: max-content;
  animation: marquee-left 90s linear infinite;
}
.marquee-row[data-dir="right"] .marquee-track { animation-name: marquee-right; }

/* Pause while someone is reading, hovering or tabbing through. */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

/* Tiles are duplicated in the markup, so -50% lands exactly on the copy. */
@keyframes marquee-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.supporter { flex: none; width: clamp(180px, 22vw, 250px); }

.tile-btn {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 0; background: var(--ink-2);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.tile-btn.is-clone { cursor: default; }
.tile-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.tile-btn:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.tile-btn:hover img { transform: scale(1.07); }

.tile-cap {
  display: flex; align-items: center;
  /* Two lines reserved so one- and two-line names stay aligned */
  min-height: 3.7rem;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.82);
  padding: .7rem .8rem .8rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------- planner */

.plan { background: var(--white); }

.planner-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.vtab {
  display: grid; gap: .3rem;
  text-align: left;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r);
  border: 2px solid var(--light-blue);
  background: var(--pale-blue);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .25s var(--spring);
}
.vtab:hover { border-color: var(--bright-blue); transform: translateY(-3px); }
.vtab[aria-selected="true"] { background: var(--primary-blue); border-color: var(--primary-blue); }
.vtab-kicker {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--grey-text);
}
.vtab-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--deep-navy);
}
.vtab[aria-selected="true"] .vtab-kicker { color: rgba(255,255,255,.75); }
.vtab[aria-selected="true"] .vtab-date { color: #fff; }

.vpane { display: none; }
.vpane.is-active { display: block; animation: paneIn .4s var(--ease) both; }

.vpane-head {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding: 1.4rem 1.5rem;
  background: var(--light-blue);
  border-radius: var(--r) var(--r) 0 0;
}
.vpane-when { margin: 0; font-weight: 600; color: var(--deep-navy); }
.vpane-until {
  margin: 0;
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--bright-blue);
}

.places { border: 2px solid var(--light-blue); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.place {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.5rem;
}
.place + .place { border-top: 1px solid var(--light-blue); }
.place h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.1rem;
  color: var(--deep-navy);
  margin: 0 0 .15rem;
}
.place p { margin: 0; font-size: .9rem; color: var(--grey-text); }
.place-link {
  flex: none;
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none;
  color: var(--primary-blue);
  border: 2px solid var(--light-blue);
  border-radius: 100px;
  padding: .6rem 1.1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.place-link:hover { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }

.vpane [data-ics] { margin-top: 1.25rem; }

.plan-note {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: .875rem;
  color: var(--grey-text);
}

/* -------------------------------------------------------------------- cta */

.cta {
  position: relative; isolation: isolate;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,31,71,.85), rgba(14,69,149,.78));
}
.cta-kicker {
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .24em;
  color: rgba(255,255,255,.85);
  margin: 0 0 1.25rem;
}
.cta-line {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.04;
  font-size: clamp(2rem, 1.1rem + 4.6vw, 4.75rem);
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.cta-line strong { color: var(--sky); font-weight: 800; }

/* ---------------------------------------------------------------- contact */

.contact { background: var(--pale-blue); }
.contact-inner { max-width: var(--wrap-nar); margin-inline: auto; text-align: center; }
.contact .section-head { text-align: center; margin-inline: auto; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.contact-link {
  display: block;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.85rem 1.25rem;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.contact-link:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.contact-label {
  display: block;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--grey-text);
  margin-bottom: .5rem;
}
.contact-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  color: var(--primary-blue);
  word-break: break-word;
}

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255,255,255,.6); text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo { width: 200px; margin: 0 auto 1.25rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 2rem;
}
.footer-auth { font-size: .76rem; color: rgba(255,255,255,.6); margin: 0 0 .5rem; }
.footer-copy { font-size: .76rem; color: rgba(255,255,255,.4); margin: 0; }

/* --------------------------------------------------------------- to top */

.to-top {
  position: fixed; right: 22px; bottom: 24px;
  z-index: 195;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--primary-blue);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-md);
  transition: transform .3s var(--spring), background-color .2s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--bright-blue); transform: translateY(-3px); }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4,20,48,.95);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: min(100%, 1100px); text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; width: auto;
  margin-inline: auto;
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
}
.lightbox-figure figcaption {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 1.25rem;
}
.lightbox-close {
  position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent; color: #fff;
  cursor: pointer;
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-close:hover { background: rgba(255,255,255,.15); border-color: #fff; }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------- reveal fx */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------- no-JS fallback

   Tabs and the card deck are script-driven. Without JS their controls do
   nothing, so hide the controls and lay every panel out in full. Nothing on
   this page — least of all the voting information — may depend on JS. */

.no-js .reveal { opacity: 1; transform: none; }

.no-js .timeline-rail,
.no-js .planner-tabs,
.no-js .deck-controls { display: none; }

.no-js .pane[hidden],
.no-js .vpane[hidden] { display: block; }
.no-js .pane,
.no-js .vpane { margin-bottom: 1.25rem; }

.no-js .deck { height: auto !important; min-height: 0; }
.no-js .card {
  position: static;
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin-bottom: 1rem;
  cursor: auto;
}
.no-js .card > * { visibility: visible; }

/* Stagger children in grids */
.stat-grid .reveal:nth-child(2), .cause-grid .reveal:nth-child(2) { transition-delay: .06s; }
.stat-grid .reveal:nth-child(3), .cause-grid .reveal:nth-child(3) { transition-delay: .12s; }
.stat-grid .reveal:nth-child(4), .cause-grid .reveal:nth-child(4) { transition-delay: .18s; }
.stat-grid .reveal:nth-child(5), .cause-grid .reveal:nth-child(5) { transition-delay: .24s; }

/* ----------------------------------------------------------- breakpoints */

/* Short windows (laptops around 1280x650). Two columns already halve the
   stacked height, so this only needs to take the edge off. */
@media (max-height: 720px) and (min-width: 901px) {
  .hero-logo img { width: min(100%, 460px); }
  .hero-tagline { font-size: clamp(1.3rem, .9rem + 1.5vw, 2rem); }
  .hero-motto p { font-size: clamp(1.1rem, .95rem + .8vw, 1.5rem); }
  .cd-num { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); }
  .countdown-units li { padding: .65rem .3rem .5rem; }
  .hero-actions .btn { padding: .9rem 1.4rem; }
}

/* Stack the hero below the point where a 340px panel and the wordmark stop
   fitting side by side. Height goes auto-with-a-floor here: on a short phone
   a little scroll beats shrinking the type back down. */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-block: clamp(2.5rem, 6vh, 4rem) clamp(3.5rem, 8vh, 5rem);
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(6,31,71,.55) 0%, rgba(6,31,71,.72) 55%, rgba(6,31,71,.90) 100%),
      linear-gradient(180deg, rgba(14,69,149,.22), rgba(6,31,71,.45));
  }
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: clamp(1.75rem, 4vh, 2.5rem);
  }
  .hero-lead { display: flex; flex-direction: column; align-items: center; }
  .hero-logo img { width: min(100%, 420px); }
  .hero-motto {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.24);
    padding-left: 0;
    padding-top: clamp(.85rem, 2vh, 1.2rem);
    max-width: 34ch;
  }
  .hero-panel { width: 100%; max-width: 440px; }
}

@media (max-width: 420px) {
  /* Keep the badge on one line */
  .hero-eyebrow { font-size: .62rem; letter-spacing: .14em; padding: .45rem .9rem; gap: .5rem; }
  .hero-logo img { width: min(100%, 320px); }
  .hero-tagline { font-size: clamp(1.15rem, .9rem + 1.4vw, 1.5rem); }
  .hero-motto p { font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem); }
  .cd-num { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 1.9rem); }
  .countdown-units { gap: .35rem; }
  .countdown-units li { padding: .6rem .2rem .5rem; }
  .cd-unit { font-size: .54rem; letter-spacing: .1em; }
}

/* Small AND short (iPhone SE and friends): the stacked hero runs ~100px over
   one screen at the sizes above, so trim just here rather than shrinking the
   type for every phone. */
@media (max-width: 480px) and (max-height: 720px) {
  .hero { padding-block: clamp(1.25rem, 3vh, 2rem) clamp(2.75rem, 6vh, 3.5rem); }
  .hero-inner { gap: clamp(1.1rem, 2.4vh, 1.6rem); }
  .hero-eyebrow { margin-bottom: .7rem; }
  .hero-logo { margin-bottom: .7rem; }
  .hero-logo img { width: min(100%, 250px); }
  .hero-tagline { font-size: 1.15rem; margin-bottom: .8rem; padding: .45em .8em .4em; }
  .hero-motto { padding-top: .7rem; }
  .hero-motto p { font-size: 1rem; margin-bottom: .35rem; }
  .hero-motto cite { font-size: .56rem; }
  .hero-panel { padding: 1rem; }
  .countdown { margin-bottom: .9rem; }
  .countdown-label { font-size: .62rem; margin-bottom: .6rem; }
  .countdown-units li { padding: .5rem .2rem .4rem; }
  .cd-num { font-size: 1.5rem; }
  .cd-unit { font-size: .5rem; margin-top: .25rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .btn { padding: .9rem 1.2rem; font-size: .78rem; }
}

@media (max-width: 1180px) { .rail { display: none; } }

@media (max-width: 900px) {
  .family-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: rgba(6,31,71,.98);
    backdrop-filter: blur(14px);
    display: none;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .primary-nav li + li { border-top: 1px solid rgba(255,255,255,.1); }
  .primary-nav a { display: block; padding: 1.05rem 0; font-size: .9rem; }
  .primary-nav .nav-cta { text-align: center; margin-top: 1rem; padding: 1rem; }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .countdown-units li { min-width: 62px; padding: .65rem .35rem .55rem; }
  .place { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
  /* Static, manually scrollable rows; the loop clones exist only for the
     animation, so drop them here. */
  .marquee-row { overflow-x: auto; }
  .marquee-track { animation: none; width: auto; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .scroll-cue span, .pulse { animation: none; }
  /* The stack still reads without the depth transform */
  .card[data-pos="1"], .card[data-pos="2"], .card[data-pos="3"] { opacity: 0; visibility: hidden; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .rail, .scroll-progress, .to-top, .scroll-cue,
  .deck-controls, .lightbox, .marquee { display: none !important; }
  body, .hero, .why, .family, .supporters, .numbers, .site-footer { background: #fff !important; color: #000 !important; }
  .hero::after, .cta::after { display: none; }
  .pane, .card { display: block !important; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; break-inside: avoid; }
  .deck { height: auto !important; }
}
