:root {
  --blue: #0758d6;
  --blue-bright: #1684ff;
  --blue-deep: #052d73;
  --navy: #031f50;
  --ink: #092044;
  --cream: #f4f0e7;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: rgba(9, 32, 68, 0.16);
  --font-sans: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
  --font-serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --shell: min(1240px, calc(100vw - 48px));
  --radius: 8px;
  --shadow: 0 24px 60px rgba(1, 21, 53, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: 128px 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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #ffca3a;
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 80px;
  border-bottom: 1px solid rgba(9, 32, 68, 0.08);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.97);
  box-shadow: 0 12px 40px rgba(3, 31, 80, 0.08);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand img {
  width: 66px;
  height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-copy strong {
  font-size: 0.88rem;
}

.brand-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.82rem;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 29px 0 25px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.language-switch {
  gap: 9px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch > span {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.language-button {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(9, 32, 68, 0.52);
  background: transparent;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.language-button.is-active {
  color: var(--white);
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.menu-toggle i {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] i:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  padding: 42px 24px;
  overflow-y: auto;
  color: var(--white);
  background-color: #031f50;
  opacity: 0;
  overscroll-behavior: contain;
  isolation: isolate;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 0;
}

.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 8vw, 2.4rem);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  padding: 142px 0 54px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(100deg, black, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 5px;
  background: var(--blue-bright);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 46px;
  animation: rise-in 700ms 120ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow,
.section-tag {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 38px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light,
.section-tag.light {
  color: #82bfff;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(4.7rem, 7.1vw, 7.65rem);
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
  font-weight: 800;
}

.hero h1 em {
  display: block;
  max-width: 680px;
  margin-top: 16px;
  color: #9ed0ff;
  font-family: var(--font-serif);
  font-size: 0.47em;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: none;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 13px 16px 13px 24px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.button-light {
  color: var(--blue-deep);
  background: var(--white);
}

.button .arrow {
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  font-size: 1.1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  animation: image-in 900ms 220ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-photo-wrap {
  position: absolute;
  inset: 0 -5vw 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-left: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 31, 80, 0.15), transparent 45%);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.02);
  animation: hero-photo-drift 14s ease-in-out 1.2s infinite alternate;
}

.hero-fact {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  display: flex;
  min-width: 230px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(3, 31, 80, 0.9);
  backdrop-filter: blur(8px);
}

.hero-fact strong {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
}

.hero-fact span {
  max-width: 120px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 38px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.64);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fbdff;
  box-shadow: 0 0 0 6px rgba(127, 189, 255, 0.13);
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.scroll-cue i {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--white), transparent);
  transform-origin: top;
  animation: scroll-line 2.2s ease-in-out infinite;
}

.campaign-line {
  position: relative;
  z-index: 4;
  overflow: hidden;
  color: var(--blue-deep);
  background: #bedcff;
}

.campaign-line-inner {
  display: grid;
  min-height: 176px;
  grid-template-columns: 176px 1fr auto;
  align-items: center;
  gap: 44px;
}

.campaign-line p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.campaign-line-year {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.wheel-stage {
  position: relative;
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
}

.mill-wheel {
  width: 122px;
  height: 122px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.wheel-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-turn 18s linear infinite;
}

.wheel-paddles {
  fill: #bedcff;
  stroke-width: 3;
}

.water-line,
.water-line::before,
.water-line::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.water-line::before,
.water-line::after {
  content: "";
}

.water-line::before {
  bottom: -7px;
  left: 20px;
}

.water-line::after {
  right: 20px;
  bottom: -14px;
}

.water-line {
  animation: water-breathe 3.2s ease-in-out infinite;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(60px, 9vw, 124px);
  align-items: center;
}

.about-portrait {
  position: relative;
  padding: 0 0 38px 38px;
}

.about-portrait::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 0;
  width: 72%;
  background: var(--blue);
}

.portrait-frame {
  position: relative;
  z-index: 1;
  height: 620px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 22px 55px rgba(3, 31, 80, 0.17);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.015);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-portrait:hover .portrait-frame img {
  transform: scale(1.045);
}

.portrait-note {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 330px;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.portrait-note strong {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.portrait-note span {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

.about-copy h2,
.principles h2,
.program-teaser h2 {
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
}

.about-copy > p:not(.section-tag) {
  max-width: 690px;
  color: rgba(9, 32, 68, 0.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 46px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 24px 18px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.timeline span {
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
}

.timeline p {
  margin: 6px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.results {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 5.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.section-heading > p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.64);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.result-card {
  position: relative;
  min-height: 285px;
  padding: 34px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.018);
  transition: background 230ms ease, transform 230ms ease;
}

.result-card:hover {
  z-index: 2;
  background: rgba(255, 255, 255, 0.055);
}

.result-card.featured {
  color: var(--white);
  background: rgba(22, 132, 255, 0.08);
  box-shadow: inset 0 4px 0 var(--blue-bright);
}

.result-card.featured:hover {
  background: rgba(22, 132, 255, 0.13);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.result-index {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.52;
}

.result-status {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #8ac5ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.result-value {
  margin-bottom: 14px;
  color: #8ac5ff;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  line-height: 1;
}

.featured .result-value {
  color: #8ac5ff;
}

.result-card h3 {
  max-width: 340px;
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.result-card p {
  max-width: 390px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.83rem;
}

.featured p {
  color: rgba(255, 255, 255, 0.58);
}

.landmark-card {
  grid-column: span 2;
  display: grid;
  min-height: 410px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  padding: 0;
  background: #0a397c;
}

.landmark-card:hover {
  background: #0c438f;
}

.landmark-art {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: #a8d3ff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}

.landmark-art svg {
  width: min(88%, 390px);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.landmark-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-turn 22s linear infinite;
}

.landmark-wheel .paddle {
  fill: #0a397c;
  stroke-width: 3;
}

.landmark-water {
  stroke-width: 3;
  animation: landmark-water 4s ease-in-out infinite alternate;
}

.landmark-copy {
  position: relative;
  align-self: center;
  max-width: 590px;
  padding: 52px;
}

.landmark-card .result-meta {
  margin-bottom: 64px;
}

.principles {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.principles-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  column-gap: 100px;
  align-items: end;
  margin-bottom: 68px;
}

.principles-intro .section-tag {
  grid-column: 1 / -1;
}

.principles-intro h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.principles-intro > p:last-child {
  margin-bottom: 10px;
  color: rgba(9, 32, 68, 0.67);
}

.principles-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  position: relative;
  min-height: 350px;
  padding: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  transition: color 240ms ease, background 240ms ease;
}

.principle:nth-child(odd) {
  padding-right: 124px;
}

.principle:nth-child(even) {
  padding-left: 124px;
}

.principle:hover {
  color: var(--white);
  background: var(--blue-deep);
}

.principle-index {
  display: block;
  margin-bottom: 46px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.principle:hover .principle-index,
.principle:hover .principle-kicker,
.principle:hover p {
  color: rgba(255, 255, 255, 0.72);
}

.principle:hover .principle-kicker {
  color: rgba(255, 255, 255, 0.72) !important;
}

.principle-kicker {
  margin-bottom: 12px !important;
  color: rgba(9, 32, 68, 0.56) !important;
  font-size: 0.64rem !important;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.principle h3 {
  max-width: 430px;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.principle p {
  max-width: 440px;
  margin: 0;
  color: rgba(9, 32, 68, 0.65);
  font-size: 0.9rem;
}

.principles-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  min-width: 188px;
  min-height: 112px;
  place-content: center;
  padding: 18px 26px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 42px rgba(3, 31, 80, 0.18);
  text-align: center;
  transform: translate(-50%, -50%);
}

.principles-center small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.principles-center strong {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.team {
  color: var(--white);
  background: var(--blue);
}

.team > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(60px, 7vw, 100px);
  align-items: center;
}

.team-photo {
  position: relative;
  padding: 18px 18px 58px 0;
}

.team-photo::before {
  content: "";
  position: absolute;
  inset: 0 0 72px 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.team-photo > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(1, 25, 67, 0.29);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-photo:hover > img {
  transform: translate(-5px, -5px);
}

.team-photo-caption {
  position: absolute;
  right: 18px;
  bottom: 0;
  z-index: 2;
  display: flex;
  min-width: 260px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid rgba(3, 31, 80, 0.14);
  color: var(--navy);
  background: var(--cream);
}

.team-photo-caption strong {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
}

.team-photo-caption span {
  max-width: 150px;
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.team-copy h2 {
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.team-copy p:not(.section-tag) {
  color: rgba(255, 255, 255, 0.74);
}

.candidate-list {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.candidate-list summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.candidate-list summary::-webkit-details-marker {
  display: none;
}

.candidate-list summary i,
.candidate-list summary i::after {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 180ms ease;
}

.candidate-list summary i {
  position: relative;
}

.candidate-list summary i::after {
  content: "";
  position: absolute;
  transform: rotate(90deg);
}

.candidate-list[open] summary i::after {
  transform: rotate(0);
}

.candidate-list ol {
  columns: 2;
  gap: 28px;
  margin: 0;
  padding: 0 0 28px 1.5em;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-serif);
  line-height: 1.8;
}

.candidate-list li {
  break-inside: avoid;
  padding-left: 4px;
}

.candidate-facebook {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 180ms ease;
}

.candidate-facebook i,
.county-candidate-facebook i {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.candidate-facebook:hover,
.candidate-facebook:focus-visible {
  color: var(--white);
}

.candidate-facebook:hover i,
.candidate-facebook:focus-visible i {
  color: var(--white);
  transform: translate(2px, -2px);
}

.county-campaign {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.county-campaign::before {
  content: "REGIÓ";
  position: absolute;
  right: -0.03em;
  bottom: -0.19em;
  color: rgba(7, 88, 214, 0.045);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.county-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: clamp(62px, 8vw, 118px);
  align-items: center;
}

.county-visual {
  position: relative;
  padding: 0 38px 48px 0;
}

.county-photo-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 26px 64px rgba(3, 31, 80, 0.2);
}

.county-photo-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.county-photo-frame img {
  width: 100%;
  height: auto;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.county-visual:hover .county-photo-frame img {
  transform: scale(1.018);
}

.county-visual::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 0;
  bottom: 0;
  left: 42px;
  border: 1px solid rgba(7, 88, 214, 0.28);
}

.county-seal {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(3, 31, 80, 0.2);
}

.county-seal strong {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.county-seal span {
  max-width: 100px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.county-copy h2 {
  max-width: 720px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.county-copy > p:not(.section-tag) {
  max-width: 680px;
  color: rgba(9, 32, 68, 0.72);
}

.county-candidates {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.county-candidates summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.county-candidates summary::-webkit-details-marker {
  display: none;
}

.county-candidates summary i,
.county-candidates summary i::after {
  width: 18px;
  height: 2px;
  background: var(--blue);
  transition: transform 180ms ease;
}

.county-candidates summary i {
  position: relative;
}

.county-candidates summary i::after {
  content: "";
  position: absolute;
  transform: rotate(90deg);
}

.county-candidates[open] summary i::after {
  transform: rotate(0);
}

.county-candidates ol {
  counter-reset: county-candidate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0;
  padding: 0 0 28px;
  list-style: none;
}

.county-candidates li {
  counter-increment: county-candidate;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 12px 0;
  border-top: 1px solid rgba(9, 32, 68, 0.1);
}

.county-candidates li::before {
  content: counter(county-candidate, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--blue);
  font-size: 0.63rem;
  font-weight: 800;
}

.county-candidate-facebook,
.county-role {
  grid-column: 2;
}

.county-candidate-facebook {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}

.county-candidate-facebook strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.county-candidate-facebook i {
  color: rgba(7, 88, 214, 0.58);
}

.county-candidate-facebook:hover i,
.county-candidate-facebook:focus-visible i {
  color: var(--blue);
  transform: translate(2px, -2px);
}

.county-role {
  color: rgba(9, 32, 68, 0.58);
  font-size: 0.65rem;
  line-height: 1.35;
}

.program-teaser {
  position: relative;
  padding: 118px 0;
  overflow: hidden;
  background: #bddcff;
}

.program-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 1.52fr);
  gap: 18px 72px;
  padding-top: 34px;
  border-top: 1px solid rgba(9, 32, 68, 0.28);
  text-align: left;
}

.program-inner .section-tag {
  grid-row: 1 / span 2;
  align-self: start;
  justify-content: flex-start;
}

.program-teaser h2 {
  max-width: 900px;
  margin: 0;
}

.program-teaser p:not(.section-tag) {
  max-width: 720px;
  margin: 4px 0 0;
  color: rgba(9, 32, 68, 0.68);
  font-size: 1.05rem;
}

.campaign-access {
  position: relative;
  background: var(--paper);
}

.campaign-access-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.46fr) minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 56px;
}

.campaign-access-heading .section-tag {
  margin-bottom: 8px;
}

.campaign-access-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.campaign-access-heading > p:last-child {
  margin: 0 0 8px;
  color: rgba(9, 32, 68, 0.66);
}

.campaign-access-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.access-card {
  position: relative;
  display: grid;
  min-height: 330px;
  padding: 36px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.access-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(3, 31, 80, 0.14);
}

.facebook-card {
  grid-template-columns: 76px 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 24px;
  color: var(--white);
  background: var(--blue);
}

.facebook-card::after {
  content: "f";
  position: absolute;
  right: -0.02em;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.07);
  font-family: Georgia, serif;
  font-size: 18rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.access-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.access-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.access-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
}

.access-card-copy small,
.account-card small,
.account-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.access-card-copy small {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.access-card-copy strong {
  max-width: 390px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.access-card-copy > span {
  max-width: 360px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.access-action {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1 / -1;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.facebook-card .access-action {
  border-color: rgba(255, 255, 255, 0.28);
}

.access-action i {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-style: normal;
}

.account-card {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 28px 48px;
  color: var(--ink);
  background: var(--cream);
}

.account-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 5px;
  background: var(--blue);
}

.account-label {
  grid-column: 1 / -1;
  color: var(--blue);
}

.account-number,
.account-owner {
  display: grid;
  align-content: start;
  gap: 9px;
}

.account-number small,
.account-owner small {
  color: rgba(9, 32, 68, 0.52);
}

.account-number strong {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.9vw, 2.25rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1.08;
  white-space: nowrap;
}

.account-owner {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.account-owner strong {
  font-size: 0.92rem;
}

.account-card .access-action {
  border-color: var(--line);
}

.election-cta {
  position: relative;
  min-height: 570px;
  padding: 110px 0 96px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(112deg, var(--navy) 0 64%, var(--blue-deep) 64% 100%);
}

.election-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.election-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--blue-bright);
}

.election-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  gap: clamp(70px, 9vw, 140px);
  align-items: end;
}

.election-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #a9d2ff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.election-eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.election-message h2 {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(3.2rem, 5.9vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.election-message h2 span,
.election-message h2 em {
  display: block;
}

.election-message h2 em {
  margin-top: 10px;
  color: #b8dcff;
  font-family: var(--font-serif);
  font-weight: 400;
}

.election-message > p:last-child {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.election-date-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 152px;
  align-items: stretch;
  color: var(--navy);
  background: var(--paper);
  box-shadow: 0 25px 70px rgba(1, 18, 50, 0.28);
}

.election-date-copy {
  display: grid;
  align-content: center;
  padding: 26px 30px;
}

.election-date-copy span {
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.election-date-copy time {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.ballot-mark {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
}

.ballot-mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: -22px;
  width: 23px;
  height: 30px;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.ballot-mark svg {
  width: 64px;
  height: 64px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3.5;
}

.ballot-paper {
  fill: var(--blue);
  transform-origin: center bottom;
  animation: ballot-drop 3.6s ease-in-out infinite;
}

.ballot-check {
  animation: ballot-check 3.6s ease-in-out infinite;
}

.election-year {
  position: absolute;
  right: -0.04em;
  bottom: -0.16em;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(11rem, 24vw, 25rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

@keyframes ballot-drop {
  0%, 18%, 100% { transform: translateY(-8px); }
  38%, 82% { transform: translateY(5px); }
}

@keyframes ballot-check {
  0%, 18%, 100% { opacity: 0.35; }
  38%, 82% { opacity: 1; }
}

.site-footer {
  position: relative;
  padding: 84px 0 30px;
  color: var(--white);
  background: var(--navy);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--blue-bright);
}

.footer-main {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 78px;
  height: 56px;
  padding: 5px;
  border-radius: 10px;
  background: var(--white);
  object-fit: contain;
}

.footer-brand p {
  display: grid;
  margin: 0;
  line-height: 1.35;
}

.footer-brand strong {
  text-transform: uppercase;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
}

.footer-statement {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-style: italic;
  line-height: 1.15;
  text-align: center;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.back-to-top i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  font-style: normal;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom > p:nth-child(2) {
  text-align: center;
}

.developer-credit {
  justify-self: end;
  text-align: right;
}

.developer-credit a {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  letter-spacing: 0.07em;
}

.developer-credit a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--blue-bright);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 220ms ease;
}

.developer-credit a:hover::after {
  transform: scaleX(1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  max-width: 1040px;
  margin-inline: auto;
  color: var(--white);
  background: rgba(3, 31, 80, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 70px rgba(1, 16, 43, 0.34);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(14px);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 24px 26px;
  border-left: 4px solid var(--blue-bright);
}

.cookie-copy > p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.cookie-copy .cookie-kicker {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-details {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.cookie-details summary {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.cookie-details summary::-webkit-details-marker {
  display: none;
}

.cookie-details p {
  max-width: 760px;
  margin: 9px 0 0;
}

.cookie-actions {
  display: grid;
  min-width: 190px;
  gap: 8px;
}

.cookie-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 16px 11px 20px;
  border: 0;
  border-radius: 2px;
  color: var(--blue-deep);
  background: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cookie-reject {
  min-height: 40px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.cookie-reject:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.cookie-accept:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--reveal-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1), transform 700ms var(--reveal-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal .section-tag::before,
.js .section-heading.reveal .section-tag::before {
  transform: scaleX(0);
  transform-origin: left;
}

.js .reveal.is-visible .section-tag::before,
.js .section-heading.reveal.is-visible .section-tag::before {
  transform: scaleX(1);
  transition: transform 650ms 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes image-in {
  from { opacity: 0; transform: translateX(40px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes wheel-turn {
  to { transform: rotate(360deg); }
}

@keyframes hero-photo-drift {
  to { transform: scale(1.055) translate3d(-0.5%, -0.5%, 0); }
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.35; transform: scaleY(0.42); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes water-breathe {
  0%, 100% { opacity: 0.42; transform: translateX(-5px) scaleX(0.9); }
  50% { opacity: 0.9; transform: translateX(5px) scaleX(1); }
}

@keyframes landmark-water {
  to { transform: translateX(12px); }
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 12vw, 7rem);
  }

  .hero-visual {
    min-height: 640px;
  }

  .hero-photo-wrap {
    inset: 0;
  }

  .about-grid,
  .team > .shell {
    gap: 62px;
  }

  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .portrait-frame {
    height: 540px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landmark-card {
    grid-column: span 2;
  }

  .team > .shell {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .team-photo-caption {
    min-width: 230px;
  }

  .county-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .county-visual {
    width: min(100%, 760px);
  }

  .campaign-access-heading {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .campaign-access-heading .section-tag {
    grid-column: 1 / -1;
  }

  .campaign-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: calc(100vw - 32px);
    --radius: 8px;
  }

  .section {
    padding: 88px 0;
  }

  .site-header {
    height: 72px;
  }

  .mobile-menu {
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
  }

  .brand img {
    width: 46px;
    height: 34px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand-copy {
    display: grid;
    flex: 0 1 auto;
    gap: 2px;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .brand-copy strong {
    font-size: 0.66rem;
  }

  .brand-copy small {
    font-size: 0.48rem;
    letter-spacing: 0.17em;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .language-switch {
    gap: 3px;
    padding: 4px;
  }

  .language-button {
    width: 30px;
    height: 26px;
    font-size: 0.67rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-left: 6px;
    padding-inline: 8px;
  }

  .hero {
    padding: 116px 0 38px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.3rem);
    line-height: 0.92;
  }

  .hero h1 em {
    margin-top: 21px;
    font-size: 0.44em;
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 0.97rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 2200 / 1890;
  }

  .hero-photo-wrap {
    inset: 0;
    border-width: 1px;
    border-radius: 3px;
  }

  .hero-photo-wrap img {
    object-fit: contain;
    object-position: center;
    transform: none;
    animation: none;
  }

  .hero-fact {
    right: -1px;
    bottom: -1px;
    min-width: 205px;
    padding: 11px 15px;
  }

  .hero-fact strong {
    font-size: 2.2rem;
  }

  .hero-foot {
    margin-top: 58px;
  }

  .scroll-cue {
    display: none;
  }

  .hero-note {
    font-size: 0.58rem;
  }

  .campaign-line-inner {
    min-height: 144px;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
  }

  .campaign-line p {
    font-size: clamp(1.85rem, 9vw, 3.2rem);
  }

  .wheel-stage {
    width: 88px;
    height: 112px;
  }

  .mill-wheel {
    width: 82px;
    height: 82px;
  }

  .about-grid,
  .section-heading,
  .principles-intro,
  .team > .shell,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 74px;
  }

  .about-portrait {
    max-width: 510px;
    padding: 0 0 30px 24px;
  }

  .portrait-frame {
    height: min(135vw, 650px);
  }

  .about-portrait::before {
    top: 24px;
  }

  .about-copy h2,
  .principles h2,
  .program-teaser h2 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .timeline {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 38px;
    padding: 0 0 0 30px;
    border-top: 0;
    border-left: 1px solid var(--line);
    overflow: visible;
  }

  .timeline li {
    min-width: 0;
    padding: 0 0 30px;
  }

  .timeline li:last-child {
    padding-bottom: 0;
  }

  .timeline li::before {
    top: 4px;
    left: -35px;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 5px var(--paper);
  }

  .timeline span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .timeline p {
    margin-top: 5px;
    font-size: 0.75rem;
  }

  .section-heading {
    gap: 28px;
    margin-bottom: 44px;
  }

  .section-heading h2,
  .team-copy h2 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .landmark-card {
    grid-column: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .landmark-art {
    min-height: 290px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .landmark-copy {
    padding: 34px;
  }

  .landmark-card .result-meta {
    margin-bottom: 38px;
  }

  .result-card {
    min-height: 300px;
  }

  .principles-intro {
    gap: 22px;
    margin-bottom: 50px;
  }

  .principles-axis {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
    padding: 36px 28px;
  }

  .principle:nth-child(odd),
  .principle:nth-child(even) {
    padding: 36px 28px;
  }

  .principle-index {
    margin-bottom: 32px;
  }

  .principles-center {
    display: none;
  }

  .team > .shell {
    gap: 88px;
  }

  .team-photo {
    padding: 12px 12px 54px 0;
  }

  .team-photo > img {
    aspect-ratio: auto;
    border-radius: 3px;
  }

  .team-photo-caption {
    right: 12px;
    min-width: min(260px, 82vw);
  }

  .team-photo-caption strong {
    font-size: 2.5rem;
  }

  .county-grid {
    gap: 62px;
  }

  .county-visual {
    padding: 0 24px 42px 0;
  }

  .county-visual::before {
    top: 24px;
    left: 24px;
  }

  .county-photo-frame::after {
    inset: 12px;
  }

  .county-seal {
    min-width: 180px;
    padding: 11px 16px;
  }

  .county-seal strong {
    font-size: 2.55rem;
  }

  .county-copy h2 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .county-candidates ol {
    grid-template-columns: 1fr;
  }

  .program-teaser {
    padding: 108px 0;
  }

  .program-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-inner .section-tag {
    grid-row: auto;
  }

  .campaign-access-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 42px;
  }

  .campaign-access-heading .section-tag {
    grid-column: auto;
  }

  .campaign-access-heading h2 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .campaign-access-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: 300px;
    padding: 30px;
  }

  .account-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-owner {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .election-cta {
    min-height: auto;
    padding: 88px 0 78px;
  }

  .election-cta-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .election-message h2 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .election-date-block {
    width: 100%;
    max-width: 580px;
  }

  .election-year {
    font-size: 42vw;
  }

  .footer-main {
    justify-items: start;
  }

  .footer-statement {
    max-width: 470px;
    text-align: left;
  }

  .back-to-top {
    justify-self: start;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
    margin-top: 52px;
  }

  .footer-bottom > p:nth-child(2),
  .developer-credit {
    justify-self: start;
    text-align: left;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .cookie-actions,
  .cookie-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .language-switch {
    padding: 4px;
  }

  .language-button {
    width: 31px;
    height: 26px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .candidate-list ol {
    columns: 1;
  }

  .facebook-card {
    grid-template-columns: 58px 1fr;
    gap: 8px 18px;
  }

  .access-icon {
    width: 54px;
    height: 54px;
  }

  .access-icon svg {
    width: 28px;
    height: 28px;
  }

  .access-card {
    padding: 26px;
  }

  .account-number strong {
    font-size: 1rem;
  }

  .election-date-block {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .election-date-copy {
    padding: 22px 18px;
  }

  .election-date-copy time {
    font-size: 1.85rem;
    white-space: normal;
  }

  .ballot-mark svg {
    width: 50px;
    height: 50px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
