:root {
  --moss: #1f4f3f;
  --moss-dark: #14372c;
  --yellow: #f2c94c;
  --slate: #6b7a6f;
  --paper: #f6e9d8;
  --paper-light: #fbf5ec;
  --ink: #173028;
  --muted: #50645b;
  --line: rgba(23, 48, 40, 0.18);
  --line-light: rgba(246, 233, 216, 0.22);
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(5.5rem, 10vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, figure { margin-top: 0; }
h1, h2, h3 {
  margin-bottom: 0;
  color: var(--moss-dark);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 7.5vw, 7.8rem); max-width: 9.8ch; }
h2 { font-size: clamp(2.7rem, 5.3vw, 5.6rem); max-width: 12ch; }
h3 { font-size: clamp(1.7rem, 2.5vw, 2.6rem); }

.shell { width: min(calc(100% - (var(--gutter) * 2)), var(--shell)); margin-inline: auto; }
.section-pad { padding-block: var(--section); }
.section-first { padding: clamp(4rem, 8vw, 8rem) 0 var(--section); }
.eyebrow {
  margin-bottom: 1.3rem;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; }
.microcopy, .form-note { color: var(--slate); font-size: 0.88rem; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: var(--moss-dark);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 35px rgba(20, 55, 44, 0.05); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark, .footer-wordmark {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.desktop-nav a { color: var(--muted); font-size: 0.86rem; font-weight: 750; text-decoration: none; }
.desktop-nav a:hover { color: var(--moss-dark); }
.header-action { padding: 0.68rem 0.9rem; border: 1px solid var(--moss); color: var(--moss-dark) !important; }
.mobile-action { display: none; font-size: 0.84rem; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.hero-copy { padding-top: clamp(1rem, 5vw, 4rem); }
.hero-copy h1 { margin-bottom: 2rem; }
.hero-intro { max-width: 650px; margin-bottom: 1.15rem; font-size: clamp(1.22rem, 2.1vw, 1.58rem); line-height: 1.5; }
.hero-detail { max-width: 640px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin: 2.2rem 0 1rem; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 55, 44, 0.14); }
.button-primary { background: var(--yellow); color: var(--moss-dark); }
.button-primary:hover { background: #f5d264; }
.text-link { font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.hero-image { margin: 0; height: min(74vh, 800px); min-height: 580px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }

.recognition { background: var(--paper); }
.recognition-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.recognition-copy h2 { margin-bottom: 2rem; }
.recognition-copy > p:not(.eyebrow) { max-width: 680px; }
.scene-image { margin: 0; overflow: hidden; }
.scene-image img { width: 100%; height: 100%; object-fit: cover; }
.dog-image { height: clamp(440px, 62vw, 720px); }
.dog-image img { object-position: 48% 55%; }
.overheard { margin-top: clamp(5rem, 10vw, 9rem); }
.overheard p {
  max-width: 20ch;
  margin-bottom: clamp(2rem, 5vw, 4.8rem);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.overheard-two { margin-left: auto; }
.overheard-three { margin-left: 14%; }
.recognition-close { padding-top: 1rem; border-top: 1px solid var(--line); }
.recognition-close p { max-width: 710px; margin: 1.4rem 0 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }

.friction { background: var(--moss-dark); color: var(--paper); }
.friction h2, .friction .eyebrow { color: var(--paper); }
.friction .eyebrow { opacity: 0.72; }
.friction-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(3rem, 9vw, 9rem); }
.friction-copy p { color: rgba(246, 233, 216, 0.82); }
.friction-copy .lede { color: var(--paper); }
.pull-quote { margin-top: clamp(5rem, 10vw, 10rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-light); }
.pull-quote p {
  max-width: 17ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.capability { background: var(--paper-light); }
.capability h2 { margin-bottom: clamp(4rem, 8vw, 7rem); }
.capability-lines { border-top: 1px solid var(--line); }
.capability-lines p {
  margin: 0;
  padding: 0.45em 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.capability-lines p:nth-child(even) { padding-left: 12%; }
.capability-close { max-width: 700px; margin: clamp(3rem, 7vw, 6rem) 0 0 auto; font-size: clamp(1.15rem, 2vw, 1.42rem); }

.settings { background: var(--paper); }
.settings-header { display: grid; grid-template-columns: 0.9fr 1fr; column-gap: 7vw; }
.settings-header .eyebrow { grid-column: 1 / -1; }
.settings-header .lede { max-width: 620px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr); gap: clamp(3rem, 8vw, 8rem); margin-top: clamp(4rem, 9vw, 8rem); align-items: stretch; }
.settings-sequence { border-top: 1px solid var(--line); }
.setting { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.setting-index { color: var(--slate); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; }
.setting h3 { margin-bottom: 0.85rem; }
.setting p { max-width: 670px; margin-bottom: 0; }
.controller-image { min-height: 680px; }
.controller-image img { object-position: 49% 48%; }
.settings-close { margin-top: clamp(4rem, 8vw, 7rem); }
.settings-close p { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 5.2rem); letter-spacing: -0.045em; line-height: 1.05; }

.intake-overview { background: var(--paper-light); }
.intake-intro { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.intake-copy p { max-width: 720px; }
.process { margin-top: clamp(5rem, 10vw, 9rem); counter-reset: process; }
.process-step { display: grid; grid-template-columns: minmax(80px, 0.3fr) minmax(0, 1fr); gap: 2rem; padding: clamp(2.2rem, 4vw, 3.6rem) 0; border-top: 1px solid var(--line); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step > span { color: var(--slate); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; }
.process-step h3 { margin-bottom: 0.8rem; font-size: clamp(2.4rem, 5vw, 5rem); }
.process-step p { max-width: 650px; margin-bottom: 0; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.midpoint { display: flex; justify-content: flex-end; margin-top: 2.4rem; }
.midpoint p { max-width: 660px; color: var(--muted); }

.offer { background: var(--moss); color: var(--paper); }
.offer h2, .offer h3, .offer .eyebrow { color: var(--paper); }
.offer .eyebrow { opacity: 0.75; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr); gap: clamp(4rem, 9vw, 9rem); }
.offer-copy > p { color: rgba(246, 233, 216, 0.82); }
.offer-list { margin: 3rem 0 0; padding: 0; list-style: none; }
.offer-list li { position: relative; padding: 1rem 0 1rem 1.8rem; border-top: 1px solid var(--line-light); }
.offer-list li:last-child { border-bottom: 1px solid var(--line-light); }
.offer-list li::before { content: ""; position: absolute; left: 0; top: 1.6rem; width: 7px; height: 7px; background: var(--yellow); }
.investment { align-self: start; padding-top: 0.25rem; position: sticky; top: 120px; }
.price { margin: 0 0 1.5rem; color: var(--paper); font-family: var(--serif); font-size: clamp(3.7rem, 7vw, 7.2rem); letter-spacing: -0.055em; line-height: 0.95; }
.price span { display: block; margin-top: 0.7rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.investment > p:not(.eyebrow, .price, .support-note) { color: rgba(246, 233, 216, 0.82); }
.investment .button { margin: 1.4rem 0 2rem; }
.support-note { padding-top: 1.5rem; border-top: 1px solid var(--line-light); color: rgba(246, 233, 216, 0.72); font-size: 0.9rem; }

.outcome { background: var(--paper); }
.outcome-inner { max-width: 860px; }
.outcome-inner h2 { max-width: 11ch; margin-bottom: 2.5rem; }
.outcome-list { margin: 3rem 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.outcome-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.outcome-statement { margin-top: clamp(4rem, 8vw, 7rem); font-family: var(--serif); font-size: clamp(2.2rem, 4.8vw, 4.8rem); letter-spacing: -0.045em; line-height: 1.05; }

.about { background: var(--paper-light); }
.about-grid { display: grid; grid-template-columns: minmax(300px, 0.46fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; }
.about-image { margin: 0; position: sticky; top: 120px; height: min(72vh, 760px); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about-copy h2 { max-width: 13ch; margin-bottom: 2.4rem; }
.about-copy p { max-width: 700px; }
.about-close { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -0.035em; line-height: 1.1; }
.signature { margin-top: 2.5rem; color: var(--muted); }

.fit { background: var(--paper); }
.fit-title { max-width: 14ch; margin-bottom: clamp(4rem, 8vw, 7rem); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.fit-column h3 { margin-bottom: 2rem; }
.fit-column ul { margin: 0; padding: 0; list-style: none; }
.fit-column li { padding: 1rem 0; border-top: 1px solid var(--line); }
.fit-column li:last-child { border-bottom: 1px solid var(--line); }
.not-fit { padding-left: clamp(2rem, 5vw, 5rem); border-left: 1px solid var(--line); }

.faq { background: var(--paper-light); }
.faq-grid { display: grid; grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; }
.faq-heading { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 1.55rem 3rem 1.55rem 0; cursor: pointer; color: var(--moss-dark); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.25; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.25rem; font-family: var(--sans); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 700px; margin: 0; padding: 0 3rem 1.7rem 0; color: var(--muted); }

.path-break { margin: 0; height: clamp(340px, 62vw, 740px); overflow: hidden; }
.path-break img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

.apply { background: var(--paper); }
.apply-grid { display: grid; grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr); gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.apply-intro { position: sticky; top: 120px; }
.apply-intro h2 { margin-bottom: 2rem; }
.application-form { padding: clamp(1.6rem, 4vw, 3.5rem); border: 1px solid var(--line); background: var(--paper-light); }
.application-form > label, .application-form > fieldset, .form-row { display: block; margin-bottom: 1.6rem; }
label, legend { color: var(--moss-dark); font-weight: 750; line-height: 1.35; }
.optional { display: block; margin-top: 0.25rem; color: var(--slate); font-size: 0.86rem; font-weight: 500; }
input, textarea {
  width: 100%;
  margin-top: 0.62rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 48, 40, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-color: var(--moss); box-shadow: 0 2px 0 var(--yellow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 1rem; }
.choice { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.75rem 0; font-weight: 500; }
.choice input, .consent input { width: 18px; height: 18px; margin: 0.15rem 0 0; padding: 0; accent-color: var(--moss); flex: 0 0 auto; }
.consent { display: flex !important; align-items: flex-start; gap: 0.75rem; font-weight: 500; }
.consent a { font-weight: 800; }
.form-submit { width: 100%; margin-top: 0.5rem; }
.form-note { margin: 0.9rem 0 0; text-align: center; }
.hidden-field { position: absolute; left: -9999px; }

.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 2rem; background: var(--moss-dark); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.8fr 0.8fr; gap: 3rem; }
.footer-wordmark { color: var(--paper); }
.footer-grid p { color: rgba(246, 233, 216, 0.7); }
.footer-contact p { margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
.footer-links a { color: var(--paper); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-light); font-size: 0.84rem; }

/* Legal, thank-you and error pages */
.legal-main, .simple-main { min-height: 72vh; }
.legal-hero { padding: clamp(5rem, 10vw, 9rem) 0 3rem; }
.legal-hero h1 { max-width: 11ch; }
.legal-content { max-width: 860px; padding-bottom: clamp(5rem, 10vw, 9rem); }
.legal-content h2 { max-width: none; margin: 3.2rem 0 1.1rem; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.1; }
.legal-note { padding: 1.1rem 1.25rem; border-left: 4px solid var(--yellow); background: var(--paper); }
.simple-main { display: grid; place-items: center; padding: 6rem 0; }
.simple-card { max-width: 760px; padding: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.simple-card h1 { max-width: 10ch; margin-inline: auto; margin-bottom: 2rem; }
.simple-card p { max-width: 620px; margin-inline: auto; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: 100ms; }

@media (max-width: 980px) {
  h1 { font-size: clamp(3.3rem, 12vw, 6.8rem); }
  .desktop-nav a:not(.header-action) { display: none; }
  .hero-grid, .recognition-grid, .settings-grid, .intake-intro, .offer-grid, .about-grid, .faq-grid, .apply-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 520px; height: 70vh; }
  .dog-image { height: 560px; }
  .settings-header { grid-template-columns: 1fr; }
  .settings-header .lede { margin-top: 1.8rem; }
  .controller-image { min-height: 560px; max-width: 620px; margin-left: auto; }
  .investment, .about-image, .faq-heading, .apply-intro { position: static; }
  .investment { padding-top: 2rem; border-top: 1px solid var(--line-light); }
  .about-image { height: 680px; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --section: 5.5rem; }
  body { font-size: 0.98rem; }
  .header-inner { min-height: 68px; }
  .desktop-nav { display: none; }
  .mobile-action { display: block; }
  .hero-grid { gap: 2.5rem; }
  .hero-image { min-height: 460px; height: 66vh; }
  .overheard-three { margin-left: 0; }
  .friction-grid, .fit-grid, .footer-grid { grid-template-columns: 1fr; }
  .pull-quote { margin-top: 4.5rem; }
  .capability-lines p:nth-child(even) { padding-left: 0; }
  .setting { grid-template-columns: 42px 1fr; gap: 0.8rem; }
  .process-step { grid-template-columns: 42px 1fr; gap: 0.9rem; }
  .controller-image { min-height: 480px; }
  .offer-grid { gap: 4.5rem; }
  .about-image { height: 560px; }
  .not-fit { padding: 2.5rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .application-form { padding-inline: 1.2rem; }
  .footer-grid > :first-child { grid-column: auto; }
  .copyright { grid-column: auto; }
}

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