/* ============================================================
   ET ROBOTICS
   ------------------------------------------------------------
   Brief, from the brand guidelines:
   "Iron and lime. Near-black does the structural work.
    Lime fires once, on the thing that matters."

   MATERIAL MODEL — three deliberate layers:
     0  Iron canvas + a soft atmosphere field at the top of the
        page. The field exists so glass has something to refract;
        glass over flat black is just a grey box.
     1  Flat structure — hairline grids, rules, type. Most of the
        page lives here. Nothing frosted.
     2  Glass, reserved for elements that genuinely float above
        content: the header, panes over the atmosphere, and cards
        overlaying media. Frosting everything is what makes
        glassmorphism look dated; rationing it is what makes it
        read as a material.
============================================================ */

:root {
  /* Palette */
  --iron: #0c0c0b;
  --bone: #f0ede6;
  --lime: #cdff39;

  /* Text tones — alphas verified for WCAG AA on iron and on glass */
  --text: var(--bone);
  --text-muted: rgba(240, 237, 230, 0.66);
  --text-dim: rgba(240, 237, 230, 0.58);

  /* Flat structure */
  --rule: rgba(240, 237, 230, 0.11);
  --rule-strong: rgba(240, 237, 230, 0.2);
  --surface: rgba(240, 237, 230, 0.035);

  /* Glass — the light tint sits on a dark stabilising base. The base
     matters: the live mesh moving behind the panes would otherwise
     lift the surface unpredictably and push body text under AA. */
  --glass-tint:
    linear-gradient(
      155deg,
      rgba(240, 237, 230, 0.085),
      rgba(240, 237, 230, 0.028) 46%,
      rgba(240, 237, 230, 0.055)
    ),
    rgba(12, 12, 11, 0.55);
  --glass-edge: rgba(240, 237, 230, 0.16);
  --glass-blur: blur(20px) saturate(180%);
  --glass-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 28px -14px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);

  /* Type — Space Grotesk + Space Mono, per the brand guidelines.
     Space Grotesk is also the logotype, so site and mark stay in
     one voice. Tracking is tuned for this face specifically:
     it needs a firm negative at display sizes to sit tight. */
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tk-display: -0.042em;
  --tk-lg: -0.032em;
  --tk-md: -0.022em;
  --w-head: 500;

  /* Metrics */
  --max: 1240px;
  --gutter: clamp(22px, 5vw, 72px);
  --section: clamp(84px, 12vw, 168px);
  --r: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--iron);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--iron);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Accessibility ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--lime);
  color: var(--iron);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 6px;
}
.skip:focus { left: var(--gutter); top: 14px; }

/* the skip target is focusable but must not draw an outline when reached
   by the skip link, and must clear the sticky header when scrolled to */
#main { scroll-margin-top: 96px; }
#main:focus { outline: none; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   LAYER 0 — LIVE SPATIAL MESH
   A canvas point-cloud: drifting nodes, links forming between
   near neighbours, and a soft light that tracks the cursor.
   Two jobs at once — it reads as the machine's own spatial map
   (perception, SLAM, sensor mesh), and it gives the glass above
   it a *moving* backdrop to refract, which is what makes the
   material feel alive rather than printed on.
============================================================ */
#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

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

/* ============================================================
   GLASS UTILITY
============================================================ */
.glass {
  position: relative;
  background: var(--glass-tint);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}
/* specular rim — light catching the top edge of the pane */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.04) 34%,
    transparent 62%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
/* micro-grain — keeps the frost from reading as flat plastic */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
.glass > * { position: relative; z-index: 2; }

/* ============================================================
   TYPE
============================================================ */
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-head); text-wrap: balance; }

/* Every clamp() mid-term keeps a rem component. A pure-vw middle value
   ignores the user's font-size preference and breaks WCAG 1.4.4 at 200%
   zoom, because the text stops scaling with the root size. */
.display {
  font-size: clamp(2.6rem, 4.6vw + 1rem, 5.75rem);
  line-height: 0.98;
  letter-spacing: var(--tk-display);
}
.h-lg {
  font-size: clamp(1.9rem, 1.9vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: var(--tk-lg);
}
.h-md {
  font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.6rem);
  line-height: 1.2;
  letter-spacing: var(--tk-md);
}
.h-sm {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: var(--w-head);
}

/* the one lime moment: the period from the logotype */
.dot { color: var(--lime); }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: clamp(1.0625rem, 1.1vw + 0.8rem, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}
.body { color: var(--text-muted); line-height: 1.7; }
.body + .body { margin-top: 1.1em; }

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}
/* Section marker. Replaced the old 01/02/03 counters: sequence numbers
   implied an order the content doesn't actually have, and they multiplied
   awkwardly once the same label appeared on several pages. A single lime
   tick keeps the accent and the alignment without pretending to count. */
.meta .idx {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 0.9em;
  vertical-align: 0.28em;
  background: var(--lime);
  flex: none;
}

/* ============================================================
   BUTTONS + LINKS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
/* lime fires here — on the action that matters */
.btn-fill { background: var(--bone); color: var(--iron); }
.btn-fill:hover { background: var(--lime); transform: translateY(-1px); }

.btn-glass {
  color: var(--text);
  border-color: var(--glass-edge);
  background: rgba(240, 237, 230, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: rgba(240, 237, 230, 0.42); transform: translateY(-1px); }

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.arrow:hover { border-color: var(--lime); gap: 16px; }

/* ============================================================
   HEADER — a floating glass pill. The signature glass moment:
   content scrolls visibly under it and refracts through.
============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 14px;
  transition: padding 0.35s var(--ease);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
  height: 62px;
  padding-inline: 14px 14px;
  border-radius: 999px;
  /* glass only kicks in once there's content behind it */
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.hdr.stuck .hdr-in {
  background: var(--glass-tint);
  border-color: var(--glass-edge);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; padding-left: 8px; }
.brand img { width: 21px; }
.brand span { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a { color: var(--text-dim); transition: color 0.25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: var(--lime);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  position: relative;
}
.burger i {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s var(--ease);
}
.burger i:nth-child(1) { top: 19px; }
.burger i:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   SECTION SCAFFOLD
============================================================ */
.sec { padding-block: var(--section); }
.sec-tight { padding-block: clamp(56px, 7vw, 96px); }
.ruled { border-top: 1px solid var(--rule); }

.head {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.head .meta { padding-top: 0.55em; }
.head-copy { max-width: 720px; min-width: 0; }
.head-copy .lede { margin-top: 20px; }

/* ============================================================
   HERO
============================================================ */
.hero { padding-block: clamp(64px, 11vh, 132px) clamp(56px, 8vw, 96px); }
.hero-meta { margin-bottom: clamp(28px, 4vw, 44px); }
.hero .display { max-width: 15ch; }
.hero .lede { max-width: 54ch; margin-top: clamp(24px, 3vw, 34px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(34px, 4vw, 48px); }

.phero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 76px); }
.phero .h-lg { max-width: 18ch; margin-top: 26px; }
.phero .lede { max-width: 58ch; margin-top: 24px; }

/* ============================================================
   FULL-BLEED MEDIA + GLASS OVERLAY
   Glass genuinely earns its place here — real imagery behind it.
============================================================ */
.bleed {
  position: relative;
  border-block: 1px solid var(--rule);
  background: #000;
}
.bleed video, .bleed img {
  width: 100%;
  height: clamp(320px, 58vh, 640px);
  object-fit: cover;
}
/* Gradient scrim: guarantees the overlay card stays legible even if the
   footage swapped in later is much brighter than the placeholder. */
.bleed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(8, 8, 7, 0.8), transparent);
  pointer-events: none;
}
.bleed-overlay {
  position: absolute;
  left: 0; right: 0; bottom: clamp(20px, 3vw, 34px);
  z-index: 2;
  pointer-events: none;
}
.overlay-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 26px;
  pointer-events: auto;
  max-width: 34ch;
  /* darker tint than standard glass — it sits on unpredictable imagery */
  background: linear-gradient(155deg, rgba(12, 12, 11, 0.62), rgba(12, 12, 11, 0.48));
}
.overlay-card .h-sm { color: var(--bone); }
.overlay-card .meta { color: rgba(240, 237, 230, 0.78); }

/* ============================================================
   GLASS PANES (capabilities)
============================================================ */
.panes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pane {
  padding: clamp(28px, 3.2vw, 42px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pane:hover { transform: translateY(-4px); border-color: rgba(240, 237, 230, 0.28); }
.pane .meta { margin-bottom: 26px; }
.pane .h-md { margin-bottom: 14px; }
.pane .body { font-size: 0.95rem; }

/* ============================================================
   FLAT HAIRLINE GRID (stats, values) — deliberate contrast to
   the glass. Not everything should be a floating pane.
============================================================ */
.cells { display: grid; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.cells-4 { grid-template-columns: repeat(4, 1fr); }
.cell {
  padding: clamp(26px, 3vw, 40px);
  border-left: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}
.cell:first-child { border-left: 0; }
.cell:hover { background: var(--surface); }

.stat-n {
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.stat-n sub {
  font-family: var(--mono);
  font-size: 0.3em;
  letter-spacing: 0.1em;
  vertical-align: super;
  margin-left: 4px;
  color: var(--text-dim);
  bottom: 0;
}
.cell .meta { margin-top: 16px; }
/* on the value cards the marker leads the card, so it gets no top margin
   and instead sets the gap down to the heading */
.cell > .meta:first-child { margin-top: 0; margin-bottom: 20px; }
.cell .h-sm { margin-bottom: 12px; }

/* ============================================================
   SPLIT
============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-copy .h-lg { margin-bottom: 24px; }
.split-copy .arrow { margin-top: 32px; }

.figure {
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  padding: 8%;
}
.figure svg { width: 100%; height: auto; }

/* photo variant — the image fills the pane instead of floating inside it */
.figure-photo {
  padding: 0;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.figure-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 940px) {
  .figure-photo { aspect-ratio: 4 / 3; }
}

/* ============================================================
   NUMBERED ROWS
============================================================ */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  padding: clamp(28px, 3.4vw, 44px) 20px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}
.row:hover { background: var(--surface); }
/* rows are links on the 404 page */
a.row { color: inherit; }
a.row:hover .h-md { color: var(--lime); }
.row .meta { padding-top: 0.4em; }
.row-body { max-width: 62ch; }
.row-body .h-md { margin-bottom: 12px; }

/* ============================================================
   ROLES (careers)
   A role row is a link, so the whole row is the hit target —
   not just the title. Discipline left, detail right.
============================================================ */
.rows-roles .row {
  grid-template-columns: 190px minmax(0, 1fr) 210px;
  align-items: start;
  color: inherit;
}
.role-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 0.4em;
  text-align: right;
}
.role-go {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--text);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.row:hover .role-go { color: var(--lime); gap: 14px; }
.row:hover .h-md { color: var(--lime); }

/* fit list — two honest columns */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-col { padding: clamp(26px, 3vw, 38px); }
.fit-col > .meta { margin-bottom: 20px; }
.fit-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.fit-col li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1px;
  background: var(--lime);
}
.fit-col--no li::before { background: var(--text-dim); }

/* ============================================================
   SPEC TABLE
============================================================ */
.specs { border-top: 1px solid var(--rule); }
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  transition: background 0.3s var(--ease);
}
.spec:hover { background: var(--surface); }
.spec dt { color: var(--text-muted); }
.spec dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-align: right;
}

/* ============================================================
   MEDIA TRIO
============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clip { overflow: hidden; margin: 0; transition: transform 0.4s var(--ease); }
.clip:hover { transform: translateY(-4px); }
.clip video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
}
.clip-cap { padding: 20px 24px 24px; border-top: 1px solid var(--glass-edge); }
.clip-cap .meta { margin-bottom: 10px; }
.clip-cap .body { font-size: 0.875rem; }

/* ============================================================
   CTA
============================================================ */
.cta-panel { padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px); text-align: center; }
.cta-panel .h-lg { max-width: 20ch; margin-inline: auto; }
.cta-panel .lede { max-width: 46ch; margin: 22px auto 0; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

/* ============================================================
   CONTACT
============================================================ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}
.info-item { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.info-item:first-of-type { border-top: 1px solid var(--rule); }
.info-item .meta { margin-bottom: 8px; }
.info-item a { overflow-wrap: anywhere; }   /* long email in a narrow column */
.info-item a:hover { color: var(--lime); }

.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  width: 44px; height: 44px;   /* minimum comfortable touch target */
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover { border-color: var(--bone); color: var(--text); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }

.form {
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* the form collapses on its OWN width, not the viewport's — it sits in a
     narrow grid column, so a viewport breakpoint was always the wrong signal */
  container-type: inline-size;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@container (max-width: 460px) {
  .pair { grid-template-columns: 1fr; }
}
.f { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.f label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.f label i, .req { color: var(--lime); font-style: normal; }
.f input, .f textarea, .f select {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(12, 12, 11, 0.3);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 13px 15px;
  outline: 0;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}
.f input::placeholder, .f textarea::placeholder { color: rgba(240, 237, 230, 0.32); }
.f input:focus, .f textarea:focus, .f select:focus {
  border-color: var(--lime);
  background: rgba(12, 12, 11, 0.5);
}
.f select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23cdff39' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.f select option { background: #17170f; color: var(--bone); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.status { font-family: var(--mono); font-size: 11.5px; color: var(--lime); }
.note { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- Validation ----------
   Errors are never signalled by colour alone (WCAG 1.4.1): each one gets a
   glyph, a border change, and a sentence saying how to fix it. */
:root { --err: #ff8b6b; }   /* 6.6:1 on iron — readable, not alarming */

.f input[aria-invalid="true"],
.f textarea[aria-invalid="true"],
.f select[aria-invalid="true"] {
  border-color: var(--err);
  background: rgba(255, 139, 107, 0.06);
}
.err {
  display: none;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--err);
}
.err.on { display: flex; }
.err::before {
  content: "!";
  flex: none;
  width: 15px; height: 15px;
  margin-top: 1px;
  border: 1px solid var(--err);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 13px;
  text-align: center;
}
.alert {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--err);
}
.alert:empty { display: none; }

button[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* ============================================================
   FOOTER
============================================================ */
.ftr { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 76px); }
.ftr-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: clamp(44px, 5vw, 68px);
}
.ftr-brand img { width: 20px; margin-bottom: 18px; }
.ftr-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 30ch; }
.ftr-col .meta { margin-bottom: 20px; }
.ftr-links { display: flex; flex-direction: column; gap: 13px; }
.ftr-links a { color: var(--text-muted); font-size: 0.9375rem; transition: color 0.25s var(--ease); }
.ftr-links a:hover { color: var(--text); }

.ftr-btm {
  border-top: 1px solid var(--rule);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Motion stop control (WCAG 2.2.2) — quiet, but always reachable. */
.motion-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 36px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.motion-btn:hover { color: var(--text); border-color: var(--rule-strong); }
.motion-btn[aria-pressed="true"] { color: var(--lime); border-color: rgba(205, 255, 57, 0.4); }

/* ============================================================
   MOTION — one system: fade + rise, lightly staggered
============================================================ */
.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .pane:hover, .clip:hover, .btn:hover, .socials a:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 940px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 16px;
    border-radius: var(--r);
    background: var(--glass-tint);
    border: 1px solid var(--glass-edge);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 15px; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--lime); }
  .nav { padding-right: 0; }
  .burger { display: block; }
  .hdr-in { padding-inline: 6px; }

  .head { grid-template-columns: 1fr; gap: 18px; }
  .head .meta { padding-top: 0; }

  .panes, .trio { grid-template-columns: 1fr; }
  .cells-4 { grid-template-columns: 1fr 1fr; }
  .cells-4 .cell:nth-child(2n+1) { border-left: 0; }
  .cells-4 .cell:nth-child(n+3) { border-top: 1px solid var(--rule); }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .figure { order: -1; aspect-ratio: 16 / 10; }

  .row { grid-template-columns: 1fr; gap: 14px; padding-inline: 12px; }
  .row .meta { padding-top: 0; }
  .rows-roles .row { grid-template-columns: 1fr; }
  .role-meta { text-align: left; padding-top: 0; flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .role-go { justify-content: flex-start; }
  .fit { grid-template-columns: 1fr; }

  .contact { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .overlay-card { max-width: none; }
}

@media (max-width: 560px) {
  /* .pair is handled by a container query — it collapses on the form's
     own width, which is the measurement that actually matters here */
  .ftr-in { grid-template-columns: 1fr; }
  .ftr-btm { flex-direction: column; gap: 8px; }
  .spec { flex-direction: column; gap: 4px; align-items: flex-start; }
  .spec dd { text-align: left; }
}

