:root {
  --paper: #F3F4EF;
  --paper-2: #E8EAE3;
  --ink: #1E2629;
  --ink-2: #4A5459;
  --rule: #C9CDC4;
  --moss: #0D7A67;
  --moss-bright: #13AB92;
  --brass: #86651F;
  --brass-bright: #B98E3E;
  --mark-ink: #50585E;
  --on-ink: #F3F4EF;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wordmark: "Cinzel", "Trajan Pro", Georgia, serif;

  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101515; --paper-2: #172021; --ink: #E4E7E1; --ink-2: #A3ADAE;
    --rule: #2C3637; --moss: #45CDB2; --moss-bright: #2FBFA3; --brass: #D7AE5F;
    --brass-bright: #C79B47; --mark-ink: #C9CFD2; --on-ink: #101515;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101515; --paper-2: #172021; --ink: #E4E7E1; --ink-2: #A3ADAE;
  --rule: #2C3637; --moss: #45CDB2; --moss-bright: #2FBFA3; --brass: #D7AE5F;
  --brass-bright: #C79B47; --mark-ink: #C9CFD2; --on-ink: #101515;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--serif);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }
:focus-visible { outline: 2px solid var(--moss-bright); outline-offset: 3px; border-radius: 2px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: 8px; transform: translateY(-200%); background: var(--ink); color: var(--on-ink); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; z-index: 50; }
.skip:focus { transform: none; }

.m-ink { fill: var(--mark-ink); }
.m-teal { fill: var(--moss-bright); }

/* Section label: a short accent rule, then the words. */
.tag {
  display: inline-flex; align-items: center; gap: .8em; max-width: 100%;
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.tag::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--brass-bright); }
.tag.ind { color: var(--brass); }
.tag.liv { color: var(--moss); }
.tag.liv::before { background: var(--moss-bright); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: .005em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5.4vw, 3.25rem); margin-top: .5em; max-width: 20ch; }
h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

section { padding: 72px 0; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { section { padding: 104px 0; } }
.section-head { margin-bottom: 40px; }
.section-head .lede { margin-top: 1em; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head > .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
@media (min-width: 600px) { .site-head > .wrap { gap: 16px; } }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand svg { width: 26px; height: 36px; }
.wordmark { font: 600 clamp(.92rem, 3.6vw, 1.05rem)/1 var(--wordmark); white-space: nowrap; letter-spacing: .04em; color: var(--mark-ink); }
.wordmark .sm { font-size: .82em; }
.nav { display: none; gap: 24px; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
@media (min-width: 900px) { .nav { display: flex; } }
.theme-btn {
  appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  width: 44px; height: 44px; flex: none; border-radius: 3px; cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 3px; text-decoration: none; cursor: pointer;
  font: 600 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink);
}
@media (hover: hover) { .btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--moss-bright)); } }
.btn.ghost { background: transparent; color: var(--ink); }
@media (hover: hover) { .btn.ghost:hover { background: var(--paper-2); } }

/* Hero */
.hero { padding: 56px 0 72px; border-top: 0; }
@media (min-width: 720px) { .hero { padding: 96px 0 104px; } }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: .94; margin-top: 22px; max-width: 22ch; }
.hero h1 .ind { color: var(--brass); }
.hero h1 .liv { color: var(--moss); }
/* Two-sentence headlines break between the sentences, not mid-phrase. */
.hero h1 .line { display: block; }
.hero .lede { margin-top: 24px; font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Nameplate: the equipment data plate holding the hard facts. */
.plate {
  margin-top: 56px; border: 1.5px solid var(--ink); border-radius: 4px; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--paper);
}
@media (min-width: 820px) { .plate { grid-template-columns: repeat(4, 1fr); } }
.plate::before, .plate::after {
  content: ""; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--ink-2);
}
.plate::before { left: 8px; } .plate::after { right: 8px; }
.plate div { padding: 22px 18px 18px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.plate div:nth-child(-n+2) { border-top: 0; }
.plate div:nth-child(odd) { border-left: 0; }
@media (min-width: 820px) {
  .plate div { border-top: 0; border-left: 1px solid var(--rule); }
  .plate div:first-child { border-left: 0; }
}
.plate dt { font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.plate dd { margin: 8px 0 0; font: 700 clamp(1.7rem, 4vw, 2.3rem)/1 var(--display); text-transform: uppercase; }
.plate dd small { display: block; margin-top: 6px; font: 400 .9rem/1.35 var(--serif); text-transform: none; color: var(--ink-2); }

/* Two disciplines */
.split { display: grid; gap: 20px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { border: 1px solid var(--rule); border-top: 4px solid var(--accent); background: var(--paper-2); padding: 28px 22px; border-radius: 3px; }
@media (min-width: 720px) { .panel { padding: 36px 32px; } }
.panel.ind { --accent: var(--brass-bright); }
.panel.liv { --accent: var(--moss-bright); }
.panel h3 { margin: 18px 0 8px; font-size: 1.9rem; }
.panel > p { color: var(--ink-2); }
.svc { list-style: none; margin: 20px 0 0; padding: 0; }
.svc li { padding: 14px 0; border-top: 1px solid var(--rule); }
.svc b { display: block; font: 600 1.15rem/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.svc span { display: block; margin-top: 4px; color: var(--ink-2); font-size: .98rem; }

/* Where they meet */
.bridge { display: grid; gap: 20px; counter-reset: b; }
@media (min-width: 900px) { .bridge { grid-template-columns: repeat(3, 1fr); } }
.bridge article { border: 1.5px solid var(--ink); border-radius: 3px; padding: 26px 22px; display: flex; flex-direction: column; }
.bridge .poles { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.bridge .poles i { height: 2px; flex: 1; background: linear-gradient(90deg, var(--brass-bright), var(--moss-bright)); }
.bridge .poles .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bridge .poles .dot.b { background: var(--brass-bright); }
.bridge .poles .dot.m { background: var(--moss-bright); }
.bridge h3 { font-size: 1.6rem; margin-bottom: 12px; }
.bridge p { color: var(--ink-2); }
.bridge .for { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); font: 400 .78rem/1.5 var(--mono); color: var(--ink-2); }
.bridge .for strong { color: var(--ink); font-weight: 500; }

/* Track record: the timeline runs down a conductor. */
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--node, var(--ink-2));
}
.timeline li::after { content: ""; position: absolute; left: -16px; top: 12px; width: 12px; height: 2px; background: var(--node, var(--ink-2)); }
.timeline li.ind { --node: var(--brass-bright); }
.timeline li.liv { --node: var(--moss-bright); }
.timeline li.now::before { background: var(--node); }
.timeline time, .timeline .when { font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.timeline h3 { font-size: 1.5rem; margin: 8px 0 2px; }
.timeline .role { font-style: italic; color: var(--ink-2); margin-bottom: .5em; }
.timeline p:last-child { margin-bottom: 0; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; border: 1.5px solid var(--ink); border-radius: 3px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 26px 22px; border-top: 1px solid var(--rule); counter-increment: s; }
.steps li:first-child { border-top: 0; }
@media (min-width: 900px) { .steps li { border-top: 0; border-left: 1px solid var(--rule); } .steps li:first-child { border-left: 0; } }
.steps li::before { content: "0" counter(s); display: block; font: 700 2.6rem/1 var(--display); color: var(--moss); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.steps .out { display: block; margin-top: 12px; font: 400 .75rem/1.5 var(--mono); color: var(--ink); }


/* Inquiry */
.proof-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.proof-strip li { font: 500 .75rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); }
.inquiry { display: grid; gap: 40px; }
@media (min-width: 900px) { .inquiry { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.row2 { display: grid; gap: 20px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
label, legend { font: 500 .76rem/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
label .opt { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
input, select, textarea {
  font: 400 1.0625rem/1.4 var(--serif); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 3px; padding: 12px 14px; min-height: 48px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss-bright) 30%, transparent); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 3px; background: var(--paper);
  font: 400 .98rem/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink);
}
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--moss-bright); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.next { font-size: .98rem; color: var(--ink-2); margin: 0; }
.form-status { padding: 16px 18px; border-left: 4px solid var(--moss-bright); background: var(--paper-2); }
.form-status[hidden] { display: none; }
.form-status.err { border-color: var(--brass-bright); }
.direct { border: 1.5px solid var(--ink); border-radius: 3px; padding: 24px 22px; align-self: start; }
.direct h3 { font-size: 1.3rem; margin-bottom: 14px; }
.direct dl { margin: 0; }
.direct dt { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 18px; }
.direct dt:first-child { margin-top: 0; }
.direct dd { margin: 6px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.copy { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; min-height: 44px; border-radius: 3px; cursor: pointer; margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 48px 0 calc(112px + env(safe-area-inset-bottom)); color: var(--ink-2); font-size: .95rem; }
footer .wrap { display: grid; gap: 24px; align-items: end; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: auto 1fr auto; } }
footer svg { width: 54px; height: 76px; }
footer .small { font: 400 .75rem/1.5 var(--mono); }

/* Sticky "Start a project" */
.float-cta {
  position: fixed; z-index: 30;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transform: translateY(0); opacity: 1; transition: transform .25s ease, opacity .25s ease;
}
.float-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 599px) { .float-cta { left: max(var(--gutter), env(safe-area-inset-left)); } }

/* Three-up variant of the discipline panels (enterprise page). */
@media (min-width: 980px) { .split.three { grid-template-columns: repeat(3, 1fr); } }
.panel.neutral { --accent: var(--ink); }

/* Results: one number, then the story behind it. */
.results { display: grid; gap: 20px; }
@media (min-width: 820px) { .results { grid-template-columns: 1fr 1fr; } }
.results article { border: 1.5px solid var(--ink); border-radius: 3px; padding: 26px 22px; }
.results .big { display: block; font: 700 clamp(2.6rem, 6vw, 3.4rem)/1 var(--display); color: var(--moss); }
.results .big.b { color: var(--brass); }
.results .unit { display: block; margin-top: 6px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.results h3 { font-size: 1.45rem; margin: 18px 0 8px; }
.results p { color: var(--ink-2); margin: 0; }

/* Working-with list. */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rules b { display: block; font: 600 1.2rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.rules span { display: block; margin-top: 6px; color: var(--ink-2); }


/* Headings never leave one word stranded; paragraphs avoid orphans. */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }

/* Touch: no 300ms delay or grey flash, and a visible press state instead. */
a, button, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active, .copy:active, .theme-btn:active, .chips span:active { transform: translateY(1px); }
input, select, textarea { font-size: max(16px, 1.0625rem); }


/* Experience: the technology behind each entry, set like a parts list. */
.timeline .tech {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule);
  font: 400 .78rem/1.6 var(--mono); color: var(--ink-2);
}

/* Phone menu ------------------------------------------------------------
   The panel lives inside the sticky header, so opening it grows the header
   and the page slides down beneath it rather than being covered. Height
   animates through grid rows (0fr -> 1fr), which needs no measured heights.
   Motion uses a spring curve via linear(); browsers without it keep the
   cubic-bezier fallback declared first. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 0 14px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (min-width: 900px) { .menu-btn, .mnav { display: none !important; } }

/* Three bars that fold into an X: the outer two swing to the centre and
   cross, the middle one is pulled out sideways. */
.burger { position: relative; width: 18px; height: 12px; flex: none; }
.burger i {
  position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform .55s var(--spring), opacity .25s var(--ease-out), width .35s var(--ease-out);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: calc(50% - .875px); width: 70%; }
.burger i:nth-child(3) { bottom: 0; }
[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5.125px) rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { transform: translateX(10px); opacity: 0; }
[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5.125px) rotate(-45deg); }

/* While open: a solid header (no page text ghosting through the blur), and
   the floating button steps aside since the menu carries its own. */
.menu-open .site-head { background: var(--paper); }
.menu-open .float-cta { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mnav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.mnav.open { grid-template-rows: 1fr; }
.mnav-inner { min-height: 0; overflow: hidden; position: relative; }

/* The conductor: a brass-to-teal line that draws across as the menu opens. */
.mnav-inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--brass-bright), var(--moss-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out) .05s;
}
.mnav.open .mnav-inner::before { transform: scaleX(1); }
.mnav .wrap { padding-top: 10px; padding-bottom: 22px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }

/* Each row rises into place in turn. */
.mnav li, .mnav .btn {
  opacity: 0; transform: translateY(18px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mnav.open li, .mnav.open .btn {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out) calc(var(--i) * 55ms + 120ms), transform .7s var(--spring) calc(var(--i) * 55ms + 120ms);
}
.mnav li a {
  display: flex; align-items: baseline; gap: 14px; min-height: 60px; padding: 14px 0;
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mnav .n { font: 500 .75rem/1 var(--mono); color: var(--brass); letter-spacing: .06em; min-width: 2ch; }
.mnav .t { font: 700 clamp(1.7rem, 7.5vw, 2.2rem)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.mnav .arr { margin-left: auto; align-self: center; color: var(--moss); font-size: 1.2rem; transform: translateX(-6px); opacity: .5; transition: transform .35s var(--spring), opacity .2s; }
.mnav li a:active .arr, .mnav li a:focus-visible .arr { transform: none; opacity: 1; }
@media (hover: hover) { .mnav li a:hover .arr { transform: none; opacity: 1; } }
.mnav .btn { width: 100%; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav-inner::before, .mnav li, .mnav .btn, .burger i { transition: none !important; }
}

/* Narrowest phones: wordmark stacks on two lines, menu shows its icon only. */
@media (max-width: 399px) {
  .wordmark { white-space: normal; width: min-content; line-height: 1.1; }
  .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Hero: copy on the left, the logo mark in its own column on the right.
   On phones the header already carries the logo, so the mark steps out. */
.hero { position: relative; overflow: clip; }
.hero-mark { display: none; }
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); column-gap: 56px; align-items: center; }
  .hero .plate { grid-column: 1 / -1; }
  .hero-mark { display: block; justify-self: end; width: 100%; max-width: 360px; height: auto; aspect-ratio: 641 / 896; }
}

/* Mission: a full-bleed band, the one dark moment on the page. */
.mission {
  --band: #151D1F; --band-ink: #EEF0EA; --band-dim: #A9B4B2; --band-rule: rgba(238,240,234,.16);
  position: relative; overflow: clip; border-top: 0;
  background: var(--band); color: var(--band-ink);
}
:root[data-theme="dark"] .mission { --band: #0A0F0F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mission { --band: #0A0F0F; } }
.mission .wrap { position: relative; }
.tag-inv { color: var(--band-dim); background: transparent; }
.mission-statement {
  margin: 24px 0 0; max-width: 16ch;
  font: 700 clamp(2.4rem, 7.5vw, 5.4rem)/.96 var(--display); text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
.mission-statement em { font-style: normal; color: var(--moss-bright); }
.mission-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .mission-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.mission-body { margin: 0; max-width: 52ch; font-size: 1.15rem; color: var(--band-dim); }
.values { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.values li { padding: 22px 20px 24px; border: 1px solid var(--band-rule); border-top: 2px solid var(--brass-bright); border-radius: 3px; }
.values .v-n { display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .1em; color: var(--band-dim); }
.values h3 { margin: 14px 0 8px; font-size: 1.35rem; letter-spacing: .02em; color: var(--band-ink); }
.values p { margin: 0; color: var(--band-dim); font-size: .98rem; }

/* Capabilities */
.caps { display: grid; gap: 16px; }
@media (min-width: 720px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cap { border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 3px; padding: 24px 22px; background: var(--paper-2); }
.cap.ind { --accent: var(--brass-bright); }
.cap.liv { --accent: var(--moss-bright); }
.cap h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cap p { color: var(--ink-2); margin: 0; }
.cap .tech { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font: 400 .78rem/1.6 var(--mono); }

/* Partners: each card is one way in, and preselects the form. */
.partners { display: grid; gap: 16px; }
@media (min-width: 720px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner {
  display: flex; flex-direction: column; gap: 10px; min-height: 100%;
  padding: 26px 22px; border: 1.5px solid var(--ink); border-radius: 3px; text-decoration: none; color: var(--ink);
  background: var(--paper); transition: background-color .3s var(--ease-out), transform .4s var(--spring);
}
.partner .p-kicker { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.partner h3 { font-size: 1.6rem; }
.partner p { color: var(--ink-2); margin: 0; }
.partner .p-cta { margin-top: auto; padding-top: 14px; font: 600 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
.partner .p-cta span { display: inline-block; transition: transform .35s var(--spring); }
@media (hover: hover) {
  .partner:hover { background: var(--paper-2); transform: translateY(-3px); }
  .partner:hover .p-cta span { transform: translateX(5px); }
}
.partner:active { transform: translateY(1px); }


/* Motion ----------------------------------------------------------------
   Everything below runs only under html.motion, which the head script sets
   unless the visitor asks for reduced motion. Scroll-linked effects read
   --p (0 to 1), written once per frame by assets/site.js for each element
   with data-p; reveals are CSS transitions started when an element enters
   the viewport. Only transform, opacity and clip-path animate, so the page
   never reflows while it moves. */
main > section { overflow-x: clip; }

/* Scroll progress: a brass-to-teal conductor under the header. */
.progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--brass-bright), var(--moss-bright));
  transform-origin: left; transform: scaleX(0);
}
.site-head { transition: box-shadow .4s var(--ease-out), background-color .4s var(--ease-out); }
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }

/* Ambient light: soft blooms that drift at their own depth. */
.hero, .mission, #partners { position: relative; overflow: clip; }
.hero > .wrap, .mission > .wrap, #partners > .wrap { position: relative; z-index: 1; }
.orb {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  width: 62vmax; aspect-ratio: 1; opacity: .9;
}
.orb-a { left: -22vmax; top: -18vmax; background: radial-gradient(circle, color-mix(in srgb, var(--moss-bright) 16%, transparent), transparent 62%); --s: 34; }
.orb-b { right: -26vmax; bottom: -30vmax; background: radial-gradient(circle, color-mix(in srgb, var(--brass-bright) 15%, transparent), transparent 62%); --s: -26; }
.mission .orb-a { background: radial-gradient(circle, color-mix(in srgb, var(--moss-bright) 22%, transparent), transparent 62%); }
.mission .orb-b { background: radial-gradient(circle, color-mix(in srgb, var(--brass-bright) 16%, transparent), transparent 62%); }
.motion .orb { transform: translate3d(0, calc((var(--p, .5) - .5) * var(--s) * 1vh), 0); }

/* Mission: a large faint mark drifting behind the statement. */
.mission-mark {
  position: absolute; z-index: 0; pointer-events: none; right: -8vw; top: 6%;
  width: min(52vw, 560px); height: auto; aspect-ratio: 641 / 896; opacity: .07;
}
.motion .mission-mark { transform: translate3d(0, calc((var(--p, .5) - .5) * -34vh), 0) rotate(calc((var(--p, .5) - .5) * 24deg)); }

/* Mission statement lights up word by word as it is read. */
.motion .mission-statement .w {
  opacity: clamp(.16, calc((var(--p, 0) - .22) / .3 * var(--n, 10) - var(--i, 0) + 1), 1);
  transition: opacity .25s linear;
}

/* Hero, on load: the eyebrow, then each headline line rising out of a mask,
   then the rest in sequence. The mark draws its outline, then fills. */
.motion .hero .line { display: block; overflow: clip; padding-bottom: .05em; margin-bottom: -.05em; }
.motion .hero .line > span { display: inline-block; animation: be-line 1.15s var(--ease-out) both; }
.motion .hero .line:nth-child(1) > span { animation-delay: .15s; }
.motion .hero .line:nth-child(2) > span { animation-delay: .28s; }
.motion .hero .line:nth-child(3) > span { animation-delay: .41s; }
.motion .hero .tag { animation: be-in .9s var(--ease-out) .05s both; }
.motion .hero .lede { animation: be-in 1s var(--ease-out) .55s both; }
.motion .hero .cta-row { animation: be-in 1s var(--ease-out) .7s both; }
.motion .hero .plate > div { animation: be-in 1s var(--ease-out) both; }
.motion .hero .plate > div:nth-child(1) { animation-delay: .85s; }
.motion .hero .plate > div:nth-child(2) { animation-delay: .95s; }
.motion .hero .plate > div:nth-child(3) { animation-delay: 1.05s; }
.motion .hero .plate > div:nth-child(4) { animation-delay: 1.15s; }
.hero h1 em { font-style: normal; }
.hero-mark path { stroke-linejoin: round; }
.hero-mark .m-teal { stroke: var(--moss-bright); }
.hero-mark .m-ink { stroke: var(--mark-ink); }
.motion .hero-mark path {
  stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: be-draw 1.9s var(--ease-out) .25s forwards, be-fill 1s ease 1.4s forwards;
}
@keyframes be-line { from { transform: translate3d(0, 108%, 0) rotate(2.5deg); } }
@keyframes be-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes be-draw { to { stroke-dashoffset: 0; } }
@keyframes be-fill { to { fill-opacity: 1; stroke-width: 0; } }

/* Hero, on scroll: the copy lifts, shrinks and fades; the mark sinks and
   turns more slowly; the fact plate rises over both. */
.motion .hero-copy {
  transform: translate3d(0, calc(var(--p, 0) * -14vh), 0) scale(calc(1 - var(--p, 0) * .08));
  transform-origin: 0 50%; opacity: calc(1 - var(--p, 0) * 1.25);
}
.motion .hero-mark { transform: translate3d(0, calc(var(--p, 0) * 20vh), 0) rotate(calc(var(--p, 0) * 16deg)) scale(calc(1 - var(--p, 0) * .12)); }
.motion .hero .plate { transform: translate3d(0, calc(var(--p, 0) * -7vh), 0); }

/* Reveals: each block arrives once, as it enters the viewport. */
.motion .reveal {
  opacity: 0; transform: translate3d(0, 64px, 0);
  transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
}
.motion .reveal[data-reveal="left"] { transform: translate3d(-9vw, 30px, 0) rotate(-2.5deg); }
.motion .reveal[data-reveal="right"] { transform: translate3d(9vw, 30px, 0) rotate(2.5deg); }
.motion .reveal[data-reveal="tilt"] { transform: perspective(900px) translate3d(0, 80px, 0) rotateX(28deg); transform-origin: 50% 100%; }
.motion .reveal.in { opacity: 1; transform: none; }
/* Section heads: the block itself stays measurable (so it can be observed);
   its eyebrow, heading and lede unveil one after another like a curtain. */
.motion .reveal[data-reveal="clip"] { opacity: 1; transform: none; }
.motion .reveal[data-reveal="clip"] > * {
  clip-path: inset(0 0 100% 0); transform: translate3d(0, 28px, 0);
  transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.motion .reveal[data-reveal="clip"] > :nth-child(2) { transition-delay: .12s; }
.motion .reveal[data-reveal="clip"] > :nth-child(3) { transition-delay: .24s; }
.motion .reveal[data-reveal="clip"].in > * { clip-path: inset(-10% -10% -10% -10%); transform: none; }
.motion .reveal.settled { transition-delay: 0s; }
.motion .section-head.in .tag::before { animation: be-rule .9s var(--ease-out) .25s both; }
@keyframes be-rule { from { transform: scaleX(0); transform-origin: left; } }

/* Process: a conductor line fills across the steps as they scroll past. */
.steps { position: relative; }
.motion .steps::before {
  content: ""; position: absolute; z-index: 1; left: -1.5px; right: -1.5px; top: -1.5px; height: 3px;
  background: linear-gradient(90deg, var(--brass-bright), var(--moss-bright));
  transform-origin: left; transform: scaleX(clamp(0, calc((var(--p, 0) - .2) * 2.6), 1));
}

/* Capabilities, wide screens: the section pins and the cards glide across.
   site.js sizes the stage so the sideways travel matches the scroll. */
.caps-rail { display: none; }
@media (min-width: 1000px) {
  .motion .caps-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: clip; }
  .motion .caps-sticky > .wrap { width: 100%; }
  .motion .caps { display: flex; gap: 20px; transform: translate3d(calc(var(--p, 0) * var(--caps-shift, 0px) * -1), 0, 0); }
  .motion .cap { flex: none; width: min(420px, 34vw); min-height: 300px; display: flex; flex-direction: column; }
  .motion .cap .tech { margin-top: auto; }
  .motion .caps-rail { display: block; position: relative; height: 2px; margin-top: 36px; background: var(--rule); }
  .motion .caps-rail::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brass-bright), var(--moss-bright));
    transform-origin: left; transform: scaleX(var(--p, 0));
  }
  .motion #capabilities { padding: 0; }
}
/* Capabilities, phones and tablets: the cards stack like a deck. */
@media (max-width: 999px) {
  .motion .caps { grid-template-columns: 1fr; gap: 18px; }
  .motion .cap {
    position: sticky; top: calc(78px + var(--i, 0) * 12px);
    box-shadow: 0 -12px 30px -22px rgba(0,0,0,.45);
  }
  /* Stacked cards stay opaque so the one beneath never shows through;
     they arrive by sliding and settling instead of fading. */
  .motion .cap.reveal { opacity: 1; transform: translate3d(0, 90px, 0) scale(.94); }
  .motion .cap.reveal.in { transform: none; }
}

/* Pointer devices: buttons lean toward the cursor, cards carry a spotlight. */
@media (hover: hover) and (pointer: fine) {
  .motion .magnetic { transition: transform .35s var(--ease-out), background-color .2s; }
  .partner, .cap, .panel, .bridge article { position: relative; isolation: isolate; }
  .partner::after, .cap::after, .panel::after, .bridge article::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--moss-bright) 15%, transparent), transparent 65%);
    opacity: 0; transition: opacity .4s var(--ease-out);
  }
  .partner:hover::after, .cap:hover::after, .panel:hover::after, .bridge article:hover::after { opacity: 1; }
}
