/* =========================================================
   Forvyn — Process to System
   Brand tokens live here. Change colours and type in :root.
   ========================================================= */
:root {
  /* Colour */
  --ink: #10231D;          /* deep forest ink: text, dark sections */
  --ink-2: #1B3A30;        /* raised ink surfaces */
  --ink-soft: #4A5C54;     /* secondary text on paper */
  --paper: #F3EFE6;        /* warm paper background */
  --paper-2: #E9E3D5;      /* alternate paper band */
  --paper-3: #FBF9F4;      /* cards on paper */
  --line: rgba(16, 35, 29, .14);
  --line-light: rgba(243, 239, 230, .16);
  --accent: #E4572E;       /* signal vermilion: one sharp accent */
  --accent-ink: #B8401C;   /* accent for text on paper (AA contrast) */
  --mist: #A9BDB3;         /* muted text on ink */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 12px; color: var(--paper); }

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--mist); }
.section-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.section-lede { font-size: 1.12em; color: var(--ink-soft); max-width: 56ch; margin-top: 20px; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 15px/1.2 var(--font-sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2;
  display: none;
}
@media (min-width: 560px) { .brand-sub { display: inline-block; } }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 12px;
  font-size: 15px; text-decoration: none; color: var(--ink-soft);
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
}
@media (max-width: 960px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(56px, 10vh, 120px) 0 clamp(88px, 12vh, 140px);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: -10% 0 -10% 0; z-index: -1; color: var(--ink); will-change: transform; }
.hero-flow { width: 100%; height: 100%; }
.hero-grid { opacity: .07; }
.flow-line { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .35; stroke-dasharray: 2400; stroke-dashoffset: 0; }
.flow-line--2 { opacity: .18; }
.flow-nodes rect { fill: var(--ink); opacity: .55; }
.flow-nodes .node-accent { fill: var(--accent); opacity: 1; }
.hero::after { /* fade grid into text area */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, var(--paper) 30%, color-mix(in srgb, var(--paper) 40%, transparent) 75%, transparent);
}
.hero-inner { position: relative; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.hero-eyebrow .lock { font-weight: 500; }
.lock-bar { width: 1px; height: 14px; background: var(--accent); }
.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 360;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 13ch;
}
.hero-title em { color: var(--accent-ink); font-weight: 320; }
.hero-lede { max-width: 54ch; margin-top: clamp(24px, 3vw, 36px); font-size: 1.14em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: grid; gap: 18px; margin: clamp(48px, 7vw, 88px) 0 0; padding-top: 24px;
  border-top: 1px solid var(--line); max-width: 920px;
}
.hero-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.hero-facts dd { margin: 4px 0 0; font-size: 15.5px; }
@media (min-width: 720px) { .hero-facts { grid-template-columns: 1fr 1.2fr 1.6fr; gap: 32px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--accent); border-radius: 2px; }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ---------- What we do (pinned) ---------- */
.what { position: relative; background: var(--ink); color: var(--paper); }
.what .eyebrow { color: var(--mist); }
.what .section-title { max-width: 16ch; font-size: clamp(30px, 3.4vw, 46px); }
.pin-stage { padding: clamp(80px, 10vw, 120px) 0; }
.what-grid { display: grid; gap: 48px; align-items: center; }
.what-steps { margin-top: 36px; display: grid; gap: 22px; counter-reset: s; }
.what-steps li { position: relative; padding-left: 28px; border-left: 1px solid var(--line-light); transition: opacity .5s var(--ease), border-color .5s; }
.what-steps li::before {
  content: ""; position: absolute; left: -4px; top: .55em; width: 7px; height: 7px; background: var(--mist); transition: background .4s;
}
.what-steps h3 { font-family: var(--font-display); font-size: 1.35em; line-height: 1.2; margin-bottom: 6px; }
.what-steps p { color: var(--mist); margin: 0; max-width: 48ch; }

.what-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center;
  font-family: var(--font-mono); font-size: 12px;
}
.tile {
  position: absolute; width: 46%; padding: 12px 14px; line-height: 1.35;
  background: var(--ink-2); border: 1px solid var(--line-light); color: var(--paper);
  border-radius: 3px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform 1s var(--ease), left 1s var(--ease), top 1s var(--ease), background .6s, border-color .6s;
}
.k-new, .v-new { display: none; }
.what-visual[data-stage="2"] .k-old, .what-visual[data-stage="2"] .v-old { display: none; }
.what-visual[data-stage="2"] .k-new, .what-visual[data-stage="2"] .v-new { display: inline; }
.what-visual[data-stage="2"] .v-new { font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.tile-k { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
/* Stage 0: scattered */
.t1 { left: 2%;  top: 4%;  transform: rotate(-6deg); }
.t2 { left: 50%; top: 10%; transform: rotate(5deg); }
.t3 { left: 8%;  top: 36%; transform: rotate(3deg); }
.t4 { left: 52%; top: 42%; transform: rotate(-4deg); }
.t5 { left: 0%;  top: 68%; transform: rotate(-2deg); }
.t6 { left: 48%; top: 74%; transform: rotate(7deg); }
.system-frame {
  position: absolute; inset: 0; border: 1px dashed transparent; border-radius: 6px;
  transition: border-color .8s, background .8s;
}
.system-frame span {
  position: absolute; top: -10px; left: 16px; padding: 0 8px; background: var(--ink);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity .6s;
}
.stage-label { position: absolute; right: 0; bottom: -36px; margin: 0; display: flex; gap: 14px; color: var(--mist); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.stage-label .sl { opacity: .35; transition: opacity .4s, color .4s; }
.what-visual[data-stage="0"] .sl0, .what-visual[data-stage="1"] .sl1, .what-visual[data-stage="2"] .sl2 { opacity: 1; color: var(--paper); }

/* Stage 1: mapped — tiles straighten into a flow */
.what-visual[data-stage="1"] .tile { transform: none; }
.what-visual[data-stage="1"] .t1 { left: 0;   top: 6%; }
.what-visual[data-stage="1"] .t2 { left: 54%; top: 6%; }
.what-visual[data-stage="1"] .t3 { left: 0;   top: 38%; }
.what-visual[data-stage="1"] .t4 { left: 54%; top: 38%; }
.what-visual[data-stage="1"] .t5 { left: 0;   top: 70%; }
.what-visual[data-stage="1"] .t6 { left: 54%; top: 70%; }
.what-visual[data-stage="1"] .system-frame { border-color: var(--line-light); }

/* Stage 2: system — tiles lock into one structured frame */
.what-visual[data-stage="2"] .tile { transform: none; width: 44%; background: color-mix(in srgb, var(--paper) 7%, var(--ink)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: none; }
.what-visual[data-stage="2"] .t1 { left: 4%;  top: 8%; }
.what-visual[data-stage="2"] .t2 { left: 52%; top: 8%; }
.what-visual[data-stage="2"] .t3 { left: 4%;  top: 38%; }
.what-visual[data-stage="2"] .t4 { left: 52%; top: 38%; }
.what-visual[data-stage="2"] .t5 { left: 4%;  top: 68%; }
.what-visual[data-stage="2"] .t6 { left: 52%; top: 68%; }
.what-visual[data-stage="2"] .system-frame { border-color: var(--accent); border-style: solid; background: rgba(255,255,255,.02); }
.what-visual[data-stage="2"] .system-frame span { opacity: 1; }

.js .what-steps li { opacity: .38; }
.js .what-steps li.is-current { opacity: 1; }
.what-steps li.is-current::before { background: var(--accent); }
.what-steps li.is-current { border-left-color: var(--accent); }

@media (min-width: 900px) {
  .what-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  /* Pinned scroll moment (enabled by JS + motion OK) */
  .pin-on .what { height: 280vh; }
  .pin-on .pin-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 0; }
}
@media (max-width: 899px) {
  .what-visual { max-width: 420px; }
  .tile { font-size: 11px; padding: 10px; }
}

/* ---------- Services ---------- */
.services { padding: clamp(96px, 12vw, 160px) 0; }
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; gap: 20px; padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent-ink); }
.service h3 { font-family: var(--font-display); font-variation-settings: "opsz" 144; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
.service-lede { font-size: 1.1em; max-width: 60ch; margin-top: 16px; color: var(--ink-soft); }
.service-cols { display: grid; gap: 32px; margin-top: 32px; }
.service h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.ticks li, .plain li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: .96em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 5px; border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: rotate(-45deg); }
.plain li::before { content: ""; position: absolute; left: 3px; top: 1.15em; width: 8px; height: 1.5px; background: var(--ink); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: .9em; background: var(--paper-3); }
.note { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--paper-2); font-size: .94em; }
@media (min-width: 860px) {
  .service { grid-template-columns: 120px 1fr; gap: 32px; }
  .service-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Process ---------- */
.process { padding: clamp(96px, 12vw, 160px) 0; background: var(--paper-2); }
.process-grid { display: grid; gap: 48px; }
.process-meter { display: none; }
.process-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pstep { position: relative; padding: 36px 0 36px 0; border-bottom: 1px solid var(--line); }
.pstep-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); letter-spacing: .1em; }
.pstep h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 8px 0 12px; }
.pstep p { margin: 0; max-width: 54ch; color: var(--ink-soft); }
@media (min-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
  .process-sticky { position: sticky; top: calc(var(--header-h) + 48px); }
  .process-meter { display: block; margin-top: 40px; width: 100%; max-width: 280px; height: 2px; background: var(--line); }
  .process-meter span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--pm, 0)); transition: transform .15s linear; }
  .pstep { padding: 56px 0; }
}

/* ---------- Work / case study ---------- */
.work { padding: clamp(96px, 12vw, 160px) 0; background: var(--ink); color: var(--paper); }
.work .section-title { font-variation-settings: "opsz" 48; font-weight: 420; font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -.035em; }
.work .section-lede { color: var(--mist); }
.case-grid { display: grid; gap: 56px; align-items: start; }
.case-block { padding: 28px 0; border-top: 1px solid var(--line-light); }
.case-block:first-child { padding-top: 0; border-top: 0; }
.case-block h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.case-block p { color: #D9D6CD; margin: 0; max-width: 58ch; }
.case-block strong { color: var(--paper); font-weight: 600; }
@media (min-width: 960px) {
  .case-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .case-visual { position: sticky; top: calc(var(--header-h) + 40px); }
}

.case-visual { margin: 0; }
.case-visual figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--mist); letter-spacing: .04em; }
.mock { background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16,35,29,.2); }
.mock-bar span { margin-left: 10px; color: var(--ink-soft); }
.mock-body { display: grid; grid-template-columns: 130px 1fr; min-height: 320px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--ink); color: var(--mist); font-size: 12px; }
.mock-side span { padding: 7px 10px; border-radius: 3px; }
.mock-side .on { background: var(--ink-2); color: var(--paper); box-shadow: inset 2px 0 0 var(--accent); }
.mock-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { padding: 12px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; }
.mock-card b { display: block; font-weight: 600; font-size: 12.5px; }
.mock-card em { font-style: normal; font-size: 11px; color: var(--ink-soft); }
.mock-card.warn { border-color: var(--accent); }
.mock-table { display: grid; gap: 6px; padding: 12px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; }
.mock-table span { height: 10px; border-radius: 2px; background: linear-gradient(90deg, rgba(16,35,29,.16) 0 22%, transparent 22% 26%, rgba(16,35,29,.09) 26% 70%, transparent 70% 74%, rgba(16,35,29,.09) 74%); }
.mock-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-roles span { padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line); font-size: 11px; font-family: var(--font-mono); }
.mock-roles span:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; overflow: hidden; flex-wrap: nowrap; }
  .mock-side span { white-space: nowrap; }
  .mock-row { grid-template-columns: 1fr 1fr; }
}

.capabilities { margin-top: clamp(64px, 8vw, 112px); }
.cap-title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 28px; }
.cap-list { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.cap-list li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.cap-list b { font-weight: 500; }
.cap-list span { color: var(--mist); font-size: .95em; }
@media (min-width: 760px) {
  .cap-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .cap-list li { grid-template-columns: 1fr 1.3fr; gap: 20px; }
}
.case-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 28px; border: 1px solid var(--line-light); border-radius: 6px; }
.case-cta p { margin: 0; max-width: 52ch; font-size: 1.05em; }

.more-work { margin-top: clamp(64px, 8vw, 112px); }
.work-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.work-cards li { padding: 28px; border: 1px solid var(--line-light); border-radius: 6px; background: rgba(255,255,255,.03); }
.work-tag { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.work-cards h4 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 450; letter-spacing: -.02em; }
.work-cards p:last-child { margin: 0; color: var(--mist); max-width: 48ch; }
@media (min-width: 900px) {
  .work-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- About ---------- */
.about { position: relative; padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 8vw, 120px); overflow-x: clip; }
.about-grid { display: grid; gap: 40px; }
.about-lede { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.01em; }
.about-body > p:not(.about-lede) { color: var(--ink-soft); max-width: 60ch; }
.principles { margin-top: 40px; }
.principles h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.principles li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.principles li b { color: var(--ink); font-weight: 600; margin-right: .25em; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } .about-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }
.pull { margin: clamp(72px, 9vw, 120px) auto 0; padding: 0 var(--gutter); max-width: 1100px; will-change: transform; }
.pull p { font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.02em; text-align: center; margin: 0; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 12vw, 160px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 56px; }
.contact-details { display: grid; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.contact-details dd { margin: 0; }
.fit { margin-top: 40px; }
.fit h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }

.contact-form { background: var(--paper-3); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-self: start; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(228,87,46,.22); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--accent-ink); }
::placeholder { color: #8A958F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; background: var(--paper); transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.form-error { margin: 0; color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.form-success { margin: 0; padding: 12px 14px; background: var(--paper-2); border-left: 2px solid var(--accent); font-size: 14px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 48px; }
.footer-inner { display: grid; gap: 36px; }
.footer-brand img { width: 128px; height: auto; }
.footer-lock { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin: 14px 0 6px; }
.footer-tag { color: var(--mist); max-width: 34ch; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a, .footer-meta a { text-decoration: none; color: var(--paper); }
.footer-nav a:hover, .footer-meta a:hover { color: var(--accent); }
.footer-meta p { margin: 0 0 6px; color: var(--mist); font-size: 14px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } .footer-nav { flex-direction: column; } }

/* =========================================================
   Motion. Only active when JS runs and motion is allowed.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .flow-line { stroke-dashoffset: 2400; animation: draw 2.6s .2s var(--ease) forwards; }
  .js .flow-line--2 { animation-delay: .6s; }
  .js .flow-nodes rect { opacity: 0; animation: pop .6s var(--ease) forwards; }
  .js .flow-nodes rect:nth-child(1) { animation-delay: 1.1s; }
  .js .flow-nodes rect:nth-child(2) { animation-delay: 1.6s; }
  .js .flow-nodes rect:nth-child(3) { animation-delay: 2.1s; }
  .scroll-cue span { animation: cue 2s ease-in-out infinite; }

  .hero-inner { transform: translateY(calc(var(--hero-p, 0) * -60px)); opacity: calc(1 - var(--hero-p, 0) * .6); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: .55; } }
.flow-nodes .node-accent { animation-name: popA !important; }
@keyframes popA { to { opacity: 1; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-parallax] { transform: none !important; }
}


.hero-kicker {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
}
.hero-title { max-width: 16ch; }
.hero-slogan {
  margin: 18px 0 0; max-width: 42ch; font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); font-weight: 420;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none;
}
.hero-pills li {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}
.service--core { background: linear-gradient(180deg, rgba(228,87,46,.06), transparent 42%); }
.service-badge {
  display: inline-block; margin: 0 0 10px; padding: 4px 8px; border-radius: 3px;
  background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
}
.service-badge--soft { background: transparent; color: var(--accent-ink); border: 1px solid var(--line); }
.pstep-out {
  margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(16,35,29,.03); max-width: 54ch;
}
.pstep-out h4 {
  margin: 0 0 8px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.pstep-out ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.pstep-out li + li { margin-top: 4px; }
.faq { margin-top: clamp(48px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.faq-title { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 24px; }
.faq-list { display: grid; gap: 0; margin: 0; }
.faq-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list dt { font-weight: 560; margin: 0 0 6px; }
.faq-list dd { margin: 0; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 900px) {
  .faq-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.turnstile-field { min-height: 70px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
