:root {
  --bg: #F3F1E7;
  --mist: #E6ECDD;
  --paper: #FBF8F3;
  --card: #FFFFFF;
  --ink: #1B2A20;
  --body: #3C4A3F;
  --muted: #4F5E52;
  --quiet: #5E6B60;
  --line: #D9DCCB;
  --pine: #1F3D2B;
  --moss: #3E6B43;
  --link: #2F5A3A;
  --ember: #B4431A;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: #1B3A25; }
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- Top nav: offerings with their framework inline ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 241, 231, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.logo { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo span { font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.offers { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 15px; }
.offers::-webkit-scrollbar { display: none; }
.offer { display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 4px; border-radius: 999px; transition: background .2s; }
.offer-name { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.offer-name:hover { background: #E1E9D7; color: var(--ink); }
.chev { color: #8A9688; font-size: 13px; padding: 0 2px; }
.dot { color: #B4BDAE; font-size: 13px; }
.sub { padding: 6px 5px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.sub:hover { color: var(--ink); text-decoration: underline; }
.offer.is-active { background: #E1E9D7; }
.offer.is-active .offer-name { background: var(--pine); color: var(--bg); }
.sub.is-active { color: var(--ink); font-weight: 600; }

/* ---------- Buttons and cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-dark { background: var(--pine); color: var(--bg); }
.btn-dark:hover { background: #163021; color: var(--bg); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.kicker { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
.kicker-ember { color: var(--ember); text-transform: none; letter-spacing: .02em; }
.eyebrow { margin: 0 0 18px; font: 500 14px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(var(--bg), var(--mist)); }
.hero .wrap { padding-top: 80px; padding-bottom: 24px; }
.hero h1 { max-width: 13em; font-weight: 800; font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -0.035em; }
.lede { margin: 26px 0 0; max-width: 36em; font-size: 20px; color: var(--body); }
.offer-cards { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 18px; }
.offer-card { flex: 1 1 320px; min-width: 0; display: block; padding: 24px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(31, 61, 43, .06), 0 8px 24px rgba(31, 61, 43, .07); transition: transform .2s, box-shadow .2s; }
.offer-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31, 61, 43, .08), 0 14px 32px rgba(31, 61, 43, .12); }
.card-head { display: flex; align-items: center; gap: 10px; font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; }
.offer-card p { margin: 10px 0 14px; color: var(--body); }
.path { font-size: 14px; color: var(--muted); }
.forest { display: block; width: 100%; height: 240px; }
.fires circle { animation: flicker 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fires circle:nth-of-type(2) { animation-delay: -1.1s; }
.fires circle:nth-of-type(3) { animation-delay: -2.0s; }
.fires circle:nth-of-type(4) { animation-delay: -0.6s; }
@keyframes flicker { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .fires circle { animation: none; } }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
.sec-kindling { background: var(--paper); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sec-head > div { max-width: 40em; }
.sec h2 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(38px, 5vw, 52px); line-height: 1; }
.sec-lede { margin: 16px 0 0; font-size: 19px; color: var(--body); }
.sub-head { margin: 48px 0 16px; font-weight: 700; font-size: 26px; }

/* Kindling map */
.spheres { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px; }
.sphere { flex: 1 1 320px; min-width: 0; padding: 24px; border-color: #E5E1D3; }
.sphere h3 { margin: 4px 0; font-weight: 700; font-size: 28px; }
.scope { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.areas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.areas li { display: flex; gap: 10px; align-items: center; color: var(--quiet); }
.areas li svg { flex: none; }
.areas li.lit { align-items: flex-start; color: var(--ink); }
.areas li.lit svg { margin-top: 3px; }
.areas li.lit b { display: block; font-weight: 600; }
.areas li.lit a { font-size: 15px; margin-right: 12px; }

/* Videos */
.videos { display: flex; flex-wrap: wrap; gap: 20px; }
.video { flex: 1 1 300px; min-width: 0; max-width: 520px; }
.thumb { aspect-ratio: 16 / 9; border-radius: 16px; border: 1.5px dashed #AEB8A6; background: #ECEFE3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--quiet); font-size: 15px; }
.video p { margin: 10px 0 0; color: var(--body); }
.steps { display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 280px; min-width: 0; padding: 22px; }
.step h4 { margin-top: 6px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.foot { background: var(--pine); color: #E8EEDF; }
.treeline { display: block; width: 100%; height: 60px; background: var(--bg); }
.foot-in { padding-top: 48px; padding-bottom: 48px; }
.foot h2 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); color: var(--bg); }
.foot p { margin: 12px 0 0; font-size: 19px; }
.foot p a { color: #F7B544; font-weight: 600; }
.foot-bar { margin-top: 48px; padding-top: 22px; border-top: 1px solid #36573F; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; }
.foot-bar a { color: #C3D0BF; }
.foot-bar a:hover { color: #FFFFFF; }
.foot-home { font-weight: 600; text-decoration: none; color: #E8EEDF !important; }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 640px) {
  html { scroll-padding-top: 120px; }
  .top-in { gap: 12px; padding: 0 16px; }
  .logo span { display: none; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 48px; }
  .sec { padding: 56px 0; }
  .btn-sm { padding: 0 12px; }
  /* Keep every offering in view on a phone: names stay in the top row, and the
     active offering's sections drop to a slim second row (filled by site.js). */
  .offers .chev, .offers .sub, .offers .dot { display: none; }
  .offer { padding-right: 4px; }
  .subbar:not(:empty) { display: flex; }
}
.subbar { display: none; gap: 4px 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 0 16px 10px 64px; font-size: 13px; }
.subbar::-webkit-scrollbar { display: none; }
.subbar a { padding: 4px 0; color: var(--muted); text-decoration: none; }
.subbar a.is-active { color: var(--ink); font-weight: 600; }
