/* ==========================================================================
   localai.africa — site layer
   Sits on top of assets/css/nocturne.css (the vendored Nocturne design system)
   and must be linked after it. Nothing here restyles a Nocturne component;
   this file retints the system's tokens and adds the page-level composition.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme
   Nocturne ships as a blue-grey/blurple system. The brand runs it in a
   near-black green ground with an NVIDIA-green accent. These are exactly the
   values the design comp resolves to at runtime: the accent ramp from its
   "NVIDIA green" theme, and the surfaces from its "Solid" surface style —
   opaque panels, no backdrop blur.
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #0b0d0a;
  --color-surface: #161a13;
  --color-text: #eef1ea;
  --color-accent: #76b900;
  --color-accent-300: #a6e34a;
  --color-accent-100: #eaf7d4;
  --color-accent-800: #24350a;
  --color-accent-900: #172206;
  --color-neutral-100: #eef1ea;
  --color-neutral-800: #1e241a;
  --color-divider: color-mix(in srgb, #eef1ea 14%, transparent);

  /* Panel surfaces. */
  --surf-bg: var(--color-surface);
  --surf-bg-strong: var(--color-surface);
  --surf-border: var(--color-neutral-800);

  /* Text emphasis ladder. Body copy on this ground is never full-strength —
     hierarchy comes from how far each level is dimmed toward the background. */
  --text-strong: color-mix(in srgb, var(--color-text) 86%, transparent);
  --text-lede: color-mix(in srgb, var(--color-text) 82%, transparent);
  --text-body: color-mix(in srgb, var(--color-text) 74%, transparent);
  --text-soft: color-mix(in srgb, var(--color-text) 68%, transparent);
  --text-dim: color-mix(in srgb, var(--color-text) 62%, transparent);
  --text-meta: color-mix(in srgb, var(--color-text) 55%, transparent);
  /* The floor of the ladder. 52% is the lowest tint that still clears 4.5:1
     against --color-bg, so nothing on the page drops below AA. */
  --text-faint: color-mix(in srgb, var(--color-text) 52%, transparent);

  --shell-max: 1220px;
  --gutter: 32px;
  --nav-h: 80px; /* the header's real height, rounded up; 78px desktop, 80px mobile */
}

/* --------------------------------------------------------------------------
   2. Page frame
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  /* Shrinks the scrollport the browser scrolls things into, so anything scrolled
     to — an anchor, a keyboard-focused field, find-in-page — clears the sticky
     header. scroll-margin on the targets only covers the targets; this covers
     everything, including form controls tabbed into from above. */
  scroll-padding-top: calc(var(--nav-h) + 24px);
  /* And a little at the foot, so a tall field tabbed into near the bottom of a
     phone screen is not left resting on the last visible pixel row. */
  scroll-padding-bottom: 24px;
  /* clip rather than hidden: hidden on an ancestor silently disables
     position:sticky on the header. */
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  /* Light-on-dark type renders too heavy with subpixel smoothing on macOS. */
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
/* :focus as well as :focus-visible — a programmatic .focus() does not always
   match :focus-visible, and a skip link that stays off-screen is worse than none. */
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

/* The receding-corridor canvas and the veil that grades it into the page.
   Both are decorative and inert to pointers. */
.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.backdrop-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(11, 13, 10, 0.22) 0%,
      rgba(11, 13, 10, 0.08) 32%,
      rgba(11, 13, 10, 0.78) 68%,
      var(--color-bg) 90%),
    radial-gradient(120% 80% at 80% 6%, transparent 42%, rgba(11, 13, 10, 0.5) 100%);
}
/* The inner pages dim the corridor a little further than the landing page and
   swallow it sooner — the landing page is the only one where it is the feature. */
.backdrop-veil--inner {
  background:
    linear-gradient(to bottom,
      rgba(11, 13, 10, 0.26) 0%,
      rgba(11, 13, 10, 0.14) 28%,
      rgba(11, 13, 10, 0.8) 64%,
      var(--color-bg) 88%),
    radial-gradient(120% 80% at 80% 6%, transparent 42%, rgba(11, 13, 10, 0.5) 100%);
}
.backdrop-veil--contact {
  background:
    linear-gradient(to bottom,
      rgba(11, 13, 10, 0.28) 0%,
      rgba(11, 13, 10, 0.16) 26%,
      rgba(11, 13, 10, 0.82) 62%,
      var(--color-bg) 86%),
    radial-gradient(120% 80% at 80% 6%, transparent 42%, rgba(11, 13, 10, 0.5) 100%);
}

.page { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(30px, 6vh, 70px); }
.section--tight { padding-block: clamp(24px, 5vh, 56px); }
.section--cta { padding-block: clamp(30px, 6vh, 70px) clamp(40px, 8vh, 80px); }
/* The FAQs sit slightly tighter than the other landing sections. */
.section--faq { padding-block: clamp(30px, 6vh, 60px); }
/* The Contact page's hero already carries the space above the form. */
.section--contact-body { padding-block: 0 clamp(40px, 8vh, 90px); }
/* No scroll-margin on anchor targets: `scroll-padding-top` on the scroll
   container (see `html` above) already reserves that space, and the two stack —
   which landed every in-page jump twice as far down as intended. */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head__aside {
  font-size: 13px;
  color: var(--text-faint);
}

/* The small accent label above a section. It carries Nocturne's h6 treatment
   explicitly, because the element underneath is whatever the document outline
   needs it to be — an h2 where it is the section's only heading, a plain
   paragraph where a real headline follows it. */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 28px;
}
.eyebrow--tight { margin-bottom: 24px; }
.eyebrow--band { margin-bottom: 18px; }
.section-head .eyebrow { margin: 0; }

/* A closing remark under a grid, in body copy rather than card copy. */
.section-note {
  margin: 26px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

/* Auto-fitting card grids. The minimum column width is what decides when each
   grid reflows, so each family carries its own.

   Every minimum is wrapped in `min(…, 100%)`. A bare `minmax(320px, 1fr)` does
   not shrink below its floor, so on a 320px phone the track is wider than the
   276px of shell available and the cards overhang the viewport — and because
   the page sets `overflow-x: clip`, that overhang is unreachable rather than
   merely scrollable. `min()` lets the track collapse to the container instead. */
.grid { display: grid; gap: 16px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--230 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
/* Same column rule as the industries grid but its own gap — not a variant of it. */
.grid--offices {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  max-width: 860px;
}
/* For an <ol>/<ul> used as a card grid, where the ordering is meaningful but
   the markers are not. */
.grid--plain { list-style: none; margin: 0; padding: 0; }

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

/* --------------------------------------------------------------------------
   4. Panels — the one surface treatment every card on the site is built from
   -------------------------------------------------------------------------- */
.panel {
  border-radius: var(--radius-lg);
  background: var(--surf-bg);
  border: 1px solid var(--surf-border);
  padding: 24px;
}
.panel--md { border-radius: var(--radius-md); padding: 18px 20px; }
.panel--accent {
  background: var(--surf-bg-strong);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   The comp's header sits in the flow. It is sticky here: the landing page is
   several screens tall and three of its five nav items are in-page anchors,
   which are unreachable once the header scrolls away. It is transparent and
   borderless until scrolled, so the top of the page looks unchanged.
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-nav.is-stuck {
  /* Near-opaque on its own. `backdrop-filter` is inert in more places than
     CSS.supports() admits — it reports true in Firefox and WebKit builds where
     nothing is actually composited — and at 88% the sharp text scrolling under
     the bar reads straight through it. The blur is a bonus, never the mechanism. */
  background: color-mix(in srgb, var(--color-bg) 97%, transparent);
  border-bottom-color: var(--color-divider);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 20px var(--gutter);
  gap: 22px;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
/* The mark's spacing is a margin rather than the container's `gap`. The comp used
   `gap: 10px` here, but in a flex container the text run "localai" becomes its own
   anonymous flex item, so the gap also opened up inside the wordmark and the
   domain rendered as "localai .africa". A margin spaces the mark only. */
.brand__mark {
  width: 11px;
  height: 11px;
  flex: none;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 14px 1px var(--color-accent);
  transform: rotate(45deg);
}
.brand__tld { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-cta { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--surf-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-accent); }
.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 8vh, 92px) clamp(40px, 8vh, 88px); }
.hero--inner { padding-block: clamp(36px, 8vh, 88px) clamp(30px, 6vh, 64px); }
.hero--contact { padding-block: clamp(32px, 7vh, 76px) clamp(24px, 4vh, 44px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

/* The only outlined tag that sits over the animated corridor rather than over a
   panel. At 11px its glyphs are thinner than the wireframe lines crossing them,
   so it gets a ground of its own; the tags in the accent band do not need one. */
.hero__tag {
  margin-bottom: 24px;
  background: var(--color-surface);
}

/* The hero is the one place body copy sits over the animated corridor rather
   than over a panel, and the page-wide veil is at its thinnest here. Averaged
   over the whole block the contrast is fine, but measured per glyph pixel
   against the brightest frame the corridor produces, a rack passing behind the
   headline takes it under 3:1. This is a local ground for the text column only —
   weighted left, so the corridor stays untouched on the right where it
   converges, which is the half the composition is actually about. */
.hero__copy {
  position: relative;
  isolation: isolate;
}
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(95% 82% at 26% 46%,
    rgba(11, 13, 10, 0.94) 0%,
    rgba(11, 13, 10, 0.86) 52%,
    rgba(11, 13, 10, 0.55) 78%,
    transparent 100%);
}
.hero__title {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero__lede {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--text-lede);
  margin: 0;
}
/* Inner-page heroes are a single measured column rather than a two-up. */
.hero__single { max-width: 62ch; }
.hero__single .hero__title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; max-width: 20ch; }
.hero__single .hero__lede { max-width: none; }
.hero--contact .hero__single { max-width: 60ch; }
.hero--contact .hero__title { max-width: 16ch; margin-bottom: 22px; font-size: clamp(34px, 4.6vw, 58px); }
.hero--contact .hero__lede { font-size: clamp(16px, 1.7vw, 19px); }

/* The pilot offer, sharing the hero's baseline. The card reacts as one surface,
   but the link inside it is the only focusable, nameable thing. */
.pilot {
  position: relative;
  display: block;
  padding: 26px;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pilot:hover,
.pilot:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Stretches the CTA's hit area over the whole card without putting the card's
   text inside the link. */
.pilot__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.pilot .card-kicker { display: block; margin-bottom: 12px; }
.pilot__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 10px;
}
.pilot__body {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
}
.pilot .btn-block { padding: 11px; }

/* --------------------------------------------------------------------------
   7. Card families
   -------------------------------------------------------------------------- */

/* "Why local" on the landing page, "What we believe" on About. */
.belief { display: flex; flex-direction: column; gap: 10px; }
.belief__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.22;
  color: var(--color-accent-300);
}
.belief__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-body); }

/* The three services. */
.service {
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.service:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.service__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.22;
  margin-bottom: 12px;
}
.service__body { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--text-body); }
.service__deliverable {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}
.service__deliverable dt {
  display: inline;
  color: var(--color-accent-300);
}
.service__deliverable dt::after { content: " — "; }
.service__deliverable dd { display: inline; margin: 0; }

/* Who it's for. */
.industry__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.industry__body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); }

/* Numbered engagement stages (About). */
.stage { display: flex; flex-direction: column; }
.stage__step {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.stage__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.22;
  margin-bottom: 10px;
}
.stage__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-body); }

/* Offices, as cards (About, Contact) and as plain blocks (landing, footer). */
.office__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap; /* the city and its uppercase role stop fitting below ~300px */
  gap: 10px;
  margin-bottom: 12px;
}
.office__city {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  color: var(--color-accent-300);
}
.office__role {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-meta);
}
/* Addresses are marked up as <address>, whose browser default is italic. */
address { font-style: normal; }
.office__lines { font-size: 14.5px; line-height: 1.65; color: var(--text-body); }

.office--plain .office__head { margin-bottom: 6px; }
.office--plain .office__city { font-size: 17px; }
.office--plain .office__role { font-size: 12px; }
.office--plain .office__lines { font-size: 14px; line-height: 1.6; }

.office--md { padding: 20px 22px; }
.office--md .office__head { margin-bottom: 8px; }
.office--md .office__city { font-size: 18px; }
.office--md .office__role { font-size: 12px; }
.office--md .office__lines { font-size: 14px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   8. Diamond-marked lists
   The accent square on its corner, reused from the brand mark, as a bullet.
   -------------------------------------------------------------------------- */
.marks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-strong);
}
.marks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--color-accent);
  transform: rotate(45deg);
  margin-top: 7px;
}

/* Denser variant, inside the service cards. */
.marks--sm { gap: 9px; }
.marks--sm li { gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-lede); }
.marks--sm li::before { width: 5px; height: 5px; margin-top: 7px; }

/* Slightly looser, for "what happens next" on Contact. */
.marks--next { gap: 14px; }
.marks--next li { font-size: 14.5px; line-height: 1.55; color: var(--text-lede); }

/* --------------------------------------------------------------------------
   9. Full-bleed accent band
   The one place the accent is allowed to tint a whole field rather than draw
   a line — Nocturne's documented exception for a landing page's stat band.
   -------------------------------------------------------------------------- */
.band {
  margin-block: clamp(30px, 6vh, 70px);
  padding-block: clamp(44px, 8vh, 84px);
  background: color-mix(in srgb, var(--color-accent) 9%, var(--color-bg));
  border-top: 1px solid var(--color-accent-800);
  border-bottom: 1px solid var(--color-accent-800);
}
.band--inner { margin-block: clamp(24px, 5vh, 56px); padding-block: clamp(44px, 8vh, 80px); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.band__title {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 15ch;
}
.band--inner .band__title { font-size: clamp(28px, 3.6vw, 40px); max-width: 16ch; }
.band__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--text-lede);
}
.band--inner .band__body { font-size: 16px; }
.band__tags {
  /* The comp's marks and this row are siblings in one 12px-gap column, with a
     further 10px on the row itself. */
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   10. Questions we hear
   -------------------------------------------------------------------------- */
.faqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  /* Four items over three columns leaves one on a second row. The comp's 16px
     row gap is only 2x the 8px gap inside an item, so that stacked question
     scanned as a continuation of the answer above it; the row gap has to beat
     the intra-item gap clearly for the grouping to read. */
  gap: 32px 40px;
  max-width: 1040px;
}
.faq__q {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 8px;
}
.faq__a { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact { padding-block: clamp(40px, 8vh, 90px) clamp(56px, 10vh, 110px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.contact__grid--form-first {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
}
.contact__title {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.contact__body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--text-lede);
  margin: 0 0 14px;
}
.contact__offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-divider);
}
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact__aside .eyebrow { margin-bottom: 20px; }
.contact__office-list { display: flex; flex-direction: column; gap: 20px; }
/* These micro-labels are heading elements for the document outline, so they have
   to shed Nocturne's heading margin — their spacing comes from the parent's gap. */
.label-sm {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__more { display: inline-block; margin-top: 24px; font-size: 14px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surf-bg-strong);
  border: 1px solid var(--surf-border);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .btn-block { padding: 12px; }
.form--contact .btn-block { padding: 13px; }
.form--contact textarea.input { min-height: 140px; }
/* Native select needs the caret drawn in, or it inherits the platform's. */
select.input {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-meta) 50%),
    linear-gradient(135deg, var(--text-meta) 50%, transparent 50%);
  background-position: right 16px top 50%, right 11px top 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.input::placeholder { color: color-mix(in srgb, var(--color-text) 52%, transparent); }

/* The honeypot. Positioned out of sight rather than `display: none`, because
   `display: none` is the check a competent bot makes before deciding what to fill
   in — and a field it can see but a person cannot is the whole trick. Kept out of
   the tab order and the accessibility tree by attributes in the markup. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* A rejection from the server. Announced, because the visitor may have scrolled
   past the button by the time it arrives. */
.form__error {
  margin: 0;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Cloudflare's widget renders into this; it stays empty and hidden unless a site
   key is configured on the form. */
.cf-turnstile:empty { display: none; }

/* Sets expectations for the submit button, and carries the no-JS path. It sits
   outside the form panel so the panel keeps the comp's composition. */
.form__fallback {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-meta);
}

/* Which fields are compulsory should not be something you discover by submitting. */
.field__opt {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.form-sent { padding: 36px 30px; }
/* Focus is moved here programmatically when the form is replaced, and a
   programmatic focus does not match :focus-visible — so this needs plain :focus
   or a keyboard user cannot see where they have been sent. */
.form-sent:focus { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.form-sent__title {
  font-size: 15px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--color-accent);
  margin: 0 0 10px;
}
.form-sent__body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-lede);
}
.form-sent .btn { padding: 10px 18px; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   12. Closing call to action (About)
   -------------------------------------------------------------------------- */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 4vw, 40px);
}
.cta-banner__copy { max-width: 46ch; }
.cta-banner__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.16;
  margin-bottom: 10px;
}
.cta-banner__body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.cta-banner .btn { padding: 13px 26px; font-size: 15px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-divider); }
.footer__grid {
  padding-block: clamp(36px, 6vh, 56px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 36px 40px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
}
.footer__tagline {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 30ch;
  color: var(--text-dim);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col--offices { gap: 18px; }
.footer__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__col a {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  width: fit-content;
}
.footer__col a:hover { color: var(--color-accent); text-decoration: underline; }
.footer__office-city {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.footer__office-lines { font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.footer__bar {
  padding-block: 28px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
}
/* Reads as another line of footer small print rather than a button, which is
   the right weight for a control most visitors will never need. */
.footer__bg-toggle {
  margin-inline: auto;
  padding: 4px 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--color-text) 25%, transparent);
}
.footer__bg-toggle:hover { color: var(--color-accent); text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   14. Entrance
   -------------------------------------------------------------------------- */
/* Animates `translate`, not `transform`, on purpose. These run with
   `fill-mode: both`, and a finished animation still wins the cascade over a
   normal declaration — so a `transform`-based keyframe would permanently
   outrank `.pilot:hover`'s lift and silently kill it. Keeping the entrance on
   `translate` leaves `transform` free for hover states. */
@keyframes la-rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
.rise { animation: la-rise 0.9s ease both; }
.rise--late { animation: la-rise 1.05s ease both; }

/* --------------------------------------------------------------------------
   15. Reflow
   -------------------------------------------------------------------------- */

/* The header collapses before the hero does — five items plus a brand run out
   of room first. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 18px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--surf-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    white-space: normal;
  }
  .nav-links:not(.is-open) { display: none; }
  /* Excluding the CTA is load-bearing, not tidiness: Nocturne's `.nav a` is more
     specific than `.nav-cta`, so a rule matching every link here would take the
     button's padding and overwrite its accent border on one side. */
  .nav-links > a:not(.nav-cta) {
    padding: 11px 2px;
    font-size: 15px;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent);
  }
  .nav-links > a.nav-cta {
    margin-top: 12px;
    justify-content: center;
    padding: 12px 18px;
  }
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
  .hero__title { max-width: 22ch; }
}

@media (max-width: 900px) {
  /* Both stack in DOM order, which is already right in each case: the landing
     page leads with the pitch, the Contact page leads with the form. */
  .contact__grid,
  .contact__grid--form-first { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); }
  .band__title, .band__body { max-width: 30ch; }
}

@media (max-width: 600px) {
  :root { --gutter: 22px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form-sent { padding: 28px 22px; }
  .cta-banner { gap: 18px; }
  .cta-banner .btn { width: 100%; }
  .footer__bar { padding-block: 24px 36px; }
}

/* --------------------------------------------------------------------------
   16. Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pilot:hover, .service:hover { transform: none; }
}

@media print {
  .backdrop, .backdrop-veil, .site-nav, .form, .skip-link { display: none !important; }
  :root { --color-bg: #fff; --color-text: #111; }
  body { background: #fff; color: #111; }
  .panel, .band { border: 1px solid #bbb !important; background: none !important; box-shadow: none !important; }
  .band { border-inline: 0 !important; }
  a { color: #111; }
}
