@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Osprey Tax — Brand Stylesheet
   Built by BHI Software. Tokens from official brand guide.
   Type: Hanken Grotesk throughout — matches the live site's
   clean grotesque (headings + body share one family).
   ============================================================ */

:root {
  /* Brand colors */
  --white:  #FFFFFF; /* base background */
  --mist:   #EFF4E6; /* pale-green alternating section bg */
  --green:  #1C7A58; /* PRIMARY — buttons, CTAs, links, highlights */
  --forest: #1A3B31; /* dark green — headers, footer bg, accents */
  --black:  #000000; /* body text */

  /* Palette-derived tints (no new hues — all alpha/blend of the 5 brand colors) */
  --green-rgb:  28, 122, 88;
  --forest-rgb: 26, 59, 49;
  --mist-rgb:   239, 244, 230;

  /* Typography — one grotesque family, matching the live site */
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
  --radius-panel: 28px;
  --shadow: 0 6px 24px rgba(26, 59, 49, 0.10);
  --shadow-lift: 0 16px 40px rgba(26, 59, 49, 0.18);
  --transition: 0.2s ease;

  /* Motion tokens (matched to the live Squarespace reveal feel) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* ease-out */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.7s;       /* primary reveal duration */
  --dur-fast: 0.28s; /* hover / interaction */
  --rise: 26px;      /* reveal slide-up distance */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12em;
  font-weight: 400;
  line-height: 1.72;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Green text selection */
::selection { background: rgba(var(--green-rgb), 0.22); color: var(--forest); }
::-moz-selection { background: rgba(var(--green-rgb), 0.22); color: var(--forest); }

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: 3.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: 2.35em;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h3 { font-size: 1.6em; line-height: 1.2; letter-spacing: -0.012em; }
h4 { font-size: 1.2em; line-height: 1.25; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
  isolation: isolate;
}
.section .container { position: relative; z-index: 1; }

/* Mist sections — layered pale-green gradient + soft top glow */
.section--mist {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--green-rgb), 0.07) 0%, rgba(var(--green-rgb), 0) 60%),
    linear-gradient(180deg, var(--mist) 0%, #f3f7ec 100%);
}

/* Forest sections — deep layered green with subtle radial atmosphere */
.section--forest {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(var(--green-rgb), 0.28) 0%, rgba(var(--green-rgb), 0) 55%),
    radial-gradient(70% 90% at 12% 110%, rgba(var(--green-rgb), 0.20) 0%, rgba(var(--green-rgb), 0) 55%),
    linear-gradient(165deg, #204537 0%, var(--forest) 55%, #15302808 100%),
    var(--forest);
  color: var(--white);
}
.section--forest h1,
.section--forest h2,
.section--forest h3,
.section--forest h4 { color: var(--white); }

/* Whisper-quiet feather / topographic motif in forest sections (osprey nod) */
.section--forest::before {
  content: "";
  position: absolute;
  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='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.06'%3E%3Cpath d='M-50 480 C150 400 300 440 450 360 C540 312 600 330 660 300'/%3E%3Cpath d='M-50 520 C160 450 320 490 470 410 C560 364 620 382 680 352'/%3E%3Cpath d='M-50 560 C170 500 340 540 490 460 C580 416 640 434 700 404'/%3E%3Cpath d='M-50 440 C140 350 290 390 440 310 C530 264 590 282 650 252'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px 760px;
  background-position: right bottom;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}

/* Faint grain overlay — adds tactile depth without color shift */
.section--forest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section__title {
  text-align: center;
  margin-bottom: 1.25em;
}

/* ---------- Kicker / eyebrow (section + hero hierarchy) ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 1.8em;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--green-rgb), 0), var(--green));
  border-radius: 2px;
}
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: "";
  width: 1.8em;
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(var(--green-rgb), 0));
  border-radius: 2px;
}
.section--forest .kicker { color: var(--mist); }
.section--forest .kicker::before { background: linear-gradient(90deg, rgba(var(--mist-rgb), 0), var(--mist)); }
.section--forest .kicker--center::after { background: linear-gradient(90deg, var(--mist), rgba(var(--mist-rgb), 0)); }

/* Block holding kicker + title together, centered */
.section-head { text-align: center; margin-bottom: 1.5em; }
.section-head .section__title { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--green);
}
.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn--on-forest {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}
.btn--on-forest:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(26, 59, 49, 0.08);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__logo { height: 70px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  /* Centered to the full header width: logo left, links centered, CTA right */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
}
.nav__links a:hover { color: var(--green); text-decoration: none; }
.nav__cta { margin-left: 0; }
.nav__cta .btn { padding: 0.7em 1.5em; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  width: 44px;
  height: 44px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--forest);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(2rem, 4vw, 3.5rem);
}
/* The rounded gradient "color flow" panel that holds the whole hero */
.hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  background:
    linear-gradient(125deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 55%),
    url("assets/hero-gradient.webp") center / cover no-repeat,
    linear-gradient(125deg, var(--mist) 0%, #cdebcf 55%, #a6e2c2 100%);
  box-shadow: 0 24px 60px rgba(var(--forest-rgb), 0.14);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__copy { text-align: left; }
.hero__copy h1 {
  margin-bottom: 0.45em;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  color: var(--forest);
}
.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  max-width: 38ch;
  margin: 0 0 1.75em;
  color: rgba(var(--forest-rgb), 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}
/* Photo card overlapping a dark-green disc, bottom-right */
.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(280px, 32vw, 440px);
}
.hero__circle {
  position: absolute;
  z-index: 0;
  right: 2%;
  bottom: -6%;
  width: clamp(180px, 24vw, 320px);
  height: clamp(180px, 24vw, 320px);
  border-radius: 50%;
  background: var(--forest);
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 7 / 6;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(var(--forest-rgb), 0.30);
}

/* ============================================================
   Services
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(26, 59, 49, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Green accent top-bar — animates wider on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--forest));
  transform: scaleX(0.42);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card__title { color: var(--forest); margin-bottom: 0.5em; }
.card__body { font-size: 1rem; line-height: 1.6; flex-grow: 1; margin-bottom: 1.4em; }
.card__link {
  font-weight: 700;
  color: var(--green);
  align-self: flex-start;
}
.card__link::after { content: " \2192"; }

/* ============================================================
   Recognition / Award
   ============================================================ */
.recognition { text-align: center; }
.recognition__badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5em 1.25em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.recognition h2 { color: var(--white); margin-bottom: 0.2em; }
.recognition__year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mist);
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 760px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.quote {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdf8 100%);
  border: 1px solid rgba(26, 59, 49, 0.08);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.75rem 2.25rem 2rem;
  overflow: hidden;
}
/* Large decorative quotation mark behind the text */
.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  right: 0.18em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 9rem;
  line-height: 1;
  color: rgba(var(--green-rgb), 0.10);
  pointer-events: none;
  z-index: 0;
}
.quote__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin-bottom: 1.4em;
}
.quote__author {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
}
.quote__role {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(var(--forest-rgb), 0.62);
  margin-top: 0.15em;
}

/* ============================================================
   Blog teaser
   ============================================================ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.post {
  background: var(--white);
  border: 1px solid rgba(26, 59, 49, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post--upcoming { opacity: 0.6; }
.post__thumb-link { display: block; line-height: 0; }
.post__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.post:hover .post__thumb { transform: scale(1.05); }
.post__body { padding: 1.5rem; }
.post__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.post__title { font-size: 1.25rem; color: var(--forest); margin: 0; }
.blog__cta { text-align: center; }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta { text-align: center; }
.final-cta p { max-width: 640px; margin: 0 auto 1.75em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% -20%, rgba(var(--green-rgb), 0.30) 0%, rgba(var(--green-rgb), 0) 60%),
    radial-gradient(50% 60% at 90% 120%, rgba(var(--green-rgb), 0.16) 0%, rgba(var(--green-rgb), 0) 55%),
    linear-gradient(170deg, #204537 0%, var(--forest) 60%, #142b24 100%);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
/* Hairline accent rule at the very top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--green-rgb), 0), var(--green) 50%, rgba(var(--green-rgb), 0));
  z-index: 1;
}
/* Faint feather motif echo in footer */
.site-footer::after {
  content: "";
  position: absolute;
  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='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.05'%3E%3Cpath d='M-50 300 C150 240 320 280 470 210 C560 168 620 184 700 156'/%3E%3Cpath d='M-50 340 C160 285 330 325 480 255 C570 213 630 229 710 201'/%3E%3Cpath d='M-50 260 C140 200 310 240 460 170 C550 128 610 144 690 116'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 720px 480px;
  background-position: left bottom;
  background-repeat: no-repeat;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a:not(.btn) { color: var(--mist); }
.site-footer a:not(.btn):hover { color: var(--white); }
/* ---- Footer head: headline + nav ---- */
.footer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.footer__headline {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  max-width: 20ch;
  margin: 0;
}
.footer__headline em { font-style: italic; font-weight: 700; }
.footer__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 700;
}
.footer__nav a:not(.btn) { color: var(--mist); white-space: nowrap; }
.footer__nav a:not(.btn):hover { color: var(--white); }
.footer__contact {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.footer__contact:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--forest);
}

/* ---- Intro-call card (mist panel on the forest footer) ---- */
.footer__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--mist);
  border-radius: var(--radius-panel);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__cta-media { line-height: 0; }
.footer__cta-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
}
.footer__cta-body { padding: clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.5rem, 2vw, 1.5rem); }
.footer__cta-title {
  color: var(--forest);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 0.5em;
}
.footer__cta-body p { color: rgba(var(--forest-rgb), 0.78); margin: 0 0 0.85em; }
.footer__cta-body .footer__cta-label { font-weight: 700; color: var(--forest); margin-bottom: 1em; }

/* ---- Bottom bar ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer__legal { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.footer__credit { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); }
.footer__credit a { color: var(--mist); font-weight: 700; }
.footer__linkedin { display: inline-flex; }
.footer__linkedin svg { width: 22px; height: 22px; fill: var(--mist); }
.footer__linkedin:hover svg { fill: var(--white); }

/* ============================================================
   Stub pages
   ============================================================ */
.stub {
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 0;
}
.stub h1 { margin-bottom: 0.4em; }
.stub p { max-width: 620px; margin: 0 auto 1.5em; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero__sub {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--black);
}

/* ============================================================
   Prose (article + about body copy)
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.9em; margin-top: 1.4em; }
.prose h3 { font-size: 1.4em; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.6em; }
.prose blockquote {
  border-left: 4px solid var(--green);
  background: var(--mist);
  margin: 1.5em 0;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; box-shadow: var(--shadow); }

/* ============================================================
   About page
   ============================================================ */
.about-bio {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}
.about-bio__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-bio__body h2 { margin-top: 0; }

/* ============================================================
   Service detail
   ============================================================ */
.service-detail { max-width: 860px; margin: 0 auto; }
.service-detail__banner {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  max-height: 340px;
  object-fit: cover;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1.25rem;
}
.feature-list li {
  background: var(--white);
  border: 1px solid rgba(26, 59, 49, 0.10);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}
.feature-list h3 { font-size: 1.3em; margin-bottom: 0.3em; }
.feature-list p { margin: 0; font-size: 1rem; }
.service-cta { text-align: center; margin-top: 2.5rem; }

/* Services landing: sub-nav of the three offerings + lead paragraph */
.services-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.services-subnav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest);
  padding: 0.55em 1.2em;
  border: 1px solid rgba(26, 59, 49, 0.16);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--dur-fast) var(--ease);
}
.services-subnav a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}
.service-detail .service-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(var(--forest-rgb), 0.9);
  margin-bottom: 1.1em;
}
.service-detail > h2 { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 80px; }

/* ============================================================
   Blog index — article cards with thumbnails
   ============================================================ */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.article-card {
  background: var(--white);
  border: 1px solid rgba(26, 59, 49, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card__thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.article-card__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.article-card__excerpt { font-size: 0.95rem; flex-grow: 1; margin-bottom: 1.1em; }
.article-card__link { font-weight: 700; color: var(--green); align-self: flex-start; }
.article-card__link::after { content: " \2192"; }

/* ============================================================
   Article (single blog post)
   ============================================================ */
.article-hero {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.article-hero__meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.article-hero h1 { font-size: 3em; margin-bottom: 0.6em; }
.article-hero__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  max-height: 420px;
  object-fit: cover;
}
.article-back { max-width: 760px; margin: 2.5rem auto 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 1.05em; }
  h1 { font-size: 2.6em; }
  h2 { font-size: 2em; }
  h3 { font-size: 1.5em; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(26, 59, 49, 0.08);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 1rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .nav__cta { margin-left: 0; width: 100%; }
  .nav__cta .btn { display: block; text-align: center; }

  .cards,
  .testimonials__grid,
  .blog__grid,
  .articles { grid-template-columns: 1fr; }

  /* Hero collapses to a single centered column; photo above-? no — below copy */
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__copy { text-align: center; }
  .hero__sub { max-width: 52ch; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { min-height: 0; }
  .hero__photo { max-width: 420px; }

  .footer__head { flex-direction: column; align-items: flex-start; }
  .footer__cta { grid-template-columns: 1fr; }
  .footer__cta-media { order: -1; }
  .footer__bottom { justify-content: flex-start; }

  .about-bio { grid-template-columns: 1fr; }
  .about-bio__photo { max-width: 320px; }
  .article-hero h1 { font-size: 2.2em; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.1em; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   MOTION LAYER
   Fluid + dynamic interaction polish layered on top of the
   existing static markup. All non-essential motion is gated
   behind prefers-reduced-motion and fails OPEN: if JS never
   runs, .reveal elements stay fully visible (see fallback at
   the bottom of this block).
   ============================================================ */

/* ---------- Scroll reveal ----------
   JS adds .reveal to eligible blocks, then .is-in when they
   enter the viewport. .js-anim on <html> means JS booted and
   it's safe to hide-then-reveal. */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Drop will-change once settled to free the compositor */
html.js-anim .reveal.is-done { will-change: auto; }

/* ---------- Sticky header scroll state ---------- */
.site-header {
  transition:
    padding var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft);
  will-change: padding, box-shadow;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 4px 20px rgba(26, 59, 49, 0.10);
  border-bottom-color: rgba(26, 59, 49, 0.06);
}
.site-header.is-stuck .nav {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.site-header.is-stuck .nav__logo {
  height: 52px;
}
.nav { transition: padding var(--dur-fast) var(--ease-soft); }
.nav__logo { transition: height var(--dur-fast) var(--ease-soft); }

/* ---------- Animated nav underline ---------- */
.nav__links a {
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

/* ---------- Button hover motion ---------- */
.btn {
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 59, 49, 0.18); }
.btn:active { transform: translateY(0); }

/* ---------- Card hover lift + image zoom ---------- */
.card,
.post,
.article-card,
.quote,
.feature-list li {
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  will-change: transform;
}
.card:hover,
.post:hover,
.article-card:hover,
.feature-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* image zoom inside cards (thumbnails / banners) */
.article-card { overflow: hidden; } /* already set, kept explicit */
.article-card__thumb { transition: transform 0.5s var(--ease); will-change: transform; }
.article-card:hover .article-card__thumb { transform: scale(1.05); }

/* card "Learn More" / "Read More" arrow nudge */
.card__link,
.article-card__link {
  transition: color var(--dur-fast) var(--ease);
}
.card__link::after,
.article-card__link::after {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}
.card:hover .card__link::after,
.article-card:hover .article-card__link::after {
  transform: translateX(4px);
}

/* prose / banner images: gentle zoom on hover */
.service-detail__banner,
.about-bio__photo,
.article-hero__img {
  transition: transform 0.5s var(--ease), box-shadow var(--dur-fast) var(--ease);
  will-change: transform;
}
.service-detail__banner:hover,
.about-bio__photo:hover,
.article-hero__img:hover { transform: scale(1.02); }

/* ---------- Hero entrance ----------
   JS adds .hero-anim to the hero on load; children rise+fade
   in sequence. Works for both home hero and inner page-hero. */
html.js-anim .hero__copy > *,
html.js-anim .page-hero .container > *,
html.js-anim .article-hero > * {
  opacity: 0;
  transform: translateY(18px);
}
html.js-anim .hero.hero-anim .hero__copy > *,
html.js-anim .page-hero.hero-anim .container > *,
html.js-anim .article-hero.hero-anim > * {
  animation: heroRise 0.8s var(--ease) both;
}
html.js-anim .hero.hero-anim .hero__copy > *:nth-child(1),
html.js-anim .page-hero.hero-anim .container > *:nth-child(1),
html.js-anim .article-hero.hero-anim > *:nth-child(1) { animation-delay: 0.08s; }
html.js-anim .hero.hero-anim .hero__copy > *:nth-child(2),
html.js-anim .page-hero.hero-anim .container > *:nth-child(2),
html.js-anim .article-hero.hero-anim > *:nth-child(2) { animation-delay: 0.20s; }
html.js-anim .hero.hero-anim .hero__copy > *:nth-child(3),
html.js-anim .page-hero.hero-anim .container > *:nth-child(3),
html.js-anim .article-hero.hero-anim > *:nth-child(3) { animation-delay: 0.32s; }
html.js-anim .hero.hero-anim .hero__copy > *:nth-child(n+4),
html.js-anim .article-hero.hero-anim > *:nth-child(n+4) { animation-delay: 0.44s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Photo + disc settle in after the copy, with a soft scale */
html.js-anim .hero__media { opacity: 0; }
html.js-anim .hero.hero-anim .hero__media {
  animation: heroMediaIn 0.9s var(--ease) 0.28s both;
}
@keyframes heroMediaIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Ongoing low-amplitude drift on the gradient panel — keeps the
   "color flow" alive without being distracting. */
.hero__panel {
  background-size: auto, 130% 130%, auto;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-position: 0% 0%, 0% 50%, 0% 0%; }
  to   { background-position: 0% 0%, 100% 50%, 0% 0%; }
}

/* ---------- Mobile nav open/close animation ---------- */
@media (max-width: 860px) {
  .nav__menu {
    display: flex !important;        /* keep in flow so it can animate */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform var(--dur-fast) var(--ease),
      opacity var(--dur-fast) var(--ease),
      visibility 0s linear var(--dur-fast);
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
      transform var(--dur-fast) var(--ease),
      opacity var(--dur-fast) var(--ease),
      visibility 0s;
  }
  /* stagger menu items as they appear */
  .nav__menu.is-open .nav__links li,
  .nav__menu.is-open .nav__cta {
    animation: menuItemIn var(--dur-fast) var(--ease) both;
  }
  .nav__menu.is-open .nav__links li:nth-child(1) { animation-delay: 0.04s; }
  .nav__menu.is-open .nav__links li:nth-child(2) { animation-delay: 0.09s; }
  .nav__menu.is-open .nav__links li:nth-child(3) { animation-delay: 0.14s; }
  .nav__menu.is-open .nav__links li:nth-child(4) { animation-delay: 0.19s; }
  .nav__menu.is-open .nav__cta { animation-delay: 0.24s; }
  @keyframes menuItemIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Scroll-to-top button ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(26, 59, 49, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--forest); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Focus states ---------- */
a:focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible,
.to-top:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Reduced motion — gate ALL non-essential motion.
   Reveal elements remain fully visible (fail-open); only the
   animation is removed.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.js-anim .hero__copy > *,
  html.js-anim .hero__media,
  html.js-anim .page-hero .container > *,
  html.js-anim .article-hero > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__panel, .page-hero { animation: none !important; }
  .nav__menu,
  .nav__menu.is-open .nav__links li,
  .nav__menu.is-open .nav__cta { animation: none !important; transition: opacity 0.01s, visibility 0s !important; }
  .card:hover, .post:hover, .article-card:hover, .quote:hover,
  .feature-list li:hover, .btn:hover, .to-top:hover { transform: none !important; }
  .article-card:hover .article-card__thumb,
  .service-detail__banner:hover, .about-bio__photo:hover, .article-hero__img:hover { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   MICRO-POLISH — type-driven finishing layer
   ============================================================ */

/* Card hover: deeper lift already set in motion layer; add a soft
   green-tinted glow shadow specific to service cards. */
.card:hover {
  box-shadow:
    0 22px 48px rgba(var(--forest-rgb), 0.20),
    0 0 0 1px rgba(var(--green-rgb), 0.22),
    0 10px 28px rgba(var(--green-rgb), 0.16);
}

/* Animated underline reveal on inline prose / content links
   (excludes nav — handled separately — and buttons/structural links). */
.prose a,
.hero__sub a,
.final-cta a:not(.btn),
.footer__links a {
  position: relative;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.prose a:hover,
.hero__sub a:hover,
.final-cta a:not(.btn):hover,
.footer__links a:hover {
  background-size: 100% 2px;
  text-decoration: none;
}
.footer__links a {
  background-image: linear-gradient(var(--mist), var(--mist));
  font-weight: 600;
}

/* Button micro-motion refinement (subtle scale layered on the lift) */
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn--primary:hover {
  box-shadow: 0 10px 24px rgba(var(--green-rgb), 0.32);
}

/* Recognition badge — align with kicker treatment, add soft ring */
.recognition__badge {
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  box-shadow: 0 6px 18px rgba(var(--green-rgb), 0.30);
}

/* Refined focus-visible ring (green, offset, never harsh) */
a:focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible,
.to-top:focus-visible,
.card__link:focus-visible,
.article-card__link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Refined custom scrollbar (WebKit) */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--mist); }
  ::-webkit-scrollbar-thumb {
    background: rgba(var(--green-rgb), 0.55);
    border: 3px solid var(--mist);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--green); }
}
html { scrollbar-color: rgba(var(--green-rgb), 0.6) var(--mist); scrollbar-width: thin; }

/* Reduced-motion: neutralize the added micro-motions */
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none !important; }
  .card:hover::before { transform: scaleX(0.42) !important; }
  .prose a, .hero__sub a, .final-cta a:not(.btn), .footer__links a { transition: none !important; }
}

/* ============================================================
   Fail-open fallback: if JS does NOT run, .js-anim is never
   added to <html>, so the .reveal hide rules above never apply
   and every block renders at full opacity. Nothing to do here
   except guarantee no orphaned hidden state.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
