/* Flintridge Intelligence — site styles (v01) */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  --ink: #1B2620;        /* green-charcoal: text, logo */
  --paper: #ECEFEA;      /* pale lichen: page background */
  --tint: #E1E6E0;       /* alternate section background */
  --pine: #2D5B4B;       /* accent: buttons, numbers, links */
  --pine-dark: #224537;
  --ridge: #B4C0B7;      /* decorative ridgelines */
  --rule: #C3CBC4;       /* hairlines */
  --muted: #4A5750;      /* secondary text */
  --sans: "Sora", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.65;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; font-family: var(--sans); font-size: .9rem; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand {
  position: relative; z-index: 60; display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: auto; color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ridge); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--pine); }
.site-nav a.nav-cta { border: 1.5px solid var(--ink); padding: 8px 16px; border-radius: 2px; }
.site-nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.site-nav a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600;
  background: var(--pine); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 2px; transition: background .15s;
}
.button:hover { background: var(--pine-dark); color: #fff; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(190px, 19vw, 250px); }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 28px 0 36px; }
.hero .lede { max-width: 33em; }
.ridges {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(160px, 16vw, 230px); z-index: 1;
  pointer-events: none; border-bottom: 1.5px solid var(--pine);
}
.ridge { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.ridges polyline { fill: none; stroke-linejoin: miter; stroke-miterlimit: 6; }
.ridge-back polyline { stroke: var(--ridge); stroke-width: 1.25; opacity: .8; }
.ridge-front {
  position: absolute; bottom: -1px; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  height: 82%; width: auto; overflow: visible;
}
.ridge-front polyline { stroke: var(--pine); stroke-width: 2; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-flush { padding-top: 0; }
.page-head { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head-tight { padding-bottom: 32px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.prose { max-width: 38em; }
.emph { font-size: 1.3rem; line-height: 1.5; }
.h2-wide { max-width: 22ch; margin-bottom: 48px; }

.halves { display: grid; grid-template-columns: 1fr 1fr; }
.half { padding-right: 48px; }
.half + .half { padding: 0 0 0 48px; border-left: 1px solid var(--ink); }
.half h3 { margin-bottom: 14px; font-size: 1.35rem; }

.num { font-family: var(--sans); font-weight: 600; color: var(--pine); }
.offers { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.offers li { border-top: 1px solid var(--rule); }
.offers a {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 24px 0 28px;
  color: var(--ink); text-decoration: none;
}
.offers a .num { grid-row: span 2; font-size: 1.1rem; line-height: 1.6; }
.offers a strong { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.offers a:hover strong { text-decoration: underline; text-decoration-color: var(--pine); text-underline-offset: 4px; }
.more { margin-top: 28px; font-family: var(--sans); font-size: .98rem; font-weight: 500; }

/* Services */
.services { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 48px 0; border-top: 1px solid var(--rule); max-width: 900px; }
.service h2 { margin-bottom: 16px; }
.num-lg { font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.get { margin-top: 20px; padding: 14px 18px; background: var(--tint); border-left: 3px solid var(--pine); font-size: 1.02rem; }
.industries { list-style: none; padding: 0; margin: 20px 0 0; columns: 2; column-gap: 32px; }
.industries li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 1.02rem; }

/* Approach */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px;
  border: 1.5px solid var(--pine); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 600; color: var(--pine); background: var(--paper);
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; width: 1.5px; background: var(--rule); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 8px; }

/* About */
.bios { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 1px solid var(--rule); padding-top: 48px; }
.bio h2 { margin-bottom: 18px; }

/* Band */
.band { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 104px) 0; }
.band-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.band-mark { width: 64px; color: var(--paper); }
.band-line { font-family: var(--sans); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; margin: 0; }

/* Contact form */
.contact-form { display: grid; gap: 22px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--sans); font-size: .95rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: #F7F8F6;
  border: 1px solid #9AA59D; border-radius: 2px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
.field textarea { resize: vertical; min-height: 160px; }
.contact-form .button { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 24px; font-size: 1rem; color: var(--muted); }

/* Privacy */
.effective { margin-top: 20px; color: var(--muted); }
.policy h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.page-thanks { padding-bottom: clamp(96px, 14vw, 180px); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .ridge-front.drawing polyline { animation: draw 2.2s cubic-bezier(.45,.05,.25,1) .3s both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .ridge-front.drawing polyline { animation: none; }
  .ridge { will-change: auto; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle {
    display: grid; place-items: center; position: relative; z-index: 60;
    width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-toggle .icon-close { display: none; }
  .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55; background: var(--paper);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; overflow-y: auto;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .2s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 1px solid var(--rule); }
  .site-nav a, .site-nav a.nav-cta {
    display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
    padding: 18px 0; border: 0; border-radius: 0; background: none; color: var(--ink);
  }
  .site-nav a[aria-current="page"], .site-nav a.nav-cta[aria-current="page"] { color: var(--pine); background: none; }
  .menu-open { overflow: hidden; }

  .split, .halves, .bios { grid-template-columns: 1fr; }
  .split { gap: 20px; }
  .half { padding: 0 0 32px; }
  .half + .half { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .offers { grid-template-columns: 1fr; }
  .bios { gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 40px 0; }
  .num-lg { font-size: 2.2rem; }
  .industries { columns: 1; }
}
@media (max-width: 420px) {
  .brand span { font-size: .98rem; }
  .brand-mark { width: 34px; }
  body { font-size: 1.0625rem; }
}
