/* ==========================================================================
   Allies For Community Cats Inc.
   Aesthetic: warm editorial field-journal — bone paper, espresso ink,
   ginger-rust accent, moss secondary. Fraunces (display) + Karla (body).
   ========================================================================== */

/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
form[style*="min-height"] { align-content: center; }
/* === end defensive base === */

:root {
  /* --- paper & ink --- */
  --bone:        #F6F0E6;
  --bone-2:      #EFE7D9;
  --bone-3:      #E5DACA;
  --ink:         #1F1913;
  --ink-2:       #3B322A;
  --ink-3:       #6B5F53;

  /* --- accents --- */
  --rust:        #B4501E;
  --rust-deep:   #8F3D15;
  --rust-soft:   #D9793F;
  --moss:        #4C5B45;
  --moss-soft:   #6E7D63;
  --cream:       #FFFBF4;

  /* --- semantic --- */
  --bg:          var(--bone);
  --fg:          var(--ink);
  --muted:       var(--ink-3);
  --accent:      var(--rust);
  --rule:        color-mix(in srgb, var(--ink) 14%, transparent);
  --rule-strong: color-mix(in srgb, var(--ink) 26%, transparent);

  /* --- type --- */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", sans-serif;

  /* --- metrics --- */
  --nav-h: 76px;
  --shell: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3.25rem);
  --radius: 3px;

  /* --- motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain — sits above the background, below all content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 40;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  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;
}

/* --------------------------------------------------------------------------
   Eyebrow / section headings
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rust);
  flex: none;
}

.eyebrow--center { justify-content: center; }

.section {
  padding-block: clamp(3.75rem, 8vw, 7rem);
}

.section-head {
  max-width: 42ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3.1rem);
  margin-bottom: 0.85rem;
}

.section-sub {
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 56ch;
}

.section-head--center .section-sub { margin-inline: auto; }

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

.btn {
  --btn-bg: var(--rust);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.btn:hover {
  --btn-bg: var(--rust-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  border-color: var(--ink);
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 45%, transparent);
}

.btn--light:hover {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  border-color: var(--cream);
}

.btn--sm { padding: 0.66em 1.15em; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.nav__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}

.nav__wordmark {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 20;
}

.nav__wordmark span {
  display: block;
  font-family: var(--body);
  font-size: 0.645rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.16em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__links a {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.22s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav__links a:hover { color: var(--rust); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 0.6rem; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}

.nav__toggle svg { width: 21px; height: 21px; }

/* Mobile drawer — display:none by default so a class can override [hidden]. */
.nav__drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 55;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem var(--gutter) 1.65rem;
  box-shadow: 0 24px 44px -28px rgba(31, 25, 19, 0.45);
}

.nav__drawer.is-open { display: block; }

.nav__drawer a {
  display: block;
  padding: 0.72rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.nav__drawer .btn {
  width: 100%;
  margin-top: 1.15rem;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
}

/* Phone: the bar and mark stay large, but the wordmark has to come back down
   or "Allies For Community Cats" breaks onto a second line next to the mark. */
@media (max-width: 640px) {
  .nav__wordmark { font-size: 1.02rem; }
  .nav__mark { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   Hero — container queries + svh so nothing clips at the fold
   -------------------------------------------------------------------------- */

.hero {
  container-type: inline-size;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(0.9rem, 2.6svh, 2.35rem);
  position: relative;
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.75rem, 5cqi, 4rem);
  align-items: center;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.1cqi, 1.5rem);
  min-width: 0;
}

.hero__title {
  font-size: clamp(1.6rem, 7cqi, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 26, "WONK" 1, "opsz" 144;
}

.hero__title em {
  font-style: italic;
  color: var(--rust);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}

.hero__lede {
  font-size: clamp(0.98rem, 1.85cqi, 1.16rem);
  color: var(--ink-2);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.15rem;
  padding-top: clamp(0.4rem, 1.4cqi, 0.85rem);
  border-top: 1px solid var(--rule);
  font-size: clamp(0.78rem, 1.35cqi, 0.88rem);
  color: var(--ink-2);
}

.hero__stars {
  color: var(--rust);
  letter-spacing: 0.1em;
  font-size: 0.95em;
}

.hero__proof strong { font-weight: 700; }

/* Hero image stack */
.hero__media {
  position: relative;
  min-width: 0;
}

.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone-3);
  box-shadow: 0 30px 60px -34px rgba(31, 25, 19, 0.55);
}

.hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero__badge {
  position: absolute;
  left: clamp(-0.5rem, -1.5cqi, 0rem);
  bottom: clamp(0.9rem, 3cqi, 1.6rem);
  background: var(--ink);
  color: var(--cream);
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  max-width: 15rem;
  box-shadow: 0 18px 34px -20px rgba(31, 25, 19, 0.7);
}

.hero__badge b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.4cqi, 1.85rem);
  font-weight: 600;
  line-height: 1;
  color: var(--rust-soft);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
}

.hero__badge span {
  display: block;
  font-size: clamp(0.63rem, 1.15cqi, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 74%, transparent);
  margin-top: 0.28em;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 3cqi, 1.6rem);
  }
  .hero__media { order: -1; max-width: 380px; }
  .hero__figure img { aspect-ratio: 16 / 10; }
  .hero__badge { display: none; }
}

@media (max-width: 560px) {
  .hero__media { max-width: 100%; }
  .hero__figure img { aspect-ratio: 16 / 7; }
}

/* --------------------------------------------------------------------------
   Marquee rule — thin band of repeating text
   -------------------------------------------------------------------------- */

.band {
  background: var(--ink);
  color: var(--cream);
  padding-block: 0.85rem;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}

.band__track {
  display: flex;
  gap: 2.6rem;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  animation: band-scroll 34s linear infinite;
  width: max-content;
}

.band__track span { display: inline-flex; align-items: center; gap: 2.6rem; }
.band__track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rust-soft);
  flex: none;
}

@keyframes band-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Programs
   -------------------------------------------------------------------------- */

/* Six cards — fixed 3/2/1 tracks so a row is never left half-empty
   (auto-fit made four columns at desktop and showed two blank cells). */
.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 1000px) {
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .programs { grid-template-columns: minmax(0, 1fr); }
}

.program {
  background: var(--bone);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  min-width: 0;
  transition: background 0.3s var(--ease);
}

.program:hover { background: var(--cream); }

.program__num {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rust);
}

.program__title {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

.program__body {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin-bottom: auto;
}

.program__note {
  font-size: 0.83rem;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.program__link {
  align-self: flex-start;
  margin-top: 0.3rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rust);
  border-bottom: 1px solid color-mix(in srgb, var(--rust) 42%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.program__link:hover { color: var(--rust-deep); border-color: var(--rust-deep); }

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 0;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  gap: 1.1rem;
  max-width: 60ch;
}

.pullquote p {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + 1.05vw, 1.62rem);
  line-height: 1.42;
  font-style: italic;
  font-variation-settings: "SOFT" 44, "WONK" 1, "opsz" 40;
  color: var(--ink);
  margin: 0;
}

.pullquote cite {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Adopt split
   -------------------------------------------------------------------------- */

.adopt {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

@media (max-width: 880px) {
  .adopt { grid-template-columns: minmax(0, 1fr); }
}

.adopt__copy { min-width: 0; }

.adopt__aside {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.95rem);
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

@media (max-width: 880px) {
  .adopt__aside { position: static; }
}

.adopt__aside h3 {
  font-size: 1.32rem;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 30;
}

.adopt__aside p {
  font-size: 0.94rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.adopt__aside .btn {
  --btn-fg: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 42%, transparent);
}

.adopt__aside .btn:hover {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  border-color: var(--cream);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.55rem 1.35rem;
  margin-top: 1.6rem;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  min-width: 0;
}

.checks li::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* --------------------------------------------------------------------------
   Ways to give
   -------------------------------------------------------------------------- */

/* Six ways to give — same fixed 3/2/1 tracks, same reason. */
.give-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 1000px) {
  .give-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .give-grid { grid-template-columns: minmax(0, 1fr); }
}

.give-card {
  background: var(--bone);
  padding: clamp(1.3rem, 2.8vw, 1.75rem);
  display: grid;
  gap: 0.35rem;
  align-content: start;
  text-decoration: none;
  min-width: 0;
  transition: background 0.3s var(--ease);
}

.give-card:hover { background: var(--cream); }

.give-card--alt { background: var(--bone-3); }
.give-card--alt:hover { background: var(--bone-2); }

.give-card__k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.give-card__v {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 30;
}

.give-card__go {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rust);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  background: var(--moss);
  color: var(--cream);
}

/* Four stats — 4/2/1 so a row never ends with a lone orphan. */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 2.5rem);
}

@media (max-width: 1000px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
}

.stat { min-width: 0; }

.stat__num {
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 96;
}

.stat__label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

/* Eight photos — 4/2/1 divides evenly at every step; auto-fit made three
   columns at tablet and left a hole in the last row. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.05rem);
}

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bone-3);
  min-width: 0;
  aspect-ratio: 1 / 1;
}

.gallery picture { display: block; width: 100%; height: 100%; }

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.45s var(--ease);
}

.gallery figure:hover img { transform: scale(1.045); }

.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius);
  pointer-events: none;
}

.gallery__note {
  margin-top: 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.review {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.8vw, 1.95rem);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
  position: relative;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: 0.15em;
  right: 0.4em;
  font-family: var(--display);
  font-size: 4.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--rust) 15%, transparent);
  pointer-events: none;
}

.review__stars {
  color: var(--rust);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

.review__text {
  font-family: var(--display);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem);
  line-height: 1.5;
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 20;
  color: var(--ink);
  margin-bottom: auto;
}

.review__by {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Visit / info split
   -------------------------------------------------------------------------- */

.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}

.info-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.info-list dt, .info-list .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-list .v {
  font-size: 1.02rem;
  color: var(--ink);
}

.info-list .v a {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--rust) 40%, transparent);
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.info-list .v a:hover { color: var(--rust); border-color: var(--rust); }

.seal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.8rem;
  color: var(--ink-2);
  max-width: 100%;
}

.seal svg { width: 22px; height: 22px; color: var(--moss); flex: none; }
.seal b { font-weight: 700; }

/* Service-area plaque. Replaces a map: the rescue publishes no street address
   (PO box only), so a city-level pin was filler — the jurisdictions are the
   actual answer to "do you cover me?". */
.area-card {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.area-card__body {
  padding: clamp(1.5rem, 3.4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.area-card__body::after {
  content: "";
  position: absolute;
  right: -5.5rem;
  top: -5.5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  pointer-events: none;
}

.area-card__k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-soft);
  margin-bottom: 1.15rem;
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.area-list li {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  min-width: 0;
}

.area-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--rust-soft);
  transform: translateY(-0.28em);
}

.area-list span {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

.area-card__foot {
  padding: 1.05rem clamp(1.5rem, 3.4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  background: color-mix(in srgb, var(--cream) 5%, transparent);
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--cream) 76%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.area-card__foot .btn {
  --btn-fg: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 42%, transparent);
}

.area-card__foot .btn:hover {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  border-color: var(--cream);
}

/* Mission: head left, pull quote right — otherwise the right half of a
   desktop viewport sat empty for a full screen. */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: minmax(0, 1fr); }
}

.mission-grid .section-head { margin-bottom: 0; }
.mission-grid .pullquote { padding-top: 0; border-top: 0; }

@media (max-width: 900px) {
  .mission-grid .pullquote {
    padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
    border-top: 1px solid var(--rule-strong);
  }
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.closer {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow-x: clip;
}

.closer::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cream) 9%, transparent);
  pointer-events: none;
}

.closer__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.closer__title {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.35rem);
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 26, "WONK" 1, "opsz" 96;
}

.closer__title em { font-style: italic; color: var(--rust-soft); }

.closer__lede {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  font-size: 1.06rem;
  max-width: 48ch;
  margin-bottom: 1.9rem;
}

.closer__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.closer .eyebrow { color: var(--rust-soft); }
.closer .eyebrow::before { background: var(--rust-soft); }

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

.footer {
  background: var(--bone-2);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.75rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.1rem;
  border-bottom: 1px solid var(--rule);
}

.footer__brand { display: grid; gap: 0.85rem; min-width: 0; }

.footer__mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  align-self: start;
}

.footer__blurb {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 34ch;
}

.footer h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.footer__list a {
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.22s var(--ease);
}

.footer__list a:hover { color: var(--rust); }

.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-credit {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.site-credit a { color: inherit; }

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

.page-head {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}

.page-head__title {
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem);
  margin-bottom: 0.85rem;
}

.page-head__lede {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 54ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.2vw, 2.35rem);
  min-width: 0;
}

.form-card__title {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.form-card__sub {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

#estimate-form {
  display: grid;
  gap: 1.05rem;
}

.field { display: grid; gap: 0.4rem; min-width: 0; }

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.78rem 0.9rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease);
}

.field textarea { resize: vertical; min-height: 7.5rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--cream);
  border-color: var(--rust);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 16%, transparent);
}

.field--row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1.05rem;
}

.turnstile-box { min-height: 65px; }

#estimate-form .btn { width: 100%; }

#estimate-form .btn[disabled] {
  --btn-bg: var(--moss);
  border-color: var(--moss);
  opacity: 1;
  transform: none;
}

.form-status {
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--bone);
}

.form-status--ok {
  border-color: color-mix(in srgb, var(--moss) 45%, transparent);
  background: color-mix(in srgb, var(--moss) 10%, var(--cream));
  color: var(--ink);
}

.form-status--err {
  border-color: color-mix(in srgb, var(--rust) 45%, transparent);
  background: color-mix(in srgb, var(--rust) 9%, var(--cream));
  color: var(--ink);
}

.form-status b { font-weight: 700; }
.form-status a { color: var(--rust); }

.form-fine {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-aside { display: grid; gap: 1.5rem; min-width: 0; }

.aside-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bone-2);
  padding: clamp(1.25rem, 2.8vw, 1.7rem);
  min-width: 0;
}

.aside-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.9rem;
}

.aside-card p {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.contact-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.contact-rows li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.contact-rows svg {
  width: 17px; height: 17px;
  color: var(--rust);
  flex: none;
  margin-top: 0.2rem;
}

.contact-rows .k {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-rows .v { font-size: 0.98rem; }

.contact-rows a {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--rust) 40%, transparent);
}

.contact-rows a:hover { color: var(--rust); }

.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease);
}

.social-row a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.social-row svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Scroll reveal — below the fold only (lcp_guard strips it above)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .band__track { animation: none; }
}

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