/* ==========================================================================
   Work@Home Solutions — site stylesheet
   Design tokens carried over from the 2026 "Under Construction" prototype.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #1B4F9B;
  --brand-deep:   #103766;
  --brand-bright: #2E7BD9;
  --brand-soft:   #E8EFF9;
  --cyan:         #6FE3FF;

  /* Light surfaces */
  --bg:           #F7F8FB;
  --surface:      #FFFFFF;
  --surface-2:    #FCFDFE;
  --line:         #E3E6EE;
  --line-soft:    #EEF0F5;

  /* Light ink */
  --ink:          #0F1A2E;
  --ink-mute:     #4B5870;
  --ink-dim:      #8893A8;

  /* Dark surfaces (used by .on-dark) */
  --navy-0:       #050B18;
  --navy-1:       #08142A;
  --navy-2:       #0E1D3A;

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --gutter:       clamp(24px, 5vw, 64px);
  --page-max:     1240px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --header-h:     78px;
}

/* Dark band scope — re-maps the same tokens so every component adapts. */
.on-dark {
  --surface:    rgba(255, 255, 255, 0.045);
  --surface-2:  rgba(255, 255, 255, 0.025);
  --line:       rgba(160, 200, 255, 0.12);
  --line-soft:  rgba(160, 200, 255, 0.07);
  --ink:        #E8EEF9;
  --ink-mute:   #8DA2C4;
  --ink-dim:    #5D6F8E;
  --brand:      var(--brand-bright);
  --brand-soft: rgba(46, 123, 217, 0.16);
  background: var(--navy-1);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: rgba(27, 79, 155, 0.18); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--surface { background: var(--surface); }
.section--soft { background: linear-gradient(180deg, var(--brand-soft), rgba(232, 239, 249, 0.35)); }
.section--edge { border-top: 1px solid var(--line); }

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

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 16px;
  display: block;
}
.eyebrow--brand { color: var(--brand); }
.eyebrow--rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  letter-spacing: 0.34em;
  font-size: 12px;
}
.eyebrow--rule::before,
.eyebrow--rule::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

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

.h-display {
  font-size: clamp(40px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-1 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -0.03em; }
.h-2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; }
.h-3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.h-4 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }

.muted { color: var(--ink-dim); }
.accent { color: var(--brand); }

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 62ch;
}

.body-text { color: var(--ink-mute); line-height: 1.7; }
.body-text strong { color: var(--ink); font-weight: 600; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.section-head > div { max-width: 720px; }
.section-aside {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 320px;
  margin: 0;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(27, 79, 155, 0.7);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 20px 40px -18px rgba(27, 79, 155, 0.8); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light {
  background: #fff;
  color: var(--brand-deep);
}
.btn--light:hover { background: var(--brand-soft); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }

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

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}
/* On pages with the hero video the nav floats directly on it — fully transparent
   band, no blur — until the page is scrolled, when it snaps back to solid white. */
body.video-hero .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Soft light halo keeps the dark nav text crisp over the moving video —
   only while the header is transparent; it's dropped once the bar goes solid. */
body.video-hero .site-header:not(.is-stuck) .nav a,
body.video-hero .site-header:not(.is-stuck) .header-phone {
  text-shadow: 0 1px 10px rgba(247, 248, 251, 0.9), 0 0 3px rgba(247, 248, 251, 0.85);
}
/* Interior page heroes: pull them up behind the header so the video reaches the
   top, add the header height back to the top padding, and lift content above it. */
body.video-hero .page-hero {
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(clamp(56px, 7vw, 96px) + var(--header-h));
}
body.video-hero .page-hero > .wrap { position: relative; z-index: 3; }

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

.brand-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-link img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-mute);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(27, 79, 155, 0.06); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Only surfaces inside the open mobile drawer */
.nav-mobile-cta { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding: 8px 4px;
  transition: color .25s var(--ease);
}
.header-phone svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.header-phone:hover { color: var(--brand); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Pull the hero (and its video) up behind the translucent header so the
     backdrop reaches the very top of the screen; add the header height back
     to the top padding so the copy stays clear of the nav. */
  margin-top: calc(-1 * var(--header-h));
  padding: calc(clamp(72px, 10vw, 132px) + var(--header-h)) 0 clamp(64px, 8vw, 104px);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo img,
.hero-photo video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.3) contrast(1.25);
}
/* Video layers over the poster and fades in once it's actually playing. */
.hero-photo video { opacity: 0; transition: opacity .9s var(--ease); }
.hero-photo video.is-ready { opacity: 1; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 79, 155, 0.32), rgba(27, 79, 155, 0.10) 55%, transparent);
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 62% at 50% 40%, rgba(247, 248, 251, 0.14), rgba(247, 248, 251, 0.50) 80%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.30) 0%, rgba(247, 248, 251, 0.40) 52%, rgba(247, 248, 251, 0.9) 100%);
  z-index: 2;
}
.hero > .wrap { position: relative; z-index: 3; }

.hero-inner { max-width: 880px; }
.hero--center .hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero--center .lede { margin-left: auto; margin-right: auto; }
.hero--center .btn-row { justify-content: center; }
.hero .lede { margin: 24px 0 34px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero--center .hero-badges { justify-content: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.badge svg { width: 13px; height: 13px; stroke: var(--brand); stroke-width: 2; fill: none; }

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 15% 0%, rgba(232, 239, 249, 0.9), transparent 70%),
    var(--bg);
}
.page-hero .h-1 { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: 0.5; }

/* Pulsing status pill (carried from prototype) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(27, 79, 155, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(27, 79, 155, 0); }
  100% { box-shadow: 0 0 0 0    rgba(27, 79, 155, 0); }
}

/* --------------------------------------------------------------------------
   8. Marquee band
   -------------------------------------------------------------------------- */
.capabilities {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.6vw, 10px);
  padding: clamp(11px, 1.5vw, 20px) 0;
  background:
    radial-gradient(130% 160% at 50% -20%, rgba(255, 255, 255, 0.18), transparent 55%),
    var(--brand);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(111, 227, 255, 0.10),
              inset 0 -1px 0 rgba(111, 227, 255, 0.10);
}
/* fade each row's edges into the dark band */
.capabilities::before,
.capabilities::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(64px, 12vw, 190px);
  z-index: 3;
  pointer-events: none;
}
.capabilities::before { left: 0;  background: linear-gradient(90deg, var(--brand), transparent); }
.capabilities::after  { right: 0; background: linear-gradient(-90deg, var(--brand), transparent); }

.cap-row { overflow: hidden; }

.track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 58px);
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.3vw, 34px);
  line-height: 1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.track--reverse { animation-name: marquee-reverse; animation-duration: 45s; }

/* every word is outlined (hollow) for a clean editorial look */
.track > span {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 58px);
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(214, 230, 255, 0.72);
}
/* glowing cyan star between every word */
.track > span::after {
  content: '\2726';
  color: var(--cyan);
  -webkit-text-stroke: 0;
  font-size: 0.44em;
  transform: translateY(-0.05em);
  text-shadow: 0 0 12px rgba(111, 227, 255, 0.9), 0 0 26px rgba(111, 227, 255, 0.4);
  animation: cap-twinkle 3.2s ease-in-out infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes cap-twinkle {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft);
  box-shadow: 0 18px 40px -24px rgba(27, 79, 155, 0.30);
}
.on-dark .card:hover {
  border-color: rgba(111, 227, 255, 0.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-mute); font-size: 15.5px; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: 22px; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--brand);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

.card--link:hover h3 { color: var(--brand); }

/* Feature list inside cards */
.tick-list { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.tick-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mute);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B4F9B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* --------------------------------------------------------------------------
   10. Split / media rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 79, 155, 0.14), transparent 55%);
  pointer-events: none;
}

/* Detailed service / industry row — two columns, no photography required */
.service-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(44px, 5vw, 68px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.service-row:first-of-type { border-top: 0; }
.service-row .row-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.service-row .card-icon { margin-bottom: 20px; }
.service-row h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.service-row .row-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 16px;
}
.service-row .row-body > p:first-child {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-mute);
  margin-bottom: 26px;
}
.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.row-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

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

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.stat-note { font-size: 14px; color: var(--ink-mute); line-height: 1.5; }

/* --------------------------------------------------------------------------
   12. Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; }
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--brand);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-mute); font-size: 15px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   13. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.acc-trigger:hover { color: var(--brand); }
.acc-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.acc-icon::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height .35s var(--ease);
}
.acc-panel-inner {
  padding: 0 0 28px;
  max-width: 74ch;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Offices & channels (carried from prototype)
   -------------------------------------------------------------------------- */
.office { padding: 36px; }
.office-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.office-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.office-flag .code { color: var(--brand); font-weight: 600; }
.office h3 { font-size: 26px; margin-bottom: 18px; }
.office h3 .place {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.office address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.office address .country {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.channel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.channel:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 12px 30px -20px rgba(27, 79, 155, 0.25);
  transform: translateY(-2px);
}
.channel-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
}
.channel-icon svg {
  width: 20px; height: 20px;
  stroke: var(--brand);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.channel-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.channel-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. Quote / testimonial
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(36px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--brand);
  opacity: 0.25;
  display: block;
  margin-bottom: 18px;
}
.quote-cite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-style: normal;
}
.quote-cite .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
  flex-shrink: 0;
}
.quote-cite .who { display: flex; flex-direction: column; gap: 2px; }
.quote-cite .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.quote-cite .role { font-size: 13.5px; color: var(--ink-dim); }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-1);
  color: #E8EEF9;
  padding: clamp(64px, 8vw, 104px) 0;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46, 123, 217, 0.22), transparent 62%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #A9BCD8; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-inner > div { max-width: 640px; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 30px 70px -50px rgba(15, 26, 46, 0.4);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field label .req { color: var(--brand); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238893A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-dim); opacity: 0.75; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 79, 155, 0.1);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #C2334D;
  background: #FDF5F6;
}
.field-error {
  font-size: 13px;
  color: #C2334D;
  display: none;
}
.field.has-error .field-error { display: block; }

/* Honeypot — must stay visually hidden but reachable in the DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.form-consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.form-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
}
.form-status.is-visible { display: block; }
.form-status--ok    { background: var(--brand-soft); color: var(--brand-deep); border: 1px solid rgba(27, 79, 155, 0.2); }
.form-status--error { background: #FDF5F6; color: #8E2438; border: 1px solid rgba(194, 51, 77, 0.25); }

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.btn .spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-0);
  color: #8DA2C4;
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(160, 200, 255, 0.1);
}
/* Logo treatment on navy, carried from the dark prototype's .brand-mark */
.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 22px;
  filter: brightness(1.15) saturate(1.05) drop-shadow(0 0 18px rgba(46, 123, 217, 0.35));
}
.footer-brand p { font-size: 15px; line-height: 1.7; color: #8DA2C4; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5D6F8E;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 15px;
  color: #B9C8DF;
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5D6F8E;
}
.footer-bottom .left,
.footer-bottom .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom .sep { opacity: 0.4; }
.footer-bottom a:hover { color: #B9C8DF; }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to .js (set by an inline head script) so that if JavaScript is blocked
   or fails to load, every section stays visible instead of blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; color: var(--ink-mute); line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 30px 0 10px; color: var(--ink); }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .header-phone { display: none; }
  /* Nav is still visible here, so keep the logo trim to avoid crowding it. */
  .brand-link img { height: 30px; }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  /* Nav collapses to a toggle here, so the logo has room to be large again. */
  .brand-link img { height: 34px; }

  /* Mobile drawer */
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open a {
    padding: 18px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav.is-open a:hover { background: none; color: var(--brand); }
  .nav.is-open .nav-mobile-cta {
    display: flex;
    margin-top: 28px;
    border: 0;
    padding: 0;
  }
  .nav.is-open .nav-mobile-cta .btn { display: inline-flex; width: 100%; }
  body.nav-open { overflow: hidden; }

  .split,
  .grid--3,
  .split--wide-left { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--4,
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .card { padding: 28px; }
  .office { padding: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-bottom { font-size: 10px; letter-spacing: 0.12em; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-link img { height: 30px; }
  .footer-brand img { height: 40px; }
  .quote { padding: 26px; }
}

/* --------------------------------------------------------------------------
   22. Motion & print
   -------------------------------------------------------------------------- */
@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .track { animation: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .capabilities, .nav-toggle { display: none; }
  body { background: #fff; }
  .card, .form-card { break-inside: avoid; border-color: #ccc; }
}
