/* ==========================================================================
   Dan Giancola — Niagara Falls
   A public-figure site that carries the 2026 council campaign.

   Register: open, bright, approachable. White grounds, generous space, a
   confident campaign blue. Built to engage voters.

   Palette : white + pale blue-grey bands, deep navy ink, campaign blue accent
   Type    : Figtree (headlines + UI) / Source Serif 4 (personal narrative)

   NOTE 1: this site is deliberately LIGHT-ONLY. There is no dark-theme block —
   every colour is painted explicitly so the page stays white and legible for
   every visitor, including those whose device is set to dark mode.

   NOTE 2: all motion is CSS-driven. No JavaScript ever hides content, so a
   blocked script or a slow phone can never leave a section blank. See §17.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --paper:      #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F4F7FB;   /* pale blue-grey band tint */

  /* Ink */
  --ink:        #14213D;   /* deep navy */
  --ink-2:      #46536B;
  --ink-3:      #616E88;   /* AA on white AND on --surface-2 */

  /* Structure */
  --line:       #DCE3ED;
  --line-soft:  #EAEFF6;

  /* Accent — campaign blue */
  --brand:      #1B5FCC;
  --brand-deep: #144AA3;
  --brand-wash: #EAF1FC;
  --brand-line: #C5D8F5;
  --on-brand:   #FFFFFF;
  --on-brand-2: #DCE8FA;   /* muted text on brand — AA at 4.77:1 */

  /* Light feature panel */
  --panel:      #EAF1FC;
  --chalk:      #14213D;
  --chalk-2:    #46536B;

  /* Footer — the one deliberately dark surface, grounds the page */
  --footer-bg:    #14213D;
  --footer-ink:   #FFFFFF;
  --footer-ink-2: #AFBBD0;

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow:     0 2px 6px rgba(20, 33, 61, 0.06), 0 10px 28px rgba(20, 33, 61, 0.07);
  --shadow-lg:  0 4px 10px rgba(20, 33, 61, 0.07), 0 22px 50px rgba(20, 33, 61, 0.13);
  --shadow-blue: 0 12px 34px rgba(27, 95, 204, 0.28);

  /* Rhythm */
  --measure:    66ch;
  --gutter:     clamp(1.15rem, 4vw, 2.5rem);
  --radius:     8px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  /* Motion */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;   /* contains the decorative off-canvas shapes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

::selection { background: var(--brand-wash); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.021em;
  text-wrap: balance;
  color: var(--ink);
}

.display { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }

h1 { font-size: clamp(2.4rem, 5.8vw, 4.15rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.25; }
h4 { font-size: 1rem; }

p { margin: 0; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

/* Long-form personal narrative — the one place a serif earns its keep */
.prose {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.13rem;
  line-height: 1.72;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 1.35em;
  color: var(--ink);
}
.prose .first-line::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: 0.86;
  padding: 0.06em 0.11em 0 0;
  font-weight: 600;
  color: var(--brand);
}
.prose a { font-weight: 600; }

.signature { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--ink-2); }
.signature strong {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.shell { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 800px; }

.band { position: relative; padding-block: clamp(3.25rem, 7.5vw, 6rem); }
.band--tight { padding-block: clamp(2.25rem, 4.5vw, 3.25rem); }

/* Soft tinted band — a wash rather than a flat slab, so section edges read
   as a gradient rather than a hard rule. */
.band--alt {
  background:
    radial-gradient(120% 100% at 85% 0%, #EDF3FC 0%, rgba(237, 243, 252, 0) 62%),
    radial-gradient(90% 80% at 0% 100%, #F0F5FC 0%, rgba(240, 245, 252, 0) 58%),
    var(--surface-2);
}

.band-head { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 60ch; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack--lg { gap: 1.85rem; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .masthead { backdrop-filter: saturate(1.5) blur(12px); }
}

.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }

.wordmark { display: inline-flex; flex-direction: column; gap: 0.12rem; text-decoration: none; flex-shrink: 0; }
.wordmark__name {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--ink);
}
.wordmark__role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.2;
}

/* The header wordmark is the name alone, so it carries the whole mark and is
   set larger. The footer keeps the two-line lockup (see .footer__mark). */
.masthead .wordmark__name { font-size: clamp(1.45rem, 3.4vw, 1.8rem); }

.nav { display: flex; align-items: center; gap: 0.15rem; }

.nav__link {
  position: relative;
  padding: 0.55rem 0.8rem;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: var(--radius);
  white-space: nowrap;
}
/* underline that grows from the centre on hover */
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after { left: 0.8rem; right: 0.8rem; opacity: 1; }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav__link[aria-current="page"]::after { left: 0.8rem; right: 0.8rem; opacity: 1; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 0.9rem 0.25rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  line-height: 1.2;
}
/* arrow that nudges forward on hover */
.btn::after { content: ""; }
.btn--primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 4px 14px rgba(27, 95, 204, 0.24); }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--on-brand); box-shadow: var(--shadow-blue); }

.btn--secondary { background: #FFFFFF; border-color: var(--brand-line); color: var(--brand); }
.btn--secondary:hover { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-deep); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; background: #FFFFFF; color: var(--ink); }

/* Home hero. The photograph is a real element on the right, so this only
   supplies the tint and the soft curve into the section below. */
.hero--feature {
  min-height: clamp(26rem, 60vh, 38rem);
  display: flex;
  align-items: center;
  background:
    radial-gradient(70% 110% at 96% 18%, #DCE9FA 0%, rgba(220, 233, 250, 0) 62%),
    radial-gradient(60% 90% at 0% 100%, #F1F6FD 0%, rgba(241, 246, 253, 0) 58%),
    #FFFFFF;
  overflow: hidden;
}

/* Soft curve that lifts the hero off the section below */
.hero--feature::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  height: clamp(2rem, 5vw, 4rem);
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 919px) {
  .hero--feature { min-height: 0; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3.25rem, 8vw, 5.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) {
  .hero--split .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--brand); }
.hero__eyebrow { color: var(--brand); }
.hero__body { display: flex; flex-direction: column; gap: 1.45rem; align-items: flex-start; }

.hero__promise {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 2.1vw, 1.32rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  padding-left: 1.1rem;
  border-left: 3px solid var(--brand);
}

.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.16rem); line-height: 1.66; color: var(--ink-2); max-width: 50ch; }

/* Subpage heroes — softer wash, no photograph */
.hero--page {
  background:
    radial-gradient(85% 130% at 88% 0%, #E4EEFB 0%, rgba(228, 238, 251, 0) 62%),
    radial-gradient(70% 100% at 0% 100%, #F1F6FD 0%, rgba(241, 246, 253, 0) 60%),
    #FFFFFF;
  border-bottom: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   8. Campaign band — inset, rounded, floating. Removable after election day.
   -------------------------------------------------------------------------- */

.campaign-band { padding-block: clamp(1rem, 3vw, 2rem); background: var(--paper); }
.campaign-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 2.25rem;
  padding: clamp(1.75rem, 3.6vw, 2.6rem) clamp(1.5rem, 3.6vw, 3rem);
  border-radius: var(--radius-xl);
  background-color: var(--brand);
  background-image: linear-gradient(125deg, var(--brand) 0%, #1854B8 48%, var(--brand-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
/* No white bloom overlay here on purpose: lightening the blue ground pushed
   the muted text below 4.5:1. Depth comes from the gradient and shadow. */
.campaign-band__inner > * { position: relative; }

.campaign-band__copy { display: flex; flex-direction: column; gap: 0.45rem; }
.campaign-band__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-brand-2);
}
.campaign-band h2 { color: #FFFFFF; font-size: clamp(1.3rem, 2.7vw, 1.85rem); }
.campaign-band p { color: var(--on-brand-2); font-size: 0.99rem; max-width: 50ch; }
.campaign-band .btn--primary { background: #FFFFFF; color: var(--brand-deep); border-color: #FFFFFF; box-shadow: 0 6px 18px rgba(10, 40, 90, 0.24); }
.campaign-band .btn--primary:hover { background: var(--brand-wash); color: var(--brand-deep); border-color: var(--brand-wash); }
.campaign-band .btn--secondary { background: transparent; border-color: rgba(255,255,255,0.75); color: #FFFFFF; box-shadow: none; }
.campaign-band .btn--secondary:hover { background: rgba(255,255,255,0.16); border-color: #FFFFFF; color: #FFFFFF; }

.countdown { display: flex; align-items: center; gap: 0.7rem; }
.countdown__n { font-size: clamp(2.4rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.countdown__l { font-size: 0.87rem; font-weight: 600; color: var(--on-brand-2); max-width: 8ch; line-height: 1.3; }

/* --------------------------------------------------------------------------
   9. Photo frames (graceful when the image file is absent)
   -------------------------------------------------------------------------- */

.photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 11; }
/* Ratios chosen to match the supplied files, so faces are not cropped:
   home-hero.webp is 4:3, dan-family.webp is roughly 7:6. */
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--5x4 { aspect-ratio: 5 / 4; }
/* gently offset, so the image column doesn't sit on the same baseline grid
   as the text column — this is what stops the sections reading as boxes */
.photo--offset { transform: translateY(-1.5rem); }
@media (max-width: 900px) { .photo--offset { transform: none; } }

.photo.is-empty {
  background:
    radial-gradient(80% 80% at 30% 20%, #F4F8FE 0%, rgba(244, 248, 254, 0) 70%),
    var(--brand-wash);
  border: 2px dashed var(--brand-line);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo.is-empty::after {
  content: attr(data-label);
  padding: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-align: center;
}

/* --------------------------------------------------------------------------
   9b. Photo slider
   --------------------------------------------------------------------------
   The track is a native scroll-snap strip, so it works with no JavaScript at
   all — swipe on touch, scrollbar or shift+wheel on desktop. main.js adds the
   arrows and dots as an enhancement; they are injected by script, so there are
   never dead controls on the page when JS is unavailable.
   -------------------------------------------------------------------------- */

.slider { position: relative; }

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.25rem;
  -webkit-overflow-scrolling: touch;

  /* Scrollbar hidden — the dots are the visible navigation. Swiping,
     shift+wheel and keyboard arrows on the focused track all still work. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.slider__slide {
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Injected controls — dots only */
.slider__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.15rem; }
.slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--brand-line);
  cursor: pointer;
}
.slider__dot[aria-current="true"] { background: var(--brand); transform: scale(1.35); }

@media (prefers-reduced-motion: reduce) { .slider__track { scroll-behavior: auto; } }

/* --------------------------------------------------------------------------
   10. Cards & panels
   -------------------------------------------------------------------------- */

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h3 { font-size: 1.14rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; }

/* Card media — bleeds to the card edges by cancelling the card's padding */
.card__media {
  margin: -1.75rem -1.75rem 0.4rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* A logo is not a photograph: contain it on white rather than cropping it. */
.card__media--logo { background: #FFFFFF; border-bottom: 1px solid var(--line-soft); }
.card__media--logo img { object-fit: contain; padding: 1.35rem; }

.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Stagger a three-up card row so it steps rather than sitting in a rigid line */
@media (min-width: 860px) {
  .grid--stagger > *:nth-child(2) { transform: translateY(1.75rem); }
  .grid--stagger > *:nth-child(3) { transform: translateY(0.6rem); }
}

/* Asymmetric split — text column narrower than the media column, and the two
   deliberately not equal, so the layout doesn't read as two boxes. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.12fr; }
  .split--reverse { grid-template-columns: 1.12fr 1fr; }
  .split--reverse > *:first-child { order: 2; }
}

/* Priority cards — unranked, so no numbers */
.priority {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.priority::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #4B8BEF 100%);
}
.priority h3 { font-size: 1.18rem; }
.priority p { color: var(--ink-2); font-size: 0.96rem; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 2rem 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
.stat__n {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.stat__l { font-size: 0.89rem; font-weight: 500; color: var(--ink-3); line-height: 1.4; max-width: 22ch; }

/* Stats sitting in a page hero read better flush-left with the headline */
.hero .stat { align-items: flex-start; text-align: left; }

/* Light feature panel */
.panel {
  background:
    radial-gradient(80% 130% at 100% 0%, #DFEBFC 0%, rgba(223, 235, 252, 0) 62%),
    var(--panel);
  color: var(--chalk);
  border-radius: var(--radius-xl);
  padding: clamp(1.9rem, 4.2vw, 3.1rem);
}
.panel h2, .panel h3 { color: var(--chalk); }
.panel p { color: var(--chalk-2); }
.panel .eyebrow { color: var(--brand); }
.panel .stat__n { color: var(--brand); }
.panel .stat__l { color: var(--chalk-2); }

/* --------------------------------------------------------------------------
   7b. Photo hero — a hero carrying a background photograph
   --------------------------------------------------------------------------
   Used on the Achievements page. The overlay is opaque enough that white text
   clears AA against the brightest part of any photograph underneath; do not
   lighten it without re-checking contrast.
   -------------------------------------------------------------------------- */

.hero--photo {
  position: relative;
  isolation: isolate;
  background-color: var(--footer-bg);
  background-image: url("../img/achievements-hero.webp");
  background-size: cover;
  background-position: center 30%;
  border-bottom: 0;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 22, 44, 0.80) 0%, rgba(11, 22, 44, 0.88) 100%);
}
.hero--photo h1,
.hero--photo h1 .accent { color: #FFFFFF; }
.hero--photo .hero__eyebrow { color: #BFD5F5; }
.hero--photo .hero__sub { color: #DCE6F5; }

/* Figures sit inside this hero, always in a row — three across at every width */
.hero--photo .stats {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2.5vw, 2.25rem);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero.hero--photo .stat { align-items: center; text-align: center; }
.hero.hero--photo .stat__n { color: #FFFFFF; font-size: clamp(1.5rem, 6vw, 3rem); }
.hero.hero--photo .stat__l { color: #DCE6F5; font-size: clamp(0.7rem, 1.9vw, 0.89rem); }

/* --------------------------------------------------------------------------
   11. Record: tables, credential lists, quotes
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #FFFFFF; box-shadow: var(--shadow-sm); }

table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }

thead th {
  text-align: left;
  padding: 0.95rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 2px solid var(--brand-line);
  background: var(--surface-2);
  white-space: nowrap;
}
tbody td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
tbody td:first-child { color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFCFF; }
td.num { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; width: 3rem; }

.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.creds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
  color: var(--ink-2);
}
.creds li:last-child { border-bottom: none; }
.creds li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 50%; background: var(--brand); }
.creds strong { color: var(--ink); font-weight: 700; }

.seasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.seasons li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); }
.seasons li:last-child { border-bottom: none; }
.seasons .team { font-weight: 600; font-size: 0.98rem; color: var(--ink); flex: 1 1 11rem; }
.seasons .years { font-variant-numeric: tabular-nums; font-size: 0.87rem; color: var(--ink-3); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.8rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--brand);
  color: #FFFFFF;
  white-space: nowrap;
  align-self: flex-start;
}

.pullquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.3rem, 2.9vw, 1.85rem);
  line-height: 1.38;
  font-style: italic;
  color: var(--ink);
  max-width: 42ch;
  padding-left: 1.4rem;
  border-left: 4px solid var(--brand);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   12. Vote steps
   -------------------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1.3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(27, 95, 204, 0.28);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-2); font-size: 0.96rem; max-width: 60ch; }

.dates { display: flex; flex-direction: column; }
.dates div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dates div:last-child { border-bottom: none; }
.dates dt { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.dates dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.95rem; }
.dates div.is-key dt, .dates div.is-key dd { color: var(--brand); font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-note { font-size: 0.88rem; color: var(--ink-3); max-width: 54ch; }

/* Contact form status + no-JS result banners */
.form-status {
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  max-width: 54ch;
}
.form-status.is-bad {
  color: #8A1F1F;
  background: #FDF2F2;
  border-color: #F2C9C9;
}

.form-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}
.form-result strong { font-size: 1.02rem; color: var(--ink); }
.form-result--bad { color: #8A1F1F; background: #FDF2F2; border-color: #F2C9C9; border-left-color: #B3261E; }
.form-result--bad strong { color: #8A1F1F; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background:
    radial-gradient(80% 120% at 100% 0%, #DFEBFC 0%, rgba(223, 235, 252, 0) 60%),
    var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-card a { font-weight: 700; word-break: break-word; }
.contact-line { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-line span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.footer {
  background:
    radial-gradient(70% 120% at 90% 0%, #1D3055 0%, rgba(29, 48, 85, 0) 60%),
    var(--footer-bg);
  color: var(--footer-ink-2);
  padding-block: clamp(3rem, 6vw, 4rem);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -1px;
}
.footer__grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer h2 { color: var(--footer-ink); font-size: 0.76rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer a { color: var(--footer-ink-2); text-decoration: none; font-size: 0.94rem; }
.footer a:hover { color: #FFFFFF; }
.footer__mark .wordmark__name { display: block; color: var(--footer-ink); font-size: 1.3rem; }
.footer__mark .wordmark__role { display: block; color: #8FB3E8; margin-top: 0.3rem; }
.footer__promise { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: #FFFFFF; font-size: 1.02rem; line-height: 1.5; margin-top: 1rem; max-width: 26ch; }
.footer__legal { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: var(--footer-ink-2); }
.footer__legal a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 0.2em; font-size: inherit; }
.footer__legal a:hover { color: var(--brand-lift, #BFD5F5); }

/* --------------------------------------------------------------------------
   14b. Cookie notice
   --------------------------------------------------------------------------
   Injected by main.js only when a choice has not been recorded. Both buttons
   get the same size and weight — declining must be as easy as accepting.
   -------------------------------------------------------------------------- */

.cookie-notice {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-notice__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.15rem, 2.5vw, 1.75rem);
}
.cookie-notice__copy { flex: 1 1 22rem; min-width: 0; }
.cookie-notice__title { font-size: 1.02rem; margin-bottom: 0.3rem; }
.cookie-notice__copy p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.cookie-notice__copy a { font-weight: 600; }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; flex-shrink: 0; }
.cookie-notice__actions .btn { font-size: 0.9rem; padding: 0.7rem 1.2rem; }

@media (max-width: 560px) {
  .cookie-notice__actions { width: 100%; }
  .cookie-notice__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Slide up only. Deliberately NOT a fade: an opacity animation with
   fill-mode both starts at 0, so anything that stops the animation from
   advancing leaves the notice present but invisible — which is exactly how
   this banner failed the first time. Transform cannot hide it. */
@keyframes noticeIn { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .cookie-notice__inner { animation: noticeIn 0.35s var(--ease) both; }
}

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand); color: #FFFFFF; padding: 0.8rem 1.1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.text-accent { color: var(--brand); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--accent { height: 4px; width: 3rem; background: var(--brand); border: 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   16. Motion
   --------------------------------------------------------------------------
   Every animation here is CSS. Nothing in JavaScript hides content, and no
   element depends on a script running to become visible: if animations are
   unsupported or disabled, the page simply renders in its final state.
   -------------------------------------------------------------------------- */

@keyframes riseIn  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes easeUp  { from { opacity: 0; transform: translateY(34px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes driftIn { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {

  /* --- Page-load sequence in the hero ------------------------------------ */
  .hero__body > * { animation: riseIn 0.75s var(--ease) both; }
  /* Safety net: main.js stamps .no-entrance on <html> if it finds the hero
     still at opacity 0 after the animations should have finished. CSS alone
     cannot detect that, and content must never be stranded. */
  .no-entrance .hero__body > *,
  .no-entrance .hero .photo,
  .no-entrance .campaign-band__inner { animation: none !important; opacity: 1 !important; transform: none !important; }
  /* The consent notice is never allowed to be hidden by animation state. */
  .cookie-notice__inner { opacity: 1 !important; }
  .hero__body > *:nth-child(1) { animation-delay: 0.05s; }
  .hero__body > *:nth-child(2) { animation-delay: 0.14s; }
  .hero__body > *:nth-child(3) { animation-delay: 0.23s; }
  .hero__body > *:nth-child(4) { animation-delay: 0.32s; }
  .hero__body > *:nth-child(5) { animation-delay: 0.41s; }
  .hero .photo { animation: easeUp 0.9s var(--ease) 0.2s both; }
  .campaign-band__inner { animation: riseIn 0.8s var(--ease) 0.45s both; }

  /* --- Scroll-linked reveals --------------------------------------------- */
  /* Pure CSS via scroll-driven animations. Gated behind @supports, so
     browsers without it get the content immediately and unanimated —
     never hidden. */
  @supports (animation-timeline: view()) {
    .reveal { animation: easeUp 1s linear both; animation-timeline: view(); animation-range: entry 4% cover 24%; }
    .grid--stagger > *:nth-child(1) { animation: easeUp 1s linear both; animation-timeline: view(); animation-range: entry 2% cover 22%; }
    .grid--stagger > *:nth-child(2) { animation: easeUp 1s linear both; animation-timeline: view(); animation-range: entry 6% cover 28%; }
    .grid--stagger > *:nth-child(3) { animation: easeUp 1s linear both; animation-timeline: view(); animation-range: entry 10% cover 32%; }
    .priority { animation: riseIn 1s linear both; animation-timeline: view(); animation-range: entry 4% cover 26%; }
    .steps li { animation: driftIn 1s linear both; animation-timeline: view(); animation-range: entry 3% cover 24%; }
    .creds li { animation: fadeIn 1s linear both; animation-timeline: view(); animation-range: entry 2% cover 20%; }
  }

  /* --- Hover / interaction ------------------------------------------------ */
  .btn { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.25s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  .card, .priority { transition: transform 0.28s var(--ease), box-shadow 0.28s ease, border-color 0.2s ease; }
  .card:hover, .priority:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
  @media (min-width: 860px) {
    .grid--stagger > *:nth-child(2):hover { transform: translateY(calc(1.75rem - 5px)); }
    .grid--stagger > *:nth-child(3):hover { transform: translateY(calc(0.6rem - 5px)); }
  }

  .photo img { transition: transform 0.7s var(--ease); }
  .photo:hover img { transform: scale(1.045); }

  .nav__link, .nav__link::after { transition: color 0.18s ease, left 0.25s var(--ease), right 0.25s var(--ease), opacity 0.2s ease; }

  .slider__dot { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease); }
  .footer a { transition: color 0.18s ease; }
  tbody tr td { transition: background-color 0.18s ease; }
  .field input, .field textarea, .field select { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
  .field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 4px var(--brand-wash); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead, .footer, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero--feature { background: #fff; min-height: 0; }
  .hero--feature::after { display: none; }
  .campaign-band__inner, .panel { background: #fff; color: #000; border: 1px solid #ccc; box-shadow: none; }
  .campaign-band h2, .campaign-band p, .countdown__n, .countdown__l, .campaign-band__kicker { color: #000; }
  .photo--offset, .grid--stagger > * { transform: none; }
}
