/* ==========================================================================
   Brainswarm Robotics & AI
   Design system + page styles

   Direction: the engineering datasheet. Ash grey paper, hairline rules,
   navy ink from the logo, one amber signal. Type is a grotesque display
   (Archivo) against a humanist body (Source Sans 3), with mono reserved
   for genuine technical vocabulary.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ash ramp: cool, low chroma. The page is paper, not cream. */
  --ash-25:  #FBFCFD;
  --ash-50:  #F6F7F9;
  --ash-100: #F0F2F5;
  --ash-200: #E7EAEF;
  --ash-300: #DDE1E7;
  --ash-400: #C3C9D3;

  /* Ink ramp. Every text value below is contrast-verified on --ash-50. */
  --faint:  #8A93A3;   /* decorative only, never text */
  --muted:  #5A6475;   /* 5.57:1 */
  --body:   #414A5A;   /* 8.33:1 */
  --ink:    #141A26;   /* 16.25:1 */

  /* Brand navy, sampled from the logo mark. */
  --navy-deep: #001B3D;
  --navy:      #0F2E5E;
  --navy-soft: #1B4B8F;
  --signal:    #123A6B;  /* links, 10.63:1 */

  /* Amber signal, held under 10% of surface. */
  --amber:      #E8780F;  /* fills and graphics */
  --amber-icon: #C2570A;  /* 4.20:1, meets 3:1 for non-text */
  --amber-ink:  #9A4A05;  /* 5.84:1, safe for text */
  --amber-lift: #F2A65A;  /* on navy, 6.60:1 */

  --surface: #FFFFFF;
  --line:    var(--ash-300);
  --line-strong: var(--ash-400);

  /* Type */
  --display: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --text:    "Source Sans 3", "Source Sans 3 Fallback", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Modular scale, 1.25 ratio, fluid at the top end */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 0.35vw + 1.05rem, 1.3125rem);
  --t-lg:   clamp(1.375rem, 0.6vw + 1.24rem, 1.75rem);
  --t-xl:   clamp(1.75rem, 1.1vw + 1.5rem, 2.375rem);
  --t-2xl:  clamp(2.125rem, 2vw + 1.65rem, 3.25rem);
  --t-3xl:  clamp(2.5rem, 3.4vw + 1.7rem, 4.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
  --shell: 1240px;
  --section: clamp(4.5rem, 8vw, 8.5rem);

  --radius:    4px;
  --radius-lg: 10px;

  /* Elevation: restrained, ash-tinted, never a black smear */
  --lift-1: 0 1px 2px rgba(20, 26, 38, .05);
  --lift-2: 0 2px 4px rgba(20, 26, 38, .04), 0 8px 20px rgba(20, 26, 38, .06);
  --lift-3: 0 4px 8px rgba(20, 26, 38, .05), 0 20px 48px rgba(20, 26, 38, .09);

  /* Motion: exponential ease-out, no bounce */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms;
  --mid:  280ms;
  --slow: 620ms;

  /* Semantic z-index scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-backdrop: 300;
  --z-panel: 400;
  --z-toast: 500;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ash-50);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); font-variation-settings: "wdth" 108; }
h2 { font-size: var(--t-2xl); font-variation-settings: "wdth" 105; }
h3 { font-size: var(--t-lg);  letter-spacing: -0.018em; }
h4 { font-size: var(--t-md);  letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--signal); text-decoration: none; }

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

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--navy); color: #fff; }

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

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

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

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

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

.prose { max-width: var(--measure); }

/* A hairline that carries a label, used to open a section without
   resorting to a tracked-uppercase eyebrow on every heading. */
.rule {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.rule__index {
  flex: none;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--amber-ink);
  letter-spacing: .04em;
}
.rule__text { color: var(--muted); font-size: var(--t-sm); }

/* Mono spec pairs, the datasheet device */
.spec {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1.75rem, 4vw, 3.25rem);
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  line-height: 1.7;
}
.spec > div { display: flex; flex-direction: column; gap: .25rem; }
.spec__key {
  color: var(--faint);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spec__val { margin: 0; color: var(--body); font-weight: 500; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 46px;
  padding: .6875rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.btn svg { flex: none; width: 16px; height: 16px; }

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--lift-1);
}
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: var(--lift-2); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ash-100); border-color: var(--faint); }

.btn--onNavy {
  background: #fff;
  border-color: #fff;
  color: var(--navy-deep);
}
.btn--onNavy:hover { background: var(--ash-200); border-color: var(--ash-200); }

.btn--quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.btn--quiet:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

/* Inline link that reads as an action */
.act {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--signal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--fast) var(--ease), color var(--fast) var(--ease);
}
.act svg { width: 15px; height: 15px; }
.act:hover { gap: .75rem; color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(246, 247, 249, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease), background var(--mid) var(--ease);
}
.masthead[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(246, 247, 249, .96);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { flex: none; display: block; }
.brand img { width: clamp(148px, 18vw, 188px); }

.mainnav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.mainnav a {
  position: relative;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: .75rem; right: .75rem; bottom: .25rem;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after,
.mainnav a[aria-current="true"]::after { transform: scaleX(1); }
.mainnav a[aria-current="true"] { color: var(--ink); }

.masthead__act { flex: none; display: flex; align-items: center; gap: .5rem; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.burger svg { width: 20px; height: 20px; }
.burger:hover { background: var(--ash-100); }

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ash-50);
}
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; padding-block: .5rem 1.25rem; }
/* Scoped to the list: a bare `.drawer a` also captures the CTA button and
   overrides its display, which flattens it into a block. */
.drawer ul a {
  display: block;
  padding: .875rem .25rem;
  border-bottom: 1px solid var(--ash-200);
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 500;
}
.drawer ul a:hover { color: var(--signal); }
.drawer .btn { display: flex; width: 100%; margin-block: 0 1.5rem; }

@media (max-width: 960px) {
  .mainnav { display: none; }
  .burger { display: inline-flex; }
  .masthead__act .btn--primary { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}

/* The swarm. Brainswarm's name, drawn: agents that flock by local rules,
   built from the same hexagons as the logo mark. */
.swarm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gutter);
  align-items: end;
}

.hero__title {
  grid-column: 1 / span 9;
  font-size: var(--t-3xl);
  font-weight: 620;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.hero__title em {
  font-style: normal;
  color: var(--navy);
  font-variation-settings: "wdth" 100;
}

.hero__aside {
  grid-column: 6 / span 7;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.hero__lede {
  font-size: var(--t-md);
  color: var(--body);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero__spec {
  position: relative;
  z-index: var(--z-base);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* A live status chip that links out to the product */
.status {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: .4375rem .875rem .4375rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: var(--t-sm);
  font-weight: 500;
  box-shadow: var(--lift-1);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.status:hover { border-color: var(--faint); box-shadow: var(--lift-2); }
.status svg { width: 14px; height: 14px; color: var(--muted); }
.status__dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex: none;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #16A34A;
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { opacity: .7; transform: scale(.6); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@media (max-width: 900px) {
  .hero__title  { grid-column: 1 / -1; }
  .hero__aside  { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   7. Partner marquee
   -------------------------------------------------------------------------- */
.partners { border-block: 1px solid var(--line); background: var(--ash-25); }
.partners__inner { padding-block: 2rem; }
.partners__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.5rem;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.partner {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex: none;
  height: 46px;
  color: var(--muted);
  font-size: var(--t-sm);
  font-weight: 600;
  filter: grayscale(1);
  opacity: .62;
  transition: filter var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.partner:hover, .partner:focus-visible { filter: grayscale(0); opacity: 1; }
/* Logos arrive at wildly different aspect ratios, so cap both axes and let
   each one settle at its own optical size inside the same slot. */
.partner img, .partner svg {
  height: auto;
  max-height: 40px;
  max-width: 156px;
  width: auto;
  object-fit: contain;
}
.partner--mark img { max-height: 46px; max-width: 60px; }

/* --------------------------------------------------------------------------
   8. Build: specification rows, not a card grid
   -------------------------------------------------------------------------- */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 15rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--mid) var(--ease);
}
.row:hover { background: var(--ash-25); }

.row__glyph {
  width: 84px; height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: border-color var(--mid) var(--ease), color var(--mid) var(--ease);
}
.row:hover .row__glyph { border-color: var(--navy-soft); color: var(--navy-deep); }
.row__glyph svg { width: 46px; height: 46px; }

.row__title { margin-bottom: .625rem; }
.row__text { color: var(--body); max-width: 54ch; }

.row__caps { list-style: none; }
.row__caps li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding-block: .1875rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
}
.row__caps li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: .45em;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

@media (max-width: 860px) {
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row__glyph { width: 56px; height: 56px; }
  .row__glyph svg { width: 32px; height: 32px; }
  .row__caps { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   9. Mission: the one committed-colour surface
   -------------------------------------------------------------------------- */
.mission {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 82% 8%, rgba(27, 75, 143, .55), transparent 62%),
    radial-gradient(46% 60% at 10% 100%, rgba(232, 120, 15, .16), transparent 70%);
  pointer-events: none;
}
.mission__inner { position: relative; z-index: var(--z-base); }
.mission h2 {
  color: #fff;
  font-size: var(--t-2xl);
  max-width: 20ch;
  line-height: 1.08;
}
.mission h2 em { font-style: normal; color: var(--amber-lift); }
.mission__body {
  margin-top: 1.75rem;
  max-width: 58ch;
  color: #C9D2E0;          /* 8.76:1 on navy */
  font-size: var(--t-md);
  line-height: 1.7;        /* light type on dark needs the extra leading */
}
.mission__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.mission__stat {
  flex: 1 1 190px;
  padding: 1.25rem 1.5rem;
  background: var(--navy-deep);
}
.mission__stat dt {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #96A3B8;
}
.mission__stat dd {
  margin: .375rem 0 0;
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------------------
   10. Expertise panels
   -------------------------------------------------------------------------- */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.panel:hover {
  border-color: var(--ash-400);
  box-shadow: var(--lift-2);
  transform: translateY(-2px);
}

.panel__figure {
  position: relative;
  height: 194px;
  background: var(--ash-100);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.panel__figure img { width: 100%; height: 100%; object-fit: cover; }

/* The ROS graph is a diagram on its own dark ground, so it gets framed as a
   screen and fitted whole rather than cropped like a photograph. */
.panel__figure--screen { background: #05070C; }
.panel__figure--screen img { object-fit: contain; padding: .5rem; }

.panel__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.panel__body h3 { margin-bottom: .625rem; }
.panel__body p { color: var(--body); font-size: var(--t-sm); }
.panel__meta {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--faint);
  letter-spacing: .04em;
}

/* Light-theme code specimen, replacing the old dark block */
.code {
  height: 100%;
  margin: 0;
  padding: 1.25rem;
  background: var(--ash-100);
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.85;
  color: var(--body);
  overflow: hidden;
  tab-size: 2;
  /* Fade the cut edge so the excerpt reads as continuing, not as clipped. */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
}
.code .c { color: var(--faint); }
.code .k { color: var(--navy-soft); font-weight: 600; }
.code .s { color: var(--amber-ink); }
.code .f { color: var(--ink); font-weight: 600; }

/* Edge pipeline diagram */
.pipe {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--ash-100);
}
.pipe__step {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5625rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--body);
}
.pipe__step svg { width: 15px; height: 15px; color: var(--amber-icon); flex: none; }
.pipe__arrow { width: 12px; height: 12px; margin-left: .5rem; color: var(--ash-400); }

/* Capability tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  list-style: none;
}
.tags li {
  padding: .4375rem .8125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tags li:hover { border-color: var(--navy-soft); color: var(--ink); }

/* --------------------------------------------------------------------------
   11. Highlight: Expand North Star
   -------------------------------------------------------------------------- */
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.highlight__title { margin-bottom: 1.25rem; }
.highlight__list { list-style: none; margin-top: 1.5rem; }
.highlight__list li {
  display: flex;
  gap: .875rem;
  padding-block: .8125rem;
  border-top: 1px solid var(--line);
  color: var(--body);
}
.highlight__list li:last-child { border-bottom: 1px solid var(--line); }
.highlight__list svg { flex: none; width: 18px; height: 18px; margin-top: .28em; color: var(--amber-icon); }

.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--lift-2);
}
.stage__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ash-100);
}
.stage__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.stage__slide[data-active="true"] { opacity: 1; }
.stage__slide img { width: 100%; height: 100%; object-fit: cover; }
.stage__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .25rem .125rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
}
.stage__dots { display: flex; gap: .375rem; }
.stage__dot {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
}
.stage__dot::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ash-400);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.stage__dot[aria-selected="true"]::after { background: var(--navy); transform: scale(1.25); }

@media (max-width: 900px) {
  .highlight { grid-template-columns: 1fr; }
  .highlight__media { order: -1; }
}

/* --------------------------------------------------------------------------
   12. Closing call to action
   -------------------------------------------------------------------------- */
.closer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
}
.closer h2 { max-width: 18ch; }
.closer p { margin-top: 1rem; color: var(--body); max-width: 52ch; }
.closer__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.closer__note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--faint);
}
@media (max-width: 820px) { .closer { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.foot {
  background: var(--navy-deep);
  color: #C9D2E0;
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.foot__brand img { width: 178px; margin-bottom: 1.25rem; }
.foot__brand p { max-width: 34ch; font-size: var(--t-sm); color: #96A3B8; }

.foot h4 {
  color: #fff;
  font-size: var(--t-xs);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}
.foot ul { list-style: none; }
.foot li + li { margin-top: .625rem; }
.foot a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #C9D2E0;
  font-size: var(--t-sm);
  transition: color var(--fast) var(--ease);
}
.foot a:hover { color: #fff; }
.foot a svg { width: 15px; height: 15px; flex: none; }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: #96A3B8;
}
@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */
.pagehead {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { max-width: 16ch; }
.pagehead p { margin-top: 1.25rem; max-width: 52ch; font-size: var(--t-md); color: var(--body); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.375rem;
}
/* min-width:0 everywhere, or the inputs' intrinsic minimum forces the grid
   tracks wider than their share and the columns collide. */
.field { display: flex; flex-direction: column; min-width: 0; }
.field--wide { grid-column: 1 / -1; }

.field label {
  margin-bottom: .4375rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--amber-ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .625rem .8125rem;
  background: var(--ash-25);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-base);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }

/* Placeholder must clear 4.5:1 like any other text */
.field ::placeholder { color: var(--muted); opacity: 1; }

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%235A6475' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ash-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(18, 58, 107, .13);
}

.field__help { margin-top: .375rem; font-size: var(--t-xs); color: var(--muted); }

/* Honeypot. Off-screen rather than display:none so more bots take the bait,
   and removed from the accessibility tree so nobody else meets it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field__error {
  display: none;
  align-items: center;
  gap: .375rem;
  margin-top: .375rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: #B42318;
}
.field__error svg { width: 13px; height: 13px; flex: none; }
.field[data-invalid="true"] .field__error { display: flex; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #B42318; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form__note { font-size: var(--t-sm); color: var(--muted); }

.btn[data-busy="true"] { pointer-events: none; opacity: .72; }
.btn__spin { display: none; width: 15px; height: 15px; animation: spin .8s linear infinite; }
.btn[data-busy="true"] .btn__spin { display: block; }
.btn[data-busy="true"] .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact detail list */
.details { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.detail { display: flex; gap: 1rem; padding: 1.375rem 1.5rem; background: var(--surface); }
.detail__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ash-100);
  border-radius: var(--radius);
  color: var(--navy);
}
.detail__icon svg { width: 18px; height: 18px; }
.detail h3 { font-size: var(--t-sm); font-family: var(--text); font-weight: 700; margin-bottom: .1875rem; }
.detail a, .detail p { font-size: var(--t-sm); color: var(--body); }
.detail a:hover { color: var(--signal); text-decoration: underline; }

@media (max-width: 1040px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: .625rem;
  max-width: min(92vw, 26rem);
  padding: .875rem 1.125rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--lift-3);
  font-size: var(--t-sm);
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.toast[data-show="true"] { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast[data-tone="error"] { background: #B42318; }

/* --------------------------------------------------------------------------
   15. Reveal on scroll
   Content is visible by default; the class only enhances it, so a headless
   render or a background tab never ships a blank section.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

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

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .swarm, .marquee, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
