/* ============================================================
   Paul Romein for School Board - Campaign Site
   Phase 1 styles - CF Slate (Look 13 design)
   Slate grey hero with overlapping CF orange/green/teal circles.
   Subtle idle animations, mouse parallax, scroll reveals.
   ============================================================ */

/* ---------- @property registrations ----------
   These let the animation interpolate gradient values cleanly.
   Without them, animating `background` between two gradient
   states causes discrete/stepped transitions (visible flicker). */

@property --teal-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.28;
}

@property --teal-size {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 28%;
}

/* ---------- Design Tokens ---------- */

:root {
  /* Slate anchor */
  --slate: #2F3744;
  --slate-deep: #1A1D22;
  --slate-light: #3F4A59;

  /* CF brand */
  --cf-orange: #ff681d;
  --cf-orange-light: #ff9016;
  --cf-orange-deep: #B84410;
  --cf-teal: #2596be;
  --cf-teal-light: #4db2d0;
  --cf-teal-deep: #1A6F8F;
  --cf-green: #76c043;
  --cf-green-light: #95d267;
  --cf-green-deep: #548D2B;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #F8F8F6;
  --sky: #EEF1F4;
  --sky-deep: #DEE3E8;
  --ink: #1A1A1A;
  --ink-soft: #4A5260;
  --ink-mute: #6A7488;
  --line: #E0E4E8;
  --line-soft: #EBEEF1;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --content-max: 760px;
  --wide-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 26, 46, 0.06), 0 1px 3px rgba(15, 26, 46, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 26, 46, 0.08), 0 2px 6px rgba(15, 26, 46, 0.04);
  --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset & Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cf-orange-deep);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease);
}

a:hover {
  color: var(--cf-teal-deep);
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 var(--space-4);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-7) 0;
}

/* ---------- Utility ---------- */

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

.container {
  width: 100%;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.prose {
  max-width: var(--content-max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cf-orange);
  margin-bottom: var(--space-3);
}

.eyebrow--teal { color: var(--cf-teal); }
.eyebrow--green { color: var(--cf-green-deep); }

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Site Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate);
  color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  max-width: var(--wide-max);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--cf-orange-light);
}

.wordmark__accent {
  color: var(--cf-green-light);
  font-style: normal;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-1);
}

.nav__link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}

.nav__link:hover {
  color: var(--cf-orange-light);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link[aria-current="page"] {
  color: var(--cf-green-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--white);
}

.nav__toggle svg {
  margin: 0 auto;
}

.nav__toggle-icon-close {
  display: none;
}

.nav[data-open="true"] .nav__toggle-icon-open {
  display: none;
}

.nav[data-open="true"] .nav__toggle-icon-close {
  display: block;
}

@media (max-width: 640px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__list {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--space-5);
    left: var(--space-5);
    flex-direction: column;
    gap: 0;
    background: var(--slate-deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav[data-open="true"] .nav__list {
    display: flex;
  }

  .nav__link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }
}

/* ---------- Hero ----------
   Slate grey base with three overlapping CF-coloured circles.
   The teal splash is a radial gradient in the background; orange
   and green are pseudo-elements. Mouse parallax uses the
   --mx/--my custom props, applied via the standalone `translate`
   property so it composes with the drift animation's `transform`. */

.hero {
  --mx: 0;
  --my: 0;
  background:
    radial-gradient(circle at 72% 78%,
      rgba(37, 150, 190, var(--teal-opacity)) 0%,
      transparent var(--teal-size)
    ),
    var(--slate);
  color: var(--white);
  padding: var(--space-8) 0 var(--space-9);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  background: var(--cf-orange);
  opacity: 0.32;
  border-radius: 50%;
  translate: calc(var(--mx) * 16px) calc(var(--my) * 16px);
  animation: drift-orange 22s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -110px;
  width: 380px;
  height: 380px;
  background: var(--cf-green);
  opacity: 0.3;
  border-radius: 50%;
  translate: calc(var(--mx) * -20px) calc(var(--my) * -20px);
  animation: drift-green 18s ease-in-out infinite alternate;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 1;
}

.hero__content {
  min-width: 0;
}

.hero__kicker {
  display: inline-block;
  background: var(--cf-green);
  color: var(--slate-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero__title em {
  font-style: normal;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 4px;
  background: var(--cf-orange);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1) 450ms;
}

/* When page has loaded, draw the underline in. */
body.is-loaded .hero__title em::after {
  transform: scaleX(1);
}

.hero__pitch {
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
  max-width: 30em;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero__media {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--cf-orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 104, 29, 0.35);
  animation: cta-pulse 3.4s ease-in-out infinite;
}

.btn--primary:hover {
  background: var(--cf-orange-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ---------- Hero headshot ---------- */

.hero__headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Photo Placeholder (for About page body shots) ---------- */

.photo-placeholder {
  position: relative;
  width: 100%;
  background: var(--sky);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
  color: var(--ink-soft);
  overflow: hidden;
}

.photo-placeholder[data-ratio="portrait"] { aspect-ratio: 4 / 5; }
.photo-placeholder[data-ratio="square"] { aspect-ratio: 1 / 1; }
.photo-placeholder[data-ratio="landscape"] { aspect-ratio: 3 / 2; }
.photo-placeholder[data-ratio="wide"] { aspect-ratio: 16 / 9; }

.photo-placeholder__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-orange-deep);
  margin-bottom: var(--space-2);
}

.photo-placeholder__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 24em;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--deep {
  background: var(--sky);
}

.section--cream {
  background: var(--cream);
}

.section__header {
  max-width: var(--content-max);
  margin: 0 auto var(--space-6);
  text-align: center;
  padding: 0 var(--space-5);
}

.section__title {
  margin-bottom: var(--space-3);
  color: var(--slate-deep);
}

.section__intro {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 36em;
  margin: 0 auto;
}

/* ---------- About teaser ---------- */

.teaser {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  text-align: center;
}

.teaser__body {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.teaser__body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Community list ---------- */

.community-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space-5);
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-5);
}

@media (max-width: 640px) {
  .community-list {
    grid-template-columns: 1fr;
  }
}

.community-list li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.community-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-orange);
}

/* Rotating bullet colours (CF palette) */
.community-list li:nth-child(3n+2)::before { background: var(--cf-green); }
.community-list li:nth-child(3n+3)::before { background: var(--cf-teal); }

.community-list strong {
  color: var(--ink);
  font-weight: 600;
}

.teaser-link {
  max-width: var(--content-max);
  margin: var(--space-6) auto 0;
  padding: 0 var(--space-5);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Follow CTA ---------- */

.follow {
  padding: var(--space-9) 0;
  background: var(--slate-deep);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Three-stripe top rail: orange, green, teal (CF brand signature) */
.follow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cf-orange) 0%,
    var(--cf-orange) 33.33%,
    var(--cf-green) 33.33%,
    var(--cf-green) 66.66%,
    var(--cf-teal) 66.66%,
    var(--cf-teal) 100%
  );
}

.follow__title {
  color: var(--white);
  margin-bottom: var(--space-3);
}

.follow__intro {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32em;
  margin: 0 auto var(--space-6);
  font-size: 1.0625rem;
}

.follow__links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--slate-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Each social button hovers a different CF colour — subtle brand signature */
.social-btn:nth-child(1):hover { background: var(--cf-orange); color: var(--white); }
.social-btn:nth-child(2):hover { background: var(--cf-green); color: var(--slate-deep); }
.social-btn:nth-child(3):hover { background: var(--cf-teal); color: var(--white); }

.social-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Article body (About page) ---------- */

.article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.article > h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--slate-deep);
}

.article > h2:first-of-type {
  margin-top: 0;
}

.article p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.article p.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.article .photo-placeholder {
  margin: var(--space-6) 0;
}

.article .community-list {
  padding: 0;
}

/* ---------- Priorities teaser (home page) ---------- */

.priority-teaser {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 860px) {
  .priority-teaser {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.priority-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.priority-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 26, 46, 0.08);
}

.priority-card:nth-child(1):hover { border-color: var(--cf-orange); }
.priority-card:nth-child(2):hover { border-color: var(--cf-green); }
.priority-card:nth-child(3):hover { border-color: var(--cf-teal); }

.priority-card__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.priority-card:nth-child(1) .priority-card__num {
  background: var(--cf-orange);
  box-shadow: 0 4px 12px rgba(255, 104, 29, 0.3);
}

.priority-card:nth-child(2) .priority-card__num {
  background: var(--cf-green);
  color: var(--slate-deep);
  box-shadow: 0 4px 12px rgba(118, 192, 67, 0.3);
}

.priority-card:nth-child(3) .priority-card__num {
  background: var(--cf-teal);
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

.priority-card__title {
  font-size: 1.25rem;
  color: var(--slate-deep);
  margin: 0 0 var(--space-3);
  line-height: 1.25;
}

.priority-card__body {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Priorities page ---------- */

.priority-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  display: grid;
  gap: var(--space-8);
}

.priority-entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 640px) {
  .priority-entry {
    grid-template-columns: 48px 1fr;
    gap: var(--space-4);
  }
}

.priority-entry__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
  line-height: 1;
}

.priority-entry:nth-child(1) .priority-entry__num {
  background: var(--cf-orange);
  box-shadow: 0 4px 12px rgba(255, 104, 29, 0.3);
}

.priority-entry:nth-child(2) .priority-entry__num {
  background: var(--cf-green);
  color: var(--slate-deep);
  box-shadow: 0 4px 12px rgba(118, 192, 67, 0.3);
}

.priority-entry:nth-child(3) .priority-entry__num {
  background: var(--cf-teal);
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

@media (max-width: 640px) {
  .priority-entry__num {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

.priority-entry__body {
  min-width: 0;
}

.priority-entry__kicker {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cf-orange);
  margin-bottom: var(--space-2);
}

.priority-entry:nth-child(2) .priority-entry__kicker { color: var(--cf-green-deep); }
.priority-entry:nth-child(3) .priority-entry__kicker { color: var(--cf-teal-deep); }

.priority-entry__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--slate-deep);
}

.priority-entry__body p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.priority-entry__body p:last-child {
  margin-bottom: 0;
}

.priority-closing {
  background: var(--sky);
  padding: var(--space-7) 0;
  margin-top: var(--space-6);
}

.priority-closing__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  text-align: center;
}

.priority-closing h2 {
  font-size: 1.5rem;
  color: var(--slate-deep);
  margin-bottom: var(--space-3);
}

.priority-closing p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 42em;
  margin: 0 auto;
}

/* ---------- Contact page ---------- */

.contact {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  display: grid;
  gap: var(--space-7);
}

.contact-block {
  padding: 0;
}

.contact-block--inperson {
  background: var(--sky);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-block--press {
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
}

.contact-block__header {
  margin-bottom: var(--space-5);
}

.contact-block__header h2 {
  font-size: 1.75rem;
  color: var(--slate-deep);
  margin-bottom: var(--space-3);
}

.contact-block__intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.contact-socials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

/* On the contact page, social buttons sit on a light background, so
   invert the shadow treatment (was designed for the dark Follow bg) */
.contact-socials .social-btn {
  background: var(--slate);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 26, 46, 0.15);
}

.contact-socials .social-btn:hover {
  box-shadow: 0 6px 18px rgba(15, 26, 46, 0.2);
}

.contact-socials .social-btn:nth-child(1):hover {
  background: var(--cf-orange);
  color: var(--white);
}

.contact-socials .social-btn:nth-child(2):hover {
  background: var(--cf-green);
  color: var(--slate-deep);
}

.contact-socials .social-btn:nth-child(3):hover {
  background: var(--cf-teal);
  color: var(--white);
}

.contact-list {
  padding: 0;
  grid-template-columns: 1fr;
}

/* ---------- Page headers (secondary pages like About) ---------- */

.page-header {
  padding: var(--space-8) 0 var(--space-6);
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 100%);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cf-orange) 0%,
    var(--cf-orange) 33.33%,
    var(--cf-green) 33.33%,
    var(--cf-green) 66.66%,
    var(--cf-teal) 66.66%,
    var(--cf-teal) 100%
  );
}

.page-header__title {
  margin-bottom: var(--space-3);
  color: var(--slate-deep);
}

.page-header__intro {
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0F0F0F;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-8) 0 var(--space-5);
}

.site-footer__inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  gap: var(--space-6);
}

.land-ack {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54em;
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.land-ack strong {
  color: var(--cf-green-light);
  font-weight: 600;
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-2);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

.site-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.site-footer a {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: var(--cf-orange-light);
  text-decoration-color: var(--cf-orange-light);
}

.site-footer__socials {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .site-footer__socials {
    justify-content: flex-start;
  }
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  transition: background 150ms var(--ease);
}

.site-footer__socials a:hover {
  background: var(--cf-orange);
  color: var(--white);
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

.site-footer__bottom p {
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-size: 0.8125rem;
}

.site-footer__authorization {
  opacity: 0.9;
  font-style: italic;
}

/* ============================================================
   Animations
   ============================================================ */

/* --- Idle: orange & green circles drift slowly --- */

@keyframes drift-orange {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(22px, 28px) rotate(7deg); }
}

@keyframes drift-green {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-18px, -24px) rotate(-6deg); }
}

/* --- Idle: teal radial splash breathes (via @property) --- */

.hero {
  animation: teal-breathe 9s ease-in-out infinite alternate;
}

@keyframes teal-breathe {
  from { --teal-opacity: 0.22; --teal-size: 26%; }
  to   { --teal-opacity: 0.34; --teal-size: 32%; }
}

/* --- Idle: CTA button gently glow-pulses --- */

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 104, 29, 0.35); }
  50%      { box-shadow: 0 6px 22px rgba(255, 104, 29, 0.55); }
}

/* ---------- Scroll-triggered reveals ----------
   Sections and the follow CTA fade up as they enter the viewport.
   The JS in main.js attaches `.is-in-view` via IntersectionObserver. */

.section,
.follow {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.section.is-in-view,
.follow.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero::before,
  .hero::after,
  .btn--primary {
    animation: none;
  }

  .hero::before,
  .hero::after {
    translate: none;
  }

  .hero__title em::after {
    transform: scaleX(1);
    transition: none;
  }

  .section,
  .follow {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
