/* ==========================================================================
   NEXPATH SOFTWARE PTY LTD
   Corporate website stylesheet
   Desktop-first, relative links, no external assets.
   ========================================================================== */

:root {
  --navy-950: #061528;
  --navy-900: #081c35;
  --navy-850: #0b2442;
  --navy-800: #0e2b4d;
  --ink: #0b1b2b;
  --slate: #55697b;
  --slate-light: #68798a;
  --cyan: #1cc6e2;
  --cyan-strong: #0a7f93;
  --cyan-soft: #dff6fa;
  --ice: #eef7fa;
  --paper: #f7f9fb;
  --white: #ffffff;
  --line: rgba(11, 27, 43, 0.14);
  --line-strong: rgba(11, 27, 43, 0.3);
  --line-light: rgba(255, 255, 255, 0.14);
  --serif: 'NexPath Serif', Baskerville, Georgia, 'Times New Roman', serif;
  --sans: 'NexPath Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --content: 76rem;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

::selection {
  background: var(--cyan);
  color: var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--cyan-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.8rem 1.1rem;
  background: var(--navy-950);
  color: var(--white);
  font-size: 0.8rem;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: calc(var(--content) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Buttons, links and small type
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.95rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .arrow {
  font-size: 1rem;
  line-height: 0.8;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}
.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-950);
}
.btn-primary:hover {
  background: #54d9ec;
  border-color: #54d9ec;
}
.btn-dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8rem;
  line-height: 1.3;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link span {
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}
.text-link:hover {
  border-color: var(--cyan-strong);
  gap: 0.7rem;
}
.text-link:hover span {
  transform: translate(2px, -2px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-strong);
}
.eyebrow::before {
  content: '';
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.kicker span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.58rem;
  color: var(--slate);
}
.kicker::after {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--line);
}

.section {
  padding: 7rem 0;
}
.section--white {
  background: var(--white);
}
.section--ice {
  background: var(--ice);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.4rem;
}
.section-head h2 {
  max-width: 42rem;
  font-size: clamp(2.6rem, 3.5vw, 3.35rem);
  line-height: 1;
}
.section-head p {
  max-width: 31rem;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
}
.section-head .text-link {
  margin-top: 1rem;
}

/* ==========================================================================
   Top bar and header
   ========================================================================== */

.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.4rem;
  gap: 2rem;
}
.topbar-mid {
  color: rgba(255, 255, 255, 0.38);
}
.topbar span:last-child {
  color: rgba(28, 198, 226, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 249, 251, 0.98);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 30px -30px rgba(11, 27, 43, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 5rem;
  gap: 2rem;
}
.brand {
  flex: none;
  width: 10.4rem;
}
.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2rem);
  margin-left: auto;
}
.nav-link,
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.nav-link::after,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after,
.nav-toggle:hover::after,
.nav-item:focus-within .nav-toggle::after,
.nav-item.is-open .nav-toggle::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-link.is-active,
.nav-toggle.is-active {
  font-weight: 500;
}
.nav-toggle.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-toggle svg {
  width: 0.62rem;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.8;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-item:hover .nav-toggle svg,
.nav-item:focus-within .nav-toggle svg,
.nav-item.is-open .nav-toggle svg {
  opacity: 1;
}
.nav-item:hover .nav-toggle svg,
.nav-item:focus-within .nav-toggle svg,
.nav-item.is-open .nav-toggle svg {
  transform: rotate(180deg);
}
.nav-item {
  position: relative;
}
.nav-cta {
  margin-left: 0.7rem;
  min-height: 2.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.79rem;
}

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: 50%;
  width: min(54rem, calc(100vw - 3rem));
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 32px 70px -36px rgba(6, 21, 40, 0.55);
  display: grid;
  grid-template-columns: 1.4fr 0.72fr;
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.55rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}
.mega::before {
  content: '';
  position: absolute;
  top: -1.15rem;
  left: 0;
  right: 0;
  height: 1.15rem;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega-list {
  display: flex;
  flex-direction: column;
}
.mega-link {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.9rem;
  padding: 0.62rem 0.65rem;
  border-bottom: 1px solid var(--line);
  border-radius: 2px;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.mega-link:last-child {
  border-bottom: 0;
}
.mega-link:hover {
  background: var(--paper);
  padding-left: 0.95rem;
}
.mega-num {
  padding-top: 0.18rem;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  color: var(--slate-light);
}
.mega-link strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
}
.mega-link small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--slate);
}
.mega-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--ice);
  border-radius: 3px;
}
.mega-aside h3 {
  font-size: 1.45rem;
  line-height: 1.05;
}
.mega-aside p {
  margin: 0.8rem 0 1.3rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--slate);
}
.mega-aside .text-link {
  width: fit-content;
}
.mega-aside .text-link + .text-link {
  margin-top: 0.45rem;
}

/* Industries dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: 50%;
  width: 19rem;
  padding: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 28px 60px -36px rgba(6, 21, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.55rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -1.15rem;
  left: 0;
  right: 0;
  height: 1.15rem;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.7rem;
  border-radius: 2px;
  font-size: 0.82rem;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.dropdown a span {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--slate-light);
}
.dropdown a:hover {
  background: var(--paper);
  padding-left: 0.95rem;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 1.05rem;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:first-child {
  top: calc(50% - 3px);
}
.menu-toggle span:last-child {
  top: calc(50% + 3px);
}
.menu-toggle[aria-expanded='true'] span:first-child {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:last-child {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}
.mobile-nav {
  display: none;
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.home-hero {
  position: relative;
  min-height: clamp(40rem, calc(100vh - 7.5rem), 51rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: -15%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 70% at 50% 45%, #000 20%, transparent 75%);
  animation: gridDrift 34s linear infinite;
}
@keyframes gridDrift {
  to {
    background-position: 5.5rem 5.5rem, 5.5rem 5.5rem;
  }
}
.hero-glow {
  position: absolute;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}
.hero-glow-a {
  top: -18rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(28, 198, 226, 0.18) 0%, rgba(28, 198, 226, 0) 68%);
  animation: glowDrift 18s ease-in-out infinite alternate;
}
.hero-glow-b {
  bottom: -24rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(28, 95, 226, 0.16) 0%, rgba(28, 95, 226, 0) 68%);
  animation: glowDrift 24s ease-in-out infinite alternate-reverse;
}
@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3rem, 2rem, 0) scale(1.08);
  }
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
  padding-top: 4.8rem;
  padding-bottom: 2rem;
  flex: 1;
}
.hero-copy {
  max-width: 42rem;
  animation: heroEnter 1s var(--ease) 0.05s both;
}
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 198, 226, 0.9);
}
.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.hero-title {
  max-width: 44rem;
  font-size: clamp(4rem, 5.7vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #f7fbfd;
}
.hero-title .underlined {
  display: inline-block;
  border-bottom: 2px solid var(--cyan);
  line-height: 0.86;
  padding-bottom: 0.07em;
}
.hero-lede {
  max-width: 35rem;
  margin: 1.8rem 0 2.2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(247, 251, 253, 0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.4rem;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 251, 253, 0.45);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-meta span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.hero-system {
  position: relative;
  justify-self: end;
  width: min(100%, 38rem);
  aspect-ratio: 1;
  opacity: 0;
  animation: heroFade 1.2s var(--ease) 0.28s forwards, heroFloat 7.5s ease-in-out 1.6s infinite;
}
@keyframes heroFade {
  to {
    opacity: 1;
  }
}
/* Gentle floating of the hero visual — mirrors the slow, subtle bob of an
   illustrated hero asset (e.g. a balloon drifting). Whole system map floats
   together: cards, connecting lines and orbit. */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}
.hero-system::before {
  content: 'SYSTEM MAP / 01';
  position: absolute;
  top: 0.5rem;
  right: 0;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 251, 253, 0.35);
}
.hero-map {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map-ring {
  fill: none;
  stroke: rgba(28, 198, 226, 0.26);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  transform-origin: 300px 300px;
  animation: ringSpin 70s linear infinite;
}
.map-ring.r2 {
  stroke: rgba(28, 198, 226, 0.12);
  animation-duration: 95s;
  animation-direction: reverse;
}
.map-ring.r3 {
  stroke: rgba(255, 255, 255, 0.09);
  animation-duration: 120s;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.map-line {
  fill: none;
  stroke: rgba(28, 198, 226, 0.44);
  stroke-width: 1;
  stroke-dasharray: 4 8;
  animation: lineFlow 7s linear infinite;
}
.map-line.delay {
  animation-delay: -2.4s;
}
.map-line.slow {
  animation-duration: 11s;
}
@keyframes lineFlow {
  to {
    stroke-dashoffset: -96;
  }
}
.map-node {
  fill: var(--navy-900);
  stroke: rgba(28, 198, 226, 0.68);
  stroke-width: 1;
  transform-origin: center;
  animation: nodePulse 5s ease-in-out infinite;
}
.map-node.d1 {
  animation-delay: -0.8s;
}
.map-node.d2 {
  animation-delay: -1.6s;
}
.map-node.d3 {
  animation-delay: -2.4s;
}
.map-node.d4 {
  animation-delay: -3.2s;
}
@keyframes nodePulse {
  0%,
  100% {
    stroke-opacity: 0.55;
  }
  50% {
    stroke-opacity: 1;
    stroke: var(--cyan);
  }
}
.map-node-dot {
  fill: var(--cyan);
  opacity: 0.9;
}
.map-label {
  fill: rgba(247, 251, 253, 0.72);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.map-label.small {
  font-size: 8px;
  fill: rgba(247, 251, 253, 0.42);
}
.map-core {
  fill: url('#coreGradient');
  stroke: rgba(28, 198, 226, 0.7);
  stroke-width: 1;
}
.map-core-text {
  fill: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.6px;
  text-anchor: middle;
}
.map-core-sub {
  fill: rgba(28, 198, 226, 0.8);
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 2px;
  text-anchor: middle;
}
.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 251, 253, 0.42);
}
.hero-foot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}
.hero-foot-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-foot-facts span::before {
  content: '';
  width: 4px;
  height: 4px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}
.hero-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247, 251, 253, 0.62);
  transition: color 0.25s var(--ease);
}
.hero-foot-link:hover {
  color: var(--cyan);
}

/* Capability marquee */
.cap-marquee {
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
  will-change: transform;
}
.cap-marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}
.marquee-set span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.marquee-set i {
  width: 4px;
  height: 4px;
  background: var(--cyan);
  transform: rotate(45deg);
  flex: none;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Home sections
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.intro-copy h2 {
  max-width: 44rem;
  font-size: clamp(2.7rem, 3.7vw, 3.55rem);
  line-height: 1.01;
}
.intro-copy > p {
  max-width: 40rem;
  margin-top: 1.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
}
.intro-points {
  border-top: 1px solid var(--line);
}
.intro-point {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.intro-point > span {
  padding-top: 0.22rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--slate-light);
}
.intro-point h3 {
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.intro-point p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.intro-note::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--cyan);
}

/* Capability cards */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cap-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease);
}
.cap-card:nth-child(4),
.cap-card:nth-child(5) {
  grid-column: span 3;
  min-height: 18.5rem;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.cap-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(28, 198, 226, 0.45);
  box-shadow: 0 26px 46px -38px rgba(6, 21, 40, 0.45);
}
.cap-card:hover::before {
  transform: scaleX(1);
}
.cap-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cap-num {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.cap-icon {
  width: 2.55rem;
  height: 2.55rem;
  fill: none;
  stroke: var(--navy-800);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease);
}
.cap-card:hover .cap-icon {
  stroke: var(--cyan-strong);
}
.cap-card h3 {
  margin-top: auto;
  padding-top: 2.6rem;
  font-size: 1.8rem;
  line-height: 1.03;
}
.cap-card p {
  margin-top: 0.7rem;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}
.cap-tags span {
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 1.2rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
  font-size: 0.72rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.cap-link span {
  color: var(--cyan-strong);
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease);
}
.cap-card:hover .cap-link {
  border-color: var(--line-strong);
  gap: 0.65rem;
}
.cap-card:hover .cap-link span {
  transform: translate(2px, -2px);
}

/* Process band */
.process {
  background: var(--navy-950);
  color: var(--white);
  padding: 7rem 0;
}
.process .kicker {
  color: rgba(247, 251, 253, 0.55);
}
.process .kicker span {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(247, 251, 253, 0.62);
}
.process .kicker::after {
  background: rgba(255, 255, 255, 0.16);
}
.process-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.8rem;
}
.process-head h2 {
  max-width: 41rem;
  font-size: clamp(2.7rem, 3.6vw, 3.4rem);
  line-height: 1;
  color: #f7fbfd;
}
.process-head p {
  max-width: 31rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(247, 251, 253, 0.62);
}
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-top: 2.1rem;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.process-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.7s var(--ease);
}
.process.is-line-visible .process-line {
  transform: scaleX(1);
}
.process-step {
  position: relative;
  padding-right: 0.5rem;
}
.process-step::before {
  content: '';
  position: absolute;
  top: -2.45rem;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--navy-950);
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}
.process-step span {
  display: block;
  margin-bottom: 2.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.process-step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  color: #f7fbfd;
}
.process-step p {
  max-width: 13rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(247, 251, 253, 0.55);
}
.process-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 3.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.process-foot p {
  max-width: 31rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(247, 251, 253, 0.45);
}
.process-foot .text-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.process-foot .text-link:hover {
  border-color: var(--cyan);
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.industry-card {
  min-height: 14.5rem;
  padding: 1.7rem;
  background: var(--white);
  transition: background 0.3s var(--ease);
}
.industry-card:hover {
  background: var(--ice);
}
.ind-num {
  display: block;
  margin-bottom: 2.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.industry-card h3 {
  font-size: 1.45rem;
  line-height: 1.05;
}
.industry-card p {
  margin-top: 0.6rem;
  max-width: 18rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--slate);
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1.1rem;
}
.industry-tags span {
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* Principles and facts */
.principles {
  background: var(--ice);
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 3.2rem;
}
.principle {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.principle span {
  display: block;
  margin-bottom: 2.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.principle h3 {
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.principle p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--slate);
}
.facts-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--line);
}
.fact:last-child {
  border-right: 0;
}
.fact span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--cyan);
  color: var(--navy-950);
  padding: 5.4rem 0;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}
.cta-copy h2 {
  max-width: 43rem;
  font-size: clamp(2.8rem, 3.9vw, 3.7rem);
  line-height: 0.98;
}
.cta-copy p {
  max-width: 31rem;
  margin: 1.1rem 0 1.8rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(6, 21, 40, 0.72);
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cta-email {
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(6, 21, 40, 0.4);
  padding-bottom: 0.1rem;
}
.cta-art {
  justify-self: end;
  width: min(100%, 22rem);
  opacity: 0.32;
}
.cta-art svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--navy-950);
  stroke-width: 1.15;
}
.cta-art .pulse {
  stroke-dasharray: 5 10;
  animation: lineFlow 8s linear infinite;
}


/* ==========================================================================
   Page header image backgrounds
   These are unique, page-specific visual placeholders. Replace each
   data-image path in img/headers/ with the final generated image.
   ========================================================================== */

.page-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      var(--pangle, 118deg),
      rgba(6, 21, 40, 0.94) 0%,
      rgba(6, 21, 40, 0.46) 58%,
      rgba(6, 21, 40, 0.9) 100%
    ),
    radial-gradient(
      60% 86% at var(--pgx, 78%) var(--pgy, 18%),
      hsla(var(--ph, 190), 84%, 56%, 0.36) 0%,
      hsla(var(--ph, 190), 84%, 56%, 0) 70%
    ),
    linear-gradient(
      calc(var(--pangle, 118deg) + 42deg),
      hsla(var(--ph2, 210), 82%, 52%, 0.18) 0%,
      transparent 62%
    );
}
.page-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      calc(var(--pangle, 118deg) + 90deg),
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 1.35rem
    );
  opacity: 0.45;
}
.home-hero .page-photo {
  opacity: 0.78;
}
.page-hero .page-photo {
  opacity: 0.9;
}
.page-hero--skeleton {
  min-height: 26rem;
  display: flex;
  align-items: flex-end;
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}
.page-hero--skeleton h1 {
  font-size: clamp(2.9rem, 4.2vw, 4.15rem);
}
.skeleton-space {
  min-height: 38vh;
  background: var(--paper);
}

/* ==========================================================================
   Page heroes
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  padding: 4.6rem 0 4rem;
  isolation: isolate;
}
.page-hero .hero-grid {
  opacity: 0.8;
}
.page-hero-glow {
  position: absolute;
  top: -16rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 198, 226, 0.16) 0%, rgba(28, 198, 226, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: glowFloat 22s ease-in-out infinite alternate;
}
@keyframes glowFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5rem, 2rem, 0) scale(1.1); }
}

/* Ambient aurora + edge vignette layered on every hero background */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(38% 52% at 76% 16%, rgba(28, 198, 226, 0.20) 0%, rgba(28, 198, 226, 0) 60%),
    radial-gradient(42% 56% at 10% 90%, rgba(28, 95, 226, 0.18) 0%, rgba(28, 95, 226, 0) 62%);
  animation: auroraDrift 28s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(125% 120% at 50% 28%, transparent 50%, rgba(4, 14, 28, 0.6) 100%);
}
@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-3rem, -2.2rem, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-glow,
  .hero-bg::before { animation: none; }
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 251, 253, 0.4);
}
.breadcrumb a {
  transition: color 0.25s var(--ease);
}
.breadcrumb a:hover {
  color: var(--cyan);
}
.breadcrumb .sep {
  color: rgba(247, 251, 253, 0.22);
}
.page-hero h1 {
  max-width: 54rem;
  font-size: clamp(3rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #f7fbfd;
}
.page-lede {
  max-width: 41rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(247, 251, 253, 0.65);
}
.page-hero--compact {
  padding: 3.2rem 0 3rem;
}
.page-hero--compact .breadcrumb {
  margin-bottom: 1.8rem;
}
.page-hero--compact h1 {
  font-size: clamp(2.5rem, 3.4vw, 3.2rem);
}
.page-hero--compact .page-lede {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  padding: 5.5rem 0 6.5rem;
}
.services-index {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}
.services-index h2 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.services-index a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--slate);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.services-index a:last-child {
  border-bottom: 1px solid var(--line);
}
.services-index a span {
  font-size: 0.55rem;
  color: var(--slate-light);
}
.services-index a:hover,
.services-index a.is-active {
  color: var(--ink);
  padding-left: 0.25rem;
}
.services-index a.is-active span {
  color: var(--cyan-strong);
}
.services-index-note {
  margin-top: 1.4rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--slate-light);
}

.service-section {
  padding-bottom: 4.2rem;
  margin-bottom: 4.2rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 7rem;
}
.service-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.service-header {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.service-num {
  padding-top: 0.45rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--slate-light);
}
.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--cyan-strong);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-section h2 {
  max-width: 40rem;
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  line-height: 1;
}
.service-lede {
  max-width: 43rem;
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--slate);
}
.service-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  margin-top: 2.2rem;
  padding-left: 4.6rem;
}
.service-body h3 {
  margin-bottom: 0.8rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.deliverable-list li {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}
.engagement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.engagement-tags span {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.engagement-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.engagement-card span {
  display: block;
  margin-bottom: 2.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.engagement-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}
.engagement-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate);
}

/* ==========================================================================
   Company page
   ========================================================================== */

.company-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.company-story h2 {
  max-width: 42rem;
  font-size: clamp(2.7rem, 3.6vw, 3.45rem);
  line-height: 1;
}
.company-story .story-copy p {
  max-width: 40rem;
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
}
.story-aside {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}
.founded-mark span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.founded-mark strong {
  display: block;
  margin: 0.3rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 5rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.founded-mark p {
  max-width: 16rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--slate);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.value-card span {
  display: block;
  margin-bottom: 2.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.value-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate);
}
.company-table {
  width: 100%;
  margin-top: 2.5rem;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.company-table th,
.company-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 400;
  vertical-align: top;
}
.company-table th {
  width: 15rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.company-table td {
  color: var(--ink);
}

/* ==========================================================================
   Industries page
   ========================================================================== */

.sector-list {
  border-top: 1px solid var(--line);
}
.sector {
  display: grid;
  grid-template-columns: 4rem 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  scroll-margin-top: 7rem;
}
.sector-num {
  padding-top: 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--slate-light);
}
.sector h2 {
  max-width: 22rem;
  font-size: 2rem;
  line-height: 1.02;
}
.sector-copy p {
  max-width: 30rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.sector-tags span {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.56rem;
  color: var(--slate);
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.requirement {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.requirement span {
  display: block;
  margin-bottom: 2.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.requirement h3 {
  margin-bottom: 0.45rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.requirement p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--slate);
}

/* ==========================================================================
   Approach page
   ========================================================================== */

.timeline {
  position: relative;
  margin-top: 3.2rem;
  padding-left: 4rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.72rem;
  width: 1px;
  background: var(--line);
}
.timeline-line {
  position: absolute;
  top: 0.5rem;
  left: 0.72rem;
  width: 1px;
  height: calc(100% - 1rem);
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.8s var(--ease);
}
.timeline.is-line-visible .timeline-line {
  transform: scaleY(1);
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: 0 0 2.8rem;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 0.42rem;
  left: -3.76rem;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-step > span {
  padding-top: 0.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.timeline-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  line-height: 1.05;
}
.timeline-step p {
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.model-card {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.model-card span {
  display: block;
  margin-bottom: 2.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--slate-light);
}
.model-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
}
.model-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--slate);
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 3rem;
}
.quality-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.quality-item h3 {
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.quality-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--slate);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 6rem);
  padding: 5.5rem 0 6.5rem;
  align-items: start;
}
.contact-details h2 {
  max-width: 22rem;
  font-size: 2.8rem;
  line-height: 1;
}
.contact-details > p {
  max-width: 27rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
}
.contact-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.contact-list > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.contact-list dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}
.location-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  background: var(--ice);
  border: 1px solid rgba(28, 198, 226, 0.25);
  border-radius: var(--radius);
}
.location-card svg {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: var(--cyan-strong);
  stroke-width: 1.4;
}
.location-card strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
}
.location-card span {
  font-size: 0.75rem;
  color: var(--slate);
}

.contact-form {
  padding: 2.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form h2 {
  font-size: 1.9rem;
  line-height: 1.05;
}
.contact-form > p {
  margin-top: 0.5rem;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-strong);
  background: var(--white);
}
.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.3rem 0 1.2rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--slate);
}
.field-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--cyan-strong);
}
.field-check a {
  border-bottom: 1px solid var(--line-strong);
}
.form-success {
  display: none;
  padding: 2.5rem;
  background: var(--ice);
  border: 1px solid rgba(28, 198, 226, 0.35);
  border-radius: var(--radius);
}
.form-success.is-visible {
  display: block;
}
.form-success h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.form-success p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--slate-light);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  padding: 5rem 0 6rem;
}
.legal-inner {
  max-width: 48rem;
}
.legal-meta {
  margin-bottom: 2.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.legal h2 {
  margin: 2.7rem 0 0.8rem;
  font-size: 1.65rem;
  line-height: 1.1;
}
.legal h2:first-of-type {
  margin-top: 0;
}
.legal h3 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--slate);
}
.legal p + p {
  margin-top: 0.8rem;
}
.legal ul {
  margin: 0.7rem 0 1rem;
  padding-left: 1.1rem;
}
.legal li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.35rem;
  list-style: none;
}
.legal li::before {
  content: '';
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  transform: rotate(45deg);
}
.legal a {
  border-bottom: 1px solid var(--line-strong);
}
.legal a:hover {
  border-color: var(--cyan-strong);
}
.legal-contact {
  margin-top: 2.5rem;
  padding: 1.3rem 1.5rem;
  background: var(--ice);
  border-left: 2px solid var(--cyan);
}
.legal-contact p {
  margin: 0.15rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  padding: 4.8rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.8fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-brand-panel {
  display: inline-block;
  margin-bottom: 1.3rem;
}
.footer-brand-panel img {
  width: 9.5rem;
  height: auto;
}
.footer-brand > p {
  max-width: 19rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal-name {
  margin-top: 1.4rem !important;
  font-size: 0.7rem !important;
  line-height: 1.7 !important;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48) !important;
  text-transform: uppercase;
}
.footer-col h3 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.footer-col a {
  display: block;
  padding: 0.24rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-col a:hover {
  color: var(--cyan);
  padding-left: 0.2rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-top: 4rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s var(--ease);
}
.footer-bottom a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.3rem);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  --i: 0;
}
.stagger > *:nth-child(2) {
  --i: 1;
}
.stagger > *:nth-child(3) {
  --i: 2;
}
.stagger > *:nth-child(4) {
  --i: 3;
}

section[id],
.engagement-grid[id],
.footer {
  scroll-margin-top: 6.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */


@media (min-width: 801px) and (max-height: 820px) {
  .home-hero {
    min-height: calc(100vh - 7.5rem);
  }
  .hero-layout {
    padding-top: 2.6rem;
    padding-bottom: 1.2rem;
  }
  .hero-eyebrow {
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(3.2rem, 4.5vw, 4rem);
  }
  .hero-lede {
    max-width: 32rem;
    margin: 1.1rem 0 1.4rem;
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero-actions .btn {
    min-height: 2.7rem;
    padding: 0.75rem 1rem;
  }
  .hero-meta {
    margin-top: 1.4rem;
    font-size: 0.58rem;
  }
  .hero-system {
    width: min(100%, 30rem);
  }
  .hero-foot {
    padding: 0.85rem 0 1rem;
  }
}

@media (max-width: 1200px) {
  .main-nav {
    gap: 1.15rem;
  }
  .nav-link,
  .nav-toggle {
    font-size: 0.82rem;
  }
  .brand {
    width: 9.6rem;
  }
  .hero-layout {
    gap: 2.5rem;
  }
}

@media (max-width: 1020px) {
  .topbar-mid {
    display: none;
  }
  .main-nav,
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    gap: 1.4rem;
    padding: 6.5rem var(--gutter) 2rem;
    background: var(--paper);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
    overflow-y: auto;
  }
  .mobile-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .mobile-nav nav {
    display: flex;
    flex-direction: column;
  }
  .mobile-nav nav a {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }
  .mobile-nav nav a span {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--slate-light);
  }
  .mobile-nav .btn {
    align-self: flex-start;
  }
  .mobile-nav-meta {
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--slate);
  }
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-system {
    width: 30rem;
  }
  .section-head,
  .process-head {
    gap: 2.5rem;
  }
  .services-layout {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 1rem;
  }
  .topbar {
    display: none;
  }
  .header-inner {
    height: 4.3rem;
  }
  .brand {
    width: 8.6rem;
  }
  .mobile-nav {
    padding-top: 5.5rem;
  }
  .home-hero {
    min-height: 0;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: clamp(3.3rem, 10vw, 4.6rem);
  }
  .hero-system {
    width: min(100%, 26rem);
    justify-self: start;
    margin-top: 0.5rem;
  }
  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .section,
  .process {
    padding: 4.5rem 0;
  }
  .section-head,
  .process-head {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.4rem;
  }
  .section-head h2,
  .process-head h2 {
    max-width: 36rem;
  }
  .intro-grid,
  .company-story,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cap-card,
  .cap-card:nth-child(4),
  .cap-card:nth-child(5) {
    grid-column: span 1;
    min-height: 19rem;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }
  .process-steps::before,
  .process-line {
    display: none;
  }
  .process-step::before {
    display: none;
  }
  .industry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .principle-grid,
  .values-grid,
  .requirements-grid {
    grid-template-columns: 1fr 1fr;
  }
  .facts-bar {
    grid-template-columns: 1fr 1fr;
  }
  .fact:nth-child(2) {
    border-right: 0;
  }
  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .cta-art {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .services-layout {
    grid-template-columns: 1fr;
    padding: 3.5rem 0 4.5rem;
  }
  .services-index {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
    margin-bottom: 2rem;
  }
  .services-index h2,
  .services-index-note {
    grid-column: 1 / -1;
  }
  .service-body {
    padding-left: 0;
  }
  .engagement-grid,
  .models-grid,
  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sector {
    grid-template-columns: 3rem 1fr;
    gap: 1.2rem;
  }
  .sector-copy {
    grid-column: 2;
  }
  .timeline {
    padding-left: 2rem;
  }
  .timeline::before,
  .timeline-line {
    left: 0;
  }
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-left: 1.5rem;
  }
  .timeline-step::before {
    left: -1.83rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 2.9rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cap-grid,
  .industry-grid,
  .principle-grid,
  .values-grid,
  .requirements-grid,
  .facts-bar,
  .engagement-grid,
  .models-grid,
  .quality-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fact:last-child {
    border-bottom: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-grid,
  .hero-glow,
  .map-ring,
  .map-line,
  .map-node,
  .marquee-track,
  .cta-art .pulse {
    animation: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero-copy,
  .hero-system {
    opacity: 1;
  }
}
