/* ==========================================================================
   Codic Systems — site.css
   --------------------------------------------------------------------------
   Design notes, so the next person changing this knows the rules:

   · Navy is the ground, white is the page, green is a seasoning. Green appears
     on roughly one element per view — a rule, a code, a single word. If a
     screen has three green things, one of them is wrong.
   · No gradients, glows, bevels or drop shadows anywhere. The brand forbids
     them and the restraint is what makes the hairlines read as deliberate.
   · Outfit carries the voice. A monospace utility face carries the data —
     registration numbers, codes, timings, labels. That split is the signature:
     this is a company whose credibility is verifiable, so the verifiable parts
     are set in the face that machines use.
   · Type scale is fluid via clamp(). There are no media-query font sizes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font
   Self-hosted so there is no third-party request and no GDPR question from a
   UK or EU client. See assets/fonts/README.txt to install the file.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --navy:        #030D4E;
  --navy-deep:   #020935;
  --navy-lift:   #0A1660;
  --green:       #12A17A;
  --green-bright:#17BC8E;
  --ink:         #151A26;
  --slate:       #5A6478;
  --muted:       #8A93A6;
  --surface:     #F5F7FA;
  --white:       #FFFFFF;

  /* Derived lines */
  --line:        rgba(3, 13, 78, 0.13);
  --line-soft:   rgba(3, 13, 78, 0.07);
  --line-dark:   rgba(255, 255, 255, 0.16);
  --line-dark-soft: rgba(255, 255, 255, 0.08);

  /* Type */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'JetBrains Mono', Menlo,
          Consolas, 'Liberation Mono', monospace;

  /* Fluid scale */
  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 0.35vw + 1.05rem, 1.25rem);
  --t-lg:   clamp(1.375rem, 0.8vw + 1.2rem, 1.75rem);
  --t-xl:   clamp(1.75rem, 1.6vw + 1.35rem, 2.5rem);
  --t-2xl:  clamp(2.125rem, 2.8vw + 1.4rem, 3.5rem);
  --t-3xl:  clamp(2.5rem, 5vw + 1rem, 5.25rem);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 140px);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms;
  --slow: 480ms;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--green); color: var(--white); }

/* --------------------------------------------------------------------------
   4. Typography primitives
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

/* The mono eyebrow. Used above section headings to carry a label or a code —
   never decorative text. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--green);
  flex: none;
}

.eyebrow--plain::before { display: none; }
.on-navy .eyebrow { color: var(--green-bright); }

.lead {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--slate);
  max-width: 62ch;
}

.on-navy .lead { color: rgba(255, 255, 255, 0.72); }

.mono {
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
}

/* Single-word green emphasis in a headline. Used once per page at most. */
.mark {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}

.on-navy .mark { color: var(--green-bright); }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }

.section--navy { background: var(--navy); color: var(--white); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.on-navy { color: var(--white); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }

/* Section head: heading left, supporting text right. Asymmetric on purpose —
   a centred heading is the default answer and this page is not centred. */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sec-head__title { font-size: var(--t-2xl); }
.sec-head__aside { padding-bottom: 6px; }

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.contact-layout {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.article-layout {
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout, .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  input, select, textarea { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skip:focus { left: 0; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

/* Over a navy hero the header is transparent; once scrolled it becomes solid
   navy so the nav never sits on top of white content. */
.header--solid {
  background: var(--white);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.logo img { display: block; width: 152px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-block: 6px;
  opacity: 0.82;
  transition: opacity var(--fast) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease);
}

.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { opacity: 1; }

.nav__cta {
  flex: none;
  margin-left: 8px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }

body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--navy);
    color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 32px var(--gutter) 48px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease),
                visibility var(--fast);
    overflow-y: auto;
  }
  body.nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }
  body.nav-open { overflow: hidden; }
  .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.028em;
    width: 100%;
    padding-block: 18px;
    border-bottom: 1px solid var(--line-dark-soft);
    opacity: 1;
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 32px 0 0; }
  .burger { display: block; }
  .header--solid, .header { color: var(--ink); }
  body.nav-open .header { background: var(--white); }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding-inline: 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn svg { width: 15px; height: 15px; flex: none; transition: transform var(--fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-bright); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

.on-navy .btn--ghost { border-color: var(--line-dark); color: var(--white); }
.on-navy .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--sm { height: 42px; padding-inline: 18px; font-size: 0.875rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Text link with an arrow — used at the end of cards. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: gap var(--fast) var(--ease), color var(--fast) var(--ease);
}
.arrow-link svg { width: 14px; height: 14px; }
.arrow-link:hover { gap: 14px; color: var(--green); }
.on-navy .arrow-link { color: var(--white); }
.on-navy .arrow-link:hover { color: var(--green-bright); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(140px, 17vh, 200px);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* A single hairline grid, very faint. It reads as engineering drafting paper
   rather than decoration, and it is the only texture on the page. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
}

.hero__title {
  font-size: var(--t-3xl);
  letter-spacing: -0.038em;
  line-height: 0.98;
  max-width: 15ch;
}

.hero__lead {
  margin-top: 28px;
  max-width: 54ch;
  font-size: var(--t-md);
  color: rgba(255, 255, 255, 0.7);
}

.hero__actions { margin-top: 38px; }

/* The aside column: what the company does, as a plain list. No icons. */
.hero__aside {
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}

.hero__aside dt {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
}

.hero__aside dd { font-size: 0.9375rem; color: rgba(255,255,255,0.74); }
.hero__aside dd + dd { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-dark-soft); }

@media (max-width: 980px) {
  .hero__aside { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; padding-top: 28px; }
}

/* --------------------------------------------------------------------------
   9. Register strip — the signature element
   A hairline band of verifiable facts, set in mono. This company's entire
   positioning is "registered, filing, verifiable", so the credentials are the
   ornament rather than a stock illustration.
   -------------------------------------------------------------------------- */

.register {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.018);
}

.register__inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.register__inner::-webkit-scrollbar { display: none; }

.register__item {
  flex: 1 0 auto;
  min-width: 0;
  padding: 20px clamp(18px, 2.4vw, 32px);
  border-right: 1px solid var(--line-dark-soft);
  white-space: nowrap;
}

.register__item:first-child { padding-left: 0; }
.register__item:last-child { border-right: 0; }

.register__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 7px;
}

.register__value {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
}

.register__value a { border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color var(--fast); }
.register__value a:hover { border-bottom-color: var(--green-bright); color: var(--green-bright); }

.register__value .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  margin-right: 8px;
  vertical-align: 1px;
}

@media (max-width: 700px) {
  .register__inner { padding-inline: 0; }
  .register__item { padding-block: 16px; }
}

/* Light variant, used on inner pages and in the footer. */
.register--light {
  border-color: var(--line);
  background: transparent;
}
.register--light .register__item { border-right-color: var(--line-soft); }
.register--light .register__label { color: var(--muted); }
.register--light .register__value { color: var(--navy); }

/* --------------------------------------------------------------------------
   10. Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(130px, 15vh, 172px);
  padding-bottom: clamp(52px, 6vw, 84px);
  position: relative;
}

.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}

@media (max-width: 900px) {
  .page-head__grid { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}

.page-head__title { font-size: var(--t-2xl); max-width: 18ch; }
.page-head__lead { color: rgba(255,255,255,0.7); font-size: var(--t-md); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}
.crumbs a:hover { color: var(--green-bright); }
.crumbs span[aria-hidden] { opacity: 0.4; }

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  transition: border-color var(--slow) var(--ease), transform var(--slow) var(--ease);
  height: 100%;
}

a.card:hover { border-color: var(--navy); transform: translateY(-3px); }

/* The green rule that draws across the top on hover. One accent, one place. */
.card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  height: 2px;
  width: calc(100% + 2px);
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--slow) var(--ease);
}
a.card:hover::after { transform: scaleX(1); }

.card__code {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
}

.card__title {
  font-size: var(--t-lg);
  margin-bottom: 12px;
  letter-spacing: -0.024em;
}

.card__text {
  color: var(--slate);
  font-size: 0.9688rem;
  line-height: 1.62;
  margin-bottom: 24px;
}

.card__foot { margin-top: auto; }

.card--surface { background: var(--surface); border-color: transparent; }
a.card--surface:hover { border-color: var(--navy); }

/* Navy cards, used on dark sections */
.card--navy {
  background: var(--navy-lift);
  border-color: var(--line-dark-soft);
  color: var(--white);
}
.card--navy .card__text { color: rgba(255,255,255,0.7); }
.card--navy .card__code { color: rgba(255,255,255,0.42); }
a.card--navy:hover { border-color: rgba(255,255,255,0.35); }

/* --------------------------------------------------------------------------
   12. Case cards
   -------------------------------------------------------------------------- */

.case-card { display: block; }

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.case-card__title {
  font-size: var(--t-lg);
  letter-spacing: -0.026em;
  margin-bottom: 18px;
  max-width: 26ch;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.stat {
  flex: 1 1 0;
  min-width: 96px;
  padding: 18px 20px 0 0;
}

.stat__figure {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.stat:first-child .stat__figure { color: var(--green); }

.stat__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 9px;
  text-transform: uppercase;
  white-space: normal;
}

.on-navy .stat-row { border-color: var(--line-dark); }
.on-navy .stat__figure { color: var(--white); }
.on-navy .stat:first-child .stat__figure { color: var(--green-bright); }
.on-navy .stat__label { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------------
   13. Process — a real sequence, so numbering carries information
   -------------------------------------------------------------------------- */

.process { counter-reset: step; }

.process__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding-block: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  align-items: start;
}

.process__item:last-child { border-bottom: 1px solid var(--line); }

.process__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 5px;
}

.process__title { font-size: var(--t-lg); margin-bottom: 10px; }
.process__text { color: var(--slate); max-width: 68ch; }

.on-navy .process__item { border-color: var(--line-dark); }
.on-navy .process__text { color: rgba(255,255,255,0.7); }

@media (max-width: 600px) {
  .process__item { grid-template-columns: 44px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   14. Spec list — label/value pairs, used for facts
   -------------------------------------------------------------------------- */

.spec { border-top: 1px solid var(--line); }

.spec__row {
  display: grid;
  grid-template-columns: minmax(140px, 4fr) minmax(0, 8fr);
  gap: 20px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.spec__key {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec__val { font-size: 0.9688rem; }
.spec__val a { border-bottom: 1px solid var(--line); }
.spec__val a:hover { color: var(--green); border-bottom-color: var(--green); }

.on-navy .spec, .on-navy .spec__row { border-color: var(--line-dark); }
.on-navy .spec__key { color: rgba(255,255,255,0.45); }

@media (max-width: 560px) {
  .spec__row { grid-template-columns: 1fr; gap: 6px; }
}

/* --------------------------------------------------------------------------
   15. Checklist
   -------------------------------------------------------------------------- */

.checks { display: grid; gap: 14px; }

.checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--slate);
  font-size: 0.9688rem;
  line-height: 1.6;
}

.checks li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

.on-navy .checks li { color: rgba(255,255,255,0.72); }

/* --------------------------------------------------------------------------
   16. Prose (article and long-form body)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 68ch;
  font-size: var(--t-md);
  line-height: 1.72;
  color: var(--ink);
}

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: var(--t-xl);
  margin-top: 2.2em;
  margin-bottom: 0.1em;
  letter-spacing: -0.03em;
}

.prose h3 {
  font-size: var(--t-lg);
  margin-top: 1.9em;
  margin-bottom: 0.1em;
}

.prose p { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }

.prose a {
  color: var(--navy);
  border-bottom: 1.5px solid var(--green);
  transition: background var(--fast) var(--ease);
}
.prose a:hover { background: rgba(18,161,122,0.1); }

.prose ul { display: grid; gap: 0.65em; }

.prose li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.prose li::before {
  content: '';
  width: 6px;
  height: 1.5px;
  background: var(--green);
  margin-top: 0.85em;
}

.prose blockquote {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 26px;
  font-size: var(--t-lg);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.prose blockquote p + p { margin-top: 0.5em; }

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.15em 0.42em;
  border-radius: 2px;
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }

/* --------------------------------------------------------------------------
   17. Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 4vw, 48px);
  margin-block: clamp(40px, 5vw, 64px);
}

.pullquote p {
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 24ch;
}

.pullquote footer {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   18. FAQ — accordion. Also the AEO surface: plain question, direct answer.
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: color var(--fast) var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }

.faq__sign {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 7px;
}

.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute;
  background: var(--green);
  transition: transform var(--fast) var(--ease);
}
.faq__sign::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq__sign::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }

.faq__item[open] .faq__sign::after { transform: scaleY(0); }

.faq__answer {
  padding-bottom: 28px;
  color: var(--slate);
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.68;
}
.faq__answer > * + * { margin-top: 1em; }

.on-navy .faq, .on-navy .faq__item { border-color: var(--line-dark); }
.on-navy .faq__item summary { color: var(--white); }
.on-navy .faq__answer { color: rgba(255,255,255,0.7); }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */

.field { display: block; margin-bottom: 22px; }

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field__label .req { color: var(--green); }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6478' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18,161,122,0.13);
}

.field__hint { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.field__error { font-size: 0.875rem; color: #C0392B; margin-top: 8px; font-weight: 500; }
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: #C0392B; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.notice--error { border-left-color: #C0392B; }
.notice strong { display: block; margin-bottom: 5px; }
.notice p { color: var(--slate); font-size: 0.9688rem; }

/* --------------------------------------------------------------------------
   20. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 104px);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.cta-band__title { font-size: var(--t-2xl); max-width: 17ch; }

@media (max-width: 900px) {
  .cta-band__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.62);
  padding-top: clamp(56px, 6vw, 88px);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__tag {
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  color: var(--green-bright);
  margin-top: 20px;
}

.footer__about { margin-top: 18px; max-width: 40ch; line-height: 1.62; color: rgba(255,255,255,0.55); }

.footer h3 {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer__list { display: grid; gap: 11px; }
.footer__list a { transition: color var(--fast) var(--ease); }
.footer__list a:hover { color: var(--green-bright); }

.footer__legal {
  border-top: 1px solid var(--line-dark-soft);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.footer__legal a:hover { color: var(--green-bright); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */

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

.tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.on-navy .tag { border-color: var(--line-dark); color: rgba(255,255,255,0.65); }
.tag--green { border-color: var(--green); color: var(--green); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-navy .divider { border-color: var(--line-dark); }

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: clamp(36px, 4vw, 56px); }

/* Disclosure line on case studies — honesty made visible rather than buried. */
.disclosure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9063rem;
  color: var(--slate);
  line-height: 1.55;
}

.disclosure strong {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  flex: none;
  padding-top: 3px;
}

@media (max-width: 560px) { .disclosure { flex-direction: column; gap: 8px; } }

/* --------------------------------------------------------------------------
   23. Motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */

@media print {
  .header, .footer, .cta-band, .burger, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .page-head, .section--navy { background: #fff !important; color: #000 !important; }
  .hero *, .page-head *, .section--navy * { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --------------------------------------------------------------------------
   26. Fixes found during build review
   -------------------------------------------------------------------------- */

/* Keep the header artwork and navigation readable in every scroll state. */
.header { color: var(--ink); }
.header .btn--ghost { border-color: var(--line); color: var(--ink); }
.header .btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Four lines of headline at desktop width is one too many. */
.hero__title { max-width: 19ch; }

/* Reveal-on-scroll must never hide content from a visitor without JavaScript,
   or from a crawler that does not execute it. The .js class is set by an inline
   script in the head, so [data-reveal] is only hidden once we know JS is running
   and can therefore un-hide it. */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* When an eyebrow wraps on a narrow screen, its rule must stay on the first
   line rather than centring itself across both. */
.eyebrow { align-items: flex-start; flex-wrap: nowrap; }
.eyebrow::before { margin-top: 0.62em; }

/* Long two-part eyebrows read better stacked than badly wrapped on phones. */
@media (max-width: 480px) {
  .eyebrow { font-size: 0.6875rem; letter-spacing: 0.12em; }
}

/* On case studies and articles the side column is much shorter than the prose,
   so it sticks rather than leaving a column of empty space beside the reading. */
@media (min-width: 981px) {
  .side-sticky { position: sticky; top: 108px; }
}
