/* =====================================================================
   Sunroom Field Notes - Cocoa & Sage Stillness
   Palette: primary #5C4433 · secondary #A8826B · accent #7C9473
            bg #F6EBE2 · fg #33271E
   Fonts: Nunito (display) · Sofia Sans (body) · PT Mono (mono)
   ONE accent (sage). ONE radius scale (~15px). Hairlines + whitespace.
   ===================================================================== */

:root {
  --primary: #5C4433;
  --primary-dark: #463327;
  --secondary: #A8826B;
  --accent: #7C9473;          /* THE locked accent: underlines, rules, focus, tags, active state */
  --accent-dark: #566E51;     /* AA-safe sage for link/anchor TEXT (4.5:1+ on bg & surface) */
  --accent-deep: #4f6549;     /* CTA fill: white text passes AA (5.44:1) */
  --accent-deeper: #41553c;   /* CTA hover fill */
  --bg: #F6EBE2;
  --bg-warm: #F1E2D5;
  --surface: #FCF6EF;
  --fg: #33271E;
  --muted: #6E5B4C;
  --line: #E2D2C2;
  --line-soft: #EADCCF;
  --white: #ffffff;

  --r: 15px;            /* single radius */
  --r-sm: 11px;
  --r-pill: 999px;

  --maxw: 1140px;
  --measure: 65ch;

  --space: clamp(4.5rem, 9vw, 7.5rem);

  --ff-display: "Nunito", system-ui, sans-serif;
  --ff-body: "Sofia Sans", system-ui, sans-serif;
  --ff-mono: "PT Mono", ui-monospace, monospace;

  --shadow: 0 1px 2px rgba(51,39,30,.05);
  --shadow-soft: 0 18px 48px -28px rgba(70,51,39,.32);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1.02rem, .55vw + .9rem, 1.14rem);
  line-height: 1.72;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1,h2,h3,h4 { font-family: var(--ff-display); color: var(--primary); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
ul,ol { margin: 0 0 1.1em; padding-left: 1.2em; }

/* ---------- background gradient that shifts with scroll ---------- */
.bg-shift {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -8%, rgba(168,130,107,.30), transparent 55%),
    radial-gradient(110% 80% at 92% 0%, rgba(124,148,115,.20), transparent 50%),
    radial-gradient(130% 100% at 50% 120%, rgba(92,68,51,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-warm));
  background-attachment: fixed;
  transform: translateY(calc(var(--scrollp, 0) * -4%));
  transition: transform .1s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .bg-shift { transform: none; } }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.narrow { max-width: 760px; }
.section { padding-block: var(--space); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(252,246,239,.6)12%, rgba(252,246,239,.6) 88%, transparent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip:focus { left: 0; }

/* ---------- focus ---------- */
:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(124,148,115,.28);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,235,226,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(70,51,39,.5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--ff-display); font-weight: 900; color: var(--primary); font-size: 1.1rem; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--accent); }
.brand-mark svg { width: 19px; height: 19px; }
.site-nav { display: flex; gap: .35rem; margin-left: auto; }
.site-nav a {
  position: relative; text-decoration: none; color: var(--fg);
  font-weight: 600; font-size: .98rem; padding: .5rem .8rem; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: .2rem; padding: .6rem clamp(1.1rem,4vw,2.4rem) 1.2rem; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { text-decoration: none; color: var(--fg); font-weight: 600; padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: .6rem; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-display); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  padding: .8rem 1.4rem; border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .18s, background .2s;
}
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: 0 12px 26px -16px rgba(65,85,60,.9); }
.btn-primary:hover { background: var(--accent-deeper); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(65,85,60,.95); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- kicker / eyebrow ---------- */
.kicker {
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 6vw, 5.5rem); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 900; letter-spacing: -.025em; margin-bottom: .5em; }
.hero-title em { font-style: italic; color: var(--accent-dark); font-weight: 800; }
.hero-sub { font-size: clamp(1.1rem, 1.4vw, 1.28rem); color: var(--muted); max-width: 46ch; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-note { font-size: .92rem; color: var(--muted); margin: 0; }
.hero-media { position: relative; }
.hero-chip {
  position: absolute; left: -8px; bottom: -18px;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line);
  padding: .6rem 1rem; border-radius: var(--r-pill);
  font-family: var(--ff-display); font-weight: 700; font-size: .9rem; color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.chip-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--accent-dark); }
.chip-icon svg { width: 18px; height: 18px; }

/* ---------- aspect-ratio media ---------- */
.ar-box { display: block; position: relative; width: 100%; aspect-ratio: 1024 / 585; overflow: hidden; border-radius: var(--r); background: var(--bg-warm); box-shadow: var(--shadow-soft); }
.ar-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-hero { aspect-ratio: 16 / 10; }
.ar-portrait { aspect-ratio: 4 / 3; }

/* ---------- stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: rgba(252,246,239,.5); }
.stats-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: .2rem; min-width: 130px; }
.stat-value { font-family: var(--ff-display); font-weight: 900; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--primary); }
.stat-label { font-size: .9rem; color: var(--muted); }
.hairline { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- section heads ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-lede { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- post cards ---------- */
.feature-lead { margin-bottom: 2.4rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; gap: 1rem; }
.post-card-media { display: block; text-decoration: none; }
.post-card-media .ar-box { transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover .post-card-media .ar-box { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(70,51,39,.4); }
.post-card-body { display: flex; flex-direction: column; gap: .55rem; }
.post-tag { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); margin: 0; }
.post-card h3 { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.post-card h3 a { color: var(--primary); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.post-card h3 a:hover { background-size: 100% 2px; }
.post-excerpt { color: var(--muted); margin: 0; font-size: 1rem; }
.post-foot { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); margin: 0; font-family: var(--ff-mono); }
.post-foot time { color: var(--primary); }
.dot { opacity: .6; }

/* feature card = horizontal */
.post-card--feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.post-card--feature .post-card h3, .post-card--feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.post-card--feature .post-excerpt { font-size: 1.08rem; }
.post-card--feature .ar-box { aspect-ratio: 4 / 3; }

/* ---------- pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.pillar { padding: 1.8rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pillar-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(124,148,115,.16); color: var(--accent-deep); margin-bottom: 1.1rem; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.pillar-label { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 0 0 .9rem; }
.pillar p { color: var(--muted); margin-bottom: 1rem; }
.pill-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-points li { font-size: .84rem; font-weight: 600; color: var(--primary); background: var(--bg-warm); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: var(--r-pill); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.split-text > .btn { margin-top: .6rem; }
.approach-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.approach-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.approach-list li:first-child { border-top: 0; padding-top: 0; }
.approach-list h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.approach-list p { color: var(--muted); margin: 0; }
.approach-list--wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.approach-list--wide li { border-top: 0; border-left: 1px solid var(--line); padding: .2rem 0 .2rem 1.5rem; }

/* ---------- quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2rem); }
.quote-card { position: relative; padding: 2rem 1.8rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; }
.quote-mark { color: var(--accent); width: 30px; height: 30px; margin-bottom: .8rem; }
.quote-mark svg { width: 30px; height: 30px; }
.quote-card blockquote { margin: 0 0 1.3rem; font-size: 1.06rem; line-height: 1.6; color: var(--fg); flex: 1; }
.quote-card figcaption { display: flex; flex-direction: column; gap: .15rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.quote-name { font-family: var(--ff-display); font-weight: 800; color: var(--primary); }
.quote-meta { font-size: .85rem; color: var(--muted); }

/* ---------- resources / blogroll ---------- */
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.resource-list > li { display: flex; flex-direction: column; gap: .6rem; }
.resource {
  display: flex; flex-direction: column; gap: .25rem;
  text-decoration: none; padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.resource:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.resource-anchor { font-family: var(--ff-display); font-weight: 800; color: var(--accent-dark); font-size: 1.1rem; }
.resource:hover .resource-anchor { color: var(--accent-deep); }
.resource-host { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); }
.resource-note { font-size: .9rem; color: var(--muted); margin: 0; }
.resource-note a { color: var(--accent-dark); }
.resource--inline { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* ---------- values / team ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.value-card { padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.value-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.team-card { padding: 1.9rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--primary); color: var(--accent); font-family: var(--ff-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.team-card h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.team-role { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .9rem; }
.team-card p { color: var(--muted); margin: 0; }

/* ---------- page hero ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero-inner h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.page-lede { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--muted); max-width: 60ch; }

/* ---------- services rows ---------- */
.service-list { display: flex; flex-direction: column; }
.service-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 1.5rem 2rem; align-items: start; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-num { font-family: var(--ff-mono); font-size: .9rem; color: var(--secondary); padding-top: .4rem; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(124,148,115,.16); color: var(--accent-deep); }
.service-icon svg { width: 26px; height: 26px; }
.service-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .4rem; }
.service-main p { color: var(--muted); margin: 0; max-width: 56ch; }
.service-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; min-width: 180px; }
.service-points li { font-size: .92rem; font-weight: 600; color: var(--primary); padding-left: 1.3rem; position: relative; }
.service-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- faq ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent-dark); font-weight: 400; transition: transform .25s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 2.5rem 1.4rem 0; }
.faq-body p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; box-shadow: var(--shadow-soft); }
.form-help { color: var(--muted); margin: 0 0 .3rem; font-size: .98rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-family: var(--ff-display); font-weight: 700; color: var(--primary); font-size: .98rem; }
.field input, .field textarea {
  font-family: var(--ff-body); font-size: 1.02rem; color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #a08c7c; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,148,115,.25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4593f; }
.form-thanks { margin: .3rem 0 0; padding: .9rem 1.1rem; background: rgba(124,148,115,.16); border: 1px solid var(--accent); border-radius: var(--r-sm); color: var(--accent-deep); font-weight: 600; }
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card { padding: 1.6rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.contact-card--quiet { background: var(--bg-warm); }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(124,148,115,.16); color: var(--accent-deep); margin-bottom: .9rem; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.contact-card p { color: var(--muted); margin: 0 0 .7rem; font-size: .98rem; }
.contact-link { font-family: var(--ff-display); font-weight: 800; color: var(--accent-dark); text-decoration: none; font-size: 1.05rem; }
.contact-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.hours { list-style: none; padding: 0; margin: 0 0 .8rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--primary); font-weight: 600; }
.hours span:last-child { color: var(--muted); }
.contact-meta { font-family: var(--ff-mono); font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- article ---------- */
.article-hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { font-family: var(--ff-mono); font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.crumbs a { color: var(--accent-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: .5rem; }
.article-lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.article-meta { font-family: var(--ff-mono); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.article-meta time { color: var(--primary); }
.article-cover { margin-top: 2rem; }
.article-cover .ar-box { aspect-ratio: 16 / 8; }

/* article body - capped measure, generous leading */
.article-body { max-width: var(--measure); margin-top: clamp(2rem, 4vw, 3rem); font-size: 1.1rem; line-height: 1.8; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body section > p, .article-body section > div { color: var(--fg); }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .6em; padding-top: .4em; }
.article-body h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 1.8em 0 .5em; color: var(--primary); }
.article-body a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.article-body a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
.article-body strong { color: var(--primary); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--accent-dark); }
.article-body img { border-radius: var(--r); margin: 1.6em 0; width: 100%; box-shadow: var(--shadow-soft); }
.article-body p:has(> img) { margin: 0; }
.article-body em { color: var(--primary); }
.article-body section { margin-top: 1.5em; }
.article-body section h2 { border-top: 1px solid var(--line); }
.article-body [itemprop="mainEntity"] { padding: 1.3em 0; border-bottom: 1px solid var(--line-soft); }
.article-body [itemprop="mainEntity"] h3 { margin: 0 0 .4em; font-size: 1.18rem; }
.article-body [itemprop="acceptedAnswer"] { color: var(--muted); }
.article-body [itemprop="text"] { color: var(--muted); }

/* hide imported TOC widget (we keep markup but tidy it) */
#ez-toc-container {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.6rem; margin: 0 0 2rem; font-size: .98rem;
}
.ez-toc-title { font-family: var(--ff-display); font-weight: 800; color: var(--primary); margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.ez-toc-title-toggle { display: none; }
#ez-toc-container nav ul { list-style: none; padding-left: 1rem; margin: .3rem 0; }
#ez-toc-container nav > ul { padding-left: 0; }
#ez-toc-container a { color: var(--accent-dark); text-decoration: none; line-height: 1.9; }
#ez-toc-container a:hover { text-decoration: underline; }

.article-source { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.source-kicker { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 0 0 .8rem; }

/* ---------- cta band ---------- */
.cta-band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--r); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(124,148,115,.5), transparent 70%); pointer-events: none; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-inner p { color: rgba(255,255,255,.85); margin: 0; max-width: 50ch; }
.cta-inner .btn-primary { background: #fff; color: var(--primary); }
.cta-inner .btn-primary:hover { background: var(--bg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(252,246,239,.55); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(2.6rem, 5vw, 3.6rem) 2rem; }
.footer-brand p { color: var(--muted); margin: 1rem 0 0; max-width: 36ch; }
.footer-meta { font-size: .9rem; }
.footer-col h2 { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 0 0 1rem; }
.footer-col a { display: block; color: var(--fg); text-decoration: none; padding: .3rem 0; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- scroll reveal (motivated, spring-eased, masked scale-in) ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px) scale(.965);
  clip-path: inset(0 0 6% 0 round 12px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), clip-path .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .btn, .post-card .ar-box, .resource { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-chip { position: static; margin-top: 1rem; display: inline-flex; }
  .post-card--feature { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .resource-list { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .approach-list--wide { grid-template-columns: 1fr; }
  .approach-list--wide li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-block: 1.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex; }
  .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: auto 1fr; gap: 1rem 1.2rem; }
  .service-num { grid-row: 1; }
  .service-icon { display: none; }
  .service-points { grid-column: 1 / -1; min-width: 0; }
  .stats-row { gap: 1.4rem 1rem; }
  .hairline { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-base { flex-direction: column; gap: .4rem; }
}
