/* ==========================================================================
   Future Forest site styles, v1 (Sage Leaf redesign, Nov 2026)
   Tokens and component values come from design-handoff/tokens.css and
   DESIGN-SYSTEM.md. Bump the filename (ff.v2.css) when changing it so
   browsers and Netlify's CDN don't serve a stale copy.
   ========================================================================== */

/* ---- Font: Archivo variable, self-hosted (keeps the wdth axis) --------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ff-ink: #0d0d0d;
  --ff-white: #ffffff;
  --ff-sage: #8fa57a;
  --ff-sage-deep: #73895f;
  --ff-paper: #f5f5f3;
  --ff-ring: #efefec;
  --ff-gray-900: #333333;
  --ff-gray-700: #4a4a4a;
  --ff-gray-600: #5a5a5a;
  --ff-gray-400: #a3a3a3;
  --ff-gray-200: #d6d6d6;
  --ff-gray-100: #e2e2e2;

  --ff-font: "Archivo", Helvetica, Arial, sans-serif;
  --ff-fs-hero: clamp(56px, 9vw, 128px);
  --ff-fs-hero-xl: clamp(56px, 10vw, 148px);
  --ff-fs-hero-form: clamp(44px, 6vw, 72px);
  --ff-fs-section: clamp(44px, 5.6vw, 80px);
  --ff-fs-service: clamp(48px, 7.8vw, 112px);
  --ff-fs-figure: clamp(80px, 8.5vw, 124px);
  --ff-fs-price: clamp(44px, 3.9vw, 56px);
  --ff-fs-sub: clamp(24px, 2.2vw, 32px);
  --ff-fs-quote: clamp(26px, 2.8vw, 40px);

  --ff-max: 1440px;
  --ff-gutter: clamp(20px, 4vw, 56px);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ff-white); color: var(--ff-ink); font-family: var(--ff-font); font-size: 18px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--ff-ink); }
a:hover { color: var(--ff-gray-600); }
h1, h2, h3, summary, blockquote { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ff-sage); outline-offset: 2px; }
.ff-on-sage :focus-visible { outline-color: var(--ff-ink); }
.ff-on-sage .ff-dot .lf-a { fill: var(--ff-gray-600); }
.ff-on-sage .ff-dot .lf-b { fill: var(--ff-ink); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.ff-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ff-ink); color: var(--ff-white); padding: 12px 16px; font-weight: 600; }
.ff-skip:focus { left: 8px; top: 8px; color: var(--ff-white); }
.ff-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Utilities ---------------------------------------------------------- */
.ff-w { max-width: var(--ff-max); margin: 0 auto; padding-left: var(--ff-gutter); padding-right: var(--ff-gutter); }
.ff-x { font-stretch: 112%; font-weight: 800; letter-spacing: -0.045em; }
.ff-num { font-variant-numeric: lining-nums tabular-nums; }
.ff-dot { display: inline-block; width: 0.21em; height: 0.21em; margin-left: 0.1em; margin-right: 0.04em; vertical-align: baseline; }
.ff-q-open { display: block; height: 0.62em; width: auto; margin-bottom: 0.28em; }
.ff-q-close { display: inline-block; height: 0.5em; width: auto; margin-left: 0.14em; vertical-align: 0.3em; transform: rotate(180deg); }
.ff-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-gray-600); }

/* ---- Tree rings (white sections only) ----------------------------------- */
.ff-logwrap { position: relative; overflow: hidden; }
.ff-logwrap > *:not(.ff-log) { position: relative; z-index: 1; }
.ff-log { position: absolute; right: 0; bottom: 0; width: 1440px; height: 640px; max-width: none; pointer-events: none; z-index: 0; object-fit: cover; object-position: right bottom; }
.ff-log-top { top: 0; bottom: auto; transform: scaleY(-1); }

/* ---- Buttons ------------------------------------------------------------ */
.ff-btn { display: inline-block; padding: 18px 26px; font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; }
.ff-btn--ink, .ff-btn--ink:hover { background: var(--ff-ink); color: var(--ff-white); }
.ff-btn--sage, .ff-btn--sage:hover { background: var(--ff-sage); color: var(--ff-ink); }
.ff-btn--white, .ff-btn--white:hover { background: var(--ff-white); color: var(--ff-ink); }
.ff-btn--outline, .ff-btn--outline:hover { background: transparent; color: var(--ff-ink); border: 2px solid var(--ff-ink); padding: 16px 24px; }
.ff-btn--outline-light, .ff-btn--outline-light:hover { background: transparent; color: var(--ff-white); border: 2px solid var(--ff-white); padding: 16px 24px; }
.ff-btn--nav { padding: 9px 14px; font-size: 13px; white-space: nowrap; }

/* ---- Header ------------------------------------------------------------- */
.ff-header { position: relative; z-index: 30; background: var(--ff-white); }
.ff-header__bar { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.ff-header__logo img { height: 22px; width: auto; display: block; }
.ff-header__nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 500; }
.ff-navlinks { display: flex; gap: 22px; align-items: center; }
.ff-navlinks a { white-space: nowrap; text-decoration: none; }
.ff-navlinks > a { padding: 10px 0; }
.ff-navlinks a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.ff-dd { position: relative; }
.ff-dd > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.ff-dd .ff-menu { display: none; position: absolute; top: 100%; left: -18px; padding-top: 10px; z-index: 20; }
.ff-dd:hover .ff-menu, .ff-dd:focus-within .ff-menu { display: block; }
.ff-menu-inner { background: var(--ff-white); border: 2px solid var(--ff-ink); min-width: 250px; display: flex; flex-direction: column; }
.ff-menu-inner a { padding: 13px 18px; font-weight: 500; border-top: 1px solid var(--ff-gray-100); }
.ff-menu-inner a:first-child { border-top: 0; }
.ff-menu-inner a:hover { background: var(--ff-sage); color: var(--ff-ink); }

.ff-ham { display: none; width: 44px; height: 40px; padding: 0; border: 2px solid var(--ff-ink); background: var(--ff-white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.ff-ham span { display: block; width: 18px; height: 2px; background: var(--ff-ink); transition: transform .2s ease, opacity .2s ease; }
.ff-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ff-ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ff-ham[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ff-mobile { border-top: 2px solid var(--ff-ink); border-bottom: 2px solid var(--ff-ink); background: var(--ff-white); padding-top: 8px; padding-bottom: 28px; }
.ff-mobile[hidden] { display: none; }
.ff-mobile__group { border-bottom: 1px solid var(--ff-gray-100); padding: 16px 0; }
.ff-mobile__group:last-of-type { border-bottom: 0; }
.ff-mobile__label { display: block; margin-bottom: 6px; }
.ff-mobile a { display: block; padding: 8px 0; font-size: 17px; font-weight: 500; text-decoration: none; }
.ff-mobile .ff-btn { display: inline-block; margin-top: 16px; padding: 16px 22px; font-weight: 600; }

@media (max-width: 1080px) {
  .ff-navlinks { gap: 16px; }
  .ff-header__nav { gap: 16px; }
}
@media (max-width: 900px) {
  .ff-navlinks { display: none; }
  .ff-ham { display: inline-flex; }
  .ff-header__nav { gap: 12px; }
}
@media (max-width: 380px) {
  .ff-header__nav .ff-btn--nav { display: none; }
}

/* ---- Logo strip ("Trusted by") ------------------------------------------ */
.ff-logos { border-top: 2px solid var(--ff-ink); border-bottom: 2px solid var(--ff-ink); }
.ff-logos__inner { padding-top: 36px; padding-bottom: 36px; }
.ff-logos__label { margin-bottom: 20px; }
.ff-logos--open { border-bottom: 0; }
.ff-logos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ff-logos__cell { height: 88px; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.ff-logos__cell--tall img { max-height: 64px !important; }
.ff-logos__cell img { max-height: 34px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; }
@media (max-width: 560px) {
  .ff-logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-logos__cell { height: 72px; padding: 0 8px; }
  .ff-logos__cell img { max-height: 28px; }
  .ff-logos__cell--tall img { max-height: 52px !important; }
}

/* ---- Service rows (dark): row turns sage on hover ----------------------- */
.ff-svc { transition: background-color .2s ease, color .2s ease; }
@media (hover: hover) {
  .ff-svc:hover { background: var(--ff-sage); color: var(--ff-ink); }
  .ff-svc:hover .ff-svc-desc { color: var(--ff-ink) !important; }
  .ff-svc:hover .lf-a { fill: var(--ff-gray-600); }
  .ff-svc:hover .lf-b { fill: var(--ff-ink); }
}

/* ---- Cards (resources) -------------------------------------------------- */
.ff-card { background: var(--ff-white); border: 2px solid var(--ff-ink); padding: 32px; display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ff-ink); transition: transform .15s ease, box-shadow .15s ease; }
.ff-card:hover { color: var(--ff-ink); box-shadow: 8px 8px 0 var(--ff-ink); transform: translate(-4px, -4px); }

/* ---- Forms -------------------------------------------------------------- */
.ff-field input, .ff-field textarea, .ff-field select { border: 2px solid var(--ff-ink); border-radius: 0; padding: 14px; font: inherit; font-size: 16px; background: var(--ff-white); color: var(--ff-ink); width: 100%; }

/* ---- Footer ------------------------------------------------------------- */
.ff-foot { background: var(--ff-ink); color: var(--ff-white); }
.ff-foot a { color: var(--ff-white); }
.ff-foot a:hover { color: var(--ff-gray-200); }
.ff-foot a.ff-btn--white, .ff-foot a.ff-btn--white:hover { color: var(--ff-ink); }
.ff-foot a.ff-btn--outline-light:hover { color: var(--ff-white); }
.ff-foot__inner { padding-top: 96px; padding-bottom: 40px; }
.ff-foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px; }
.ff-foot__brand { flex: 1 1 420px; max-width: 560px; }
.ff-foot__brand img { height: 22px; width: auto; display: block; }
.ff-foot__blurb { margin: 28px 0 0; font-size: 18px; line-height: 1.5; color: var(--ff-gray-200); }
.ff-foot__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ff-foot__btns .ff-btn--white { padding: 16px 22px; font-size: 16px; }
.ff-foot__btns .ff-btn--outline-light { padding: 14px 20px; font-size: 16px; }
.ff-foot__links { flex: 0 1 220px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.ff-foot__links a { text-decoration: none; }
.ff-foot__nl { flex: 1 1 360px; max-width: 440px; }
.ff-foot__nl h3 { margin: 0; font-size: var(--ff-fs-sub); line-height: 1.05; letter-spacing: -0.03em; }
.ff-foot__nl > p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--ff-gray-200); }
.ff-foot .nl-form { margin-top: 24px; }
.ff-foot .nl-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ff-foot .nl-form__row { display: flex; gap: 12px; align-items: flex-end; }
.ff-foot .nl-form__label { flex: 1; font-size: 13px; color: var(--ff-gray-400); }
.ff-foot input[type=email] { display: block; border: 0; border-bottom: 2px solid var(--ff-white); background: transparent; color: var(--ff-white); font: inherit; font-size: 17px; padding: 12px 0; width: 100%; border-radius: 0; }
.ff-foot input[type=email]::placeholder { color: var(--ff-gray-400); }
.ff-foot .nl-form__submit { background: var(--ff-white); color: var(--ff-ink); border: 0; border-radius: 0; padding: 14px 18px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.ff-foot .nl-form__submit:disabled { opacity: .6; cursor: default; }
.ff-foot .nl-form__msg { margin: 14px 0 0; font-size: 15px; color: var(--ff-gray-200); }
.ff-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 88px; padding-top: 24px; border-top: 1px solid var(--ff-gray-900); font-size: 14px; color: var(--ff-gray-400); }
.ff-foot__legal a { color: var(--ff-gray-400); }

/* ---- Tool / guide pages: hero beside a form --------------------------- */
.ff-tool-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); gap: 56px; align-items: start; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 96px; }
.ff-tool-hero h1 { margin: 0; font-size: var(--ff-fs-hero-form); line-height: 0.92; overflow-wrap: break-word; }
.ff-tool-hero__lead { margin: 36px 0 0; max-width: 620px; font-size: 18px; line-height: 1.45; color: var(--ff-gray-600); }
.ff-tool-hero__note { margin: 18px 0 0; max-width: 620px; font-size: 18px; line-height: 1.45; }
.ff-formcard { background: var(--ff-ink); color: var(--ff-white); padding: 36px; }
.ff-formcard form { display: flex; flex-direction: column; gap: 16px; }
.ff-formcard h2 { margin: 0 0 8px; font-size: var(--ff-fs-sub); line-height: 1.05; letter-spacing: -0.03em; }
.ff-formcard__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ff-formcard label.ff-formcard__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ff-formcard input[type=text], .ff-formcard input[type=email] { width: 100%; border: 2px solid var(--ff-ink); border-radius: 0; padding: 14px; font: inherit; font-size: 16px; background: var(--ff-white); color: var(--ff-ink); }
.ff-formcard input::placeholder { color: var(--ff-gray-400); }
.ff-formcard input:focus-visible, .ff-formcard button:focus-visible { outline: 3px solid var(--ff-sage); outline-offset: 2px; }
.ff-formcard__check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ff-gray-200); }
.ff-formcard__check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ff-sage); flex: none; }
.ff-formcard__check strong { color: var(--ff-white); }
.ff-formcard button[type=submit] { margin-top: 8px; background: var(--ff-sage); color: var(--ff-ink); border: 0; border-radius: 0; padding: 18px 24px; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; text-align: left; }
.ff-formcard__error { display: none; margin: 16px 0 0; font-size: 15px; color: var(--ff-gray-200); }
.ff-formcard__error a { color: var(--ff-white); }
.ff-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ff-perks > div { border-top: 2px solid var(--ff-ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.ff-perks p { margin: 0; font-size: 18px; line-height: 1.45; }
@media (max-width: 960px) {
  .ff-tool-hero, .ff-perks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .ff-formcard { padding: 28px 20px; }
  .ff-formcard__pair { grid-template-columns: 1fr; }
}

/* ---- Thank-you / confirmation pages ------------------------------------ */
.ff-confirm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 56px; align-items: start; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(64px, 7vw, 104px); }
.ff-confirm h1 { margin: 0; font-size: var(--ff-fs-hero-form); line-height: 0.92; }
.ff-confirm__note { margin: 28px 0 32px; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--ff-gray-600); }
.ff-confirm__side { border-top: 2px solid var(--ff-ink); padding-top: 24px; }
.ff-confirm__side h2 { margin: 0 0 14px; font-size: var(--ff-fs-sub); line-height: 1.05; letter-spacing: -0.03em; }
.ff-confirm__side p { margin: 0 0 24px; font-size: 18px; line-height: 1.5; }
@media (max-width: 900px) { .ff-confirm { grid-template-columns: 1fr; } }

/* ---- Layout helpers used by the mockup markup --------------------------- */
.ff-grid-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 56px; }
.ff-grid-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; }
.ff-case-row { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 16px 56px; align-items: start; border-top: 2px solid var(--ff-ink); padding: 40px 0; text-decoration: none; color: var(--ff-ink); }
.ff-case-row:last-child { border-bottom: 2px solid var(--ff-ink); }

@media (max-width: 900px) {
  .ff-stack-900 { grid-template-columns: 1fr !important; }
  .ff-svc-row { grid-template-columns: 1fr !important; }
  .ff-price-row { grid-template-columns: 1fr !important; }
  .ff-steps { grid-template-columns: 1fr !important; }
  .ff-case-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ff-svc-row h3 { white-space: normal !important; }
}

/* ---- Page layouts from the inner-page mockups --------------------------- */
.ff-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ff-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ff-touch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.ff-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ff-res .ff-card { min-height: 440px; }
.ff-incl { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.ff-incl--1 { grid-template-columns: minmax(0, 1fr) !important; }
.ff-incl--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ff-incl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ff-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
@media (max-width: 1100px) { .ff-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .ff-pair { grid-template-columns: 1fr !important; }
  .ff-split > div { border-right: 0 !important; padding: 36px 0 !important; }
  .ff-split > div + div { border-top: 2px solid var(--ff-ink); }
}
@media (max-width: 1000px) {
  .ff-roles, .ff-touch { grid-template-columns: 1fr; }
  .ff-incl { grid-template-columns: 1fr !important; }
  .ff-incl > div + div { border-top: 2px solid var(--ff-ink); }
}
@media (max-width: 960px) { .ff-res { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ff-team { grid-template-columns: 1fr; } }

/* ---- Team photos (link must be absolutely positioned or the crop breaks) */
.ff-photo { position: relative; overflow: hidden; background: var(--ff-paper); }
.ff-photo a, .ff-photo img { position: absolute; inset: 0; }
.ff-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Careers: job description dialogs ---------------------------------- */
.ff-linkbtn { background: none; border: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.ff-linkbtn:hover { text-decoration: underline; }
.ff-form-success { margin: 0; padding: 20px; border: 2px solid var(--ff-ink); background: var(--ff-paper); font-size: 18px; }
.ff-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(13, 13, 13, 0.6); padding: 24px; overflow-y: auto; }
.ff-modal.open { display: flex; align-items: flex-start; justify-content: center; }
.ff-modal__box { position: relative; background: var(--ff-white); border: 2px solid var(--ff-ink); max-width: 760px; width: 100%; margin: 40px 0; padding: clamp(28px, 4vw, 48px); }
.ff-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ff-white); border: 2px solid var(--ff-ink); color: var(--ff-ink); cursor: pointer; }
.ff-modal__close:hover { background: var(--ff-sage); }
.ff-modal__tag { display: inline-block; margin: 0 0 16px; background: var(--ff-sage); padding: 4px 10px; font-size: 13px; font-weight: 600; }
.ff-modal h2 { margin: 0 48px 12px 0; font-size: var(--ff-fs-sub); line-height: 1.05; letter-spacing: -0.03em; }
.ff-modal__sub { color: var(--ff-gray-600); font-weight: 400; font-stretch: 100%; letter-spacing: 0; font-size: 0.6em; }
.ff-modal__meta { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 2px solid var(--ff-ink); font-size: 15px; color: var(--ff-gray-600); }
.ff-modal h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 700; }
.ff-modal p, .ff-modal li { font-size: 17px; line-height: 1.55; }
.ff-modal ul { padding-left: 20px; margin: 0; }
.ff-modal li + li { margin-top: 6px; }
.ff-modal__note { margin-top: 24px; padding: 16px; background: var(--ff-paper); }
.ff-modal__apply { margin-top: 24px; }
