/*
Theme Name: Rasmus Elfström 2026
Theme URI: https://rasmuselfstrom.se
Author: Kampanjteamet
Description: Kampanjsida för Rasmus Elfströms riksdagskandidatur 2026 — Centerpartiet, Stockholms län.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: rasmus2026
*/

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

@font-face {
  font-family: 'Baton Turbo';
  src: url('fonts/BatonTurboWeb-Regular.woff2') format('woff2'),
       url('fonts/BatonTurboWeb-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baton Turbo';
  src: url('fonts/BatonTurboWeb-RegularItalic.woff2') format('woff2'),
       url('fonts/BatonTurboWeb-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Baton Turbo';
  src: url('fonts/BatonTurboWeb-Medium.woff2') format('woff2'),
       url('fonts/BatonTurboWeb-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baton Turbo';
  src: url('fonts/BatonTurboWeb-Bold.woff2') format('woff2'),
       url('fonts/BatonTurboWeb-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #00533F;
  --ink: #14201A;
  --sage: #8FA68A;
  --rose: #D9A89A;
  --gold: #F5C542;
  --paper: #F4EFE3;

  --font-display: 'Bowlby One SC', 'Arial Black', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Baton Turbo', system-ui, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 140px;
  --content-width: 1200px;
  --page-gutter: clamp(24px, 5vw, 72px);
  --clover-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='200 220 400 460'%3E%3Cpath d='M404.5,422c4.8,6.6,11.9,6.7,17,5.7,31.9-6.5,56.8-15,78.2-26.7,25.7-14,41.5-28.7,51-47.8,11.8-23.5,11.1-45.7-1.9-66-11.7-18.2-43-35.6-76-17.6l-1.3.7-.5-1.4c-.2-.6-.4-1.3-.6-1.8-.5-1.5-.9-2.8-1.5-4.1-7.2-15.5-18.3-25.7-33.2-30.3-32.9-10.2-59.9,9.7-71,32.4-9.6,19.3-11.3,41.2-5.4,66.7,6.7,29,20.6,56.9,45.1,90.2M395.5,474c-4.8-6.6-11.8-6.7-16.9-5.7-31.9,6.5-56.8,15-78.2,26.7-25.8,14-41.5,28.7-51.1,47.8-11.7,23.5-11.1,45.8,1.9,66,11.7,18.2,42.9,35.7,75.9,17.6l1.3-.7.5,1.4c.2.7.4,1.4.7,2,.5,1.4.9,2.8,1.4,3.9,7.2,15.5,18.3,25.7,33.1,30.3,6.1,1.9,12,2.7,17.6,2.7,24.8,0,44.4-16.6,53.5-35.1,9.6-19.4,11.3-41.2,5.4-66.7-6.8-29-20.7-56.9-45.1-90.2M420.4,469.1c6.6,31.6,15.1,56.3,26.9,77.6,14.1,25.6,29,41.2,48.2,50.6,11.2,5.6,22.2,8.3,32.8,8.3s23-3.4,33.8-10.2c30.4-19.3,28.6-55.7,17.7-75.4l-.7-1.3,1.4-.5c.7-.3,1.5-.5,2.1-.7,1.4-.4,2.7-.8,3.8-1.4,15.7-7.1,26-18.2,30.6-32.9,10.2-32.7-9.7-59.5-32.6-70.5-19.7-9.5-41.7-11.2-67.3-5.4-29.3,6.7-57.3,20.5-91,44.8-6.6,4.8-6.7,11.8-5.7,16.8M215.7,483.1c12.1,5.8,25,8.8,39.2,8.8s18.2-1.1,28.1-3.4c29.3-6.7,57.3-20.5,90.9-44.7,6.6-4.8,6.7-11.8,5.7-16.8-6.6-31.6-15.1-56.3-26.9-77.6-14-25.5-28.9-41.2-48.1-50.7-23.7-11.7-46.1-11-66.5,1.9-30.4,19.3-28.7,55.7-17.7,75.3l.7,1.3-1.4.5c-.8.3-1.5.5-2.3.7-1.3.4-2.6.8-3.7,1.3-15.9,7.2-25.9,18-30.6,32.9-10.2,32.7,9.8,59.4,32.6,70.5'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s;
}

/* ── NAV ────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1.5px solid transparent;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: var(--paper);
  border-bottom-color: rgba(20, 32, 26, 0.12);
  box-shadow: 0 1px 12px rgba(0, 53, 41, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
  transform: skewX(-4deg);
  display: inline-block;
  transition: color 0.4s;
}

.nav.scrolled .nav-logo { color: var(--green); }

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}
.menu-item-kontakt-mobile { display: none; }

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-sm) 0;
  transition: color 0.4s;
}

.nav.scrolled .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s;
}

.nav.scrolled .nav-links a::after { background: var(--green); }

.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

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

.nav-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  background: var(--gold);
  color: var(--ink);
  transition: background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover { background: var(--green); color: var(--paper); transform: translateY(-2px); }

.nav.scrolled .nav-cta { background: var(--gold); color: var(--ink); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 10px 6px;
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.nav.scrolled .nav-mobile-toggle span { background: var(--ink); }

.nav-mobile-toggle span:nth-child(1) { top: 13px; }
.nav-mobile-toggle span:nth-child(2) { top: 21px; }
.nav-mobile-toggle span:nth-child(3) { top: 29px; }

.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 21px;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
}

/* ── HERO ───────────────────────────────── */

.hero {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-gutter) clamp(var(--space-2xl), 6vh, var(--space-4xl));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 83, 63, 0.15) 30%,
    rgba(0, 83, 63, 0.65) 60%,
    #00533F 100%
  );
}

.hero-photo-fallback {
  width: 100%;
  height: 100%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--paper);
  text-align: center;
  padding: 24px;
}

.hero-name.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;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.hero-wordmark {
  display: block;
  width: clamp(260px, 70vw, 860px);
  max-width: calc(100vw - 2 * clamp(24px, 5vw, 72px));
  margin-left: auto;
  margin-right: auto;
  height: auto;
  color: var(--paper);
}

.hero-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-wordmark--img {
  filter: brightness(0) invert(1) sepia(0.25) saturate(0.4) hue-rotate(350deg) brightness(0.96);
  opacity: 0;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  margin-top: var(--space-lg);
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* ── ISSUES ──────────────────────────────── */

.issues {
  background: var(--paper);
  padding: 0;
  position: relative;
}

.issues-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(var(--space-3xl), 8vh, var(--space-4xl)) var(--page-gutter) var(--space-lg);
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-md);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--green);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.issue-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--ink);
  padding: clamp(var(--space-2xl), 5vw, var(--space-4xl)) clamp(var(--space-lg), 4vw, var(--space-2xl));
  min-height: clamp(280px, 38vh, 440px);
  position: relative;
  overflow: hidden;
}

.js .issue-item {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.issue-item.visible {
  clip-path: inset(0 0 0 0);
}

.issue-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.issue-item:nth-child(6n+1) { background: var(--sage); }
.issue-item:nth-child(6n+2) { background: var(--rose); }
.issue-item:nth-child(6n+3) { background: var(--gold); }
.issue-item:nth-child(6n+4) { background: var(--green); color: var(--paper); }
.issue-item:nth-child(6n+4) .issue-tag { background: var(--paper); color: var(--green); }
.issue-item:nth-child(6n+4) .issue-content h3 { color: var(--paper); }
.issue-item:nth-child(6n+4) .issue-content p { color: rgba(244, 239, 227, 0.85); }
.issue-item:nth-child(6n+4) .issue-cta { color: var(--paper); border-bottom-color: var(--paper); }
.issue-item:nth-child(6n+5) { background: var(--sage); }
.issue-item:nth-child(6n+6) { background: var(--rose); }

.issue-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.issue-tag {
  display: block;
  width: fit-content;
  min-width: min(100%, 320px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: var(--space-lg);
}

.issue-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.js .issue-content h3 {
  filter: blur(6px);
  opacity: 0.4;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.issue-item.visible .issue-content h3 {
  filter: blur(0);
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .js .issue-content h3 {
    filter: none;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.issue-item:hover .issue-content h3 {
  transform: translateX(8px);
}

.issue-content p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(20, 32, 26, 0.8);
  max-width: 45ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.issue-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: var(--space-lg);
  padding-bottom: 3px;
  border-bottom: 2.5px solid var(--ink);
  transition: letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.issue-item:hover .issue-cta {
  letter-spacing: 0.14em;
  padding-left: 4px;
}

a.issue-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ── Scroll-driven card choreography ───── */

@supports (animation-timeline: view()) {
  .issue-item .issue-tag {
    animation: tag-enter linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .issue-item .issue-content h3 {
    animation: heading-stamp linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 50%;
  }
  .issue-item .issue-content p {
    animation: body-fade linear both;
    animation-timeline: view();
    animation-range: entry 15% entry 55%;
  }
  .issue-item .issue-cta {
    animation: cta-draw linear both;
    animation-timeline: view();
    animation-range: entry 25% entry 60%;
  }
}

@keyframes tag-enter {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heading-stamp {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  60% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes body-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-draw {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}


/* ── INSTAGRAM ──────────────────────────── */

.instagram-section {
  background: var(--paper);
  padding: clamp(var(--space-4xl), 10vh, 160px) var(--page-gutter);
  text-align: center;
}

.instagram-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: var(--space-3xl);
  letter-spacing: -0.02em;
}

.instagram-follow {
  display: inline-block;
  margin-top: var(--space-3xl);
}

/* ── ABOUT ───────────────────────────────── */

.about {
  background: var(--green);
  color: var(--paper);
  padding: clamp(var(--space-5xl), 18vh, 240px) var(--page-gutter) clamp(var(--space-3xl), 8vh, var(--space-4xl));
  position: relative;
  overflow: hidden;
}

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about .section-heading {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: var(--space-2xl);
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
}

.about-text p + p {
  margin-top: var(--space-lg);
}

.about-text:last-of-type {
  margin-bottom: var(--space-xl);
}

.about-quote {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: var(--gold);
  transform: rotate(-2deg);
  padding: var(--space-2xl) 0 0;
  margin-top: var(--space-lg);
  line-height: 1.2;
  position: relative;
}

.about-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.about-quote.visible::before { transform: scaleX(1); }

/* ── FOOTER ──────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(var(--space-4xl), 10vh, var(--space-5xl)) var(--page-gutter) var(--space-2xl);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.footer-wordmark {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  color: var(--paper);
}

.footer-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer-wordmark--img {
  filter: brightness(0) invert(1) sepia(0.15) saturate(0.8) hue-rotate(5deg) brightness(0.96);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-xl);
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  font-size: 0.95rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover { opacity: 1; }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-links .current-menu-item a {
  opacity: 1;
}
.footer-links .current-menu-item a::after {
  transform: scaleX(1);
}

.footer-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-xl);
}

.footer-social a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.footer-social a:hover { opacity: 1; }

.footer-social-icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(244, 239, 227, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.footer-bottom-clover {
  width: 40px;
  height: 40px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-bottom-home:hover .footer-bottom-clover {
  transform: rotate(90deg) scale(1.1);
}

.footer-bottom-clover path { fill: var(--paper); }

/* ── ABOUT PHOTO ────────────────────────── */

.about-inner.has-photo {
  max-width: var(--content-width);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  grid-row: 1 / -1;
  grid-column: 2;
}

.about-text-col {
  grid-column: 1;
}

@media (max-width: 900px) {
  .about-inner.has-photo {
    grid-template-columns: 1fr;
  }
  .about-photo {
    grid-column: 1;
    grid-row: auto;
    max-width: 340px;
  }
}

/* ── CTA BAND HIERARCHY ────────────────── */

.btn--secondary {
  background: transparent;
  color: var(--green);
  border-bottom: 2.5px solid var(--green);
  padding: var(--space-md) var(--space-sm);
}
.btn--secondary:hover {
  background: rgba(0, 83, 63, 0.1);
  color: var(--ink);
  border-bottom-color: var(--ink);
  transform: none;
}

/* ── ANIMATIONS ──────────────────────────── */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes arrowBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── SPLIT-TEXT WORD REVEALS ────────────── */

.js [data-split-text] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-i, 0) * 0.07s + 0.2s);
}

[data-split-text].visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── HANDWRITING CHARACTER ANIMATION ────── */

.js .hw-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em) scale(0.8);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--char-i, 0) * 0.035s);
}

[data-handwrite].visible .hw-char {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── SCROLL-DRIVEN HERO (Chrome 115+) ──── */

@supports (animation-timeline: scroll()) {
  @keyframes heroPhotoParallax {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.1) translateY(25%); }
  }

  @keyframes heroContentFade {
    0% { opacity: var(--hero-el-start-opacity, 1); }
    100% { opacity: 0; }
  }

  .hero {
    timeline-scope: --hero-scroll;
    view-timeline: --hero-scroll block;
  }

  .hero-photo {
    animation: heroPhotoParallax linear forwards;
    animation-timeline: scroll(nearest block);
    animation-range: 0% 100vh;
  }

  .hero-wordmark {
    --hero-el-start-opacity: 1;
    animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards,
               heroContentFade linear forwards;
    animation-timeline: auto, scroll(nearest block);
    animation-range: normal, 0% 60vh;
  }

  .hero-tagline {
    --hero-el-start-opacity: 1;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards,
               heroContentFade linear forwards;
    animation-timeline: auto, scroll(nearest block);
    animation-range: normal, 0% 55vh;
  }
}

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
  .issues-grid {
    grid-template-columns: 1fr;
  }
  .issue-item {
    min-height: clamp(240px, 32vh, 360px);
  }
  .issue-content h3 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .issue-item:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .issue-item {
    min-height: clamp(240px, 32vh, 360px);
  }
  .issue-content h3 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    padding: 24px;
    gap: 8px;
    z-index: 101;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open a {
    color: var(--ink);
    display: block;
    padding: 12px 0;
    min-height: 44px;
  }
  .nav-links.open a::after { background: var(--green); }
  .nav-links.open .menu-item-kontakt-mobile { display: block; }

  .hero-wordmark {
    width: clamp(260px, 85vw, 400px);
  }

  .footer-links,
  .footer-social {
    gap: var(--space-md) var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wordmark {
    animation: none;
    opacity: 1;
  }
  .hero-tagline { animation: none; opacity: 1; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .issue-item {
    clip-path: none;
    transition: none;
  }
  .hero-photo {
    transform: none;
  }
  .issue-content h3 {
    filter: none;
    opacity: 1;
    transition: none;
    animation: none !important;
    clip-path: none;
  }
  [data-split-text] .word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hw-char {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-quote::before { transform: scaleX(1); transition: none; }
  .issue-tag,
  .issue-content p,
  .issue-cta {
    animation: none !important;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ── NON-HOME NAV ────────────────────────── */

body:not(.home) .nav { background: var(--paper); border-bottom-color: rgba(20, 32, 26, 0.12); box-shadow: 0 1px 12px rgba(0, 53, 41, 0.08); }
body:not(.home) .nav-logo { color: var(--green); }
body:not(.home) .nav-links a { color: var(--ink); }
body:not(.home) .nav-links a::after { background: var(--green); }
body:not(.home) .nav-mobile-toggle span { background: var(--ink); }

/* ── PAGE CONTENT (inner pages) ─────────── */

.page-header {
  background: var(--green);
  color: var(--paper);
  padding: calc(64px + clamp(var(--space-3xl), 8vh, var(--space-4xl))) var(--page-gutter) clamp(var(--space-3xl), 6vh, var(--space-4xl));
  text-align: center;
}
.page-header--hero {
  background: var(--hero-bg) center/cover;
  position: relative;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 53, 41, 0.75);
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header .section-eyebrow { color: rgba(244, 239, 227, 0.6); }
.page-header .section-heading { color: var(--paper); margin-bottom: 0; font-size: clamp(2rem, 7vw, 5rem); overflow-wrap: break-word; }

/* ── POLICY PAGE HERO ────────────────────── */

.policy-hero {
  background: var(--green);
  color: var(--paper);
  padding: calc(64px + clamp(var(--space-3xl), 10vh, var(--space-5xl))) var(--page-gutter) clamp(var(--space-3xl), 8vh, var(--space-4xl));
  position: relative;
}

.policy-hero--photo {
  background: var(--hero-bg) center/cover;
}

.policy-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 53, 41, 0.75);
}

.policy-hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.policy-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--paper);
  color: var(--green);
}

.policy-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: var(--space-lg);
}

.policy-hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  color: rgba(244, 239, 227, 0.85);
  max-width: 60ch;
}

/* Policy hero color variants */
.policy-hero--sage { background: var(--sage); color: var(--ink); }
.policy-hero--sage .policy-hero-tag { background: var(--ink); color: var(--paper); }
.policy-hero--sage .policy-hero-title { color: var(--ink); }
.policy-hero--sage .policy-hero-lead { color: rgba(20, 32, 26, 0.9); }

.policy-hero--rose { background: var(--rose); color: var(--ink); }
.policy-hero--rose .policy-hero-tag { background: var(--ink); color: var(--paper); }
.policy-hero--rose .policy-hero-title { color: var(--ink); }
.policy-hero--rose .policy-hero-lead { color: rgba(20, 32, 26, 0.8); }

.policy-hero--gold { background: var(--gold); color: var(--ink); }
.policy-hero--gold .policy-hero-tag { background: var(--ink); color: var(--paper); }
.policy-hero--gold .policy-hero-title { color: var(--ink); }
.policy-hero--gold .policy-hero-lead { color: rgba(20, 32, 26, 0.8); }

.policy-hero--green { background: var(--green); }
.policy-hero--green .policy-hero-overlay { background: rgba(0, 83, 63, 0.75); }

/* ── POLICY PAGE BODY ───────────────────── */

.policy-body {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(var(--space-3xl), 8vh, var(--space-4xl)) var(--page-gutter) clamp(var(--space-4xl), 10vh, var(--space-5xl));
}
.policy-body p, .policy-body li { font-size: 1.1rem; line-height: 1.8; margin-bottom: var(--space-lg); }
.policy-body ul, .policy-body ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); }
.policy-body ul { list-style: none; padding-left: 0; }
.policy-body ul li { position: relative; padding-left: var(--space-xl); }

.policy-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}
.policy-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ink);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.policy-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: var(--green);
  -webkit-mask: var(--clover-url) center / contain no-repeat;
  mask: var(--clover-url) center / contain no-repeat;
}

/* Color-matched h2 and bullet accents */
.policy-page--sage .policy-body h2 { color: var(--green); }
.policy-page--sage .policy-body ul li::before { background: var(--sage); }

.policy-page--rose .policy-body h2 { color: var(--green); }
.policy-page--rose .policy-body ul li::before { background: var(--rose); }

.policy-page--gold .policy-body h2 { color: var(--green); }
.policy-page--gold .policy-body ul li::before { background: var(--gold); }

.policy-page--green .policy-body ul li::before { background: var(--green); }

/* ── GENERIC PAGE HEADER & BODY (about, kontakt, etc.) */

.page-body {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(var(--space-3xl), 8vh, var(--space-4xl)) var(--page-gutter) clamp(var(--space-4xl), 10vh, var(--space-5xl));
}
.page-body p, .page-body li { font-size: 1.1rem; line-height: 1.8; margin-bottom: var(--space-lg); }
.page-body ul, .page-body ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); }
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li { position: relative; padding-left: var(--space-xl); }
.page-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: var(--green);
  -webkit-mask: var(--clover-url) center / contain no-repeat;
  mask: var(--clover-url) center / contain no-repeat;
}
.page-body h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--green); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.page-body h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink); margin-top: var(--space-xl); margin-bottom: var(--space-sm); }

/* ── RELATED ISSUES (policy page cross-links) */

.related-issues {
  background: var(--paper);
  padding: clamp(var(--space-3xl), 6vh, var(--space-4xl)) var(--page-gutter);
}

.related-issues-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.related-issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  max-width: var(--content-width);
  margin: 0 auto;
}

.related-issue-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  padding: var(--space-2xl) clamp(var(--space-lg), 3vw, var(--space-2xl));
  min-height: 200px;
  transition: filter 0.3s;
}

.related-issue-card:hover { filter: brightness(0.95); }

.related-issue-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.related-issue-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.related-issue-cta {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}

.related-issue-card--sage { background: var(--sage); }
.related-issue-card--rose { background: var(--rose); }
.related-issue-card--gold { background: var(--gold); }
.related-issue-card--green { background: var(--green); color: var(--paper); }
.related-issue-card--green .related-issue-tag { background: var(--paper); color: var(--green); }
.related-issue-card--green .related-issue-cta { color: var(--paper); border-bottom-color: var(--paper); }

/* ── CTA BUTTON ──────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-md) var(--space-2xl);
  background: var(--green);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { background: var(--ink); transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink); }
.btn--outline { background: transparent; border: 2.5px solid var(--paper); color: var(--paper); }
.btn--outline:hover { background: var(--paper); color: var(--green); }

/* ── VOTE GUIDE ─────────────────────────── */

.vote-guide {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(var(--space-4xl), 10vh, var(--space-5xl)) var(--page-gutter);
}

.vote-guide-inner {
  max-width: 740px;
  margin: 0 auto;
}

.vote-guide-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--paper);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vote-guide-date {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-3xl);
  opacity: 0.8;
}

.vote-guide-date strong {
  color: var(--gold);
  opacity: 1;
}

.vote-guide-steps {
  list-style: none;
  counter-reset: none;
}

.vote-guide-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(244, 239, 227, 0.12);
}

.vote-guide-step:last-child {
  border-bottom: none;
}

.vote-guide-step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}

.vote-guide-step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.vote-guide-step p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* ── ABOUT PAGE ──────────────────────────── */

.about-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--page-gutter);
  align-items: start;
}
.about-page-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-page-quote {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--rose);
  transform: rotate(-1.5deg);
  margin-top: var(--space-xl);
  line-height: 1.3;
}
.cv-list { list-style: none; margin-top: var(--space-2xl); }
.cv-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(20, 32, 26, 0.1);
  font-size: 1rem;
}
.cv-list li strong { font-weight: 700; color: var(--green); }

/* ── BLOG ────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-xl);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--page-gutter);
}
.blog-card {
  background: var(--paper);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* hover: pointer-only — prevents sticky state on touch devices */
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: var(--space-lg); }
.blog-card-date { font-size: 0.8rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-xs); }
.blog-card-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.2; margin-bottom: var(--space-sm); }
.blog-card-excerpt { font-size: 0.95rem; opacity: 0.8; line-height: 1.6; }

/* ── PRESS MENTIONS (RSS) ───────────────── */

.press-mentions {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--page-gutter) var(--space-5xl);
}

.press-mentions-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--green);
  margin-bottom: var(--space-2xl);
}

.press-mentions-list {
  list-style: none;
}

.press-mention {
  border-top: 1px solid rgba(20, 32, 26, 0.1);
}

.press-mention:last-child {
  border-bottom: 1px solid rgba(20, 32, 26, 0.1);
}

.press-mention a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm) var(--space-xl);
  padding: var(--space-lg) 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

/* hover: pointer-only — see @media (hover: hover) block below */

.press-mention-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.3;
  flex: 1 1 300px;
}

.press-mention-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(20, 32, 26, 0.7);
  flex-basis: 100%;
}

.press-mention-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(20, 32, 26, 0.7);
  flex-basis: 100%;
}

.press-mention-source {
  font-weight: 700;
  color: var(--green);
}

/* ── SINGLE POST ─────────────────────────── */

.single-post-header {
  background: var(--green);
  color: var(--paper);
  padding: calc(64px + var(--space-4xl)) var(--page-gutter) var(--space-3xl);
  text-align: center;
}
.single-post-header .section-heading { color: var(--paper); margin-bottom: var(--space-md); font-size: clamp(2.4rem, 6vw, 4rem); }
.single-post-meta { font-size: 0.9rem; opacity: 0.75; }
.single-post-featured { max-width: var(--content-width); margin: calc(-1 * var(--space-2xl)) auto 0; padding: 0 var(--page-gutter); }
.single-post-featured img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

/* ── CONTACT ─────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-3xl);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--page-gutter);
}
.contact-grid .wpcf7 label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}
.contact-grid .wpcf7 input[type="text"],
.contact-grid .wpcf7 input[type="email"],
.contact-grid .wpcf7 textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1.5px solid rgba(20, 32, 26, 0.2);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}
.contact-grid .wpcf7 input::placeholder,
.contact-grid .wpcf7 textarea::placeholder {
  color: rgba(20, 32, 26, 0.45);
}
.contact-grid .wpcf7 input:focus,
.contact-grid .wpcf7 textarea:focus { border-color: var(--green); }
.contact-grid .wpcf7 input:focus-visible,
.contact-grid .wpcf7 textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-grid .wpcf7 input.wpcf7-not-valid,
.contact-grid .wpcf7 textarea.wpcf7-not-valid { border-color: #b5443a; }
.contact-grid .wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.85rem;
  color: #b5443a;
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-md);
}
.contact-grid .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-xl);
  min-height: 44px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.contact-grid .wpcf7 input[type="submit"]:hover { background: var(--green); color: var(--paper); transform: translateY(-2px); }
.contact-grid .wpcf7 input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.contact-grid .wpcf7 .wpcf7-spinner {
  margin-left: var(--space-sm);
  vertical-align: middle;
}
.contact-grid .wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--space-md);
  margin: var(--space-md) 0 0;
  border: none;
}
.contact-grid .wpcf7 form.sent .wpcf7-response-output {
  background: var(--green);
  color: var(--paper);
}
.contact-grid .wpcf7 form.invalid .wpcf7-response-output,
.contact-grid .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-grid .wpcf7 form.failed .wpcf7-response-output,
.contact-grid .wpcf7 form.aborted .wpcf7-response-output {
  background: var(--rose);
  color: var(--ink);
}
.contact-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: var(--space-xl);
}
.contact-privacy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: var(--space-md);
}
.contact-privacy a { color: inherit; text-decoration: underline; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--space-md); }
.contact-info a { color: var(--green); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }
.contact-info ul { list-style: none; margin-top: var(--space-lg); }
.contact-info li { margin-bottom: var(--space-sm); }

/* ── 404 ─────────────────────────────────── */

.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--page-gutter);
}
.page-404 h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 8rem); color: var(--green); line-height: 1; }
.page-404 p { font-size: 1.2rem; margin: var(--space-lg) 0 var(--space-xl); opacity: 0.8; }

.policy-cta-wrap { margin-top: var(--space-2xl); }
.page-body--flush { padding: 0; }

/* ── ADDITIONAL RESPONSIVE ───────────────── */

@media (max-width: 900px) {
  .about-page-grid { grid-template-columns: 1fr; }
  .about-page-photo { max-width: 280px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
  .contact-photo { max-width: 200px; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .cv-list li { grid-template-columns: 1fr; gap: var(--space-xs); }

  /* FIX: press mention title flex-basis overflow on narrow screens */
  .press-mention-title { flex: 1 1 100%; }

  /* FIX: press mention touch target — add horizontal padding on mobile */
  .press-mention a { padding: var(--space-lg) var(--space-sm); }

  /* FIX: single post featured image — less extreme ratio on mobile */
  .single-post-featured img { aspect-ratio: 16/9 !important; }

  /* FIX: reduce excessive press mentions bottom whitespace */
  .press-mentions { padding-bottom: var(--space-3xl); }

  /* FIX: reduce single post header vertical padding on mobile */
  .single-post-header {
    padding-top: calc(64px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .contact-grid {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
  .about-page-grid {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
  .page-404 {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    min-height: 60vh;
  }
}

/* ── HOVER: pointer devices only ────────── */

@media (hover: hover) {
  .blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 53, 41, 0.12);
    transform: translateY(-4px);
  }
  .press-mention a:hover {
    color: var(--green);
  }
}

/* ── TOUCH: active feedback for card links ── */

@media (hover: none) {
  .issue-item:active {
    filter: brightness(0.92);
    transform: scale(0.985);
    transition: filter 0.1s, transform 0.1s;
  }
  .related-issue-card:active {
    filter: brightness(0.88);
    transform: scale(0.985);
    transition: filter 0.1s, transform 0.1s;
  }
  .blog-card:active {
    transform: scale(0.985);
    transition: transform 0.1s;
  }
}

/* ── LANDSCAPE: short viewport refinements ── */

@media (max-height: 440px) and (orientation: landscape) {
  .hero {
    padding-bottom: var(--space-lg);
  }
  .hero-wordmark {
    width: clamp(200px, 50vw, 400px);
  }
  .hero-tagline {
    margin-top: var(--space-sm);
  }
}

/* ── SAFE AREAS: notch/Dynamic Island ──── */

@supports (padding: env(safe-area-inset-top)) {
  .nav {
    padding-left: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left));
    padding-right: max(clamp(20px, 4vw, 48px), env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  }
}
