/* ==========================================================================
   Patty for Stayton City Council
   Everything here is drawn from the yard sign: its indigo face, its red bars
   and star, and its three voices of type (slab name, wide caps, bold serif).
   ========================================================================== */

@property --sway { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --indigo: #2b2e7f;        /* the sign's face */
  --indigo-deep: #1d1f5e;
  --night: #10113a;
  --red: #f23d52;           /* the sign's bars and star (graphics only; 3:1 on the indigo) */
  --red-ink: #c81e3a;       /* red that is legible as text on paper */
  --paper: #f3f4fc;
  --mist: #dfe2f7;
  --peri: #8d94d6;
  --ink: #191a45;
  --ink-soft: #4b4e7c;
  --white: #fff;

  --f-slab: "Alfa Slab One", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --f-caps: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --flutes: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 5px);
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1180px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--f-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

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

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.star { fill: var(--red); }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--white); color: var(--indigo);
  font: 800 .8rem/1 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 800 .78rem/1.2 var(--f-caps);
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border: 0; border-radius: 999px;
  font: 800 .82rem/1 var(--f-caps); letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--white); color: var(--indigo); box-shadow: 0 6px 18px -8px rgba(16, 17, 58, .6); }
.btn--light:hover { background: var(--red); color: var(--white); }
.btn--solid { background: var(--indigo); color: var(--white); box-shadow: 0 10px 24px -12px rgba(43, 46, 127, .8); }
.btn--solid:hover { background: var(--night); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-solid {
  background: var(--flutes), var(--indigo-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -18px rgba(16, 17, 58, .9);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .32em;
  font: 400 1.55rem/1 var(--f-slab); text-decoration: none;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.nav.is-solid .nav__brand { opacity: 1; transform: none; }
.nav__brand .star { width: .62em; height: .62em; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  position: relative; padding: 8px 0;
  font: 700 .74rem/1 var(--f-caps); letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__vote { padding: .8em 1.25em; font-size: .74rem; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ==========================================================================
   HERO
   You start nose-to-nose with the sign. Scrolling pulls the camera back until
   it is a yard sign standing in the valley. main.js sets --p (0 → 1) and the
   size and position of the board and the lockup; the values here are the
   close-up, which is also what shows without JavaScript.
   ========================================================================== */
.hero { position: relative; height: 100svh; background: var(--night); }
.js .hero { height: 250svh; }

.hero__stage {
  --p: 0;                 /* pull-back progress */
  --planted: 0;           /* 1 once the sign has landed (lets it sway) */
  --veil: 0;              /* reduced motion only: dips to the sign colour while the view changes */
  --scene-w: max(100vw, 120svh);
  --u: calc(var(--scene-w) / 1600);            /* one unit of the landscape drawing */
  --w: min(88vw, 92svh, 1040px);               /* width of the close-up lockup */
  --b0: calc((100svh - var(--w) * .75) / 2 + 1svh);
  --board-w: calc(max(100vw, 133.34svh) * 1.02);            /* a 4:3 board just big enough to cover the screen */
  --board-b: calc((100svh - var(--board-w) * .75) / 2);

  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 46% 34% at 54% calc(100% - var(--u) * 452), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(to top, #fdf5f1 calc(var(--u) * 440), #e4e7fb calc(var(--u) * 440 + 24svh), #b7bff1 100%);
}

.scene { position: absolute; inset: 0; pointer-events: none; }
.scene__layer {
  position: absolute; left: 50%; bottom: 0;
  width: var(--scene-w); height: calc(var(--scene-w) * .5625);
  max-width: none;
  transform-origin: 50% 88%;
  transform: translateX(-50%) scale(calc(1 + var(--d) * (1 - var(--p))));
  will-change: transform;
}
.scene__layer--far { --d: .05; }
.scene__layer--hills { --d: .09; }
.scene__layer--valley { --d: .15; }
.scene__layer--near { --d: .26; }
.scene__layer--front { --d: .42; transform: translate(-50%, calc((1 - var(--p)) * 34svh)) scale(calc(1 + var(--d) * (1 - var(--p)))); }

.cloud { fill: #fff; opacity: .86; animation: drift 70s ease-in-out infinite alternate; }
.cloud--b { opacity: .7; animation-duration: 96s; animation-direction: alternate-reverse; }
.cloud--c { animation-duration: 120s; }
.cloud--d { opacity: .6; animation-duration: 84s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-70px); } to { transform: translateX(90px); } }

.flow { fill: none; stroke: #fff; stroke-opacity: .8; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 16 58 5 96 26 119; animation: flow 9s linear infinite; }
.flow--1 { stroke-opacity: .55; stroke-dasharray: 7 83 20 64 4 142; animation-duration: 11s; }
.flow--2 { stroke-width: 2.2; stroke-dasharray: 24 101 9 72 14 100; animation-duration: 8s; }
.flow--3 { stroke-opacity: .5; stroke-dasharray: 5 120 18 77 10 90; animation-duration: 12s; }
@keyframes flow { to { stroke-dashoffset: -320; } }

.planted {
  position: absolute; inset: 0;
  transform-origin: 50% calc(100% - var(--u) * 96);
  transform: rotate(calc(var(--sway) * var(--planted)));
  animation: sway 6.5s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { --sway: -.3deg; } 50% { --sway: .42deg; } }

/* the sign's face: always a 4:3 board, bigger than the screen up close */
.panel {
  position: absolute; left: 50%; bottom: var(--board-b);
  width: var(--board-w); aspect-ratio: 4 / 3;
  transform: translateX(-50%);
  border-radius: calc(var(--p) * 3px);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px calc(6px - var(--p) * 3px)),
    var(--indigo);
  box-shadow:
    0 0 0 calc(var(--p) * 2px) rgba(255, 255, 255, .95),
    0 calc(var(--u) * 26) calc(var(--u) * 44) calc(var(--u) * -14) rgba(16, 17, 58, .5);
}
.panel::before, .panel::after {           /* the wire stakes */
  content: ""; position: absolute; top: 100%;
  width: max(2px, calc(var(--u) * 3.2)); height: calc(var(--u) * 78);
  background: linear-gradient(90deg, #9da2cf, #e4e6f6 45%, #8086bd);
}
.panel::before { left: 21%; }
.panel::after { right: 21%; }
.panel__sheen {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
}
.panel__sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .05) 60%, transparent);
  transform: translateX(-140%) skewX(-14deg);
  animation: sheen 2.2s 2.2s var(--ease-out) both;
}
@keyframes sheen { to { transform: translateX(420%) skewX(-14deg); } }

/* the lockup, laid out in container units so it scales as one piece */
.sign {
  position: absolute; left: 50%; bottom: var(--b0);
  width: var(--w); aspect-ratio: 4 / 3;
  container-type: inline-size;
  color: var(--white);
  transform-origin: 50% 100%;
  transform: translate(-50%, var(--sign-dy, 0px)) scale(var(--sign-s, 1));
  will-change: transform;
}
.sign__lockup { margin: 0; font-weight: 400; }
.sign__lockup > span, .sign__rule, .sign__tag { position: absolute; left: 5cqw; right: 5cqw; }

.sign__reelect {
  top: 6.2cqw;
  display: flex; align-items: center; gap: 2.4cqw;
  font: 900 7.5cqw/1 var(--f-caps); letter-spacing: .055em; text-transform: uppercase;
}
.sign__reelect i, .sign__starrow i { height: 1.4cqw; border-radius: 1cqw; background: var(--red); }
.sign__reelect i { flex: 1; }
.sign__reelect span { padding-left: .055em; }

.sign__name {
  top: 15.6cqw; z-index: 2;
  font: 400 31cqw/.8 var(--f-slab); text-align: center; white-space: nowrap;
}

.sign__starrow { top: 39.6cqw; z-index: 1; display: flex; align-items: center; gap: 1.5cqw; height: 7.2cqw; }
.sign__starrow i:nth-of-type(1) { flex: 0 0 41%; }
.sign__starrow i:nth-of-type(2) { flex: 0 0 23.4%; }
.sign__starrow i:nth-of-type(3) { flex: 1; margin-left: 13cqw; }   /* the gap is where the y's tail drops through */
.sign__starrow .star { flex: none; width: 7.2cqw; height: 7.2cqw; }

.sign__office {
  top: 49.2cqw;
  font: 900 5.42cqw/1 var(--f-caps); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; text-align: justify; text-align-last: justify;
}
.sign__rule { top: 56.4cqw; height: .36cqw; background: var(--white); }
.sign__tag { top: 58.6cqw; margin: 0; text-align: center; font: 700 5.3cqw/1.15 var(--f-serif); }
.sign__tag em { display: block; font-size: 4.55cqw; }

/* the sign assembles itself on load */
.sign__reelect i { animation: bar-in .7s .15s var(--ease-out) both; transform-origin: right; }
.sign__reelect i:last-child { transform-origin: left; }
.sign__reelect span { animation: fade-in .7s .1s both; }
.sign__name { animation: name-in .9s .28s var(--ease-out) both; }
.sign__starrow .star { animation: star-in .8s .85s var(--ease-pop) both; }
.sign__starrow i { animation: bar-in .65s 1s var(--ease-out) both; transform-origin: right; }
.sign__starrow i:nth-of-type(n+2) { transform-origin: left; }
.sign__starrow i:nth-of-type(3) { animation-delay: 1.22s; }
.sign__office { animation: rise-in .6s 1.15s var(--ease-out) both; }
.sign__rule { animation: bar-in .7s 1.25s var(--ease-out) both; transform-origin: left; }
.sign__tag span, .sign__tag em { display: inline-block; animation: rise-in .6s var(--ease-out) both; }
.sign__tag span:nth-child(1) { animation-delay: 1.45s; }
.sign__tag span:nth-child(2) { animation-delay: 1.65s; }
.sign__tag em { display: block; animation-delay: 1.85s; }

@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(.5em); } }
@keyframes name-in { from { opacity: 0; transform: translateY(14%) scale(.96); } }
@keyframes star-in { from { opacity: 0; transform: scale(0) rotate(-216deg); } }

.hero__veil { position: absolute; inset: 0; background: var(--flutes), var(--indigo); opacity: var(--veil); pointer-events: none; }
.hero__cue, .hero__caption { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none; }
.hero__cue {
  bottom: clamp(18px, 4.2svh, 44px);
  color: var(--white);
  font: 700 .74rem/1.3 var(--f-caps); letter-spacing: .16em; text-transform: uppercase;
  opacity: calc(1 - var(--p) * 6);
  animation: fade-in .8s 2.2s both;
}
.hero__cue i {
  display: block; width: 3px; height: 30px; margin: 12px auto 0; border-radius: 3px;
  background: var(--red); transform-origin: top;
  animation: cue 1.9s 2.6s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(16px); opacity: 0; } }

.hero__caption {
  top: clamp(84px, 13svh, 150px);
  padding: 0 var(--gutter);
  color: var(--indigo);
  opacity: calc((var(--p) - .82) * 6);
  transform: translateY(calc((1 - var(--p)) * 40px));
}
.hero__caption .eyebrow { display: block; margin-bottom: .9em; color: var(--indigo); }
.hero__line { display: block; font: 700 clamp(1.5rem, 3.3vw, 2.7rem)/1.1 var(--f-serif); font-style: italic; letter-spacing: -.01em; }

@media (max-aspect-ratio: 3/4) {
  .hero__stage { --scene-w: 150svh; --w: 106vw; --b0: calc((100svh - var(--w) * .75) / 2 + 4svh); }
  .js .hero { height: 225svh; }
  .scene__layer--far { --d: .08; }
  .scene__layer--hills { --d: .14; }
  .scene__layer--valley { --d: .24; }
  .scene__layer--near { --d: .4; }
  .scene__layer--front { --d: .6; }
}

/* a phone on its side has no room for the line above the planted sign */
@media (max-height: 520px) { .hero__caption { display: none; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(76px, 11vw, 150px) var(--gutter); }
.wrap { max-width: var(--measure); margin-inline: auto; }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.45; }
.h-display { font: 700 clamp(2rem, 4.6vw, 3.5rem)/1.06 var(--f-serif); letter-spacing: -.015em; }
.fine { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.on-dark { color: var(--white); }
.on-dark .fine { color: rgba(255, 255, 255, .74); }
.link { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--red); transition: text-decoration-thickness .2s; }
.link:hover { text-decoration-thickness: 4px; }
.link[href^="tel"], .nb { white-space: nowrap; }

/* scroll reveals (only hidden when JS is there to show them) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* the sign's bar-star-bar, used as the section divider */
.rule { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); margin-bottom: clamp(28px, 4vw, 52px); }
.rule i { flex: 1; height: clamp(5px, .7vw, 9px); border-radius: 9px; background: var(--red); transform-origin: right; transition: transform 1.1s var(--ease-out) .15s; }
.rule i:last-child { transform-origin: left; }
.rule .star { flex: none; width: clamp(30px, 4vw, 52px); height: clamp(30px, 4vw, 52px); transition: transform .9s var(--ease-pop); }
.js .rule:not(.is-in) i { transform: scaleX(0); }
.js .rule:not(.is-in) .star { transform: scale(0) rotate(-216deg); }

/* the three lines of the sign, as section titles */
.slogan-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.slogan { font: 700 clamp(3.3rem, 11vw, 8.6rem)/.92 var(--f-serif); letter-spacing: -.025em; }
.slogan--long { font-size: clamp(2.7rem, 8.2vw, 6.6rem); }
.slogan .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.slogan .w > span { display: inline-block; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.js .slogan:not(.is-in) .w > span { transform: translateY(105%); }
.emblem { flex: none; width: clamp(150px, 22vw, 290px); height: auto; overflow: visible; margin-bottom: 1.2vw; }
@media (max-width: 720px) { .slogan-head { flex-direction: column; align-items: flex-start; gap: 22px; } .emblem { width: 170px; } }

/* ---------- strip under the hero ---------- */
.strip { background: var(--night); color: var(--white); padding: 0 var(--gutter) clamp(44px, 6vw, 72px); }
.strip__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.strip__count { display: flex; align-items: center; gap: 16px; margin: 0; }
.strip__count b { font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--f-slab); font-variant-numeric: tabular-nums; }
.strip__count span { font: 800 .8rem/1.3 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; max-width: 12em; }
.strip__line { flex: 1 1 320px; margin: 0; font-size: 1.15rem; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 34em; }

/* ---------- meet David ---------- */
.david__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px;
  background: radial-gradient(120% 90% at 8% 0%, rgba(255, 255, 255, .14), transparent 55%), var(--flutes), var(--indigo);
  box-shadow: 0 34px 60px -30px rgba(16, 17, 58, .55);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; }
.portrait figcaption::before { content: ""; display: block; width: 68%; height: 10px; margin: -5px 0 22px -18px; border-radius: 10px; background: var(--red); position: relative; }
.portrait figcaption { margin-top: 0; font: 800 .74rem/1.4 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.david__copy .eyebrow { color: var(--red-ink); margin-bottom: 18px; }
.david__copy .h-display { margin-bottom: .6em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; margin: 36px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 16px 0 0; }
.facts dt { font: 800 .7rem/1.3 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 6px 0 0; font: 700 1.3rem/1.2 var(--f-serif); }
@media (max-width: 820px) { .david__grid { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* terms served, and the one being asked for */
.terms { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 44px; }
.terms__t { position: relative; padding-top: 22px; }
.terms__t::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 10px; background: var(--red); transform-origin: left; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * .35s + .2s); }
.js .terms:not(.is-in) .terms__t::before { transform: scaleX(0); }
.terms__t--next::before { background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 24px); animation: march 1.2s linear infinite; }
@keyframes march { to { background-position: 24px 0; } }
.terms__t b { display: block; font: 800 .78rem/1.3 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; }
.terms__t span { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.35; color: var(--ink-soft); }

/* ---------- your voice ---------- */
.voice { background: linear-gradient(var(--paper), #e9ebfa); }
.voice__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .voice__grid { grid-template-columns: 1fr; } }
.emblem--voice rect { fill: var(--red); transform-box: fill-box; transform-origin: center; animation: speak 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.21s); }
@keyframes speak { from { transform: scaleY(.28); } to { transform: scaleY(1); } }

.where { list-style: none; margin: 34px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.where li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(25, 26, 69, .18); }
.where span { overflow-wrap: anywhere; }
.where b { font: 800 .72rem/1.5 var(--f-caps); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); padding-top: .3em; }
@media (max-width: 520px) { .where li { grid-template-columns: 1fr; gap: 2px; } }

.tell { position: relative; padding: clamp(24px, 3.4vw, 40px); border-radius: 6px; background: var(--flutes), var(--indigo); color: var(--white); box-shadow: 0 40px 70px -40px rgba(16, 17, 58, .7); }
.tell::before { content: ""; position: absolute; left: clamp(24px, 3.4vw, 40px); right: clamp(24px, 3.4vw, 40px); top: 0; height: 8px; border-radius: 0 0 8px 8px; background: var(--red); }
.tell fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tell legend { padding: 0; margin: 10px 0 18px; font: 700 clamp(1.5rem, 2.6vw, 1.95rem)/1.15 var(--f-serif); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: .72em 1.05em; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); font: 700 .74rem/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, color .2s, box-shadow .2s, transform .25s var(--ease-pop); }
.chips label:hover span { box-shadow: inset 0 0 0 2px var(--white); }
.chips input:checked + span { background: var(--white); color: var(--indigo); box-shadow: inset 0 0 0 2px var(--white); transform: scale(1.04); }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.tell__label { display: block; margin: 24px 0 8px; font: 800 .72rem/1.3 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; }
.tell textarea, .tell input[type="text"] {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 4px; resize: vertical;
  background: rgba(255, 255, 255, .96); color: var(--ink); font: 400 1.05rem/1.45 var(--f-serif);
}
.tell textarea { min-height: 120px; }
.tell__foot { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 22px; }
.tell__foot .fine { margin: 0; flex: 1 1 200px; font-size: .9rem; }

/* ---------- your interests: the record, on the sign's own face ---------- */
.interests { background: radial-gradient(90% 60% at 10% 0%, rgba(255, 255, 255, .1), transparent 60%), var(--flutes), var(--indigo); }
.interests .lead { max-width: 36em; }
.emblem--interests rect { fill: var(--red); transform-box: fill-box; transform-origin: left center; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * .14s + .2s); }
.emblem--interests .star { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease-pop); transition-delay: calc(var(--i) * .14s + .9s); }
.js .slogan-head:not(.is-in) .emblem--interests rect { transform: scaleX(0); }
.js .slogan-head:not(.is-in) .emblem--interests .star { transform: scale(0); }

.ledger { margin-top: clamp(40px, 6vw, 76px); }
.ledger__row { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px clamp(24px, 5vw, 72px); padding: clamp(28px, 3.6vw, 44px) 0; }
.ledger__row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--white); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.js .ledger__row:not(.is-in)::before { transform: scaleX(0); }
.ledger__head { display: flex; align-items: flex-start; gap: 18px; }
.ledger__head h3 { font: 900 clamp(1.05rem, 1.7vw, 1.3rem)/1.2 var(--f-caps); letter-spacing: .07em; text-transform: uppercase; padding-top: .55em; }
.ico { flex: none; width: 54px; height: 54px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .accent { stroke: var(--red); }
.ico .accent-fill { fill: var(--red); stroke: none; }
.ico .draw { stroke-dasharray: 1; transition: stroke-dashoffset 1.4s var(--ease-out) .25s; }
.js .ledger__row:not(.is-in) .ico .draw { stroke-dashoffset: 1; }
.ledger__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ledger__items li { display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; }
.ledger__items .yr { font: 800 .82rem/1 var(--f-caps); letter-spacing: .08em; padding-top: .62em; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.ledger__items strong { display: block; font: 700 1.3rem/1.25 var(--f-serif); margin-bottom: .2em; }
.ledger__items p { margin: 0; font-size: 1.06rem; line-height: 1.5; color: rgba(255, 255, 255, .84); }
@media (max-width: 760px) { .ledger__row { grid-template-columns: 1fr; } .ledger__items li { grid-template-columns: 1fr; gap: 4px; } .ledger__items .yr { padding-top: 0; } }

sup.src { font: 800 .62em/1 var(--f-caps); vertical-align: super; margin-left: .15em; white-space: nowrap; }
sup.src a { text-decoration: none; padding: .1em .32em; border-radius: 3px; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; transition: opacity .2s, background-color .2s, color .2s; }
sup.src a:hover { opacity: 1; background: var(--red); color: var(--white); box-shadow: none; }

/* David's own words */
.said { margin: 1.6em 0 0; padding: 0 0 0 clamp(18px, 2.4vw, 30px); border-left: 8px solid var(--red); border-radius: 4px 0 0 4px; }
.said p { margin: 0; font: italic 700 clamp(1.4rem, 2.5vw, 1.95rem)/1.28 var(--f-serif); letter-spacing: -.005em; text-indent: -.42em; }
.said::after { content: "David Patty"; display: block; margin-top: 14px; font: 800 .72rem/1 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.voice .said { margin-top: 0; margin-bottom: 1.6em; }
.said--lead { max-width: 46em; margin: 0 0 clamp(36px, 5vw, 60px); }
.said--lead p { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }

/* grants: one series, so one colour; every bar carries its own value and label */
.bars__intro { margin: 0 0 26px; font-size: 1.06rem; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.bars__intro strong { display: block; font: 700 1.3rem/1.25 var(--f-serif); color: var(--white); margin-bottom: .2em; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 8.2em 1fr; gap: 6px 14px; align-items: baseline; }
.bars__amt { font: 800 .98rem/1.3 var(--f-caps); letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars__what { font-size: 1.02rem; line-height: 1.4; color: rgba(255, 255, 255, .84); }
.bars__bar { grid-column: 1 / -1; height: 12px; width: max(5px, calc(var(--v) * 100%)); border-radius: 0 4px 4px 0; background: var(--red); transform-origin: left; transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i) * .08s + .25s); }
.js .ledger__row:not(.is-in) .bars__bar { transform: scaleX(0); }
@media (max-width: 520px) { .bars li { grid-template-columns: 1fr; gap: 2px; } .bars__bar { margin-top: 4px; } }

/* ---------- my continued commitment ---------- */
.commitment .slogan { font-style: italic; }
.emblem--commit .dash { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 34 22; animation: onward 1.1s linear infinite; }
.emblem--commit .star { transform-box: fill-box; transform-origin: center; animation: lead 2.2s ease-in-out infinite alternate; }
@keyframes onward { to { stroke-dashoffset: -56; } }
@keyframes lead { from { transform: translateX(-3px) rotate(-5deg); } to { transform: translateX(5px) rotate(5deg); } }

.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.pledge { position: relative; padding-top: 30px; }
.pledge::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 8px; border-radius: 8px; background: var(--red); transition: width .9s var(--ease-out) .2s; }
.pledge:hover::before { width: 100%; }
.pledge h3 { font: 700 clamp(1.45rem, 2.3vw, 1.85rem)/1.15 var(--f-serif); margin-bottom: .5em; }
.pledge p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; } }

.next { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px clamp(24px, 5vw, 72px); padding-top: 30px; border-top: 2px solid var(--ink); }
.next h3 { font: 900 1.05rem/1.25 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; }
.next ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.next li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.next li .star { width: 16px; height: 16px; margin-top: .42em; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }

/* ---------- yard sign ask ---------- */
.yard { background: var(--mist); padding-block: clamp(56px, 7vw, 96px); overflow: hidden; }
.yard__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px clamp(28px, 5vw, 64px); }
.yard h2 { font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.1 var(--f-serif); letter-spacing: -.01em; }
.yard__copy p { margin: .5em 0 0; color: var(--ink-soft); max-width: 32em; }
.yard__sign { position: relative; width: clamp(150px, 17vw, 220px); padding-bottom: 34px; transform-origin: 50% 100%; animation: wobble 5.5s ease-in-out infinite; }
.yard__sign .minisign { width: 100%; box-shadow: 0 0 0 2px var(--white), 0 18px 26px -14px rgba(16, 17, 58, .5); }
.yard__sign::before, .yard__sign::after { content: ""; position: absolute; bottom: 0; width: 2px; height: 34px; background: #7d83ba; }
.yard__sign::before { left: 22%; }
.yard__sign::after { right: 22%; }
@keyframes wobble { 0%, 100% { transform: rotate(-2.6deg); } 50% { transform: rotate(-.4deg); } }
@media (max-width: 820px) { .yard__in { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- how to vote ---------- */
.vote { background: radial-gradient(70% 50% at 85% 0%, rgba(43, 46, 127, .9), transparent 70%), var(--night); }
.vote__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.vote__title { font: 400 clamp(2.6rem, 7.4vw, 6rem)/.98 var(--f-slab); }
.vote__title em { font-style: normal; color: var(--red); }
.vote .eyebrow { display: block; margin-bottom: 20px; color: rgba(255, 255, 255, .78); }
@media (max-width: 860px) { .vote__head { grid-template-columns: 1fr; } .ballotbox { max-width: 240px; } }

.ballotbox { width: 100%; height: auto; overflow: visible; }
.ballotbox .env { transform-box: fill-box; transform-origin: center; animation: drop 4.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes drop {
  0% { transform: translate(-44px, -64px) rotate(-14deg); opacity: 0; }
  14% { opacity: 1; }
  38% { transform: translate(0, 34px) rotate(0deg); }
  46% { transform: translate(0, 34px) rotate(0deg); }
  66%, 100% { transform: translate(0, 132px) rotate(0deg); opacity: 1; }
}
.ballotbox .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 4.2s ease-out infinite; }
@keyframes tick { 0%, 60% { stroke-dashoffset: 1; opacity: 1; } 76%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* the election window, with a marker for today */
.window { position: relative; margin: 0 0 clamp(44px, 6vw, 80px); padding: 54px 0 0; }
.window__track { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.window__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--now, 0) * 100%); border-radius: 10px; background: var(--red); transition: width 1.8s var(--ease-out) .3s; }
.js .window:not(.is-in) .window__fill { width: 0; }
.window__now { position: absolute; left: calc(var(--now, 0) * 100%); top: -46px; transform: translateX(-50%); white-space: nowrap; font: 800 .72rem/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; transition: left 1.8s var(--ease-out) .3s; }
.window__now::after { content: ""; display: block; width: 2px; height: 22px; margin: 8px auto 0; background: var(--white); }
.js .window:not(.is-in) .window__now { left: 0; }
.window__now[data-edge="start"] { transform: none; } .window__now[data-edge="start"]::after { margin-left: 0; }
.window__now[data-edge="end"] { transform: translateX(-100%); } .window__now[data-edge="end"]::after { margin-right: 0; }
.window__stops { list-style: none; margin: 0; padding: 0; position: relative; height: 96px; }
.window__stops li { position: absolute; left: calc(var(--at) * 100%); top: -22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; text-align: center; width: 11em; }
.window__stops li:first-child { transform: none; justify-items: start; text-align: left; }
.window__stops li:last-child { transform: translateX(-100%); justify-items: end; text-align: right; }
.window__stops .star { width: 34px; height: 34px; fill: var(--white); filter: drop-shadow(0 0 0 var(--night)); }
.window__stops li.is-past .star { fill: var(--red); }
.window__stops b { display: block; font: 800 .76rem/1.3 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; }
.window__stops span { display: block; font-size: .95rem; line-height: 1.3; color: rgba(255, 255, 255, .78); }
@media (max-width: 720px) {
  .window { padding-top: 0; }
  .window__track, .window__now { display: none; }
  .window__stops { height: auto; display: grid; gap: 18px; }
  .window__stops li, .window__stops li:first-child, .window__stops li:last-child { position: static; transform: none; width: auto; grid-template-columns: 34px 1fr; justify-items: start; text-align: left; align-items: start; gap: 14px; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .9); }
.steps li::before { content: counter(step); display: block; font: 400 3.2rem/1 var(--f-slab); color: var(--red); margin-bottom: 10px; }
.steps h3 { font: 700 1.4rem/1.2 var(--f-serif); margin-bottom: .4em; }
.steps p { margin: 0; font-size: 1.04rem; line-height: 1.5; color: rgba(255, 255, 255, .84); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.vote__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(36px, 5vw, 60px); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--white); padding: clamp(56px, 8vw, 104px) var(--gutter) 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(24px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .foot__top { grid-template-columns: 1fr; } }
.minisign { container-type: inline-size; position: relative; color: var(--white); width: min(100%, 380px); aspect-ratio: 4 / 3; background: var(--flutes), var(--indigo); border-radius: 3px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.minisign * { animation: none !important; }
.foot__contact p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.foot__contact .h-display { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .7em; }
.sources { margin-top: clamp(44px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); }
.sources h2 { font: 800 .78rem/1.3 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.sources ol { margin: 0; padding: 0 0 0 1.4em; columns: 2 340px; column-gap: 48px; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.sources li { break-inside: avoid; margin-bottom: .7em; padding-left: .2em; }
.sources li:target { color: var(--white); background: rgba(242, 61, 82, .22); box-shadow: 0 0 0 6px rgba(242, 61, 82, .22); border-radius: 2px; }
.sources a { overflow-wrap: anywhere; }
.legal { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font: 600 .74rem/1.5 var(--f-caps); letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.legal p { margin: 0; }

/* ==========================================================================
   DRAFT REVIEW (off unless <body> has data-draft)
   ========================================================================== */
.review { display: none; }
.js body[data-draft] .review { display: block; position: fixed; left: 16px; bottom: 16px; z-index: 60; font: 600 .8rem/1.4 -apple-system, "Segoe UI", sans-serif; color: #2a2000; }
.review__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: #ffc83d; color: inherit; font: inherit; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5); }
.review__toggle b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #2a2000; color: #ffc83d; }
.review__list { display: none; width: min(380px, calc(100vw - 32px)); max-height: min(60vh, 520px); overflow: auto; margin: 0 0 10px; padding: 8px; list-style: none; border-radius: 12px; background: #fffbea; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .55); }
.is-reviewing .review__list { display: block; }
.review__list button { display: grid; grid-template-columns: 26px 1fr; gap: 8px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; font-weight: 500; color: inherit; cursor: pointer; }
.review__list button:hover { background: #ffe9a8; }
.review__list b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 11px; background: #ffc83d; font-weight: 700; }
.is-reviewing [data-note] { outline: 3px dashed #ffb300; outline-offset: 6px; border-radius: 2px; scroll-margin-top: 110px; }
.is-reviewing [data-note].is-flash { outline-style: solid; outline-width: 5px; }

/* ==========================================================================
   REDUCED MOTION (keep this last)
   Nothing zooms, slides or loops. The hero still shows both of its views:
   main.js fades to the sign colour and back as the visitor scrolls.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero { height: 180svh; }
}
