/* ==========================================================================
   Peregrine GeoServices
   Built to Peregrine_GeoServices_Brand_Kit.pptx
   Order: tokens -> reset -> layout -> components -> sections -> pages -> media
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Palette is the brand kit's, verbatim. Derived values are noted.
   -------------------------------------------------------------------------- */
:root {
  /* Brand kit palette */
  --basalt:        #191C1D;
  --survey-white:  #F3F1EA;
  --mineral-blue:  #1769A8;
  --field-green:   #58A85D;
  --signal-ochre:  #E7A640;
  --iron-grey:     #777B78;

  /* Applied colour roles (dark is the default scheme) */
  --color-bg:        var(--basalt);
  --color-bg-alt:    #141718;                  /* deepest band */
  --color-panel:     #212527;                  /* derived: raised surface on basalt */
  --color-panel-2:   #272C2E;                  /* derived: panel hover / nested */
  --color-ink:       var(--survey-white);
  --color-ink-soft:  #A7ACA9;                  /* derived: iron grey lifted to 6.9:1 on basalt */
  --color-line:      #2E3335;                  /* derived hairline on dark */
  --color-line-soft: #23282A;

  --color-accent:     var(--signal-ochre);
  --color-accent-ink: var(--basalt);
  --color-accent-dim: #C98C2F;                 /* derived: hover */

  --color-blue:   #5AABE0;                     /* derived: mineral blue lifted for legibility on dark */
  --color-green:  var(--field-green);

  /* Small-text variants of the signal colours. On Basalt the brand values already
     clear 4.5:1, so these are the same. Light bands re-point them at darker
     values, because ochre and green on Survey White do not. */
  --color-accent-text: var(--signal-ochre);
  --color-green-text:  var(--field-green);

  /* Light band (used sparingly, for long-form reading and the article body) */
  --light-bg:        var(--survey-white);
  --light-ink:       var(--basalt);
  --light-ink-soft:  #5C605E;                  /* derived: 5.6:1 on survey white */
  --light-line:      #DAD6CB;
  --light-panel:     #EAE7DE;

  /* Type */
  --font-display: 'Archivo', 'Archivo Expanded', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  clamp(1.625rem, 3.4vw, 2.375rem);
  --text-3xl:  clamp(1.875rem, 4.2vw, 3rem);
  --text-hero: clamp(2.125rem, 5.6vw, 4rem);

  --leading-tight: 1.06;
  --leading-snug:  1.22;
  --leading-body:  1.62;

  --track-display: -0.025em;
  --track-mono:    0.14em;

  /* Space, 8px rhythm */
  --space-1: .5rem;  --space-2: 1rem;   --space-3: 1.5rem;
  --space-4: 2rem;   --space-5: 3rem;   --space-6: 4.5rem;  --space-7: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --container: 74rem;
  --container-narrow: 42rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Shape and depth. Brand language is grid and rule, so effectively square. */
  --radius: 2px;
  --radius-lg: 3px;
  --shadow-lift: 0 8px 32px rgba(0,0,0,.45);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
  --speed: 180ms;
}

/* --------------------------------------------------------------------------
   2. RESET AND BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); line-height: var(--leading-tight); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 var(--space-2); padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 600; }

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: var(--space-1) var(--space-2); font-weight: 600;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

/* Light bands re-scope the colour roles rather than overriding each component.
   Everything downstream reads the same variable names, so contrast stays correct. */
.section--light {
  --color-ink:       var(--light-ink);
  --color-ink-soft:  var(--light-ink-soft);
  --color-line:      var(--light-line);
  --color-line-soft: var(--light-line);
  --color-panel:     var(--light-panel);
  --color-panel-2:   #E1DDD3;
  --color-accent-dim: #B8791F;
  --color-accent-text: #8A5A12;   /* derived: 5.2:1 on Survey White */
  --color-green-text:  #2F7A34;   /* derived: 4.8:1 on Survey White */
  background: var(--light-bg);
  color: var(--light-ink);
}
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--light-ink); }

.section--panel { background: var(--color-panel); }

.rule { border: 0; border-top: 1px solid var(--color-line); margin: 0; }
.section--light .rule { border-top-color: var(--light-line); }

/* --------------------------------------------------------------------------
   4. THE ANNOTATION LAYER
   The brand kit's technical labels. Section numbers, mono eyebrows, coordinates.
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 var(--space-3);
  display: flex; align-items: center; gap: var(--space-2);
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: var(--color-line);
}
.eyebrow--plain::after { display: none; }
.eyebrow--muted { color: var(--color-ink-soft); }
.eyebrow--green { color: var(--color-green-text); }
.section--light .eyebrow::after { background: var(--light-line); }
.section--light .eyebrow--muted { color: var(--light-ink-soft); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.section-no {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  color: var(--color-accent-text);
}

.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink-soft); max-width: 54ch; }
.muted { color: var(--color-ink-soft); }
.measure { max-width: 62ch; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px;
  padding: .8rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn--primary { background: var(--signal-ochre); color: var(--basalt); }
.btn--primary:hover { background: var(--color-accent-dim); }

.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-ink-soft); background: rgba(255,255,255,.03); }

.section--light .btn--ghost { color: var(--light-ink); border-color: var(--light-line); }
.section--light .btn--ghost:hover { border-color: var(--light-ink-soft); background: rgba(0,0,0,.03); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.next-step {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-top: var(--space-2);
  max-width: 46ch;
}
.section--light .next-step { color: var(--light-ink-soft); }

/* Inline arrow links */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-accent-text); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease);
}
.arrow-link:hover { border-bottom-color: var(--color-accent-text); }
.arrow-link svg { flex: none; transition: transform var(--speed) var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. HEADER AND NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(25,28,29,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--color-ink); flex: none; }
.brand img { width: 34px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .95rem; letter-spacing: .01em;
}
.brand__sub {
  font-family: var(--font-mono); font-size: .5rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--color-ink-soft); margin-top: .18rem;
}

/* The toggle only exists if JS can operate it. */
.nav-toggle { display: none; }
.has-js .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none; border: 1px solid var(--color-line);
  border-radius: var(--radius); color: var(--color-ink); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Without JS the nav is simply a visible list on its own row.
   With JS it collapses behind the toggle. Either way it is reachable. */
.site-nav { display: block; width: 100%; order: 3; border-top: 1px solid var(--color-line-soft); }
.has-js .site-nav { display: none; }
.has-js .site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  width: auto; order: 0; border-top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-2) var(--gutter) var(--space-3);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .85rem 0;
  text-decoration: none; font-size: var(--text-base); font-weight: 500;
  border-bottom: 1px solid var(--color-line-soft);
  transition: color var(--speed) var(--ease);
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a[aria-current="page"] { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-1); }
.header-actions .btn { padding: .65rem 1rem; min-height: 44px; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; border-bottom: 1px solid var(--color-line); }
.hero__inner { padding-block: clamp(2.75rem, 7vw, 5rem); }
.hero h1 { margin-bottom: var(--space-3); max-width: 15ch; }
.hero .lede { margin-bottom: var(--space-4); }

.hero--split .hero__grid { display: grid; gap: var(--space-4); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* the annotation row from the brand kit's website mockup */
.hero__annotations {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-5);
}
.hero__annotations span { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft); }
.hero__annotations span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--color-accent); margin-right: .6rem; vertical-align: middle; }

/* Inner-page hero variant */
.hero--page h1 { max-width: 18ch; }

/* --------------------------------------------------------------------------
   8. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-block: var(--space-4);
}
.trust__label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft); }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.trust__logos img { height: 36px; width: auto; opacity: .85; transition: opacity var(--speed) var(--ease); }
.trust__logos img:hover { opacity: 1; }
.trust__basins { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft); }

/* --------------------------------------------------------------------------
   9. GENERIC BLOCKS
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-4); }

.section-head { margin-bottom: var(--space-5); }
.section-head h2 { max-width: 20ch; }
.section-head p { max-width: 58ch; color: var(--color-ink-soft); }
.section--light .section-head p { color: var(--light-ink-soft); }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* Problem cards */
.problem {
  border-top: 2px solid var(--color-line);
  padding-top: var(--space-3);
}
.problem h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.problem p { color: var(--color-ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.problem .arrow-link { margin-top: var(--space-2); }
.problem--dev { border-top-color: var(--color-blue); }
.problem--aban { border-top-color: var(--color-accent); }
.problem--meth { border-top-color: var(--color-green); }

/* Journey panels: the asymmetric moment */
.journey {
  display: grid; gap: 0;
  border-top: 1px solid var(--color-line);
}
.journey:last-of-type { border-bottom: 1px solid var(--color-line); }
.journey__body { padding-block: var(--space-5); }
.journey__no {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--track-mono); text-transform: uppercase;
  color: var(--color-accent-text); margin-bottom: var(--space-2); display: block;
}
.journey h3 { font-size: var(--text-2xl); max-width: 17ch; margin-bottom: var(--space-2); }
.journey p { color: var(--color-ink-soft); max-width: 52ch; }
.journey__media { position: relative; overflow: hidden; min-height: 220px; }
.journey__media img { width: 100%; height: 100%; object-fit: cover; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--space-4); }
.step { border-top: 1px solid var(--color-line); padding-top: var(--space-3); }
.step__no { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; color: var(--color-accent-text); display: block; margin-bottom: var(--space-1); }
.step h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: .4rem; }
.step p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: 1.6; }

/* Figures with real captions */
.figure { margin: 0; display: flex; flex-direction: column; }
.figure img { width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-panel); }
/* Side by side evidence: crop to a common shape so captions line up. */
.figure--even img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.figure figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.figure figcaption b { color: var(--color-ink); font-weight: 600; display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; margin-bottom: .35rem; }
.section--light .figure img { border-color: var(--light-line); background: var(--light-panel); }
.section--light .figure figcaption { color: var(--light-ink-soft); }
.section--light .figure figcaption b { color: var(--light-ink); }

/* Pull quote, in the buyer's own words */
.pullquote {
  margin: var(--space-5) 0 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-accent);
  max-width: 46ch;
}
.pullquote p {
  font-family: var(--font-display); font-stretch: 108%; font-weight: 500;
  font-size: var(--text-xl); line-height: 1.35; letter-spacing: -.015em;
  margin-bottom: var(--space-1);
}
.pullquote cite { font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft); }

/* Cost / fact list */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li {
  margin: 0; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
  display: grid; gap: .35rem;
}
.facts li:first-child { border-top: 1px solid var(--color-line); }
.facts b { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: var(--text-lg); letter-spacing: -.02em; }
.facts span { color: var(--color-ink-soft); font-size: var(--text-sm); line-height: 1.55; }
.section--light .facts li { border-color: var(--light-line); }
.section--light .facts span { color: var(--light-ink-soft); }

/* Deliverables checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { margin: 0; padding-left: 1.9rem; position: relative; line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border: 1.5px solid var(--color-accent);
}
.section--light .checklist li::before { border-color: var(--mineral-blue); }

/* Objections */
.qa { border-top: 1px solid var(--color-line); }
.qa__item { border-bottom: 1px solid var(--color-line); padding-block: var(--space-3); }
.qa__q { font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: var(--text-lg); letter-spacing: -.015em; margin-bottom: .6rem; }
.qa__a { color: var(--color-ink-soft); max-width: 62ch; }
.section--light .qa, .section--light .qa__item { border-color: var(--light-line); }
.section--light .qa__a { color: var(--light-ink-soft); }

/* Panels */
.panel {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.panel--accent { border-left: 2px solid var(--color-accent); }

/* Before / after */
.beforeafter { display: grid; gap: var(--space-3); }
.beforeafter > div { padding: var(--space-3); border: 1px solid var(--color-line); border-radius: var(--radius); }
.beforeafter .ba-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft); display: block; margin-bottom: var(--space-1); }
.beforeafter .is-after { border-color: var(--color-green); }
.beforeafter .is-after .ba-label { color: var(--color-green-text); }

/* Team */
.team-lead { display: grid; gap: var(--space-3); align-items: start; }
.team-lead img { width: 100%; max-width: 260px; border-radius: var(--radius); border: 1px solid var(--color-line); }
.team-role { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-accent-text); margin-bottom: var(--space-1); }

.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.team-list li { margin: 0; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
.team-list li:first-child { border-top: 1px solid var(--color-line); }
.team-list h4 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; letter-spacing: 0; margin-bottom: .2rem; }
.team-list .team-role { margin-bottom: .5rem; }
.team-list p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: 1.6; max-width: 68ch; }

/* Article cards */
.cards { display: grid; gap: var(--space-4); }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-panel);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.card:hover { border-color: var(--color-ink-soft); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-panel-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-green-text); }
.card h3 { font-size: var(--text-lg); margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: 1.55; margin: 0; }

/* Article body */
.article-body { font-size: var(--text-base); line-height: 1.7; }
.article-body h2 { font-size: var(--text-2xl); margin-top: var(--space-5); }
.article-body h3 { font-size: var(--text-xl); margin-top: var(--space-4); }
.article-body figure { margin: var(--space-4) 0; }
.article-body ol, .article-body ul { padding-left: 1.3rem; }
.article-body .refs { font-size: var(--text-sm); color: var(--light-ink-soft); }
.article-body .refs li { margin-bottom: .6rem; word-break: break-word; }

/* --------------------------------------------------------------------------
   10. FORM
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--color-ink-soft);
}
.field .optional { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  min-height: 46px;
  transition: border-color var(--speed) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--iron-grey); }
.field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.field input:focus, .field textarea:focus { border-color: var(--color-accent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #C4614B; }
.field .error { color: #E08B77; font-size: var(--text-sm); display: none; }
.field input:user-invalid ~ .error, .field textarea:user-invalid ~ .error { display: block; }

.form-note { font-size: var(--text-sm); color: var(--color-ink-soft); }

.form-success {
  display: none;
  border: 1px solid var(--color-green);
  border-left-width: 2px;
  padding: var(--space-3);
  border-radius: var(--radius);
}
.form-success.is-visible { display: block; }
.form-success:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Same block, saying the send failed rather than succeeded. */
.form-success--error { border-color: #C4614B; }

/* Bait for form-filling bots. Off-screen rather than display:none, because the
   scripts that matter skip anything hidden outright. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. CONVERSION BLOCK
   -------------------------------------------------------------------------- */
.cta {
  border-top: 1px solid var(--color-line);
  background: var(--color-panel);
}
.cta__inner { display: grid; gap: var(--space-3); }
.cta h2 { max-width: 18ch; }
.cta p { color: var(--color-ink-soft); max-width: 52ch; }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  padding-block: var(--space-6) var(--space-4);
}
.site-footer__tagline {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -.02em; max-width: 18ch;
  margin-bottom: var(--space-5);
}
.site-footer__grid { display: grid; gap: var(--space-4); }
.site-footer h3 {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--track-mono); text-transform: uppercase;
  color: var(--color-ink-soft); margin-bottom: var(--space-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; font-size: var(--text-sm); transition: color var(--speed) var(--ease); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; font-size: var(--text-sm); color: var(--color-ink-soft); line-height: 1.7; }
.site-footer__base {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between;
  font-size: var(--text-xs); color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .beforeafter { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team-lead { grid-template-columns: 260px 1fr; gap: var(--space-4); }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-5); }
  .facts li:nth-child(2) { border-top: 1px solid var(--color-line); }
  .cta__inner { grid-template-columns: 1.2fr auto; align-items: end; gap: var(--space-4); }
}

@media (min-width: 1024px) {
  .nav-toggle, .has-js .nav-toggle { display: none; }
  .site-nav, .has-js .site-nav { display: block; width: auto; order: 0; border-top: 0; }
  .has-js .site-nav.is-open {
    position: static; background: none; border: 0; padding: 0; width: auto;
  }
  .site-nav ul { display: flex; gap: var(--space-4); align-items: center; }
  .site-nav a {
    display: flex; align-items: center; min-height: 44px;
    padding: .5rem 0; border: 0; font-size: var(--text-sm); color: var(--color-ink-soft);
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-ink); }
  .site-nav a[aria-current="page"] { color: var(--color-accent); }

  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }

  .hero--split .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-6); align-items: center; }
  .hero--split .hero__media { align-self: stretch; min-height: 420px; }

  /* Journey panels alternate side. This is the asymmetric moment. */
  .journey { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-6); }
  .journey--reverse .journey__body { order: 2; }
  .journey--reverse .journey__media { order: 1; }
  .journey__media { min-height: 300px; }
  .journey--lead .journey__body { padding-block: var(--space-6); }
  .journey--lead h3 { font-size: var(--text-3xl); }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
  /* Inside a half-width column these read better stacked. */
  .split .beforeafter { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1.25fr .75fr; }
  .split--wide-right { grid-template-columns: .75fr 1.25fr; }

  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: var(--space-5); }
  .site-footer__tagline { font-size: var(--text-2xl); }

  .facts--4 { grid-template-columns: repeat(4, 1fr); }
  .facts--4 li { border-top: 1px solid var(--color-line); }
}

@media (min-width: 1280px) {
  .hero__inner { padding-block: clamp(4rem, 6vw, 6rem); }
}

/* --------------------------------------------------------------------------
   14. MOTION PREFERENCE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   15. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   16. UTILITIES
   -------------------------------------------------------------------------- */
/* A narrow measure that still aligns to the page grid, unlike a narrow container. */
.narrow { max-width: var(--container-narrow); }
