/* =====================================================
   Human Kennel Challenge — mobile-first, no framework
   ===================================================== */

:root {
  --blush: #F1E4E2;       /* soft blush — used for alternating "blush" bands */
  --blush-deep: #D9B8B5;
  --cream: #F5F0EB;       /* warm off-white — used for alternating "cream" bands */
  --char: #5C5450;
  --ink: #46403C;
  --rose: #B5475F;
  --rose-dark: #9C3A50;
  --white: #FFFDFB;
  /* Header height budgets — kept in sync with the header's real (auto) height
     so anchor-scroll offsets and the hero badge never sit under the bar. */
  --header-h: 168px;
}

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.modal-lock { overflow: hidden; }

/* ---------- Paw cursor (mouse/trackpad devices only) ---------- */
@media (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 64 64'%3E%3Cg fill='%235C5450' stroke='%23FFFDFB' stroke-width='3'%3E%3Cellipse cx='32' cy='44' rx='14' ry='11'/%3E%3Cellipse cx='12' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='52' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='23' cy='13' rx='6' ry='8.5'/%3E%3Cellipse cx='41' cy='13' rx='6' ry='8.5'/%3E%3C/g%3E%3C/svg%3E") 6 4, auto;
  }
  a, button, .btn, summary, [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 64 64'%3E%3Cg fill='%23B5475F' stroke='%23FFFDFB' stroke-width='3'%3E%3Cellipse cx='32' cy='44' rx='14' ry='11'/%3E%3Cellipse cx='12' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='52' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='23' cy='13' rx='6' ry='8.5'/%3E%3Cellipse cx='41' cy='13' rx='6' ry='8.5'/%3E%3C/g%3E%3C/svg%3E") 6 4, pointer;
  }
}

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

h1, h2, h3 { color: var(--char); }

/* Mobile-first headline: fits 375px without mid-word wrapping */
h1 {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 400;
  text-transform: lowercase;
}

h2 {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(2.1rem, 8.5vw, 3.2rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0.015em;
  margin-bottom: 0.6em;
}

h3 { font-size: 1.25rem; font-weight: 800; }

a { color: var(--rose); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--rose);
}

.script-inline {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--rose);
}

.kicker {
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.big-script { font-size: 2rem; line-height: 1.2; }

.section-copy { max-width: 56ch; margin: 0 auto 1.5rem; }

/* =====================================================
   ALTERNATING SECTION BANDS — the colour change IS the divider.
   Every major section below the hero is a full-bleed ".band"
   (either blush or cream) with a consistent vertical rhythm and
   a single centred ".band-inner" container capped at 1280px so
   headings line up down the page. No borders, lines, gradients
   or shadow strips are used anywhere as separators.
   ===================================================== */
.band {
  padding: 64px 0;
}
@media (min-width: 900px) {
  .band { padding: 96px 0; }
}
.band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
@media (min-width: 768px) {
  .band-inner { padding: 0 2.5rem; }
}

.band-cream { background: var(--cream); }
.band-blush { background: var(--blush); }

/* Wavy section seams — a single gentle wave cut into the TOP edge of a
   band with clip-path, overlapping upward into the section before it.
   Where the wave dips, the previous section's flat colour shows through,
   so the colour change itself reads as a soft curve, not a straight line. */
.wavy {
  position: relative;
  margin-top: -20px;
  clip-path: polygon(
    0 0px, 5% 4px, 10% 13px, 15% 20px, 20% 18px, 25% 10px, 30% 2px, 35% 0px,
    40% 7px, 45% 16px, 50% 20px, 55% 16px, 60% 7px, 65% 0px, 70% 2px, 75% 10px,
    80% 18px, 85% 20px, 90% 13px, 95% 4px, 100% 0px,
    100% 100%, 0 100%
  );
}
@media (min-width: 900px) {
  .wavy {
    margin-top: -30px;
    clip-path: polygon(
      0 0px, 5% 6px, 10% 20px, 15% 30px, 20% 27px, 25% 15px, 30% 3px, 35% 0px,
      40% 11px, 45% 24px, 50% 30px, 55% 24px, 60% 11px, 65% 0px, 70% 3px, 75% 15px,
      80% 27px, 85% 30px, 90% 20px, 95% 6px, 100% 0px,
      100% 100%, 0 100%
    );
  }
}

/* Faint tiled paw watermark — applied per-section via a .watermark
   modifier so the paw type (dog / cat / mix) can vary by section,
   same opacity (4%) and tile size (160px) throughout. */
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 160px 160px;
  background-repeat: repeat;
  pointer-events: none;
}
/* Dog paws only — stats, Care Over Cost */
.watermark-dog::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23B5475F' fill-opacity='0.04'%3E%3Cg transform='translate(38,42) rotate(-16) scale(0.6)'%3E%3Cellipse cx='0' cy='11' rx='14' ry='11'/%3E%3Cellipse cx='-19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='-8' cy='-20' rx='6' ry='8.5'/%3E%3Cellipse cx='8' cy='-20' rx='6' ry='8.5'/%3E%3C/g%3E%3Cg transform='translate(118,110) rotate(24) scale(0.55)'%3E%3Cellipse cx='0' cy='11' rx='14' ry='11'/%3E%3Cellipse cx='-19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='-8' cy='-20' rx='6' ry='8.5'/%3E%3Cellipse cx='8' cy='-20' rx='6' ry='8.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Cat paws only — Meet the humans, Event details */
.watermark-cat::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23B5475F' fill-opacity='0.04'%3E%3Cg transform='translate(38,42) rotate(-12) scale(0.58)'%3E%3Cellipse cx='0' cy='10' rx='11' ry='8'/%3E%3Cellipse cx='-13' cy='-4' rx='4.5' ry='6'/%3E%3Cellipse cx='-4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='13' cy='-4' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(118,110) rotate(18) scale(0.5)'%3E%3Cellipse cx='0' cy='10' rx='11' ry='8'/%3E%3Cellipse cx='-13' cy='-4' rx='4.5' ry='6'/%3E%3Cellipse cx='-4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='13' cy='-4' rx='4.5' ry='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Mixed dog + cat — Sponsor a kennel */
.watermark-mix::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23B5475F' fill-opacity='0.04'%3E%3Cg transform='translate(38,42) rotate(-16) scale(0.6)'%3E%3Cellipse cx='0' cy='11' rx='14' ry='11'/%3E%3Cellipse cx='-19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='19' cy='-5' rx='6.5' ry='8.5'/%3E%3Cellipse cx='-8' cy='-20' rx='6' ry='8.5'/%3E%3Cellipse cx='8' cy='-20' rx='6' ry='8.5'/%3E%3C/g%3E%3Cg transform='translate(118,110) rotate(20) scale(0.5)'%3E%3Cellipse cx='0' cy='10' rx='11' ry='8'/%3E%3Cellipse cx='-13' cy='-4' rx='4.5' ry='6'/%3E%3Cellipse cx='-4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='4.5' cy='-11' rx='4.2' ry='6'/%3E%3Cellipse cx='13' cy='-4' rx='4.5' ry='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Small paw motif — a tiny recurring brand marker centred above each
   section's script heading (dog / cat / dog), replacing hard dividers */
.paw-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.9rem;
}
.paw-row svg {
  width: 14px;
  height: 14px;
  color: var(--rose);
  opacity: 0.4;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  border: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-rose {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 22px rgba(181, 71, 95, 0.35);
}
.btn-rose:hover { background: var(--rose-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--char);
  border: 2px solid var(--blush-deep);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; border-color: var(--rose); color: var(--rose); }

.btn-cream { background: var(--cream); color: var(--rose); }
.btn-cream:hover { background: #fff; }

.btn-insta {
  background: linear-gradient(45deg, #b5475f, #c2536b, #a94b74);
  color: #fff;
}
.btn-fb { background: var(--char); color: #fff; }

.btn-block { width: 100%; }
.btn-small { min-height: 48px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* =====================================================
   Header — same design at every screen size: a flat bar whose
   bottom edge curves down into a soft "badge tab" bump that the
   round logo hangs through (top of logo inside the bar, roughly
   the bottom 45% hanging below it), the bar's edge sweeping in a
   smooth concave curve around the logo's underside with clearance.
   ≤639px : logo (88px) only, no wordmark; icons + compact CTA right.
   ≥640px : logo (112px) + wordmark to its right; icons + CTA right.
   ===================================================== */
.site-header-safe {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none; /* only the header itself (and its children) is interactive */
}
.site-header-safe > * { pointer-events: auto; }

.site-header {
  position: relative;
  width: 100%;
  height: 64px;
  overflow: visible;
}

/* The header background — bar + logo clearance circle + the two joining
   fillets — is a SINGLE <path> in the SVG below, computed by script.js
   from the logo's actual measured centre and radius on load/resize, so
   the shape is always exact, never hard-coded pixel positions. */
.header-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 80px); /* room below the bar for the circle + shadow */
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.header-shape-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* .header-shell is the same centred "container" every section uses
   (max-width 1280px, margin auto) — the logo and right-hand group are
   positioned relative to THIS, not the raw viewport, so on wide screens
   they sit inset inside the page container instead of pinned to the edges. */
.header-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Logo hangs below the (now plain-drawn) bar shape. The clearance circle
   behind it is part of the single SVG path above (not a separate element),
   so it is always perfectly concentric with the logo at every width. */
.brand-logo-link {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}
.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  /* Subtle inner shadow only — the SVG path's own drop-shadow filter
     provides the one shared shadow for the whole bar+circle silhouette */
  box-shadow: inset 0 2px 6px rgba(92, 84, 80, 0.2);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.brand-wordmark { text-decoration: none; display: none; min-width: 0; }
.brand-name {
  font-weight: 800;
  color: var(--char);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name em { font-style: normal; color: var(--rose); }

.header-social { display: flex; gap: 0.7rem; }
.header-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(92, 84, 80, 0.08);
  color: var(--char);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.header-social a svg { width: 21px; height: 21px; }
.header-social a:hover { background: var(--rose); color: #fff; }

.header-right { display: flex; align-items: center; gap: 0; flex: 0 0 auto; min-width: 0; }
.header-donate { flex: 0 0 auto; margin-left: 14px; }

/* =====================================================
   Small phones (≤639px)
   bar 64px tall, logo 88px, wordmark hidden.
   ===================================================== */
@media (max-width: 639px) {
  :root { --header-h: 124px; }

  .site-header { height: 64px; }
  .header-inner { height: 64px; padding: 0 16px 0 120px; }

  .brand-logo-link { top: 16px; left: 24px; width: 88px; height: 88px; }
  .brand-logo { width: 88px; height: 88px; border-width: 2px; }

  .header-right .header-social { gap: 8px; }
  .header-right .header-social a { width: 32px; height: 32px; }
  .header-right .header-social a svg { width: 17px; height: 17px; }
  .header-donate { margin-left: 10px; min-height: 44px; padding: 0.5rem 0.85rem; font-size: 0.92rem; gap: 0.35rem; white-space: nowrap; }
}

/* Under 420px the longer "Sponsor a human" label gets tight —
   collapse to the heart icon only so nothing can overlap */
@media (max-width: 419px) {
  .header-donate { padding: 0.5rem 0.8rem; min-width: 44px; }
  .header-donate .btn-label { display: none; }
}

/* =====================================================
   Tablet + desktop (≥640px), one consistent design:
   bar 80px tall, logo 112px, wordmark shown to its right.
   ===================================================== */
@media (min-width: 640px) {
  :root { --header-h: 150px; }

  .site-header { height: 80px; }
  .header-inner { height: 80px; padding: 0 40px 0 168px; }

  .brand-logo-link { top: 18px; left: 40px; width: 112px; height: 112px; }
  .brand-logo { width: 112px; height: 112px; border-width: 4px; }

  .brand-wordmark { display: flex; align-items: center; min-height: 44px; }

  .header-right .header-social { gap: 20px; }
  .header-right .header-social a { width: 40px; height: 40px; }
  .header-right .header-social a svg { width: 22px; height: 22px; }
  .header-donate { margin-left: 28px; min-height: 48px; }
}

/* =====================================================
   Hero — mobile-first art direction
   Image fills the hero as a positioned layer (no CLS),
   content sits in the bottom zone; the woman stays centred
   with her face clear of text via object-position.
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* fits above iOS Safari toolbar */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  /* Mobile crop: the wide kennel shot is cropped to a centre strip —
     woman centred, face in the upper third of the phone screen */
  object-position: 48% 30%;
  /* Warm the cool-toned photo into the blush/cream palette */
  filter: sepia(0.18) saturate(1.08) brightness(0.99) contrast(1.03);
}
/* Soft blush wash over the photo so it sits in the brand palette */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(217, 184, 181, 0.28);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* Mobile scrim: transparent over her face (top 40%), ramping to
   solid off-white at the bottom so text & buttons are always legible */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 235, 0)    0%,
    rgba(245, 240, 235, 0)    40%,
    rgba(245, 240, 235, 0.55) 60%,
    rgba(245, 240, 235, 0.92) 78%,
    #F5F0EB                   100%
  );
}

/* Single soft rose wave — the ONLY wave on the page. Sits over the
   base of the hero image so the hero flows into the band beneath it. */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* 24-hour badge: bolder ring, deeper shadow, gentle pulsing glow.
   Sized so the text always has clear air to the ring. */
.hero-badge {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 12px + env(safe-area-inset-top, 0px));
  right: 0.9rem;
  width: 112px; height: 112px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.96);
  border: 3px solid var(--rose);
  box-shadow: 0 8px 24px rgba(92, 84, 80, 0.28), 0 0 0 6px rgba(181, 71, 95, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--char);
  transform: rotate(6deg);
  animation: badge-pulse 3.2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(92, 84, 80, 0.28), 0 0 0 6px rgba(181, 71, 95, 0.14); }
  50%      { box-shadow: 0 10px 30px rgba(92, 84, 80, 0.32), 0 0 0 10px rgba(181, 71, 95, 0.06); }
}
.hb-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1; color: var(--rose); }
.hb-word { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; line-height: 1.15; }
.hb-sub {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; margin-top: 3px; padding-top: 3px; line-height: 1.15;
  border-top: 1px solid var(--blush-deep);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.script-word {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rose);
  margin-bottom: -0.2rem;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--char);
  margin: 0.8rem 0 1.2rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Secondary hero link — text link on mobile, min 48px tap target */
.hero-meet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--char);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--rose);
  -webkit-tap-highlight-color: transparent;
}
.hero-meet:hover { color: var(--rose); }

/* ---------- Countdown ---------- */
.countdown-band {
  background: var(--blush);
  text-align: center;
  padding: 1.6rem 1rem 1.4rem;
}
.cd-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--rose);
}
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin: 0.4rem 0 0.5rem;
}
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.cd-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--char);
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--rose);
}
.cd-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--blush-deep);
  align-self: flex-start;
  padding-top: 0.2em;
}
.cd-date { font-weight: 700; color: var(--char); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats { text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 13vw, 4.5rem);
  line-height: 1;
  color: var(--rose);
}
.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--char);
}
.stats-line { margin-top: 1.2rem; font-weight: 700; color: var(--char); font-size: 1.1rem; }

/* ---------- Why ---------- */
.why { text-align: center; }
.why-copy { text-align: left; display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.why-copy strong { color: var(--rose); }

/* ---------- Humans ---------- */
.humans-inner { text-align: center; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
  text-align: left;
}
.card {
  background: var(--white);
  border: 1px solid rgba(92, 84, 80, 0.09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(92, 84, 80, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* So every card's button sits on the same baseline no matter how
     much bio/target/handle text is above it in a row */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(92, 84, 80, 0.16); }
.card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
}
.card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Bio fills the remaining space so the button is pushed to a shared
   bottom edge; the button itself never stretches (kept its natural height) */
.card-bio { flex: 1; }
.card-body > .btn { margin-top: auto; align-self: stretch; }
/* Fundraising target — small line directly under the name */
.card-target {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rose);
  line-height: 1.4;
  margin: 0.15rem 0 0.15rem;
}
.card-handle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose);
  margin: 0.1rem 0 0.5rem;
  overflow-wrap: anywhere;
}
.card-bio { margin-bottom: 1rem; }

.card-empty {
  background: rgba(255, 253, 251, 0.55);
  border: 2px dashed var(--blush-deep);
  box-shadow: none;
  text-align: center;
}
.empty-face {
  aspect-ratio: 1 / 1.35;
  max-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--rose);
  opacity: 0.6;
}
.card-empty h3 { color: var(--char); }
.card-empty .card-bio { font-weight: 600; }
.card-empty .btn-ghost { background: rgba(255,255,255,0.85); }

.after-humans { margin-top: 2.4rem; }
.after-humans .big-script { margin-bottom: 0; }

/* ---------- Journey ---------- */
.journey { text-align: center; }
.journey-grid { display: grid; gap: 2rem; }
.social-btns { display: grid; gap: 0.7rem; margin: 1.6rem 0 1rem; }
.hashtags, .footer-hashtags {
  font-weight: 800;
  color: var(--rose);
  font-size: 1.05rem;
  margin: 0.8rem 0 0.4rem;
  overflow-wrap: anywhere;
}
.flyer {
  background: var(--white);
  border: 1px solid rgba(92, 84, 80, 0.1);
  border-radius: 22px;
  padding: 0.8rem;
  box-shadow: 0 12px 34px rgba(92, 84, 80, 0.1);
}
.flyer img { border-radius: 14px; }
.flyer figcaption { padding-top: 0.8rem; }

/* ---------- Details ---------- */
.details { text-align: center; }
.detail-row {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
}
.detail-row li {
  background: var(--white);
  border: 1px solid rgba(92, 84, 80, 0.09);
  border-radius: 18px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(92, 84, 80, 0.06);
}
.detail-icon { color: var(--rose); }
.detail-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--blush-deep);
}
.detail-value { font-weight: 800; color: var(--char); font-size: 1.05rem; }

.support-box {
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.3rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(92, 84, 80, 0.06);
}
.support-box h3 { margin-bottom: 0.9rem; text-align: center; }
.support-list { list-style: none; display: grid; gap: 0.8rem; }
.support-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.support-list .tick {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}
.support-list strong { color: var(--rose); }

/* ---------- Sponsor a kennel (business) ---------- */
.sponsor-inner { max-width: 620px; margin: 0 auto; }
.sponsor-inner h2 { margin-bottom: 0.5rem; }

/* ---------- Charity ---------- */
.charity { text-align: center; }
.charity-logo {
  width: min(320px, 78vw);
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: #fff;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(92, 84, 80, 0.15);
}
.charity-strap {
  font-weight: 800;
  color: var(--rose);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.coming-soon { font-weight: 700; color: var(--char); margin-bottom: 1rem; }

/* ---------- Builder / "coming soon" callout ---------- */
.builder { text-align: center; }
.builder-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFDFB 0%, #F9EFED 100%);
  border: 1px solid rgba(181, 71, 95, 0.18);
  border-radius: 22px;
  padding: 2.4rem 1.5rem 2.2rem;
  box-shadow: 0 18px 44px rgba(92, 84, 80, 0.14);
}
/* Signature deep-rose accent bar across the top of the card */
.builder-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rose) 0%, var(--blush-deep) 60%, var(--rose) 100%);
}
.builder-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(92, 84, 80, 0.18), 0 0 0 4px rgba(217, 184, 181, 0.55);
}
.builder-card .btn { margin-top: 0.4rem; }
.builder-card .btn-rose { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--char);
  color: var(--cream);
  text-align: center;
  padding: 2.4rem 1.25rem 2.5rem;
  /* charcoal runs to the very bottom; leave room for the sticky sponsor bar */
  padding-bottom: calc(2.5rem + 76px + env(safe-area-inset-bottom, 0px));
}
.site-footer > img {
  width: 150px; height: 150px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}
.footer-tag { font-size: 1.5rem; color: var(--blush-deep); margin-bottom: 1.4rem; }
.footer-links { display: grid; gap: 0.7rem; margin-bottom: 1.4rem; }
.footer-links a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.4rem; }
.footer-social a {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.12);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-hashtags { color: var(--blush-deep); margin-bottom: 1rem; }

/* Credit strip — separated bottom band with the Obsessive Software
   logo inline beside the credit text (same footer font, small size) */
.footer-credit-strip {
  max-width: 1280px;
  margin: 1.6rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 235, 0.16);
  display: flex;
  justify-content: center;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 6px;
  color: var(--cream);
  text-decoration: none;
}
.footer-credit-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(245, 240, 235, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.footer-credit-text {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.9;
  text-align: left;
  line-height: 1.35;
}
.footer-credit-text strong {
  font-weight: 800;
  color: #fff;
}
.footer-credit:hover .footer-credit-text strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sticky sponsor bar (shown only between hero and footer) ---------- */
.donate-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0.6rem 1rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(92, 84, 80, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.donate-bar.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
/* No-JS fallback: show the bar (JS manages hide/show when available) */
html:not(.js) .donate-bar.hidden {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   Sign-up form modal
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(70, 64, 60, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 1.9rem 1.5rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(92, 84, 80, 0.08);
  color: var(--char);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--rose); color: #fff; }
.modal h3 { margin-bottom: 0.4rem; padding-right: 2rem; }
.modal-sub { font-size: 0.95rem; margin-bottom: 1.2rem; }
.modal-sub strong { color: var(--rose); }

#signup-form { display: grid; gap: 0.9rem; margin-bottom: 1rem; }
#signup-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--char);
}
#signup-form input, #signup-form textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(92, 84, 80, 0.15);
  background: var(--cream);
  min-height: 48px;
}
#signup-form textarea { resize: vertical; min-height: 64px; }
#signup-form input:focus, #signup-form textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: #fff;
}
.modal-note { font-size: 0.83rem; text-align: center; opacity: 0.75; }

/* ---------- Scroll reveal (JS only — no-JS users see everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; }
}

/* =====================================================
   Tablet (≥560px)
   ===================================================== */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .social-btns { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: repeat(3, 1fr); }
  .btn-block { width: auto; min-width: 260px; }
  .card .btn-block, .card-empty .btn-block, .social-btns .btn-block, .flyer .btn-block { width: 100%; min-width: 0; }
  .hero-ctas .btn-block { width: 100%; min-width: 0; }
}

/* =====================================================
   Tablet landscape / small laptop (≥768px):
   hero switches to the desktop crop & side-by-side CTAs
   ===================================================== */
@media (min-width: 768px) {
  /* Desktop crop of the wide kennel shot: nudge the visible window left
     so the woman sits right of the headline, face unobstructed */
  .hero-media img { object-position: 40% 45%; }
  .hero-scrim {
    background: linear-gradient(
      to right,
      rgba(245,240,235,0.97) 0%,
      rgba(245,240,235,0.88) 30%,
      rgba(245,240,235,0.18) 56%,
      rgba(245,240,235,0)    78%
    );
  }
  .hero { align-items: center; }
  .hero-inner { padding: calc(var(--header-h) + 24px) 2rem 3rem; }
  .hero-ctas { flex-direction: row; align-items: stretch; gap: 0.8rem; max-width: 640px; }
  .hero-ctas .btn { flex: 1; }
  /* Secondary hero link becomes a pill button beside the primary CTA */
  .hero-meet {
    flex: 1;
    min-height: 52px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid var(--blush-deep);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: var(--char);
  }
  .hero-meet:hover { background: #fff; border-color: var(--rose); color: var(--rose); }
  .hero-badge { width: 148px; height: 148px; padding: 18px; top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px)); right: 2rem; }
  .hb-num { font-size: 2.5rem; }
  .hb-word { font-size: 0.86rem; }
  .hb-sub { font-size: 0.86rem; }
}

/* =====================================================
   Desktop — laptop & big screens (unchanged layout)
   ===================================================== */
@media (min-width: 900px) {
  .donate-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .btn-small { min-height: 52px; font-size: 1.05rem; padding: 0.6rem 1.6rem; }

  /* Hero: huge type, image showing through on the right */
  .hero-inner { max-width: 1200px; padding: calc(var(--header-h) + 32px) 2.5rem 4rem; }
  h1 { font-size: clamp(5.5rem, 9.5vw, 8.5rem); }
  .script-word { font-size: 3.4rem; }
  .hero-sub { font-size: 1.45rem; }
  .hero-badge { width: 180px; height: 180px; padding: 22px; top: calc(var(--header-h) + 32px); right: 5rem; }
  .hb-num { font-size: 3.4rem; }
  .hb-word { font-size: 1rem; }
  .hb-sub { font-size: 0.92rem; }

  .countdown-band { padding: 2.2rem 1rem 2rem; }
  .cd-label { font-size: 2rem; }
  .cd-cell { min-width: 96px; }
  .cd-num { font-size: 4.6rem; }
  .cd-date { font-size: 1.1rem; }

  .stat-num { font-size: 6rem; }
  .stat-label { font-size: 1rem; }
  .stats-line { font-size: 1.3rem; }

  /* Why: editorial two-column */
  .why {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
    text-align: left;
  }
  .why-head h2 { font-size: 3.6rem; }
  .why .btn-block { min-width: 0; }
  .why-copy { font-size: 1.08rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

  /* Journey: copy left, flyer right */
  .journey { text-align: left; }
  .journey-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
  }
  .journey .section-copy { margin: 0 0 1.5rem; }
  .flyer { max-width: 520px; justify-self: end; }

  .details .support-box { max-width: 860px; margin: 0 auto; padding: 2.2rem 2.4rem; }
  .support-list { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }

  .sponsor-inner { max-width: 720px; }
  .sponsor-inner h2 { font-size: 3.4rem; }

  .charity-logo { width: 380px; padding: 28px; }
  .charity .section-copy { font-size: 1.08rem; }

  .builder-card { max-width: 760px; margin: 0 auto; padding: 3.2rem 3.5rem 2.8rem; }
  .builder-logo { width: 104px; height: 104px; }

  .site-footer { padding: 3.2rem 2rem 3rem; }
  .site-footer > img { width: 170px; height: 170px; }

  .modal { max-width: 520px; padding: 2.4rem 2.2rem 2rem; }
}
