/* ==========================================================================
   RoboBuilder — Global Stylesheet
   Brand palette is STRICTLY two colours (from the logo):
     Navy  #12265E   |   Cyan  #29B6F2
   Everything else is white / neutral grey derived from the navy.
   ========================================================================== */

:root {
  /* --- Brand (the only two hues used anywhere) --- */
  --navy: #12265e;
  --cyan: #29b6f2;

  /* Derived tints & shades (same two hues, different lightness/alpha) */
  --navy-900: #0b1740;
  --navy-800: #0e1e4d;
  --navy-700: #1a3479;
  --navy-050: #eef2f9;
  --cyan-700: #0d92cc;
  --cyan-600: #17a3e0;
  --cyan-050: #e8f6fe;

  --ink: #12265e;
  --muted: rgba(18, 38, 94, 0.66);
  --line: rgba(18, 38, 94, 0.12);
  --line-soft: rgba(18, 38, 94, 0.07);

  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --shadow-sm: 0 2px 10px rgba(18, 38, 94, 0.06);
  --shadow-md: 0 12px 34px rgba(18, 38, 94, 0.1);
  --shadow-lg: 0 26px 70px rgba(18, 38, 94, 0.16);

  --radius: 14px;
  --radius-lg: 22px;

  --container: 1240px;
  --header-h: 96px;

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

  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip` (not `hidden`) so the marquee can never cause a sideways scroll
     without creating a scroll container that would break the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1rem; }

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

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

/* ----------------------------------------------------------- Utilities -- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

.center { text-align: center; }
.mobile-only { display: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: rgba(255, 255, 255, 0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-700);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}
.section--navy .eyebrow { color: var(--cyan); }
.center .eyebrow::before { display: none; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.center.section-head { margin-inline: auto; }
.accent { color: var(--cyan); }

/* ------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn .ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  flex: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn .ico svg { width: 12px; height: 12px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }

.btn--cyan { background: var(--cyan); color: #fff; }
.btn--cyan .ico { background: #fff; color: var(--cyan); }
.btn--cyan:hover { background: var(--cyan-600); }

.btn--ghost { border-color: var(--cyan); color: var(--navy); background: #fff; }
.btn--ghost .ico { background: transparent; border: 2px solid var(--cyan); color: var(--cyan); }
.btn--ghost:hover { background: var(--cyan-050); }

.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light .ico { background: rgba(255, 255, 255, 0.16); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--block { width: 100%; justify-content: center; }

/* -------------------------------------------------------------- Header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(18, 38, 94, 0.08);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-name span { color: var(--cyan); }
.brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-menu { display: flex; align-items: center; gap: 0.35rem; }
.nav-menu > li { position: relative; }
/* :not(.btn) so the "Get a Quote" button inside the menu keeps its own styling. */
.nav-menu > li > a:not(.btn) {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 8px;
  transition: color 0.2s;
}
/* Absolute so it stays an underline even when the anchor is a flex row. */
.nav-menu > li > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-menu > li > a:not(.btn):hover { color: var(--cyan-700); }
.nav-menu > li > a:not(.btn):hover::after,
.nav-menu > li.is-active > a:not(.btn)::after { transform: scaleX(1); }
.nav-menu > li.is-active > a { color: var(--cyan-700); }

.has-sub > a { display: inline-flex !important; align-items: center; gap: 0.35rem; }
.has-sub > a svg { width: 10px; height: 10px; opacity: 0.7; }

.has-sub > a svg { width: 10px; height: 10px; opacity: 0.7; }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s, transform 0.24s var(--ease), visibility 0.24s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.submenu a:hover { background: var(--cyan-050); color: var(--cyan-700); }

.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), top 0.3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Hero -- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: min(78vh, 720px);
}
.hero-copy { padding: clamp(2.5rem, 5vw, 4.5rem) 0; max-width: 640px; }
.hero-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .line { display: block; }

/* Animated rotating word */
/* Block-level grid: the rotating words stack in one cell and the line box is
   exactly one line tall, so nothing shifts as words swap. */
.rotator {
  display: grid;
  overflow: hidden;
  height: 1.03em;
}
.rotator span {
  grid-area: 1 / 1;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
  white-space: nowrap;
}
.rotator span.is-in { opacity: 1; transform: translateY(0); }
.rotator span.is-out { opacity: 0; transform: translateY(-100%); }

/* Typewriter caret variant */
.type-line { min-height: 1.4em; font-weight: 600; color: var(--cyan-700); }
.type-line .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  vertical-align: -0.13em;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin: 2rem 0;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-usp { display: flex; align-items: center; gap: 0.65rem; }
.hero-usp svg { width: 26px; height: 26px; color: var(--navy); flex: none; }
.hero-usp span {
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-visual { position: relative; align-self: stretch; }
.hero-visual .shot {
  position: absolute;
  /* Bleeds to the right edge of the viewport, never further. */
  inset: 0 calc(-1 * max(0px, (100vw - var(--container)) / 2)) 0 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-visual .shot img,
.hero-visual .shot svg { width: 100%; height: 100%; object-fit: cover; }
/* Cyan accent band running along the angled edge of the hero image */
.hero-visual .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--cyan);
  clip-path: polygon(14% 0, 17.4% 0, 3.4% 100%, 0 100%);
}

/* --------------------------------------------------- Service matrix (4) -- */
.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
/* Three-up variant for the full six-service line-up */
.matrix--six { grid-template-columns: repeat(3, 1fr); }
.matrix--six .svc-card { min-height: 280px; padding: 1.8rem; }
.matrix--six .svc-card h3 { font-size: 1.32rem; }
.matrix--six .svc-card p { max-width: 24ch; font-size: .9rem; }
.matrix--six .svc-card .svc-art { inset: 0 0 0 34%; }
/* The extra division spans the full row */
.svc-card--full { grid-column: 1 / -1; min-height: 220px; }
.svc-card--full .svc-art { inset: 0 0 0 52% !important; }
.svc-card--full p { max-width: 46ch !important; }
.svc-card {
  position: relative;
  display: block;
  min-height: 300px;
  padding: 2.1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card:nth-child(even) { background: var(--cyan); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card .svc-art {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.svc-card .svc-art img,
.svc-card .svc-art svg { width: 100%; height: 100%; object-fit: cover; }
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    currentColor 0 46%,
    rgba(0, 0, 0, 0) 72%
  );
  color: inherit;
  opacity: 0;
}
.svc-card h3 { color: #fff; margin-bottom: 0.7rem; }
.svc-card .rule { width: 54px; height: 4px; background: #fff; margin-bottom: 1rem; opacity: 0.9; }
.svc-card:nth-child(odd) .rule { background: var(--cyan); opacity: 1; }
.svc-card p {
  max-width: 27ch;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
}
.svc-card:nth-child(even) p { color: #fff; }
.svc-card .fake-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: gap 0.25s var(--ease);
}
.svc-card:nth-child(even) .fake-btn { background: var(--navy); }
.svc-card:hover .fake-btn { gap: 1.1rem; }
.svc-card .fake-btn .ico { width: 22px; height: 22px; background: rgba(255, 255, 255, 0.22); }
.svc-card .svc-no {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  z-index: 1;
}

/* ------------------------------------------------------- Trust / strip -- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line-soft);
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 30px; height: 30px; color: var(--navy); flex: none; }
.trust-item b {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------- Client wall -- */
.client-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.client {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 1.2rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.client:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
/* While a real logo file is present, the wordmark stays hidden. main.js strips
   the <img> if the file is missing, which reveals the <span> again. */
.client img + span { display: none; }

/* Typographic fallback wordmark */
.client span {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.client:hover span { color: var(--navy); }
/* Real logo files, once dropped in — muted until hovered, the usual treatment */
.client img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.85;
  transition: filter 0.35s, opacity 0.35s;
}
.client:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------- Cards -- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 182, 242, 0.5);
}
.card .card-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cyan-050);
  color: var(--cyan-700);
  margin-bottom: 1.2rem;
}
.card .card-ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.section--navy .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--navy .card p { color: rgba(255, 255, 255, 0.75); }
.section--navy .card .card-ico { background: rgba(41, 182, 242, 0.18); color: var(--cyan); }

/* Numbered list cards (process) */
.step { position: relative; padding-left: 4.4rem; }
.step .num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.step:nth-child(even) .num { background: var(--cyan); }

/* --------------------------------------------------------- Split media -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--rev .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img, .split-media svg { width: 100%; height: 100%; object-fit: cover; }
.split-badge {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  background: var(--cyan);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split-badge b { font-family: var(--font-head); font-size: 2rem; line-height: 1; display: block; }
.split-badge span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Bullet list */
.ticks { display: grid; gap: 0.8rem; margin: 1.5rem 0; }
.ticks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.97rem; }
.ticks li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--cyan); }
.section--navy .ticks li { color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------- Stats -- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.2rem; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--cyan);
}
.stat span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------ Page hero -- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 242, 0.38), transparent 68%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--cyan);
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); position: relative; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  position: relative;
}
.crumbs a:hover { color: var(--cyan); }
.crumbs span { opacity: 0.5; }

/* ---------------------------------------------------------------- Form -- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .req { color: var(--cyan); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(41, 182, 242, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(18, 38, 94, 0.38); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--cyan-700); background: var(--cyan-050); }
.field .err { font-size: 0.78rem; font-weight: 600; color: var(--cyan-700); display: none; }
.field.has-error .err { display: block; }

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

.form-note { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--cyan-050); color: var(--cyan-700); border: 1px solid var(--cyan); }
.form-status.is-err { background: var(--navy-050); color: var(--navy); border: 1px solid var(--navy-700); }
.btn.is-loading { pointer-events: none; opacity: 0.65; }

/* Contact info tiles */
.info-list { display: grid; gap: 1rem; }
.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.info-item .ii-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cyan);
  color: #fff;
  flex: none;
}
.info-item .ii-ico svg { width: 22px; height: 22px; }
.info-item b { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.info-item p { margin: 0.2rem 0 0; font-size: 0.97rem; color: rgba(255, 255, 255, 0.88); }
.info-item a:hover { color: var(--cyan); }

/* ------------------------------------------------------------- CTA band -- */
.cta-band {
  position: relative;
  background: var(--cyan);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, 0.12);
}
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; position: relative; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.9); position: relative; }
.cta-band .btn { position: relative; }

/* ------------------------------------------------------------- Footer -- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.4rem;
  padding-bottom: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.7rem;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--cyan);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
/* Footer uses logo-light.png — same mark with the navy "R" recoloured white so
   it reads on the dark background. Fully transparent, no plate needed. */
.footer-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex: none;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, 0.55); }
.site-footer p { font-size: 0.93rem; }
.foot-links li { margin-bottom: 0.6rem; }
.foot-links a {
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.foot-links a::before { content: "›"; color: var(--cyan); font-size: 1.1rem; line-height: 1; }
.foot-links a:hover { color: #fff; transform: translateX(4px); }
.foot-contact li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.93rem;
  line-height: 1.5;
}
.foot-contact svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.foot-contact a:hover { color: #fff; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.86rem;
}
.footer-bottom a:hover { color: var(--cyan); }

/* Newsletter mini-form */
.mini-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; }
.mini-form .field { flex: 1 1 60%; min-width: 0; }
.mini-form .err { color: var(--cyan); }
.mini-form input {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
.mini-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.mini-form input:focus { outline: none; border-color: var(--cyan); }
.mini-form button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 45px;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  flex: none;
  transition: background 0.2s;
}
.mini-form button:hover { background: var(--cyan-600); }

/* --------------------------------------------------------- Back to top -- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cyan); }

/* ------------------------------------------------------- Scroll reveal -- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Industry -- */
.ind-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease);
}
.ind-card:hover { transform: translateY(-6px); }
.ind-card svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.ind-card h4 { position: relative; color: #fff; margin: 0; }
.ind-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 23, 64, 0.92), rgba(11, 23, 64, 0.1) 70%);
}
.ind-card h4 { z-index: 2; }

/* --------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--navy);
}
.faq-q .pm {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cyan-050);
  color: var(--cyan-700);
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.faq-item.is-open .pm { transform: rotate(45deg); background: var(--cyan); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.2rem; margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------------------------------------------------------- Responsive -- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .client-wall { grid-template-columns: repeat(3, 1fr); }
  .matrix--six { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s var(--ease), padding 0.3s;
    padding-block: 0;
  }
  .nav-menu.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding-block: 1rem 2rem; }
  .nav-menu > li > a:not(.btn) { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line-soft); }
  .nav-menu > li > a:not(.btn)::after { display: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5rem 0.9rem;
    min-width: 0;
  }
  .nav-menu .btn { margin-top: 1rem; justify-content: center; }
  .mobile-only { display: block; }
  .mobile-only > a { border-bottom: 0 !important; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 340px; order: -1; margin: 0 calc(50% - 50vw); }
  .hero-visual .shot { inset: 0; clip-path: none; }
  .hero-visual .shot::after { display: none; }
  .hero-copy { padding-top: 2.5rem; }

  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .matrix, .matrix--six { grid-template-columns: 1fr; }
  .svc-card { min-height: 260px; }
  .svc-card p { max-width: 34ch; }
  /* One column means the text runs across the artwork — drop the art back so
     it reads as a texture instead of competing with the copy. */
  .svc-card .svc-art,
  .matrix--six .svc-card .svc-art,
  .svc-card--full .svc-art { inset: 0 0 0 26% !important; opacity: 0.38; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .client-wall { grid-template-columns: repeat(2, 1fr); }
  .client { min-height: 96px; }
  .client span { font-size: 1.05rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero-usps { gap: 1rem 1.4rem; }
}

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

@media print {
  .site-header, .site-footer, .to-top, .cta-band { display: none !important; }
}

/* ==========================================================================
   MOTION LAYER
   Entrance animations, scroll choreography and micro-interactions.
   Everything here is disabled by the prefers-reduced-motion block at the end.
   ========================================================================== */

/* ------------------------------------------- Reading-progress bar (header) -- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------- Header shrink on scroll -- */
.nav { transition: min-height 0.35s var(--ease); }
.brand img { transition: width 0.35s var(--ease), height 0.35s var(--ease); }
.site-header.is-stuck .nav { min-height: 74px; }
.site-header.is-stuck .brand img { width: 58px; height: 58px; }

/* -------------------------------------------------------- Hero entrance -- */
@keyframes rbFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rbZoomOut {
  from { transform: scale(1.09); }
  to   { transform: none; }
}

.hero-copy > * {
  animation: rbFadeUp 0.85s var(--ease) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.10s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.20s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.44s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.56s; }

.hero-visual .shot { animation: rbFadeIn 1s var(--ease) both; }
.hero-visual .shot img { animation: rbZoomOut 1.6s var(--ease) both; }

/* The cyan edge band draws itself down the diagonal on load.
   Scale-Y (not clip-path) so it does not clobber the band's own polygon clip. */
@keyframes rbBandIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-visual .shot::after {
  transform-origin: top center;
  animation: rbBandIn 0.9s 0.3s var(--ease) both;
}

/* ------------------------------------------------- Scroll-reveal variants -- */
.reveal--left  { transform: translateX(-38px); }
.reveal--right { transform: translateX(38px); }
.reveal--zoom  { transform: scale(0.94); }
.reveal--left.is-in,
.reveal--right.is-in,
.reveal--zoom.is-in { transform: none; }

/* Curtain wipe for imagery instead of a plain fade */
.reveal--wipe { opacity: 1; transform: none; }
.reveal--wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--cyan);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.9s 0.1s var(--ease);
}
.reveal--wipe.is-in::after { transform: scaleX(0); }

/* Eyebrow rule draws itself in as the section arrives */
.reveal .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s 0.3s var(--ease);
}
.reveal.is-in .eyebrow::before { transform: scaleX(1); }

/* --------------------------------------------------------- Button shine -- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s var(--ease);
  z-index: 0;
}
.btn:hover::before { left: 150%; }
.btn--ghost::before {
  background: linear-gradient(100deg, transparent, rgba(41, 182, 242, 0.22), transparent);
}

/* ----------------------------------------------------- Card interactions -- */
.card .card-ico {
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.card:hover .card-ico {
  transform: rotate(-8deg) scale(1.1);
  background: var(--cyan);
  color: #fff;
}
.section--navy .card:hover .card-ico { background: var(--cyan); color: #fff; }

.trust-item svg { transition: transform 0.35s var(--ease), color 0.3s; }
.trust-item:hover svg { transform: translateY(-4px) scale(1.12); color: var(--cyan); }

.step .num { transition: transform 0.4s var(--ease); }
.step:hover .num { transform: scale(1.1) rotate(-7deg); }

.info-item { transition: transform 0.35s var(--ease), border-color 0.3s; }
.info-item:hover { transform: translateX(6px); border-color: var(--cyan); }

/* Service-matrix artwork drifts in on hover */
.svc-card .svc-art img { transition: transform 0.8s var(--ease); }
.svc-card:hover .svc-art img { transform: scale(1.08); }
.svc-card .svc-no { transition: transform 0.5s var(--ease), color 0.4s; }
.svc-card:hover .svc-no { transform: translateY(-4px) scale(1.08); }

/* Split imagery lifts slightly */
.split-media img, .split-media svg { transition: transform 0.9s var(--ease); }
.split-media:hover img, .split-media:hover svg { transform: scale(1.04); }

/* Stat figures settle in with the count-up */
.stat b { display: block; transition: transform 0.5s var(--ease); }
.stat:hover b { transform: translateY(-4px); }

/* ------------------------------------------------------ Capability ticker -- */
.marquee {
  background: var(--navy);
  overflow: hidden;
  padding: 1rem 0;
  border-top: 4px solid var(--cyan);
  border-bottom: 4px solid var(--cyan);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: rbMarquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-right: 1.8rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.marquee-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.marquee-item:nth-child(even) { color: var(--cyan); }
.marquee-item:nth-child(even) i { background: #fff; }
@keyframes rbMarquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ To-top spin -- */
.to-top svg { transition: transform 0.35s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* ------------------------------------------------- Reduced-motion opt-out -- */
@media (prefers-reduced-motion: reduce) {
  /* Kill the motion but keep both clip-path shapes intact. */
  .hero-copy > *,
  .hero-visual .shot,
  .hero-visual .shot img,
  .hero-visual .shot::after { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .reveal--left, .reveal--right, .reveal--zoom { transform: none; }
  .reveal--wipe::after { display: none; }
  .reveal .eyebrow::before { transform: scaleX(1); }
  .scroll-progress { display: none; }
}
