/* ==========================================================================
   Wildrose Loyalty Coalition — Design System
   Brand colours taken from the party logo: blue, prairie green, wildrose pink.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — sampled directly from the party logo (logo.jpg):
     blue #113488 (54% of the mark), green #11662F (24%), wildrose #E578CB. */
  --navy-900: #071845;
  --navy-800: #0B2364;
  --navy-700: #0E2B75;
  --blue-600: #113488;   /* logo blue */
  --blue-500: #1C48B4;
  --blue-100: #DCE4F8;

  /* Green carries every call to action. White on green-600 = 7.08:1. */
  --green-700: #0D5527;
  --green-600: #11662F;  /* logo green */
  --green-500: #17803C;
  --green-100: #DEEDE3;

  /* Wildrose pink is the accent. rose-700 for small text on light backgrounds
     (4.93:1 on sand); rose-500/400 for text on dark (6.2:1 and 7.9:1). */
  --rose-700: #B33F94;
  --rose-500: #E578CB;   /* logo wildrose */
  --rose-400: #F094D9;
  --rose-100: #FBE6F5;

  /* Neutrals — warm, prairie-leaning */
  --sand-50: #FBF9F6;
  --sand-100: #F5F1EA;
  --sand-200: #E8E2D7;
  --ink: #111A2E;
  --ink-soft: #3A455C;
  --muted: #6A7488;
  --line: rgba(17, 26, 46, 0.10);
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--muted);
  --brand: var(--blue-600);
  --accent: var(--green-600);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.36vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.26rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-5:  clamp(2.8rem, 1.8rem + 4.6vw, 5.6rem);

  /* Space */
  --gutter: clamp(1.15rem, 0.7rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 6vw, 7.5rem);
  --wrap: 1240px;
  --wrap-narrow: 820px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 19, 46, 0.05), 0 4px 12px -6px rgba(5, 19, 46, 0.10);
  --shadow: 0 12px 32px -14px rgba(5, 19, 46, 0.22), 0 2px 6px -2px rgba(5, 19, 46, 0.06);
  --shadow-lg: 0 34px 70px -28px rgba(5, 19, 46, 0.42), 0 4px 12px -4px rgba(5, 19, 46, 0.08);

  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy-800);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--rose-400);
  color: var(--navy-900);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 3000;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - (var(--gutter) * 2), var(--wrap-narrow));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--sand { background: var(--bg-alt); }
.section--navy {
  background: var(--navy-800);
  color: #C9D3E6;
}
.section--navy h2,
.section--navy h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: var(--step-4);
  margin-bottom: 1rem;
}
.section-head p {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.55;
}
.section--navy .section-head p { color: #9FAFC9; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--rose-700);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--rose-400); }

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(5, 19, 46, 0.45);
}
.btn:active { transform: translateY(0); }

.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--brand); }
.btn-primary:hover { --btn-bg: var(--navy-700); }

.btn-accent {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
}
.btn-accent:hover {
  --btn-bg: var(--green-500);
  box-shadow: 0 16px 34px -14px rgba(17, 102, 47, 0.7);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: rgba(13, 42, 92, 0.28);
}
.btn-outline:hover {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  border-color: var(--navy-800);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  border-color: #fff;
}

.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.86rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--brand);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--green-700); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Transparent over hero, solid once scrolled */
.header.is-solid {
  background: rgba(251, 249, 246, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(5, 19, 46, 0.55);
}

.header.is-hidden { transform: translateY(-102%); }

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}
.brand-mark {
  height: 46px;
  width: auto;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

.brand-text { line-height: 1.05; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
}
.header.is-solid .brand-name { color: var(--navy-800); }
.header.is-solid .brand-tag { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.3rem + 1.6vw, 2.1rem);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rose-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }

.header.is-solid .nav-link { color: var(--ink-soft); }
.header.is-solid .nav-link:hover,
.header.is-solid .nav-link.active { color: var(--navy-800); }

.nav .btn { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex: none;
  z-index: 1200;
}
.header.is-solid .nav-toggle {
  border-color: var(--line);
  background: rgba(13, 42, 92, 0.05);
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.header.is-solid .nav-toggle span { background: var(--navy-800); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }

body.nav-open .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
  animation: heroDrift 22s var(--ease) forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.14); }
  to   { transform: scale(1.02); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 19, 46, 0.74) 0%, rgba(5, 19, 46, 0.14) 32%, rgba(5, 19, 46, 0.58) 70%, rgba(5, 19, 46, 0.94) 100%),
    linear-gradient(100deg, rgba(5, 19, 46, 0.82) 0%, rgba(10, 31, 69, 0.06) 60%);
}

.hero-content {
  position: relative;
  max-width: 940px;
  color: #fff;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  color: var(--rose-500);
  display: inline-block;
}

.hero p {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  color: rgba(233, 239, 250, 0.9);
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Marquee-style key facts under the hero */
.hero-strip {
  position: relative;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-strip-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hero-strip-item {
  padding: 1.75rem 0.5rem 1.75rem 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.hero-strip-item:first-child { border-left: 0; padding-left: 0; }
.hero-strip-icon {
  color: var(--rose-500);
  flex: none;
  margin-top: 2px;
}
.hero-strip-item h3 {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.hero-strip-item p {
  font-size: 0.86rem;
  color: #8FA0BC;
  line-height: 1.45;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}
.scroll-cue span {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Inner-page hero */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5, 19, 46, 0.94) 12%, rgba(10, 31, 69, 0.72) 58%, rgba(13, 54, 146, 0.55) 100%);
}
.page-hero h1 {
  font-size: var(--step-4);
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero p {
  max-width: 620px;
  font-size: var(--step-1);
  color: rgba(226, 234, 248, 0.85);
}

.breadcrumb {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--rose-400); }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.4s var(--ease);
}

/* Pillars */
.pillar {
  padding: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--rose-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-index {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sand-200);
  opacity: 0.75;
  transition: color 0.4s var(--ease);
  pointer-events: none;
}
.pillar:hover .pillar-index { color: var(--rose-100); }

.pillar-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--blue-100), #EEF3FE);
  color: var(--brand);
  margin-bottom: 1.5rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.pillar:hover .pillar-icon {
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600));
  color: var(--rose-400);
  transform: translateY(-2px) rotate(-4deg);
}

.pillar h3 {
  font-size: var(--step-2);
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--text-muted); }

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
}
.pillar-link svg { transition: transform 0.25s var(--ease); }
.pillar:hover .pillar-link svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Split feature (image + text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.split:hover .split-media img { transform: scale(1.04); }

.split-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(5, 19, 46, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-body h2 {
  font-size: var(--step-3);
  margin-bottom: 1.1rem;
}
.split-body p + p { margin-top: 1rem; }
.split-body p { color: var(--ink-soft); }

.tick-list { margin: 1.6rem 0 2rem; display: grid; gap: 0.85rem; }
.tick-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.tick-list svg { flex: none; color: var(--green-600); margin-top: 3px; }

/* --------------------------------------------------------------------------
   9. Action rows
   -------------------------------------------------------------------------- */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   10. Articles
   -------------------------------------------------------------------------- */
.article-list { display: grid; gap: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem); }

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(1.2rem, 0.8rem + 1.4vw, 2.2rem);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green-600), var(--rose-500));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card:hover::before { transform: scaleY(1); }

.article-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sand-200);
  transition: color 0.4s var(--ease);
}
.article-card:hover .article-num { color: var(--rose-500); }

.article-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--blue-100);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.article-card h3 {
  font-size: var(--step-2);
  margin-bottom: 0.9rem;
}
.article-card p { color: var(--ink-soft); }
.article-card p + p { margin-top: 0.85rem; }

/* --------------------------------------------------------------------------
   11. Resources
   -------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(0.9rem, 0.6rem + 1vw, 1.25rem);
}

.resource-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.resource-item:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 54, 146, 0.35);
  box-shadow: var(--shadow);
  color: var(--text);
}

.resource-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand-100);
  color: var(--brand);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.resource-item:hover .resource-icon {
  background: var(--brand);
  color: #fff;
}

.resource-info { flex: 1; min-width: 0; }
.resource-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--navy-800);
}
.resource-info p {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.resource-arrow {
  color: var(--sand-200);
  flex: none;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.resource-item:hover .resource-arrow {
  color: var(--green-600);
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   12. Quote band (full-bleed image)
   -------------------------------------------------------------------------- */
.quote-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  color: #fff;
  overflow: hidden;
  background: var(--navy-900);
}
.quote-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.quote-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.quote-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 19, 46, 0.86), rgba(5, 19, 46, 0.72));
}
.quote-band blockquote {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.quote-band blockquote .accent { color: var(--rose-500); }
.quote-mark {
  display: block;
  width: 46px;
  margin: 0 auto 1.6rem;
  opacity: 0.9;
}
.quote-cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   13. Donate / CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(18px, 1vw + 14px, 28px);
  background: linear-gradient(125deg, var(--navy-900) 0%, var(--blue-600) 62%, #1746B4 100%);
  color: #fff;
  padding: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(229, 120, 203, 0.30), transparent 62%);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  background: url("../uploads/2024/12/rose.png") no-repeat center / contain;
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
}
.cta-band h2 {
  font-size: var(--step-4);
  color: #fff;
  margin-bottom: 1.1rem;
}
.cta-band p {
  font-size: var(--step-1);
  color: rgba(224, 233, 249, 0.88);
  max-width: 640px;
  margin: 0 auto 2.4rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.cta-note {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(197, 212, 238, 0.75);
}

/* --------------------------------------------------------------------------
   14. Coffee shop page
   -------------------------------------------------------------------------- */
.coffee-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.coffee-hero-media {
  position: relative;
  min-height: 320px;
}
.coffee-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coffee-hero-body {
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coffee-hero-body h2 {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}
.coffee-hero-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.coffee-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}
.topic {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.topic h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.topic p { font-size: 0.92rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14b. Referendum
   -------------------------------------------------------------------------- */

/* Urgent deadline callout */
.alert-band {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--rose-100), #FDF2FA);
  border: 1px solid rgba(179, 63, 148, 0.32);
  box-shadow: var(--shadow-sm);
}
.alert-band-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-700);
  color: #fff;
}
.alert-band h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--navy-800);
}
.alert-band p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.alert-band--onDark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 148, 217, 0.42);
  backdrop-filter: blur(6px);
}
.alert-band--onDark h3 { color: #fff; }
.alert-band--onDark p { color: rgba(226, 234, 248, 0.82); }

/* Countdown */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.countdown-unit {
  min-width: 84px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  text-align: center;
}
.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rose-500);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Verbatim ballot question */
.ballot-callout {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  padding-left: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ballot-callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--green-600), var(--rose-500));
}
.ballot-callout .eyebrow { margin-bottom: 1.2rem; }
.ballot-question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}
.ballot-source {
  display: block;
  margin-top: 1.4rem;
  font-size: 0.84rem;
  font-style: normal;
  color: var(--muted);
}

/* Ballot options */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.option {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.option-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.option h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.option p { font-size: 0.95rem; color: var(--text-muted); }
.option--endorsed {
  border-color: rgba(17, 102, 47, 0.45);
  background: linear-gradient(160deg, #F5FBF7, var(--surface));
  box-shadow: var(--shadow);
}
.option--endorsed .option-num { color: var(--green-700); }
.option-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sourced figures */
.figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(1rem, 0.7rem + 1vw, 1.75rem);
}
.figure {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.figure-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.figure p { font-size: 0.9rem; color: var(--text-muted); }

/* Do / don't lists */
.rule-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
}
.rule-card {
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.rule-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.rule-card ul { display: grid; gap: 0.75rem; }
.rule-card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.rule-card svg { flex: none; margin-top: 3px; }
.rule-card--yes h3 { color: var(--green-700); }
.rule-card--yes svg { color: var(--green-600); }
.rule-card--no h3 { color: #9B2C2C; }
.rule-card--no svg { color: #C0504D; }

/* Official sources */
.source-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.source-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand);
}
.source-list a:hover { color: var(--green-700); }
.source-list svg { flex: none; }

/* --------------------------------------------------------------------------
   14c. Scrutineer form
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.6rem, 1.1rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.15rem;
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-800);
}
.field .req { color: var(--rose-500); }
.field .hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(26, 79, 196, 0.14);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: #C0504D;
  background: #FEF7F6;
}

.error-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9B2C2C;
  min-height: 0;
}

.check-group { display: grid; gap: 0.7rem; }
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 46ch;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  display: none;
}
.form-status.is-shown { display: block; }
.form-status--ok {
  background: var(--green-100);
  border: 1px solid #A6CDB4;
  color: var(--green-700);
}
.form-status--error {
  background: #FDF0EF;
  border: 1px solid #EBB9B6;
  color: #9B2C2C;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--navy-900);
  color: #93A3C0;
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600), var(--rose-500));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2rem, 1.4rem + 2.5vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
/* The party logo, shown as a badge. The mark carries its own blue field, so a
   soft ring and radius let it sit on the dark footer as a deliberate object
   rather than a pasted-in square. */
.footer-logo {
  display: inline-block;
  /* The mark carries wide internal padding, so it needs real size for the
     script wordmark to stay legible. */
  width: clamp(132px, 12vw, 164px);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.footer-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.8);
}
.footer-logo img { width: 100%; height: auto; }
.footer-brand p {
  font-size: 0.95rem;
  color: #8496B5;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  color: #93A3C0;
  font-size: 0.94rem;
}
.footer-col a:hover { color: var(--rose-400); }

.social-row { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #C7D3E8;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-btn:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6E7E9C;
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1vw, 2rem);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s,
              background-color 0.3s var(--ease);
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-600); color: #fff; }

/* --------------------------------------------------------------------------
   Email updates
   -------------------------------------------------------------------------- */
.updates-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.updates-copy h2 { color: #fff; margin-block: 0.65rem 1rem; }
.updates-copy p { color: #C7D3E8; }
.updates-form { display: grid; gap: 1rem; }
.updates-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.updates-form label { display: grid; gap: 0.4rem; color: #fff; font-size: 0.9rem; font-weight: 700; }
.updates-form label span { color: #C7D3E8; font-weight: 400; }
.updates-form input[type="text"],
.updates-form input[type="email"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(7, 24, 69, 0.72);
  color: #fff;
  padding: 0.8rem 0.9rem;
  font: inherit;
}
.updates-form input:focus { outline: 3px solid rgba(229, 120, 203, 0.35); border-color: var(--rose-400); }
.updates-consent { grid-template-columns: auto 1fr !important; align-items: start; }
.updates-consent input { margin-top: 0.3rem; width: 1rem; height: 1rem; accent-color: var(--rose-500); }
.updates-honeypot { display: none !important; }
.updates-form .btn { justify-self: start; }
.updates-form .btn:disabled { opacity: 0.6; cursor: wait; }
.updates-status { min-height: 1.5rem; color: #C7D3E8; font-size: 0.9rem; }
.updates-status--success { color: #9BE5B2; }
.updates-status--error { color: #FFB4B4; }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  /* Drop the compositing hint once the element has settled. */
  will-change: auto;
}

/* --------------------------------------------------------------------------
   16b. Motion polish
   Four quiet additions. Every one degrades to nothing if the browser or the
   visitor says no — none of them is load-bearing for reading the site.
   -------------------------------------------------------------------------- */

/* — Cross-page transitions ————————————————————————————————
   Replaces the white flash between pages with a short cross-fade. Browsers
   without support simply navigate as before. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: var(--ease);
}

/* Hold the header still across a navigation so it doesn't blink out and back. */
.header { view-transition-name: site-header; }

/* — Reading progress ————————————————————————————————————
   A 2px rule under the header tracking how far down the page you are. Useful
   on the long policy and referendum pages. Pure CSS: no scroll listener. */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--rose-500));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
/* Only once the header has gone solid — no bar floating over the hero. */
.header.is-solid::after { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .header::after {
    animation: wlc-progress linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes wlc-progress {
  to { transform: scaleX(1); }
}

/* — Countdown tick ——————————————————————————————————————
   Each digit rises into place as it changes, so the clock reads like an
   instrument rather than snapping. 160ms — felt more than seen. */
.countdown-num {
  display: inline-block;
  will-change: auto;
}
.countdown-num.is-ticking {
  animation: wlc-tick 160ms var(--ease-out);
}
@keyframes wlc-tick {
  from { opacity: 0.55; transform: translateY(-3px); }
  to   { opacity: 1;    transform: none; }
}

/* — Ambient hero drift ————————————————————————————————————
   A canvas of slow-moving motes over the prairie photograph, like seed heads
   caught in the wind. Injected by JS, so it never exists without scripting.
   Sits above the photo's scrim but beneath every piece of content. */
.hero-drift {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-drift.is-live { opacity: 0.55; }

/* — Honour the visitor's preference —————————————————————————
   Reduced motion switches all four off. The progress bar stays: it reports
   position rather than animating for effect. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .countdown-num.is-ticking { animation: none; }
  .hero-drift { display: none; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --header-h: 74px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: clamp(2rem, 8vw, 5rem);
    background: linear-gradient(150deg, var(--navy-900), var(--blue-600));
    clip-path: circle(0% at calc(100% - 46px) 42px);
    transition: clip-path 0.6s var(--ease-out);
    pointer-events: none;
  }
  body.nav-open .nav {
    clip-path: circle(150% at calc(100% - 46px) 42px);
    pointer-events: auto;
  }

  .nav-link {
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    padding-block: 0.5rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s var(--ease);
  }
  body.nav-open .nav-link { opacity: 1; transform: none; }
  body.nav-open .nav-link:nth-child(1) { transition-delay: 0.16s; }
  body.nav-open .nav-link:nth-child(2) { transition-delay: 0.22s; }
  body.nav-open .nav-link:nth-child(3) { transition-delay: 0.28s; }
  body.nav-open .nav-link:nth-child(4) { transition-delay: 0.34s; }
  body.nav-open .nav-link:nth-child(5) { transition-delay: 0.40s; }
  .nav-link::after { display: none; }
  .header.is-solid .nav-link { color: rgba(255, 255, 255, 0.92); }

  .nav .btn {
    margin-left: 0;
    margin-top: 1.6rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease) 0.46s, transform 0.4s var(--ease) 0.46s,
                background-color 0.25s var(--ease);
  }
  body.nav-open .nav .btn { opacity: 1; transform: none; }

  /* Keep the lock-up legible above the open overlay */
  .brand { position: relative; z-index: 1200; }
  body.nav-open .brand-name { color: #fff; }
  body.nav-open .brand-tag { color: rgba(255, 255, 255, 0.7); }

  .split--reverse .split-media { order: 0; }
  .updates-panel { grid-template-columns: 1fr; }

  .hero-strip-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-left: 0;
  }
  .hero-strip-item:first-child { border-top: 0; }
}

@media (max-width: 640px) {
  .brand-text { display: none; }
  .brand-mark { height: 42px; }
  .article-card { grid-template-columns: 1fr; gap: 0.4rem; }
  .article-num { font-size: 2rem; }
  .scroll-cue { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .updates-fields { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   18. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media img { animation: none; transform: scale(1.02); }
}

/* Honeypot — must be reachable by bots parsing the DOM, invisible to people
   and to assistive tech (the wrapper also carries aria-hidden). */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
