/* Northbound K9 — Field Journal
   Fonts: Instrument Serif (headings) / Hanken Grotesk (body)
   Palette: bone, linen, warm charcoal ink, butter yellow, ochre */

:root {
  --bone: #f5f1e8;
  --linen: #ece5d6;
  --stone: #d9d0bf;
  --butter-soft: #f4ecd8;
  --butter: #f1cf62;
  --ochre: #8a6512;
  --ochre-dark: #6b4d0c;
  --ink: #1f1d1a;
  --ink-2: #34302b;
  --muted: #5d574e;
  --white: #fffdf8;
  --line: #d9d0bf;
  --rust: #b0472f;  /* functional only: "over threshold" */
  --amber: #c08a2a; /* functional only: "at threshold" */
  --calm: #6f8f6a;  /* functional only: "under threshold" */

  --font-head: "Instrument Serif", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 30px 60px -40px rgba(31, 29, 26, 0.45);
  --shadow-sm: 0 0 0 1px var(--line);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(72px, 9vw, 128px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ochre-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.45em;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h1, h2 { text-wrap: balance; }
@media (min-width: 700px) { h1 strong, h2 strong { white-space: nowrap; } }
h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
h1 strong, h2 strong { font-weight: 400; font-style: italic; color: var(--ochre); }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--birch { background: var(--linen); }
.section--frost { background: var(--butter-soft); }
.section--pine { background: var(--ink); color: #ece6da; }
.section--pine h2, .section--pine h3 { color: #fff; }
.section--pine h2 strong { color: var(--butter); }
.section--pine .eyebrow { color: var(--butter); }

.section--pine .lead, .section--pine p { color: #d6cfc2; }

.grid-asym {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.grid-asym--rev { grid-template-columns: 7fr 5fr; }
.grid-asym--center { align-items: center; }
.offset-down { margin-top: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 960px) {
  .grid-asym, .grid-asym--rev { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Header: solid bar on inner pages, transparent overlay on home ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header--overlay {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.pill {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; }
.brand span { font-style: italic; color: var(--ochre); }

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-color: currentColor; }
.nav-links a[aria-current="page"] { border-color: var(--ochre); color: var(--ochre-dark); }

.site-header--overlay .brand,
.site-header--overlay .nav-links a { color: #fff; }
.site-header--overlay .brand span { color: var(--butter); }
.site-header--overlay .nav-links a[aria-current="page"] { border-color: var(--butter); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font: 600 0.92rem var(--font-body);
  cursor: pointer;
}
.site-header--overlay .nav-toggle { color: #fff; }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .pill .btn { display: none; }
  .pill.open { flex-wrap: wrap; }
  .site-header--overlay .pill.open { background: var(--ink); }
  .pill.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 6px 0;
  }
  .pill.open .nav-links a { padding: 12px 4px; font-size: 1.05rem; }
  .pill.open .btn { display: inline-flex; order: 4; width: 100%; justify-content: center; margin-bottom: 6px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bone);
  font: 600 0.97rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ochre-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--light, .btn--butter { background: var(--butter); color: var(--ink); }
.btn--light:hover, .btn--butter:hover { background: #fff; color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  font-weight: 600;
  color: var(--ochre-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Home hero: full-bleed photo, serif headline ---------- */

.hero-full {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
}
.hero-full > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero-full::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.45) 0%, rgba(20,18,15,0) 28%, rgba(20,18,15,0.15) 55%, rgba(20,18,15,0.82) 100%);
}
.hero-full .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero-full .eyebrow { color: var(--butter); }
.hero-full h1 { color: #fff; font-size: clamp(3.4rem, 8vw, 7.4rem); line-height: 0.95; margin: 0; }
.hero-full h1 strong { color: var(--butter); }
.hero-full .lead { color: rgba(255, 255, 255, 0.9); max-width: none; }
.hero-full .btn-row { margin-top: 22px; }
.hero-note {
  position: absolute; z-index: 1; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 860px) {
  .hero-full { min-height: 92vh; }
  .hero-full > img { object-position: 64% 50%; }
  .hero-full .wrap { grid-template-columns: 1fr; gap: 20px; padding-top: 120px; }
  .hero-note { display: none; }
}

/* Stat strip under the hero */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.trust > div { padding: 30px var(--gutter); border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; }
.trust b { display: block; font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.trust span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div:nth-child(2) { border-right: 0; }
  .trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Page hero (inner pages): big serif title, lead, then a wide photo band */
.page-hero { padding: clamp(56px, 7vw, 104px) 0 0; }
.page-hero .ph-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero h1 { margin-bottom: 0; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .ph-photo {
  margin-top: clamp(40px, 5vw, 64px);
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border-radius: var(--radius);
}
.page-hero .ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--plain { padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a { color: var(--muted); }
@media (max-width: 860px) {
  .page-hero .ph-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero .ph-photo { aspect-ratio: 4 / 3; }
}

.banner-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.banner-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) { .banner-photo { aspect-ratio: 4 / 3; } }

/* ---------- Components ---------- */

.photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--sq { aspect-ratio: 1; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }
.card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--butter); color: var(--ink);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 14px; }
.num-list > li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 18px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.num-list > li::before {
  content: counter(n, decimal-leading-zero);
  font: italic 400 2.2rem/1 var(--font-head);
  color: var(--ochre);
}
.num-list h3 { margin: 6px 0 6px; }
.num-list p { margin: 0; color: var(--muted); }
.section--pine .num-list > li { background: var(--ink-2); box-shadow: none; }
.section--pine .num-list p { color: #d6cfc2; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding: 6px 0 6px 34px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--butter-soft);
}
.check-list li::after {
  content: "";
  position: absolute; left: 7px; top: 15px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--ochre-dark);
  border-bottom: 2px solid var(--ochre-dark);
  transform: rotate(-45deg);
}

.quote {
  font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.15 var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.quote footer { margin-top: 18px; font: 500 0.95rem var(--font-body); color: var(--muted); }
.section--pine .quote { color: #fff; }
.section--pine .quote footer { color: var(--butter); }

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial .stars { color: var(--ochre); letter-spacing: 2px; }
.testimonial p { margin: 0; font-size: 1.04rem; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 0.9rem; color: var(--muted); }
.testimonial .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .who b { display: block; color: var(--ink); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--font-head); color: var(--ochre); margin-bottom: 10px; }
.stat span { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--butter);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Editorial pull quote */
.pull { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pull .photo { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .pull { grid-template-columns: 1fr; } .pull .photo { max-width: 380px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--white); padding: 32px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pillar .n { display: block; font: italic 400 2.4rem/1 var(--font-head); color: var(--ochre); }
.pillar h3 { margin: 18px 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { align-self: flex-start; }
.price-card .price { font: 400 3.2rem/1 var(--font-head); color: var(--ink); margin: 16px 0 6px; }
.price-card .price small { font: 500 0.92rem var(--font-body); color: var(--muted); }
.price-card .check-list { flex: 1; margin-top: 18px; }
.price-card--feature { background: var(--ink); color: #ddd6c9; box-shadow: none; transform: translateY(-12px); }
.price-card--feature h3, .price-card--feature .price { color: #fff; }
.price-card--feature .price small { color: var(--butter); }
.price-card--feature .check-list li::before { background: var(--ink-2); }
.price-card--feature .check-list li::after { border-color: var(--butter); }
.price-card--feature .tag { background: var(--butter); color: var(--ink); }
@media (max-width: 960px) { .price-card--feature { transform: none; } }

/* Case studies */
.case { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 64px); margin-bottom: 28px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); align-items: center; }
.case:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.case:nth-of-type(even) .photo { order: 2; }
.case h4 { color: var(--ochre-dark); margin-top: 18px; margin-bottom: 4px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.metric { background: var(--linen); border-radius: 16px; padding: 16px; }
.metric b { display: block; font: 400 1.8rem/1.1 var(--font-head); color: var(--ink); }
.metric span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) {
  .case, .case:nth-of-type(even) { grid-template-columns: 1fr; padding: 24px; }
  .case:nth-of-type(even) .photo { order: 0; }
}
@media (max-width: 520px) { .case-metrics { grid-template-columns: 1fr; } }

/* Blog / service cards */
.post-card { text-decoration: none; color: inherit; display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; padding-bottom: 6px; transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card .photo { aspect-ratio: 3 / 2; border-radius: 0; }
.post-card .photo img { transition: transform 0.6s; }
.post-card:hover .photo img { transform: scale(1.04); }
.post-card > .tag, .post-card > .post-meta { margin: 22px 26px 0; }
.post-card h3 { margin: 10px 26px 8px; }
.post-card p { color: var(--muted); font-size: 0.97rem; margin: 0 26px 22px; }
.post-meta { font-size: 0.84rem; color: var(--muted); display: flex; gap: 12px; align-items: center; }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 1.8rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.08rem; }
.callout { background: var(--butter-soft); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 16px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 60px 22px 0;
  position: relative;
  font: 600 1.08rem var(--font-body);
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--butter-soft); color: var(--ochre-dark);
  display: grid; place-items: center;
  font: 600 1.2rem/1 var(--font-body);
  transform: translateY(-50%);
}
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }
details > div p { margin: 0; }

/* ---------- Threshold diagram (signature) ---------- */

.threshold {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.th-stage { position: relative; height: 170px; margin: 8px 0 18px; }
.th-zones {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 56px;
  transform: translateY(-50%);
  display: flex;
  border-radius: 999px;
  overflow: hidden;
}
.th-zones span {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.th-zone-under { flex: 0 0 37.5%; background: #e4ecdf; color: #3f5a3b; }
.th-zone-at { flex: 0 0 31.25%; background: #f6e7c9; color: #7a5716; }
.th-zone-over { flex: 0 0 31.25%; background: #f4d6cc; color: #8a3423; }

.th-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.th-dot {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--calm);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, background 0.25s;
}
.th-dot svg { width: 36px; height: 36px; }
.th-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.th-trigger { right: 0; transform: translate(0, -50%); }
.th-trigger .th-label { position: absolute; bottom: -24px; }
.th-trigger .th-dot { border-color: var(--stone); background: var(--linen); }
.th-dog .th-label { position: absolute; top: -26px; }
.th-dog .th-dist { position: absolute; bottom: -28px; font: 600 0.88rem var(--font-body); color: var(--ink); white-space: nowrap; }

.th-range { width: 100%; margin: 0; accent-color: var(--ochre); height: 32px; cursor: pointer; }
.th-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.th-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}
.th-readout > div { background: var(--bone); border-radius: var(--radius); padding: 22px 24px; }
.th-readout h3 { display: flex; align-items: center; gap: 10px; }
.th-state-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--calm); flex: none; }
.th-readout h4 { font: 700 0.76rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-dark); margin-bottom: 6px; }
.th-readout p { color: var(--muted); margin: 0; }

.threshold[data-state="at"] .th-dog .th-dot { border-color: var(--amber); }
.threshold[data-state="at"] .th-state-dot { background: var(--amber); }
.threshold[data-state="over"] .th-dog .th-dot { border-color: var(--rust); background: #fbeee9; animation: jitter 0.35s infinite; }
.threshold[data-state="over"] .th-state-dot { background: var(--rust); }
@keyframes jitter { 0%,100% { margin-left: 0; } 50% { margin-left: 3px; } }

@media (max-width: 680px) {
  .th-readout { grid-template-columns: 1fr; }
  .th-dot { width: 48px; height: 48px; }
  .th-dot svg { width: 26px; height: 26px; }
  .th-zones span { font-size: 0.6rem; letter-spacing: 0.04em; }
}

/* ---------- Self-check (signature) ---------- */

.selfcheck { max-width: 860px; }
.sc-progress { height: 8px; background: var(--stone); border-radius: 8px; margin-bottom: 26px; overflow: hidden; }
.sc-progress span { display: block; height: 100%; width: 0; background: var(--ochre); border-radius: 8px; transition: width 0.3s; }
.sc-q { border: 0; padding: 22px 24px; margin: 0 0 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sc-q legend { float: left; width: 100%; font: 600 1.1rem/1.4 var(--font-body); color: var(--ink); padding: 0; margin-bottom: 14px; display: flex; gap: 14px; }
.sc-q legend b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--butter-soft); color: var(--ochre-dark); display: grid; place-items: center; font-size: 0.85rem; }
.sc-options { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 44px; }
.sc-options label { position: relative; }
.sc-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sc-options span {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sc-options span:hover { border-color: var(--butter); }
.sc-options input:checked + span { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.sc-options input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 3px; }
@media (max-width: 520px) { .sc-options { padding-left: 0; } }

.sc-result {
  margin-top: 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #ddd6c9;
}
.sc-result[hidden] { display: none; }
.sc-result h3 { color: #fff; font: 400 2.6rem/1.1 var(--font-head); }
.sc-score { font: 700 0.8rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter); margin-bottom: 10px; }
.sc-note { font-size: 0.85rem; color: var(--butter); margin-top: 20px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  font: 400 1rem var(--font-body);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px var(--butter-soft); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 16px; border: 1px solid var(--stone); border-radius: 999px; font-size: 0.93rem; cursor: pointer; background: var(--white); }
.chips input:checked + span { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.chips input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 3px; }

#intake { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.steps-nav { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.steps-nav li { list-style: none; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--white); }
.steps-nav li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); font-weight: 600; font-size: 0.82rem; }
.steps-nav li[aria-current="step"] { color: var(--ink); font-weight: 600; background: var(--butter-soft); }
.steps-nav li[aria-current="step"] b { background: var(--ochre); color: #fff; }
.steps-nav li.done b { background: var(--ink); color: #fff; }
.form-step[hidden] { display: none; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.form-success { background: var(--butter-soft); border-radius: var(--radius-lg); padding: 40px; }
.form-success[hidden] { display: none; }

/* ---------- CTA band + footer ---------- */

.cta-band { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

.site-footer { background: #171613; color: #bdb5a7; padding: 80px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #ece6da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: var(--butter); }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: #8f877a; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.section-head h2, .section-head .lead { margin-bottom: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 14px; } }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- v4 additions ---------- */

/* Header phone */
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; }
.nav-phone:hover { color: var(--ochre-dark); }
.site-header--overlay .nav-phone { color: #fff; }
@media (max-width: 1520px) { .nav-phone span { display: none; } }
.nav-links a, .pill .btn { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav-phone { order: 1; margin-left: auto; width: 42px; height: 42px; justify-content: center; border: 1px solid currentColor; border-radius: 50%; }
  .nav-toggle { order: 2; margin-left: 0; }
  .pill.open .nav-phone { order: 1; }
}

/* Vet partner strip */
.partners { display: grid; gap: 16px; padding-top: 34px; padding-bottom: 34px; }
.partners p { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.partners ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; list-style: none; margin: 0; padding: 0; }
.partners li { font: italic 400 1.25rem/1.2 var(--font-head); color: var(--ink-2); opacity: 0.8; }

/* Google review label */
.review-badge { margin: 0 0 10px; font-size: 0.95rem; color: var(--muted); }
.review-badge .stars { color: var(--ochre); letter-spacing: 1px; }
.review-badge b { color: var(--ink); }

/* Founder block */
.founder { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.founder-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: end; }
.founder-photos .photo { aspect-ratio: 4 / 5; }
.founder-photos .photo:last-child { margin-bottom: 48px; }
.quote--sm { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 28px 0 8px; padding-left: 22px; border-left: 2px solid var(--butter); }
.quote--sm p { margin: 0; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

/* Article header */
.article-hero { padding: clamp(56px, 7vw, 104px) 0 0; }
.article-hero .article { max-width: 900px; }
.article-hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
.article-hero .ph-photo { margin-top: clamp(36px, 5vw, 56px); aspect-ratio: 21 / 8; overflow: hidden; border-radius: var(--radius); }
.article-hero .ph-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) { .article-hero .ph-photo { aspect-ratio: 4 / 3; } }
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }

/* Service-area map */
.area-map { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 24px); margin: 0 auto; max-width: 1000px; }
.area-map svg { width: 100%; height: auto; display: block; }
.area-map figcaption { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.84rem; color: var(--muted); padding: 12px 6px 2px; }
.area-map figcaption i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
