/* ==========================================================================
   California Paws Rescue — homepage
   Two-color system: their logo pink + one deep partner color (--ink)
   Display: Big Shoulders (condensed, heavy) · Text: Instrument Sans
   ========================================================================== */

:root {
  --pink: #D81F65;          /* white text on it: 4.9:1 */
  --pink-light: #FF6FA0;    /* pink for type on dark sections */
  --blush: #F8DCE6;
  --paper: #FFF6F7;
  /* partner color to the pink: every dark tone on the site comes from these four */
  --ink: #151213;           /* warm near-black: 17.5:1 on paper */
  --ink-rgb: 21, 18, 19;
  --ink-2: #5C5457;         /* secondary text: 6.9:1 on paper, 5.7:1 on blush */
  --ink-deep: #0B0909;      /* photo placeholders on dark */
  --line: rgba(var(--ink-rgb), 0.16);
  --white: #FFFFFF;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1440px;
  --gutter: clamp(18px, 3.4vw, 52px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --header-h: 84px;
  --r: 6px;
  --ease: cubic-bezier(0.22, 0.8, 0.16, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;          /* never fake a bold/italic: it smears the outlines */
  font-kerning: normal;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

/* text selection: black on light areas, inverted to white inside dark areas, so it always shows and never reads red */
::selection { background: var(--ink); color: var(--white); }
:is(.donate, .site-footer, .reel-frame, .dog--all, .fact--cta, .urgent) ::selection { background: var(--white); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
}
.skip-link:focus { top: 12px; }

.label {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The hero's photo trail runs only with a mouse or trackpad and with motion on (site.js); its hint goes where the trail does */
@media not all and (hover: hover) and (pointer: fine) { .hero-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-hint { display: none; } }

/* ---------- Giant, edge-to-edge type ---------- */
[data-fit] {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}
.fit-line {
  display: block;
  font-size: 12vw;            /* fallback until JS sizes each line */
  line-height: 0.92;
  white-space: nowrap;
}
.fit-text { display: inline-block; }

.giant { color: var(--ink); }
.giant--white { color: var(--white); }
.giant--pinklight { color: var(--pink-light); }

/* line-by-line rise when a giant heading enters the viewport */
.js .giant .fit-line { overflow: hidden; }
.js .giant .fit-text {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}
.js .giant .fit-line:nth-child(2) .fit-text { transition-delay: 0.08s; }
.js .giant.is-in .fit-text { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--ink); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--pink); }

.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }

.btn-line-white { border-color: var(--white); color: var(--white); }
.btn-line-white:hover { background: var(--white); color: var(--pink); }

.btn-sm { --h: 42px; padding: 0 18px; font-size: 1.05rem; }
.btn-lg { --h: 64px; padding: 0 34px; font-size: 1.4rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 246, 247, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: auto; height: 46px; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name span {
  margin-top: 3px;
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--pink);
}

.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--pink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
}
.menu-btn > span:not(.sr-only) {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn > span:nth-child(1) { top: 16px; }
.menu-btn > span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] > span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 59;
  overflow-y: auto;
  padding: 12px 0 40px;
  background: var(--paper);
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--pink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 48px);
  padding-top: 12px;
  padding-bottom: clamp(24px, 4vh, 44px);
  pointer-events: none;
}
.hero-inner a,
.hero-inner button { pointer-events: auto; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin-block: auto;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
}
.hero-title .fit-line { line-height: 0.92; }
.hero-title .fit-pink { color: var(--pink); }
.hero-lines--narrow { display: none; }

.js .hero-title .fit-line { overflow: hidden; }
.js .hero-title .fit-text { animation: rise 1.2s var(--ease) both; }
.js .hero-title .fit-line:nth-child(2) .fit-text { animation-delay: 0.1s; }
.js .hero-title .fit-line:nth-child(3) .fit-text { animation-delay: 0.2s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 40px;
}
.hero-sub {
  max-width: 44ch;
  text-wrap: pretty;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-hint {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-hint::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  animation: blink 1.6s var(--ease-io) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* image trail */
.trail {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.trail img {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(130px, 12.5vw, 210px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: 0 24px 50px -24px rgba(var(--ink-rgb), 0.55);
  will-change: transform, opacity;
}

/* ==========================================================================
   Reel — video grows to full bleed on scroll
   ========================================================================== */
.reel {
  position: relative;
  height: 240vh;
  background: var(--paper);
}
.reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.reel-frame {
  --iy: 14%;
  --ix: 22%;
  --rad: 10px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  clip-path: inset(var(--iy) var(--ix) round var(--rad));
  will-change: clip-path;
}
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1.12));
  will-change: transform;
}
.reel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--ink-rgb), 0.82) 0%, rgba(var(--ink-rgb), 0.25) 45%, rgba(var(--ink-rgb), 0) 70%);
  opacity: var(--shade, 0);
}
.reel-line {
  position: absolute;
  left: var(--edge);
  bottom: clamp(36px, 9vh, 96px);
  max-width: 17ch;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  opacity: var(--line-o, 0);
  transform: translateY(calc((1 - var(--line-o, 0)) * 40px));
}
.reel-toggle {
  position: absolute;
  right: var(--edge);
  bottom: clamp(36px, 9vh, 96px);
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r);
  background: rgba(var(--ink-rgb), 0.35);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: var(--line-o, 0);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.reel-toggle:focus-visible { opacity: 1; }   /* never an invisible focus target */

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--blush); padding: clamp(56px, 7vw, 96px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 0;
}
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd {
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dt {
  max-width: 22ch;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ==========================================================================
   Mission — words fill in as you scroll
   ========================================================================== */
.mission { padding: clamp(100px, 14vw, 200px) 0; }
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(24px, 4vw, 64px);
}
.mission .label { color: var(--pink); padding-top: 0.9em; }
.mission-text {
  font-size: clamp(1.9rem, 3.9vw, 3.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.js .mission-text .w { color: rgba(var(--ink-rgb), 0.14); transition: color 0.35s var(--ease); }
.js .mission-text .w.on { color: var(--ink); }

/* ==========================================================================
   Dogs
   ========================================================================== */
.dogs {
  position: relative;
  padding: clamp(96px, 11vw, 168px) 0 clamp(80px, 9vw, 140px);
  background: var(--blush);
}
.dogs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  margin: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 52px);
}
.dogs-bar p { max-width: 52ch; color: var(--ink-2); font-weight: 500; }
.dogs-bar-actions { display: flex; align-items: center; gap: 10px; }

.arrow-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.arrow-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.arrow-btn:hover { background: var(--ink); color: var(--white); }
.arrow-btn:disabled { opacity: 0.3; pointer-events: none; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(262px, 22vw, 330px);
  gap: clamp(12px, 1.3vw, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 4px var(--edge) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging a { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .rail.has-cursor, .rail.has-cursor a { cursor: none; }
}

.dog {
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper);
  user-select: none;
}
.dog > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.dog-img { aspect-ratio: 4 / 5; overflow: hidden; background: #ead0da; }
.dog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  -webkit-user-drag: none;
}
.dog:hover .dog-img img { transform: scale(1.05); }
.dog-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 22px; }
.dog h3 {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s;
}
.dog:hover h3 { color: var(--pink); }
.dog-meta {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}
.dog-desc { flex: 1; font-size: 0.98rem; line-height: 1.45; color: var(--ink-2); }
.dog-fit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dog-fit span {
  padding: 5px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
}
.dog-fit .ok { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dog-fit .mid { border-color: var(--ink); }
.dog-fit .no { border-color: var(--pink); color: var(--pink); }

.dog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.dog-tag--pink { background: var(--pink); }

.dog--all {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.3s;
}
.dog--all:hover { background: var(--pink); }
.dog-all-num {
  font-family: var(--f-display);
  font-size: clamp(8rem, 13vw, 12rem);
  font-weight: 400;
  line-height: 1;
  color: var(--pink-light);
  transition: color 0.3s;
}
.dog--all:hover .dog-all-num { color: var(--white); }
.dog-all-label {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

/* Outer element is moved by JS every frame (no transition, so it never stutters);
   the inner disc owns the show/hide and press animations. */
.drag-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  pointer-events: none;
  transform: translate3d(-300px, -300px, 0);
  will-change: transform;
}
.drag-cursor span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.2s ease, transform 0.35s var(--ease);
}
.drag-cursor.is-on span { opacity: 1; transform: scale(1); }
.drag-cursor.is-on.is-down span { transform: scale(0.82); }

/* ==========================================================================
   Adopt — pinned steps
   ========================================================================== */
.adopt { padding: clamp(96px, 11vw, 168px) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 72px);
}
.steps-pin {
  position: sticky;
  top: calc(var(--header-h) + 5vh);
  align-self: start;
}
.steps-num {
  height: 1em;
  overflow: hidden;
  font-family: var(--f-display);
  font-size: clamp(10rem, 25vw, 24rem);
  font-weight: 400;
  line-height: 1;
  color: var(--pink);
}
.steps-num-track {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--i, 0) * -1em));
  transition: transform 0.8s var(--ease);
}
.steps-num-track span { height: 1em; }
.steps-progress {
  height: 4px;
  max-width: 340px;
  margin-top: 28px;
  background: var(--line);
}
.steps-progress span {
  display: block;
  height: 100%;
  width: var(--p, 25%);
  background: var(--ink);
  transition: width 0.8s var(--ease);
}

.steps-list { margin: 0; padding: 0; list-style: none; }
.step {
  min-height: 48vh;
  padding: 28px 0 40px;
  border-top: 2px solid var(--ink);
  opacity: 0.22;
  transition: opacity 0.5s var(--ease);
}
.step:last-child { min-height: 30vh; }
.step.is-active { opacity: 1; }
.step-n { display: none; }
.step h3 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.step p {
  max-width: 40ch;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.adopt-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(48px, 6vw, 96px);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r);
  background: var(--blush);
}
.fact .label { color: var(--pink); }
.fact > p:last-child { color: var(--ink-2); }
.fact-big {
  font-family: var(--f-display);
  font-size: clamp(5rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: 1;
}
.rule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.rule b {
  display: block;
  font-size: clamp(4.6rem, 7vw, 6.6rem);
  line-height: 1;
  color: var(--pink);
}
.rule span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-text);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  color: var(--ink-2);
}
.fact--cta {
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
}
.fact-cta-title {
  font-family: var(--f-display);
  font-size: clamp(4rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.fact--cta .btn-pink:hover { background: var(--white); color: var(--ink); }

/* ==========================================================================
   Foster
   ========================================================================== */
.foster {
  padding: clamp(96px, 11vw, 168px) 0;
  background: var(--pink);
  color: var(--white);
}
.foster-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}
.foster-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
}
.foster-photo img { width: 100%; height: 100%; object-fit: cover; }
.foster-lead {
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.foster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: clamp(36px, 4vw, 56px) 0;
  padding: 0;
  list-style: none;
}
.foster-list li {
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.foster-list b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.urgent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 32px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--ink);
}
.urgent-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-light);
}
.urgent-dogs { display: flex; flex-wrap: wrap; gap: 12px; }
.urgent-dogs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background-color 0.2s;
}
.urgent-dogs a:hover { background: var(--pink); }
.urgent-dogs img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r) 0 0 var(--r); }
.urgent-dogs span {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
}
.foster-note { max-width: 56ch; margin-top: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); }

/* ==========================================================================
   Donate
   ========================================================================== */
.donate {
  padding: clamp(96px, 11vw, 168px) 0;
  background: var(--ink);
  color: var(--white);
}
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
}
.donate-lead {
  max-width: 30ch;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.giver {
  max-width: 640px;
  margin-top: 40px;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.giver-freq {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
}
.giver-freq button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.giver-freq button[aria-checked="true"] { background: var(--white); color: var(--ink); }

.giver-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.giver-amounts button,
.giver-other {
  height: 66px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  background: transparent;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.giver-amounts button:hover,
.giver-other:hover { border-color: rgba(255, 255, 255, 0.6); }
.giver-amounts button[aria-checked="true"] { background: var(--pink); border-color: var(--pink); }
.giver-other {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  cursor: text;
}
.giver-other:focus-within,
.giver-other.is-active { border-color: var(--pink-light); }
.giver-other input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-weight: 400;
  -moz-appearance: textfield;
}
.giver-other input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 600;
}
.giver-other input::-webkit-outer-spin-button,
.giver-other input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.giver-out { padding: 40px 0 24px; }
.giver-big {
  font-family: var(--f-display);
  font-size: clamp(4.4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
}
.giver-big small {
  margin-left: 10px;
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.giver-what {
  min-height: 2.5em;
  margin-top: 14px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--pink-light);
}
.giver-note { margin-top: 16px; font-size: 0.8rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.giver .btn-pink:hover { background: var(--white); color: var(--ink); }

.donate-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
}
.donate-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Stories — routes home
   ========================================================================== */
.stories { padding: clamp(96px, 11vw, 168px) 0; }
.stories-intro {
  margin: clamp(20px, 2.5vw, 32px) 0 clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--ink-2);
}
.routes { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 12px clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), color 0.3s;
}
.route-thumb { display: none; }
.route-name {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s;
}
.route-path {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-2);
}
.route-path i {
  display: inline-block;
  margin: 0 0.25em;
  font-style: normal;
  color: var(--pink);
  transition: transform 0.4s var(--ease);
}
.route-note { font-size: 0.98rem; line-height: 1.45; color: var(--ink-2); }
@media (hover: hover) {
  .route:hover { padding-left: 14px; }
  .route:hover .route-name { color: var(--pink); }
  .route:hover .route-path i { transform: translateX(8px); }
}
.route-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(180px, 16vw, 250px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  transform: translate3d(-600px, -600px, 0);
  will-change: transform;
}
.route-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.route-float.is-on img { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   Quote
   ========================================================================== */
.quote { padding: clamp(96px, 11vw, 168px) 0; background: var(--blush); }
.quote figure { max-width: 1120px; }
.quote blockquote p {
  font-size: clamp(1.8rem, 3.9vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-indent: -0.4em;
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ==========================================================================
   Events
   ========================================================================== */
.events { padding: clamp(96px, 11vw, 168px) 0; }
.event-list {
  margin: clamp(40px, 5vw, 64px) 0 36px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.event {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 8px clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.ev-date {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pink);
}
.ev-date span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.ev-name {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.ev-where { font-weight: 600; line-height: 1.4; }
.ev-where span { display: block; font-weight: 500; color: var(--ink-2); }
.events-empty { margin: -12px 0 32px; color: var(--ink-2); }
.event.is-past .ev-date { color: var(--ink-2); }
.event.is-past .ev-date span::after { content: " · Past"; }
.event.is-past .ev-name { color: var(--ink-2); }

/* ==========================================================================
   Closer
   ========================================================================== */
.closer {
  padding: clamp(96px, 12vw, 180px) 0 clamp(72px, 8vw, 120px);
  background: var(--pink);
  color: var(--white);
}
.closer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(36px, 4vw, 56px);
}
.closer-row p { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; }
.closer-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.closer .btn-white:hover { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: clamp(72px, 8vw, 120px) 0 28px;
  background: var(--ink);
  color: var(--white);
}
.site-footer .label { color: var(--pink-light); margin-bottom: 14px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px clamp(40px, 6vw, 96px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.signup-title {
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: 24px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.signup-row { display: flex; gap: 10px; max-width: 520px; }
.signup-row input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r);
  background: transparent;
  color: var(--white);
  transition: border-color 0.2s;
}
.signup-row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.signup-row input:focus { outline: 0; border-color: var(--pink-light); }
.signup-row .btn-pink:hover { background: var(--white); color: var(--ink); }
.signup-msg { min-height: 1.5em; margin-top: 12px; font-size: 0.9rem; color: var(--pink-light); }

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.45fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 32px 24px;
}
.fcol a { overflow-wrap: anywhere; }
.fcol .label { font-size: 0.75rem; line-height: 1.2; color: var(--pink-light); }
.fcol p, .fcol address {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.fcol a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}
.fcol a:hover { color: var(--white); border-color: var(--pink-light); }

.footer-note {
  max-width: 70ch;
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
}
.footer-note a { color: var(--white); text-underline-offset: 3px; }

.footer-word {
  margin-top: clamp(48px, 6vw, 88px);
  color: var(--pink-light);
  user-select: none;
}
.footer-word .fit-line { line-height: 0.92; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-base a { text-underline-offset: 3px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }

  .adopt-facts { grid-template-columns: 1fr 1fr; }
  .fact--rule { grid-column: 1 / -1; grid-row: 1; }

  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 70px; }

  .brand { gap: 8px; }
  .brand-logo { height: 36px; }
  .brand-name { font-size: 1.18rem; }

  .hero-lines--wide { display: none; }
  .hero-lines--narrow { display: block; }
  .hero-meta span:last-child { display: none; }
  .hero-hint { margin-left: 0; }

  .reel { height: 190vh; }
  .reel-frame { --iy: 20%; --ix: 7%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--line); }

  .mission-grid { grid-template-columns: 1fr; }
  .mission .label { padding-top: 0; }

  .steps-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .steps-pin { display: none; }
  .step { min-height: 0; opacity: 1; padding: 22px 0 28px; }
  .step:last-child { min-height: 0; }
  .step-n {
    display: block;
    margin-bottom: 10px;
    font-family: var(--f-display);
    font-size: 3.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--pink);
  }

  .adopt-facts { grid-template-columns: 1fr; }
  .fact--rule { grid-column: auto; grid-row: auto; }

  .foster-grid,
  .donate-grid { grid-template-columns: 1fr; }
  .foster-photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .donate-photo { aspect-ratio: 4 / 3; }

  .route {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 16px;
    align-items: start;
  }
  .route-thumb {
    display: block;
    grid-row: 1 / span 3;
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
  }
  .route-name, .route-path, .route-note { grid-column: 2; }
  .route-float { display: none; }

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

  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .foster-list { grid-template-columns: 1fr; }
  .giver-amounts { grid-template-columns: 1fr 1fr; }
  .signup-row { flex-direction: column; }
  .signup-row input { flex: none; }
  .hero-ctas .btn { flex: 1; }
  .rule { font-size: 1.3rem; }
}

/* footer contact columns: 2×2 when they share the row with the newsletter on laptops,
   and full-width Visit/Contact on phones so the address and email never break mid-word */
@media (min-width: 1101px) and (max-width: 1380px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fcol:nth-child(-n + 2) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reel { height: auto; }
  .reel-sticky { position: relative; }
  .reel-frame { --iy: 0%; --ix: 0%; --rad: 0px; --shade: 1; --line-o: 1; }
  .reel-video { transform: none; }
  .js .reveal, .js .giant .fit-text { opacity: 1; transform: none; }
  .js .mission-text .w { color: var(--ink); }
}

/* skip-link target: focusable for keyboard users, no outline box around the whole page */
main:focus { outline: none; }

/* ---- Real site additions (2026-10-21) ---- */
/* Announcement bar, set in the admin under Settings */
/* (styles for the scrolling version are at the end of the file) */
/* Dog without a photo yet */
.dog-noimg { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--blush); }
/* Staff login link next to the tax ID: the site's pink for text on dark */
.footer-base a.staff-link { color: var(--pink-light); }
.footer-base a.staff-link:hover { color: var(--white); }

/* ==========================================================================
   Inner pages (real site, 2026-10-21)
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--pink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"] { color: var(--pink); }

.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 64px); background: var(--paper); }
.page-hero--short { min-height: 60vh; }
.page-eyebrow { color: var(--pink); margin-bottom: clamp(14px, 2vw, 24px); }
.page-hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(22px, 3vw, 40px); }
.page-lead { max-width: 56ch; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.crumbs { margin-bottom: clamp(18px, 2.4vw, 28px); font-weight: 650; }
.crumbs a { color: var(--ink); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--pink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: var(--pink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-note { padding: 40px 0; font-size: 1.2rem; color: var(--ink-2); }

/* "Watch this first" video */
.watch { padding: clamp(48px, 6vw, 96px) 0; background: var(--ink); color: var(--white); }
.watch .label { color: var(--pink-light); margin-bottom: 14px; }
.watch-grid { display: grid; gap: 28px; align-items: center; }
.watch-title { font: 400 clamp(2.4rem, 5vw, 4.4rem)/0.95 var(--f-display); text-transform: uppercase; margin-bottom: 16px; }
.watch-copy p:last-child { max-width: 44ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.watch-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; box-shadow: 14px 14px 0 var(--pink); }
.watch-frame iframe, .watch-poster, .watch-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-poster img { object-fit: cover; transition: transform 0.6s var(--ease); }
.watch-poster:hover img { transform: scale(1.02); }
.watch-play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--pink); color: var(--white); font-weight: 650; font-size: 1rem; transition: transform 0.2s, background-color 0.2s; }
.watch-poster:hover .watch-play, .watch-poster:focus-visible .watch-play { transform: translateY(-2px); background: var(--white); color: var(--ink); }
.watch-poster:focus-visible { outline: 3px solid var(--pink-light); outline-offset: -3px; }
@media (min-width: 900px) { .watch-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 64px; } }
@media (max-width: 560px) { .watch-play { left: 12px; bottom: 12px; padding: 9px 15px 9px 11px; font-size: 0.9rem; } .watch-frame { box-shadow: 8px 8px 0 var(--pink); } }

/* Dog list */
.dog-list { padding: clamp(56px, 7vw, 110px) 0 clamp(72px, 9vw, 140px); background: var(--blush); }
.dog-list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.dog-list-title { font: 400 clamp(2rem, 3.6vw, 3.2rem)/1 var(--f-display); text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters[hidden] { display: none; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font: 650 0.95rem/1 var(--f-text); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.filters button span { font-size: 0.8rem; opacity: 0.7; }
.filters button:hover { background: var(--white); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.dog-grid .dog { scroll-margin-top: calc(var(--header-h) + 24px); }
.dog-grid .dog[hidden] { display: none; }
.dog-grid .dog:target { box-shadow: 0 0 0 4px var(--pink); }
.filters-empty { padding: 32px 0; font-size: 1.1rem; }

/* Band: other ways to help */
.band { padding: clamp(48px, 6vw, 88px) 0; background: var(--pink); color: var(--white); }
.band .label { margin-bottom: 12px; }
.band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band-text { max-width: 30ch; font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.02 var(--f-display); text-transform: uppercase; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* One dog */
.dog-page { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); background: var(--paper); }
.dog-page-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .dog-page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dog-gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.dog-gallery-main { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #ead0da; }
.dog-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dog-gallery-main .dog-noimg { height: 100%; }
.dog-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dog-gallery-thumbs button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.dog-gallery-thumbs button[aria-pressed="true"] { border-color: var(--pink); }
.dog-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dog-badge, .dog-adopted { display: inline-block; margin-bottom: 14px; padding: 8px 12px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.dog-badge--pink, .dog-adopted { background: var(--pink); }
.dog-name { font: 400 clamp(3.6rem, 9vw, 8rem)/0.88 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.dog-meta--big { margin-top: 14px; font-size: 0.9rem; }
.dog-lead { margin: 22px 0; font-size: 1.15rem; color: var(--ink-2); }
.fit-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 26px 0 0; padding: 0; }
.fit-list li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r); }
.fit-list span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.fit-list b { font-size: 1rem; line-height: 1.25; }
.fit-list .fit-ok { background: var(--ink); border-color: var(--ink); color: var(--white); }
.fit-list .fit-ok span { color: rgba(255, 255, 255, 0.7); }
.fit-list .fit-mid { border-color: var(--ink); }
.fit-list .fit-no { border-color: var(--pink); }
.fit-list .fit-no b { color: var(--pink); }
@media (max-width: 420px) { .fit-list { grid-template-columns: 1fr; } .fit-list li { flex-direction: row; justify-content: space-between; align-items: baseline; } }
.dog-about { margin-top: 28px; font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.6; }
.dog-about p + p { margin-top: 1em; }
.dog-more { margin-top: 26px; border-top: 2px solid var(--ink); }
.dog-more > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dog-more dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); padding-top: 3px; }
.dog-more ul { margin: 0; padding-left: 1.1em; }
.dog-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dog-note { margin-top: 16px; color: var(--ink-2); font-size: 0.98rem; }
.dog-note a { color: var(--ink); }

.more-dogs { padding: clamp(56px, 7vw, 100px) 0; background: var(--blush); }
.more-dogs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.more-dogs-title { font: 400 clamp(2rem, 3.6vw, 3.2rem)/1 var(--f-display); text-transform: uppercase; }
@media (min-width: 1100px) { .dog-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dog videos (YouTube link per dog; plays in the photo spot) */
.dog-gallery-main { position: relative; transition: aspect-ratio 0.3s var(--ease); }
.dog-gallery-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.dog-gallery-main.is-playing img, .dog-gallery-main.is-playing .dog-noimg { visibility: hidden; }
.dog-gallery-main.is-wide { aspect-ratio: 16 / 9; }
.dog-gallery-main.is-tall { aspect-ratio: 9 / 16; width: min(100%, 56vh); margin-inline: auto; }
.dog-video-btn { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 14px; border: 0; border-radius: 999px; background: var(--pink); color: var(--white); font: 650 1rem/1 var(--f-text); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(var(--ink-rgb), 0.6); transition: transform 0.2s, background-color 0.2s; }
.dog-video-btn:hover { transform: translateY(-2px); background: var(--ink); }
.is-playing .dog-video-btn { display: none; }
.thumb-video { position: relative; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--ink-rgb), 0.45); color: var(--white); }
.dog-video-tag { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 7px 10px; border-radius: 4px; background: var(--white); color: var(--ink); font-size: 0.68rem; font-weight: 700; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; }
/* <button> versions of the outline buttons: no browser-grey background */
button.btn-line, button.btn-line-white { background-color: transparent; }
button.btn-line:hover { background-color: var(--ink); }

/* Resident spotlight (/spotlight/): same layout as the temp site's page */
.spot-hero { padding: clamp(36px, 5vw, 80px) 0 clamp(56px, 7vw, 110px); background: var(--paper); }
.spot-hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.spot-photo { position: relative; width: calc(100% - 14px); max-width: 520px; margin: 0 14px 14px 0; }
.spot-photo img, .spot-photo .dog-noimg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: 14px 14px 0 var(--pink); }
.spot-tag { position: absolute; left: -10px; top: 20px; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--white); font: 650 0.8rem/1.2 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-4deg); box-shadow: 0 12px 30px rgba(var(--ink-rgb), 0.3); }
.spot-title { font: 400 clamp(3.4rem, 8vw, 7.2rem)/0.9 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.spot-title span { color: var(--pink); }
.spot-soon .spot-title { max-width: 14ch; }
.spot-soon .page-lead { margin-top: 22px; }
.spot-details { padding: clamp(56px, 7vw, 110px) 0; background: var(--blush); }
.spot-fit { display: grid; gap: 28px; }
.spot-fit .label { color: var(--pink); }
.spot-h2 { font: 400 clamp(2.4rem, 4.6vw, 4.2rem)/0.95 var(--f-display); text-transform: uppercase; }
.spot-fit .spot-h2 { margin-top: 12px; }
.spot-fit-lead { margin-top: 14px; max-width: 40ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; }
.spot-fit-lead a { color: var(--ink); font-weight: 650; }
.spot-fit .dog-more { margin-top: 0; }
.spot-more { padding: clamp(56px, 7vw, 110px) 0; background: var(--paper); }
.spot-gallery { display: grid; gap: 18px; margin-top: clamp(22px, 3vw, 40px); }
.spot-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.spot-cta { padding: clamp(64px, 8vw, 130px) 0; background: var(--pink); color: var(--white); text-align: center; }
.spot-cta-title { max-width: 16ch; margin: 0 auto; font: 400 clamp(2.6rem, 6vw, 5.6rem)/0.92 var(--f-display); text-transform: uppercase; }
.spot-cta p { max-width: 46ch; margin: 20px auto 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; }
.spot-cta .btn { margin-top: 30px; }
@media (min-width: 760px) { .spot-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .spot-hero-grid { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .spot-fit { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
}
@media (max-width: 560px) { .spot-photo img, .spot-photo .dog-noimg { box-shadow: 8px 8px 0 var(--pink); } .spot-tag { left: -6px; top: 14px; } }

/* Resident spotlight on the homepage, above "Meet the dogs" (dark, so it stands apart from the blush dogs section) */
.spotlight { padding: clamp(80px, 10vw, 150px) 0; background: var(--ink); color: var(--white); }
.spotlight-grid { display: grid; gap: clamp(40px, 5vw, 88px); align-items: center; }
.spotlight .spot-photo { max-width: 440px; justify-self: center; }
.spotlight .spot-photo a { display: block; border-radius: var(--r); }
.spotlight .spot-photo a img { transition: transform 0.4s var(--ease); }
.spotlight .spot-photo a:hover img { transform: translateY(-4px); }
.spotlight .spot-tag { background: var(--white); color: var(--ink); }
.spotlight .label { margin-bottom: 16px; color: var(--pink-light); }
.spotlight .spot-title span { color: var(--pink-light); }
.spotlight .dog-meta { color: rgba(255, 255, 255, 0.72); }
.spotlight-lead { max-width: 56ch; margin-top: 20px; font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.spotlight .dog-more { max-width: 62ch; border-top-color: var(--white); }
.spotlight .dog-more > div { border-bottom-color: rgba(255, 255, 255, 0.18); }
.spotlight .dog-more dt { color: var(--pink-light); }
.spotlight .dog-more dd { color: rgba(255, 255, 255, 0.88); }
.spotlight .btn-pink:hover { background: var(--white); color: var(--ink); }
@media (min-width: 900px) { .spotlight-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } .spotlight .spot-photo { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .spotlight .spot-photo a img { transition: none; } }

/* ==========================================================================
   Inner pages, part 2 (2026-10-21): apply, contact, foster, donate, events, stories
   ========================================================================== */
[hidden] { display: none !important; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.page-lead a { color: var(--pink); font-weight: 650; text-underline-offset: 3px; }
.section-title { font: 400 clamp(2.2rem, 4.4vw, 4rem)/0.95 var(--f-display); text-transform: uppercase; }
.empty-note a { color: var(--pink); }

/* How it works (apply, foster) */
.apply-how { padding: clamp(56px, 7vw, 110px) 0; background: var(--blush); }
.apply-how--paper { background: var(--paper); }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 18px; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.how-steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
.how-n { display: block; font: 400 clamp(2.6rem, 4vw, 3.6rem)/1 var(--f-display); color: var(--pink); }
.how-steps h3 { margin-top: 10px; font: 400 1.7rem/1 var(--f-display); text-transform: uppercase; }
.how-steps p { margin-top: 10px; line-height: 1.55; color: var(--ink-2); }
.how-steps a { color: var(--ink); font-weight: 650; }
.apply-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.apply-how .fact { background: var(--paper); }
.apply-watch { margin-top: 24px; color: var(--ink-2); }
.apply-watch a { color: var(--pink); font-weight: 650; }

/* Forms (application, contact) */
.form-section { padding: clamp(56px, 7vw, 110px) 0 clamp(72px, 9vw, 140px); scroll-margin-top: var(--header-h); }
.form-wrap { max-width: calc(980px + 2 * var(--gutter)); }
.app-form .group { min-width: 0; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; border: 0; }
.group-title { display: flex; align-items: baseline; gap: 14px; width: 100%; margin-bottom: 18px; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--f-display); text-transform: uppercase; }
.group-title span { color: var(--pink); }
.group-note { margin: -4px 0 16px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full, .field-radio { grid-column: 1 / -1; }
.field > label, .field > legend { padding: 0; font-size: 0.98rem; font-weight: 650; line-height: 1.35; }
.req { color: var(--pink); }
.app-form input:not([type="radio"]):not([type="checkbox"]), .app-form select, .app-form textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r);
  background-color: var(--white); color: var(--ink); font: 500 1rem/1.4 var(--f-text);
  -webkit-appearance: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.app-form select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151213' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.app-form textarea { min-height: 140px; resize: vertical; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(216, 31, 101, 0.18); }
.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid { border-color: var(--pink); }
.was-validated .field-radio:has(:invalid) legend { color: var(--pink); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--white); font-weight: 600; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); }
.choice:has(:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.form-note { max-width: 46ch; font-size: 0.95rem; color: var(--ink-2); }
.form-note a { color: var(--ink); font-weight: 650; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } .form-foot .btn { width: 100%; } }

/* Contact */
.contact-section { padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 9vw, 140px); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-info > div { padding-top: 14px; border-top: 1px solid var(--line); }
.contact-info .label { margin-bottom: 6px; color: var(--pink); }
.contact-info a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.contact-info address { font-style: normal; }
.contact-form { padding: clamp(22px, 3vw, 40px); border-radius: var(--r); background: var(--white); }
.contact-form .section-title { margin-bottom: 22px; }
.contact-form .form-foot { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

/* Foster page */
.foster--page { padding: clamp(72px, 9vw, 130px) 0; }
.foster--page .foster-grid { margin-top: 0; }
.foster--page .foster-list { margin-bottom: clamp(32px, 4vw, 48px); }

/* Donate page */
.donate--page { padding: clamp(72px, 9vw, 130px) 0; }
.donate--page .donate-grid { margin-top: 0; align-items: start; }
.donate--page .btn-pink:hover { background: var(--white); color: var(--ink); }
.tiers { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; border-top: 2px solid rgba(255, 255, 255, 0.4); }
.tiers li { display: grid; grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.tiers b { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-display); text-transform: uppercase; color: var(--pink-light); }
.tiers span { line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.donate-box { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r); background: rgba(255, 255, 255, 0.06); }
.donate-box-title { font: 400 2rem/1 var(--f-display); text-transform: uppercase; }
.donate-box p { line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.donate-box b { color: var(--white); }
.donate-small { font-size: 0.88rem; }
.paypal-alt button { padding: 9px 0; border: 0; background: none; color: var(--pink-light); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.donate-notes { padding: clamp(64px, 8vw, 120px) 0; }
.donate-notes-grid { display: grid; gap: 24px 56px; }
.donate-notes .label { margin-bottom: 12px; color: var(--pink); }
.donate-notes .dog-about { margin-top: 0; }
@media (min-width: 900px) { .donate-notes-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
@media (max-width: 480px) { .tiers li { grid-template-columns: minmax(0, 1fr); } }

/* Events page */
.event-page { padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 9vw, 140px); }
.event-cards { display: grid; gap: clamp(36px, 5vw, 72px); }
.event-card { display: grid; gap: 24px clamp(28px, 4vw, 64px); align-items: start; padding-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.ev-flyer { display: block; overflow: hidden; border-radius: var(--r); background: var(--blush); }
.ev-flyer img { width: 100%; }
.event-card .ev-name { margin-top: 12px; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.event-card .ev-where { margin-top: 14px; }
.ev-address { margin-top: 4px; }
.ev-address a { color: var(--ink-2); text-underline-offset: 3px; }
.ev-summary { max-width: 60ch; margin-top: 18px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.6; }
.ev-details { margin: 16px 0 0; padding-left: 1.1em; line-height: 1.6; color: var(--ink-2); }
.ev-details li + li { margin-top: 4px; }
.event-card .btn { margin-top: 22px; }
.event-card.is-past { opacity: 0.6; }
.event-card.is-past .ev-date span::after { content: " · Past"; }
.event-page .events-empty { margin: 0; font-size: 1.15rem; }
.event-page .events-empty a { color: var(--pink); }
@media (min-width: 900px) { .event-card:has(.ev-flyer) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Stories */
.story-list { padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 9vw, 140px); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: clamp(24px, 2.8vw, 40px) clamp(14px, 1.6vw, 22px); }
.story-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.story-img { display: block; overflow: hidden; margin-bottom: 8px; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--blush); }
.story-img img, .story-img .dog-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.story-card:hover .story-img img { transform: scale(1.03); }
.story-path { font-size: 0.74rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }
.story-path i { font-style: normal; }
.story-name { font: 400 clamp(1.9rem, 2.6vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.story-card:hover .story-name { color: var(--pink); }
.story-note { line-height: 1.5; color: var(--ink-2); }
.story-page .story-path { margin-top: 14px; font-size: 0.9rem; }
@media (min-width: 1100px) { .story-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .story-img img { transition: none; } }

/* ==========================================================================
   Announcement bar (Settings): scrolls like a ticker, optional button, any colors.
   The page sets --nb-bg/--nb-fg (bar and its text) and --nb-accent/--nb-accent-fg (button);
   .is-tinted = the button color is readable on the bar, so every other phrase uses it too.
   Motion off (or "Scroll" unticked): the plain message shows, centered.
   ========================================================================== */
.notice-bar { position: relative; z-index: 60; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 var(--gutter); overflow: hidden; background: var(--nb-bg, var(--ink)); color: var(--nb-fg, var(--white)); }
.notice-text { flex: 1; min-width: 0; margin: 0; padding: 10px 0; font: 400 0.95rem/1.25 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.notice-ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.notice-track { display: inline-flex; align-items: center; padding: 11px 0; white-space: nowrap; animation: notice-scroll var(--notice-dur, 40s) linear infinite; }
.notice-track span { font: 400 0.95rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; }
.notice-track i { margin: 0 22px; font-size: 0.7rem; font-style: normal; color: var(--nb-accent, currentColor); }
.notice-bar.is-tinted .notice-track span:nth-of-type(odd) { color: var(--nb-accent); }
.notice-bar:hover .notice-track, .notice-bar:focus-within .notice-track { animation-play-state: paused; }
@keyframes notice-scroll { to { transform: translateX(-50%); } }
.notice-bar.is-moving .notice-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 14px; border-radius: 999px; background: var(--nb-accent, var(--pink)); color: var(--nb-accent-fg, var(--white)); font: 650 0.85rem/1 var(--f-text); text-decoration: none; white-space: nowrap; transition: transform 0.2s, filter 0.2s; }
.notice-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.notice-cta { position: relative; }
.notice-cta::after { content: ""; position: absolute; inset: -8px -6px; }   /* a finger-sized tap area (46px) without a bigger button */
.notice-cta:focus-visible { outline-color: var(--nb-fg, var(--white)); outline-offset: 2px; }
.notice-bar ::selection { background: var(--nb-fg, var(--white)); color: var(--nb-bg, var(--ink)); }
/* The homepage's first screen makes room for the bar, so its buttons stay above the fold */
body:has(.notice-bar) .hero { min-height: calc(100svh - var(--header-h) - 42px); }
@media (max-width: 560px) { .notice-cta { padding: 0 11px; font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) {
  .notice-ticker { display: none; }
  .notice-bar.is-moving .notice-text { position: static; width: auto; height: auto; padding: 10px 0; overflow: visible; clip: auto; white-space: normal; }
  .notice-cta { transition: none; }
}
