/* Anvil Data Architects: site styles
   Brand colors sampled from the supplied logo files.
   Fonts are interim choices until the client supplies brand fonts. */

:root {
  /* Brand */
  --blue: #0076b7;
  --sky: #00b3ea;
  --teal: #41b5af;
  --steel: #bcbec0;
  --grad: linear-gradient(90deg, var(--blue), var(--sky) 55%, var(--teal));

  /* Surfaces (dark theme, alternating bands) */
  --bg: #050b12;
  --bg-lift: #09131e;
  --bg-lift-2: #0d1a28;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --line: rgba(188, 190, 192, 0.14);
  --line-strong: rgba(188, 190, 192, 0.26);

  /* Text */
  --text: #eef3f7;
  --text-2: #bcc7d2;
  --muted: #8a9aab;
  --accent-text: #3cc4f0;

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --header-h: 96px;

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7ed8f6;
}

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

main:focus {
  outline: none;
}

/* Keeps the last two words of a heading together (no single hanging word).
   Released below 360px so long words can never push the page sideways. */
.nw {
  white-space: nowrap;
}

@media (max-width: 359px) {
  .nw {
    white-space: normal;
  }
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

/* Headings that are intentionally allowed to wrap naturally */
.allow-widow {
  text-wrap: wrap;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--sky);
  color: #001522;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.container--narrow {
  max-width: 820px;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 1.4rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 12px;
  background: var(--grad);
}

.text-center .eyebrow::after {
  margin-left: auto;
  margin-right: auto;
}

.grad-text {
  background: linear-gradient(90deg, var(--sky), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

.text-center {
  text-align: center;
}

.placeholder {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #ffd08a;
  background: rgba(255, 196, 102, 0.08);
  border: 1px dashed rgba(255, 196, 102, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s ease;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: #00679f;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 179, 234, 0.16), 0 8px 28px rgba(0, 179, 234, 0.28);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--sky);
  color: var(--text);
  background: rgba(0, 179, 234, 0.06);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn:hover svg.download {
  transform: translateY(2px);
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    letter-spacing: 0.08em;
  }
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-decoration: none;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 18, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-header__inner .brand {
  margin-right: auto;
}

.brand img {
  height: 57px;
  width: auto;
}

@media (max-width: 600px) {
  :root {
    --header-h: 84px;
  }

  .brand img {
    height: 50px;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .btn[aria-current="page"] {
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 179, 234, 0.3);
}

.site-nav .btn {
  white-space: nowrap;
  margin-left: 12px;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.72rem;
}

/* Floating pause / play control for all motion (WCAG 2.2.2).
   Stays in the bottom-left corner; the label slides out on hover or focus. */
.motion-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-width: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 11, 18, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.motion-fab:hover {
  border-color: var(--sky);
}

.motion-fab svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.motion-fab .icon-play,
.motion-fab[data-state="paused"] .icon-pause {
  display: none;
}

.motion-fab[data-state="paused"] .icon-play {
  display: block;
}

.motion-fab[data-state="paused"] {
  border-color: rgba(0, 179, 234, 0.6);
  background: rgba(0, 60, 95, 0.9);
}

/* Collapsed to an icon, but still read by screen readers */
.motion-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}

.motion-fab:hover .motion-fab__label,
.motion-fab:focus-visible .motion-fab__label {
  max-width: 220px;
  margin-left: 10px;
  opacity: 1;
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
}

html.motion-paused .process__comet {
  opacity: 0 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1220px) {
  .nav-toggle {
    display: inline-flex;
  }


  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    padding: 16px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent-text);
  }

  .site-nav .btn {
    margin: 20px 0 0;
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Sections and bands ---------- */

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.band--lift {
  background: var(--bg-lift);
}

.band--lift-2 {
  background: var(--bg-lift-2);
}

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

.band--grid {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(188, 190, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 190, 192, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

.band--glow {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(0, 118, 183, 0.22), transparent 70%),
    radial-gradient(50% 70% at 10% 90%, rgba(65, 181, 175, 0.12), transparent 70%),
    var(--bg-lift);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Steel and bright bands ----------
   Steel: a brushed, blue-steel mid tone that lifts the page without going white.
   Bright: deep brand blue for high-energy moments like metrics. */

.band--steel {
  --muted: #b8c5d1;
  --line: rgba(188, 190, 192, 0.18);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(70% 120% at 85% -10%, rgba(0, 179, 234, 0.2), transparent 60%),
    linear-gradient(115deg, #0e2234 0%, #173650 42%, #13304a 58%, #1a3d5a 100%);
  border-top: 1px solid rgba(188, 190, 192, 0.16);
  border-bottom: 1px solid rgba(188, 190, 192, 0.1);
}

/* A slow sheen across the brushed steel */
.band--steel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.045) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sheen 14s ease-in-out infinite;
}

.band--steel > .container {
  position: relative;
  z-index: 1;
}

@keyframes sheen {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

.band--steel .process__icon {
  background: #15324b;
}

/* Bright brand band: white text on deep brand blue (contrast 5:1 or better) */
.band--bright,
.metrics-band.band--bright {
  --text: #ffffff;
  --text-2: #ffffff;
  --muted: #ffffff;
  --accent-text: #ffffff;
  --line: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background:
    radial-gradient(50% 120% at 15% 0%, rgba(0, 179, 234, 0.15), transparent 70%),
    linear-gradient(115deg, #00456f 0%, #005d93 45%, #006a8a 75%, #0b6f6b 100%);
  border-color: transparent;
}

.band--bright .metric__value {
  background: none;
  color: #fff;
}

.band--bright .metric__label {
  color: #ffffff;
}

.band--bright .metrics-note {
  color: #ffffff;
}

/* 11. White focus ring where the sky-blue ring would lack contrast */
.band--bright :focus-visible,
.creds-band :focus-visible {
  outline-color: #ffffff;
}

.band--bright .px-a {
  background: rgba(255, 255, 255, 0.28);
}

.band--bright .px-b {
  background: rgba(0, 179, 234, 0.75);
  opacity: 1;
}

.band--bright .px-c {
  background: rgba(65, 181, 175, 0.8);
  opacity: 1;
}

.band--bright .px-d {
  background: rgba(255, 255, 255, 0.12);
}

.band--bright .px-e {
  background: rgba(255, 255, 255, 0.2);
}

/* Pixel square motif from the logo */
.pixels {
  position: absolute;
  pointer-events: none;
  display: grid;
  gap: 0;
}

.pixels span {
  display: block;
  width: var(--px, 34px);
  height: var(--px, 34px);
}

.px-a {
  background: var(--blue);
}

.px-b {
  background: var(--sky);
  opacity: 0.85;
}

.px-c {
  background: var(--teal);
  opacity: 0.75;
}

.px-d {
  background: rgba(0, 118, 183, 0.35);
}

.px-e {
  background: rgba(65, 181, 175, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px);
  /* Left-side scrim keeps the headline readable over the photo */
  background:
    linear-gradient(90deg, rgba(5, 11, 18, 0.88) 0%, rgba(5, 11, 18, 0.6) 40%, rgba(5, 11, 18, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 11, 18, 0) 22%),
    url("../img/hero-image.jpg") right center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 11, 18, 0.9) 0%, rgba(5, 11, 18, 0.75) 55%, rgba(5, 11, 18, 0.35) 100%),
      url("../img/hero-image.jpg") 70% center / cover no-repeat,
      var(--bg);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  max-width: 560px;
  margin: 1.4rem 0 2rem;
  text-wrap: pretty;
}

.hero__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__creds li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__creds li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--teal);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 0.9;
  width: 100%;
}

.hero__visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__caption {
  position: absolute;
  right: 0;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

  .hero__visual {
    aspect-ratio: 1 / 0.75;
    max-width: 560px;
  }
}

/* Interior page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 80% 45%, rgba(0, 118, 183, 0.26), transparent 70%),
    radial-gradient(35% 60% at 62% 100%, rgba(65, 181, 175, 0.12), transparent 70%),
    var(--bg);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 15ch;
}

/* Legal pages: a compact title and a wider text column */
.page-hero--legal .page-hero__grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
}

.page-hero--legal h1 {
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  max-width: none;
}

@media (max-width: 900px) {
  .page-hero--legal h1 {
    font-size: clamp(1.3rem, 5.6vw, 2.4rem);
  }

  /* A long two-word title may split evenly rather than shrink too small */
  .page-hero--legal h1.split-ok .nw {
    white-space: normal;
  }
}

.page-hero .lead {
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero .btn-row {
  margin-top: 2rem;
}

.page-hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}

.page-hero__visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

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

  .page-hero__visual {
    aspect-ratio: 16 / 10;
    max-width: 560px;
  }
}

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split--40-60 {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.split--center {
  align-items: center;
}

@media (max-width: 860px) {
  .split,
  .split--40-60 {
    grid-template-columns: 1fr;
  }
}

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.statement em {
  font-style: normal;
}

.sticky {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

@media (max-width: 860px) {
  .sticky {
    position: static;
  }
}

/* ---------- Service rows (home + services) ---------- */

.service-rows {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.service-row:nth-child(even) .service-row__art {
  order: 2;
}

.service-row__art {
  position: relative;
  border-radius: 10px;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(0, 118, 183, 0.16), transparent 75%),
    var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
}

.service-row__art svg {
  width: 100%;
  height: auto;
}

.service-row__art text:not([fill]),
.tco-chart text:not([fill]) {
  fill: #bcc7d2;
}

.service-row__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin: 0 0 0.8rem;
}

.service-row h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.pain-outcome {
  display: grid;
  gap: 18px;
  margin: 1.6rem 0;
}

.pain-outcome > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pain-outcome h3,
.pain-outcome h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pain-outcome p {
  margin: 0;
}

@media (max-width: 860px) {
  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-row__art {
    order: 0;
  }
}

/* ---------- Metrics strip ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.metrics li {
  padding: 8px clamp(12px, 2vw, 28px);
  text-align: center;
  border-left: 1px solid var(--line);
}

.metrics li:first-child {
  border-left: 0;
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--sky), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric__value small {
  font-size: 0.5em;
  letter-spacing: 0.02em;
}

.metric__label {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 24ch;
  margin: 0 auto;
}

.metrics-band {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bg-lift);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-band .pixels--left {
  left: 0;
  bottom: 0;
  grid-template-columns: repeat(3, var(--px));
  --px: 28px;
}

.metrics-band .pixels--right {
  right: 0;
  top: 0;
  grid-template-columns: repeat(3, var(--px));
  --px: 28px;
}

.metrics-note {
  margin: 28px 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .metrics li:nth-child(3) {
    border-left: 0;
  }

  .metrics-band .pixels {
    display: none;
  }
}

@media (max-width: 480px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics li {
    border-left: 0;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .metrics li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---------- TCO / differentiators ---------- */

.tco {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.tco__words {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
}

.tco__words li:last-child {
  background: linear-gradient(90deg, var(--sky), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tco-chart {
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tco-chart figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

@media (max-width: 860px) {
  .tco {
    grid-template-columns: 1fr;
  }
}

.diff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 88px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.diff-list svg {
  width: 26px;
  height: 26px;
  color: var(--sky);
  margin-top: 2px;
}

.diff-list h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.diff-list p {
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .diff-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Experience ---------- */

.exp-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 760px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0 0 clamp(40px, 5vw, 56px);
}

.exp-note svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--sky);
  margin-top: 3px;
}

.exp-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.exp-compact article {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.exp-compact article:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.exp-compact h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.exp-compact .tags {
  margin-top: auto;
}

.exp-org {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .exp-compact {
    grid-template-columns: 1fr;
  }
}

/* Full case rows on experience page */
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.case:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.case__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.case__body h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.case__body p {
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  .case {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Technology ---------- */

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

.tech div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.tech dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.tech dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

.tech dd strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 960px) {
  .tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tech {
    grid-template-columns: 1fr;
  }
}

/* Scrolling platform logos. Each item shows its logo file when present and
   falls back to the platform name until the file is uploaded. */
.logo-marquee {
  --gap: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-note {
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-size: 0.8rem;
  color: var(--muted);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__set {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin: 0;
  padding: 0 calc(var(--gap) / 2);
  list-style: none;
}

.logo-marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  height: 48px;
}

.logo-marquee__item img {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.logo-marquee__item:hover img {
  opacity: 1;
}

.logo-marquee__name {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--steel);
}

.logo-marquee__item.is-missing img {
  display: none;
}

.logo-marquee__item.is-missing .logo-marquee__name {
  display: inline;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Credentials strip ---------- */

.creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px clamp(24px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.creds li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.creds svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.creds-band {
  padding: 36px 0;
  color: #fff;
  background: linear-gradient(90deg, #003f66, #005a8c 50%, #0a6468);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.creds-band .creds li {
  color: #fff;
}

.creds-band .creds svg {
  color: #8fe3dc;
}

/* Five items: tighter spacing keeps the strip on one row on desktop */
.creds--five {
  gap: 16px clamp(16px, 2vw, 28px);
}

.creds--five li {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* ---------- Check lists ---------- */

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.checks--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

@media (max-width: 640px) {
  .checks--cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process (real sequence, numbering allowed) ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  position: relative;
}

.process li {
  position: relative;
  counter-increment: step;
}

.process__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(0, 179, 234, 0.6);
  color: var(--sky);
  margin-bottom: 20px;
}

.band--lift .process__icon {
  background: var(--bg-lift);
}

.process__icon svg {
  width: 26px;
  height: 26px;
}

.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 76px;
  right: -12px;
  border-top: 2px dotted rgba(188, 190, 192, 0.3);
}

.process h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.process h3::before {
  content: counter(step) ". ";
  color: var(--accent-text);
}

.process p {
  margin: 0;
  font-size: 0.96rem;
}

@media (max-width: 860px) {
  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding-bottom: 32px;
  }

  .process li:not(:last-child)::after {
    top: 72px;
    bottom: 8px;
    left: 32px;
    right: auto;
    border-top: 0;
    border-left: 2px dotted rgba(188, 190, 192, 0.3);
  }

  .process__icon {
    margin: 0;
  }
}

/* ---------- Generic content blocks ---------- */

.panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel > :last-child,
.exp-compact article > :last-child {
  margin-bottom: 0;
}

.panel--glow {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(0, 118, 183, 0.2), transparent 70%),
    var(--bg-lift-2);
}

.stack > * + * {
  margin-top: clamp(24px, 3vw, 36px);
}

.def-rows {
  margin: 0;
}

.def-rows div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

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

.def-rows dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1.08rem;
}

.def-rows dd {
  margin: 0;
}

@media (max-width: 720px) {
  .def-rows div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  max-width: 70ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(0, 118, 183, 0.3), transparent 70%),
    var(--bg-lift);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  text-transform: uppercase;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band .pixels--left {
  left: 0;
  top: 0;
  grid-template-columns: repeat(4, var(--px));
  --px: clamp(24px, 3vw, 40px);
}

.cta-band .pixels--right {
  right: 0;
  bottom: 0;
  grid-template-columns: repeat(4, var(--px));
  --px: clamp(24px, 3vw, 40px);
}

@media (max-width: 720px) {
  .cta-band .pixels {
    opacity: 0.4;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #03070c;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 80px) 0 32px;
  font-size: 0.94rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer__logo {
  height: 42px;
  width: auto;
  margin-bottom: 20px;
}

.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 34ch;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__bottom p {
  margin: 0;
}

.site-credit {
  margin-top: 6px !important;
  font-size: 0.72rem;
  color: #8f9fb0;
}

.site-footer .site-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(143, 159, 176, 0.45);
  text-underline-offset: 2px;
}

.site-footer .site-credit a:hover,
.site-footer .site-credit a:focus-visible {
  color: inherit;
  text-decoration-color: currentColor;
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Contact form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 20px;
}

.h3-like {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

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

.form-note {
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.req {
  color: var(--accent-text);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field > label,
.checks-field legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(3, 7, 12, 0.6);
  border: 1px solid rgba(188, 190, 192, 0.55);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(188, 190, 192, 0.75);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 179, 234, 0.25);
}

.field input[aria-invalid="true"] {
  border-color: #ff8a80;
}

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: #ffaba4;
}

.checks-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.checks-field legend {
  padding: 0;
  margin-bottom: 12px;
}

.checks-field legend .muted {
  font-weight: 400;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 600px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 12, 0.35);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkbox:hover {
  border-color: var(--line-strong);
}

.checkbox:has(input:checked) {
  border-color: rgba(0, 179, 234, 0.55);
  background: rgba(0, 179, 234, 0.07);
  color: var(--text);
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sky);
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.form-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #7fe0c8;
}

.form-status.is-error {
  color: #ffaba4;
}

/* ---------- Forging details ----------
   Subtle nods to the anvil: steel grain and an engraved anvil behind plain
   sections, a heat glint on section labels, and a steel sheen on cards. */

.section:not([class*="band--"])::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../img/forge-lines.svg") right -40px bottom / min(1100px, 110%) auto no-repeat;
  opacity: 0.6;
}

.section > .container,
.cta-band > .container {
  position: relative;
  z-index: 1;
}

/* Heat glint that runs across the eyebrow rule when it comes into view */
.eyebrow::after {
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent),
    var(--grad);
  background-size: 40% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -120% 0, 0 0;
}

.is-visible .eyebrow::after,
.page-hero .eyebrow::after,
.hero .eyebrow::after {
  animation: glint 1.3s ease-out 0.35s 1 both;
}

@keyframes glint {
  from {
    background-position: -120% 0, 0 0;
  }
  to {
    background-position: 220% 0, 0 0;
  }
}

/* Steel sheen across cards on hover */
.exp-compact article,
.forge-flow__card,
.spec-plate {
  position: relative;
  overflow: hidden;
}

.exp-compact article::after,
.forge-flow__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s ease;
}

.exp-compact article:hover::after,
.forge-flow__card:hover::after {
  transform: translateX(100%);
}

/* ---------- Process comet ---------- */

.process__comet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(0, 179, 234, 0.9), 0 0 26px 8px rgba(0, 179, 234, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.process__comet::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 50%;
  width: 80px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 179, 234, 0.95));
  border-radius: 2px;
}

.process__icon {
  transition: border-color 0.5s ease, box-shadow 0.6s ease, color 0.5s ease, background-color 0.5s ease;
}

.process li.is-lit .process__icon {
  border-color: #fff;
  color: #fff;
  background: #0a5f8f;
  box-shadow: 0 0 0 6px rgba(0, 179, 234, 0.18), 0 0 28px rgba(0, 179, 234, 0.7);
  transition-duration: 0.12s;
}

.process li h3 {
  transition: color 0.5s ease;
}

.process li.is-lit h3 {
  color: #fff;
}

/* ---------- Services page ---------- */

.svc-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(5, 11, 18, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.svc-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.svc-nav ul::-webkit-scrollbar {
  display: none;
}

html:has(.svc-nav) {
  scroll-padding-top: calc(var(--header-h) + 76px);
}

@media (max-width: 600px) {
  .svc-nav ul {
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px;
    padding: 8px 0;
  }

  .svc-nav a {
    padding: 6px 10px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  html:has(.svc-nav) {
    scroll-padding-top: calc(var(--header-h) + 110px);
  }
}

.svc-nav a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.svc-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.svc-nav a[aria-current="true"] {
  color: #fff;
  border-color: rgba(0, 179, 234, 0.6);
  background: rgba(0, 179, 234, 0.12);
}

.svc {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.svc-nav ~ section[id] {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.svc__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.svc__intro--flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.svc__intro--flip > :first-child {
  order: 2;
}

.svc__intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.svc__visual {
  margin: 0;
}

.svc__visual canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background:
    radial-gradient(80% 90% at 50% 40%, rgba(0, 118, 183, 0.18), transparent 75%),
    rgba(3, 8, 14, 0.55);
  border: 1px solid var(--line);
}

.svc__visual--bare canvas {
  background: rgba(0, 20, 40, 0.25);
  border-color: rgba(255, 255, 255, 0.16);
}

.svc__visual figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .svc__intro,
  .svc__intro--flip {
    grid-template-columns: 1fr;
  }

  .svc__intro--flip > :first-child {
    order: 0;
  }
}

/* Raw to forged transformation */
.forge-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.forge-flow__card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.forge-flow__card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.forge-flow__card p:last-child {
  margin-bottom: 0;
}

.forge-flow__card--raw {
  background:
    repeating-linear-gradient(135deg, rgba(188, 190, 192, 0.035) 0 2px, transparent 2px 7px),
    rgba(255, 255, 255, 0.02);
}

.forge-flow__card--forged {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0, 179, 234, 0.2), transparent 70%),
    rgba(0, 118, 183, 0.08);
  border-color: rgba(0, 179, 234, 0.35);
}

.forge-flow__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.forge-flow__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--steel);
  opacity: 0.6;
}

.forge-flow__card--forged .forge-flow__tag {
  color: #8fe3dc;
}

.forge-flow__card--forged .forge-flow__tag::before {
  background: var(--teal);
  opacity: 1;
  box-shadow: 0 0 10px rgba(65, 181, 175, 0.8);
}

.forge-flow__strike {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--steel);
}

.forge-flow__strike::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 1px dashed rgba(188, 190, 192, 0.35);
}

.forge-flow__strike svg {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  animation: strike 3.2s ease-in-out infinite;
}

.band--steel .forge-flow__strike svg {
  background: #15324b;
}

.forge-flow__spark {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(0, 179, 234, 0.9);
  animation: spark-travel 3.2s ease-in-out infinite;
}

@keyframes spark-travel {
  0% {
    left: 8px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  45%,
  55% {
    left: calc(50% - 3px);
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  90% {
    left: calc(100% - 14px);
    opacity: 1;
  }
  100% {
    left: calc(100% - 14px);
    opacity: 0;
  }
}

@keyframes strike {
  0%,
  40%,
  70%,
  100% {
    color: var(--steel);
    border-color: var(--line-strong);
    box-shadow: none;
  }
  50% {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 5px rgba(0, 179, 234, 0.16), 0 0 24px rgba(0, 179, 234, 0.7);
  }
}

@media (max-width: 760px) {
  .forge-flow {
    grid-template-columns: 1fr;
  }

  .forge-flow__strike {
    height: 72px;
  }

  .forge-flow__strike::before {
    left: 50%;
    right: auto;
    top: 8px;
    bottom: 8px;
    border-top: 0;
    border-left: 1px dashed rgba(188, 190, 192, 0.35);
  }

  .forge-flow__spark {
    display: none;
  }
}

.svc__details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 860px) {
  .svc__details {
    grid-template-columns: 1fr;
  }
}

.svc__details h3 {
  font-size: 1.1rem;
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverables li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.93rem;
  color: var(--text);
}

.deliverables li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

/* Stamped steel spec plate with corner rivets */
.spec-plate {
  padding: 26px 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12px 12px, #7b8794 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 12px) 12px, #7b8794 0 2.5px, transparent 3px),
    radial-gradient(circle at 12px calc(100% - 12px), #7b8794 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #7b8794 0 2.5px, transparent 3px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #1b2733, #24323f 50%, #1a2530);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.spec-plate__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a9b6c3;
}

.spec-plate p:last-child {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.75;
  color: #d4dde6;
}

/* ---------- Diagram animation ---------- */

.flow {
  stroke-dasharray: 4 8;
  animation: flow 1.6s linear infinite;
}

.flow--slow {
  animation-duration: 2.8s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.kpi {
  transform-box: fill-box;
  transform-origin: left center;
  animation: kpi 4s ease-in-out infinite;
}

@keyframes kpi {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.78);
  }
}

.breathe {
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  [data-parallax] {
    transform: none !important;
  }

  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee__track {
    animation: none !important;
    width: auto;
    justify-content: center;
  }

  .logo-marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
  }

  .logo-marquee__set[aria-hidden="true"] {
    display: none;
  }

  .motion-fab,
  .motion,
  .process__comet,
  .forge-flow__spark {
    display: none;
  }
}
