/* =========================================================
   Mosaic — Managed IT & Cyber Security
   Design system: light & airy, engineering-led, boutique
   ========================================================= */

/* ---- Tokens ---- */
:root {
  /* surfaces */
  --paper: #ffffff;
  --bg:    #f6f7f8;            /* cool off-white */
  --bg-2:  #eef0f2;            /* slightly deeper panel */
  --ink:   #15181d;           /* near-black, cool slate */
  --ink-2: #3a4048;
  --muted: #6b7280;
  --faint: #9aa0a8;
  --line:  #e4e7ea;
  --line-2:#d3d7dc;

  /* brand — blue primary */
  --accent:      #29abe2;
  --accent-deep: #1481b4;
  --accent-weak: #e7f5fc;
  --accent-line: #b6e0f5;
  /* brand — orange accent (CTAs & key highlights) */
  --accent-2:      #f15a29;
  --accent-2-deep: #d8481b;

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* metrics */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --r: 4px;

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

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: #fff; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }

/* hairline section markers */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.sec-head { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 24ch;
  text-wrap: balance;
}
.sec-head p { color: var(--muted); max-width: 60ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }

.idx {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.1em;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.nav.scrolled {
  box-shadow: 0 6px 24px -18px rgba(21,24,29,0.4);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(30px, 4vw, 52px);
}

/* logo */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 37px; display: block; flex: none; }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; overflow: visible; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--accent-2); }
.brand-name b { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; margin-left: auto; gap: clamp(26px, 3vw, 44px); }
.nav-links a {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-2); position: relative; padding: 4px 0;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.btn-call .call-ico { width: 17px; height: 17px; flex: none; }
.btn-call .call-ico [stroke] { stroke: var(--accent-deep); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: var(--r);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent-2); color: #fff; }
.btn-primary:hover { background: var(--accent-2-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.btn-text:hover { border-color: var(--accent); gap: 13px; }
.btn-text .arr { color: var(--accent); }

.menu-toggle { display: none; }

/* =========================================================
   Hero — full-bleed gradient band, oversized uppercase headline
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 138px);
  display: flex; align-items: center;
  /* top offset scales with height so text stays optically centred between nav and partner strip */
  padding-block: 86px 0; /* = nav height, so content centres in the visible area below the nav */
  color: #fff;
  background:
    radial-gradient(95% 120% at 88% 6%, rgba(241,90,41,0.55), transparent 46%),
    radial-gradient(120% 130% at 100% 100%, rgba(8,74,112,0.5), transparent 60%),
    linear-gradient(118deg, #0b5d8c 0%, #1789c1 54%, #29abe2 100%);
}

/* flowing light arcs, bottom-right */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-arcs {
  position: absolute; right: 0; bottom: 0;
  width: min(64vw, 820px); height: 100%;
  color: #fff;
}

.hero-inner { position: relative; width: 100%; }
.hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4.77vw, 70px); line-height: 1.0; letter-spacing: -0.02em;
  max-width: 26ch; text-wrap: balance;
}
.hero-sub {
  margin-top: 28px; font-size: clamp(15px, 1.53vw, 22px); font-weight: 500;
  color: rgba(255,255,255,0.86); max-width: 42ch; line-height: 1.45;
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* white pill CTA on the gradient */
.hero .btn-primary {
  background: var(--accent-2); color: #fff; border-radius: 999px; padding: 15px 26px; font-size: 16px;
}
.hero .btn-primary:hover { background: var(--accent-2-deep); transform: translateY(-1px); }
.hero .btn-primary .arr { color: #fff; }

/* =========================================================
   Partners strip
   ========================================================= */
.partners-strip { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 44px); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 32s linear infinite;
}
.logo-ph {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted);
  white-space: nowrap; transition: color .25s var(--ease);
}
.logo-ph .lm { height: 22px; width: auto; display: block; }
.logo-ph:hover { color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }


/* =========================================================
   Services
   ========================================================= */
.services { background: var(--bg); padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px); }

/* interactive service selector — tab rail + detail panel */
.svc-x {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}

/* tab rail */
.svc-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); }
.svc-tab {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: clamp(15px, 1.5vw, 22px) clamp(18px, 2vw, 28px);
  border-bottom: 1px solid var(--line); color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.svc-tabs .svc-tab:last-child { border-bottom: none; }
.svc-tab::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.svc-tab:hover { background: var(--paper); color: var(--ink-2); }
.svc-tab.is-active { background: var(--paper); color: var(--ink); }
.svc-tab.is-active::before { transform: scaleY(1); }
.st-ico { width: 26px; height: 26px; flex: none; color: var(--faint); transition: color .25s var(--ease); }
.st-ico svg { width: 100%; height: 100%; overflow: visible; }
.st-ico svg [stroke] { stroke: currentColor; }
.st-ico svg [fill]:not([fill="none"]) { fill: currentColor; }
.svc-tab:hover .st-ico, .svc-tab.is-active .st-ico { color: var(--accent); }
.st-label { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.4vw, 17px); letter-spacing: -0.01em; }

/* detail panel */
.svc-panels {
  position: relative; padding: clamp(28px, 3.4vw, 54px); display: grid; align-items: center;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(241,90,41,0.10), transparent 42%),
    linear-gradient(135deg, var(--accent-weak), var(--paper) 64%);
}
.svc-panel { display: none; }
.svc-panel.is-active { display: block; animation: spFade .4s var(--ease) both; }
@keyframes spFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sp-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.sp-kicker .skm { width: 22px; height: 22px; flex: none; color: var(--accent); }
.sp-kicker .skm svg { width: 100%; height: 100%; overflow: visible; }
.sp-kicker .skm svg [stroke] { stroke: currentColor; }
.sp-kicker .skm svg [fill]:not([fill="none"]) { fill: currentColor; }
.svc-panel h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.018em; line-height: 1.15; margin-top: 16px; }
.svc-panel > p { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; max-width: 48ch; margin-top: 16px; }
.sp-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.sp-list li { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.sp-list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; transform: translateY(-1px); }
.sp-actions { margin-top: 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sp-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .25s var(--ease), gap .25s var(--ease); }
.sp-link .arr { color: var(--accent); }
.sp-link:hover { border-color: var(--accent); gap: 11px; }

/* =========================================================
   Essential Eight
   ========================================================= */
/* horizontal tab strip + two-column content panel */
.e8 { background: var(--bg); border-block: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.e8-head { margin-bottom: clamp(28px, 3vw, 44px); }

/* vertical tab rail + panel — matches the services explorer */
.e8x {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}

/* tab rail */
.e8x-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); }
.e8x-tab {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: clamp(13px, 1.3vw, 18px) clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--line); color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.e8x-tabs .e8x-tab:last-child { border-bottom: none; }
.e8x-tab::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.e8x-tab:hover { background: var(--paper); color: var(--ink-2); }
.e8x-tab.is-active { background: var(--paper); color: var(--ink); }
.e8x-tab.is-active::before { transform: scaleY(1); }
.e8t-ico { width: 22px; height: 22px; flex: none; color: var(--faint); transition: color .25s var(--ease); }
.e8t-ico svg { width: 100%; height: 100%; overflow: visible; }
.e8t-ico svg [stroke] { stroke: currentColor; }
.e8t-ico svg [fill]:not([fill="none"]) { fill: currentColor; }
.e8x-tab:hover .e8t-ico, .e8x-tab.is-active .e8t-ico { color: var(--accent); }
.e8t-label { font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: -0.01em; }

/* panel */
.e8x-panels {
  position: relative; padding: clamp(28px, 3.4vw, 54px);
  display: grid; align-items: center;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(241,90,41,0.10), transparent 42%),
    linear-gradient(135deg, var(--accent-weak), var(--paper) 64%);
}
.e8x-panel { display: none; }
.e8x-panel.is-active { display: block; animation: e8Fade .4s var(--ease) both; }
@keyframes e8Fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.e8p-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.e8pk-ico { width: 22px; height: 22px; flex: none; color: var(--accent); }
.e8pk-ico svg { width: 100%; height: 100%; overflow: visible; }
.e8pk-ico svg [stroke] { stroke: currentColor; }
.e8pk-ico svg [fill]:not([fill="none"]) { fill: currentColor; }

.e8x-panel h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 16px; max-width: 18ch;
}
.e8x-panel > p { color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; margin-top: 18px; max-width: 52ch; }
.e8p-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.e8p-list li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.e8p-list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; transform: translateY(-1px); }

/* note */
.e8-note {
  margin-top: clamp(36px, 4vw, 60px); padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  max-width: 70ch;
}
.e8-note b {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent-deep); display: block; margin-bottom: 7px; text-transform: uppercase;
}

/* =========================================================
   Approach
   ========================================================= */
/* approach — horizontal connected timeline */
.approach { background: var(--paper); padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); }
.journey {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.jstep { position: relative; }
.js-marker {
  position: relative; display: flex; align-items: center;
  height: 16px; margin-bottom: 22px;
}
.js-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); flex: none; position: relative; z-index: 2;
  box-shadow: 0 0 0 4px var(--paper);
}
.js-dot.js-dot--end {
  background: var(--paper); border: 2px solid var(--accent);
  width: 14px; height: 14px;
}
.js-rail {
  position: absolute; left: 14px; right: -1.5vw; top: 50%; height: 1px;
  background: linear-gradient(to right, var(--line-2) 0 50%, transparent 50%);
  background-size: 8px 1px; background-repeat: repeat-x;
  z-index: 1;
}
.jstep:hover .js-dot { transform: scale(1.15); transition: transform .3s var(--ease); }
.js-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--faint); text-transform: uppercase;
}
.js-kicker b { font-weight: 700; color: var(--accent-deep); margin-right: 8px; }
.jstep h4 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.015em;
  margin-top: 10px; line-height: 1.2;
}
.jstep p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 12px; max-width: 32ch; }

/* serve — icon + label + tagline, Brennan-style */
.serve { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.serve-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  position: relative;
}
.serve-pair::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--line); transform: translateX(-50%);
}
.sp-card { padding-block: clamp(8px, 1.5vw, 20px); }
.sp-ico {
  display: inline-block; width: 36px; height: 36px;
  color: var(--accent);
}
.sp-ico svg { width: 100%; height: 100%; }
.sp-who {
  margin: 22px 0 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; line-height: 1.2;
  color: var(--ink);
}
.sp-tag {
  margin: 10px 0 0;
  color: var(--muted); font-size: clamp(14.5px, 1.15vw, 16px); line-height: 1.55;
  max-width: 28ch;
}

/* =========================================================
   Who we serve
   ========================================================= */
/* image placeholder */
.ph {
  background:
    repeating-linear-gradient(135deg, var(--bg-2) 0 10px, transparent 10px 20px);
  border: 1px solid var(--line); border-radius: var(--r);
  display: grid; place-items: center; color: var(--faint);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  color: #fff; position: relative; overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px);
  background:
    radial-gradient(95% 120% at 88% 6%, rgba(241,90,41,0.55), transparent 46%),
    radial-gradient(120% 130% at 100% 100%, rgba(8,74,112,0.5), transparent 60%),
    linear-gradient(118deg, #0b5d8c 0%, #1789c1 54%, #29abe2 100%);
}
.cta .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 120% at 20% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 20% 0%, #000, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta .eyebrow { color: rgba(255,255,255,0.85); }
.cta .eyebrow::before { background: #fff; }
.cta h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.02; letter-spacing: -0.03em; margin-top: 24px; max-width: 16ch; text-wrap: balance;
}
.cta p { color: rgba(255,255,255,0.78); margin-top: 24px; max-width: 46ch; font-size: 18px; line-height: 1.55; }
.cta-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta .btn-primary { background: var(--accent-2); color: #fff; border-radius: 999px; padding: 15px 26px; }
.cta .btn-primary:hover { background: var(--accent-2-deep); }
.cta .btn-primary .arr { color: #fff; }
.cta .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.cta-contact { margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 28px; }
.cta-contact a { font-family: var(--mono); font-size: 14px; color: rgba(255,255,255,0.88); letter-spacing: 0.04em; transition: color .25s; }
.cta-contact a:hover { color: #fff; }
.cta-contact .lbl { display: block; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.1em; margin-bottom: 6px; text-transform: uppercase; }

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 36px; }
.foot-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: clamp(30px, 4.5vw, 68px);
}

/* brand column */
.foot .brand-name { font-size: 20px; }
.foot-tag { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.foot-social { display: flex; gap: 10px; margin-top: 26px; }
.foot-social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--ink-2); transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.foot-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.foot-social svg { width: 17px; height: 17px; }

/* link columns */
.foot-col h5 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 7px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent-deep); }

/* contact column — same single-line spacing as other foot-col items */
.foot-contact > span {
  display: block; font-size: 14.5px; color: var(--ink-2); padding: 7px 0;
}

/* credential badge */
.foot-badge { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.foot-badge .fb-mark { width: 38px; height: 38px; flex: none; }
.foot-badge .fb-mark svg { width: 100%; height: 100%; }
.foot-badge .fb-text { display: flex; flex-direction: column; line-height: 1.3; }
.foot-badge .fb-text b { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: var(--accent-deep); }
.foot-badge .fb-text span { font-size: 12px; color: var(--muted); }

/* bottom bar */
.foot-bottom {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-bottom p { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.03em; }

/* =========================================================
   Contact page — split: gradient hero on left, form on right
   ========================================================= */
.cp {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 86px); /* fill viewport below nav */
  border-bottom: 1px solid var(--line);
}

/* ----- LEFT panel: brand gradient ----- */
.cp-left {
  position: relative; overflow: hidden;
  background:
    radial-gradient(95% 120% at 88% 6%, rgba(241,90,41,0.55), transparent 46%),
    radial-gradient(120% 130% at 100% 100%, rgba(8,74,112,0.5), transparent 60%),
    linear-gradient(118deg, #0b5d8c 0%, #1789c1 54%, #29abe2 100%);
  color: #fff;
  padding: clamp(120px, 15vh, 168px) clamp(28px, 5vw, 80px) clamp(56px, 8vw, 88px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 4vw, 56px);
}
.cp-left .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 120% at 20% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 20% 0%, #000, transparent 70%);
}
.cp-left-inner {
  position: relative; z-index: 1;
  max-width: 520px; margin-left: auto; width: 100%;
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px);
}

/* head on gradient */
.cp-head { max-width: 32ch; }
.cp-head .eyebrow { color: rgba(255,255,255,0.85); }
.cp-head .eyebrow::before { background: #fff; }
.cp-head .eyebrow .idx { color: rgba(255,255,255,0.55); margin-right: 6px; }
.cp-head h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.018em;
  margin-top: 18px; color: #fff; text-wrap: balance;
}
.cp-head p {
  color: rgba(255,255,255,0.78); font-size: clamp(14.5px, 1.15vw, 16px); line-height: 1.6;
  margin-top: 16px; max-width: 42ch;
}

/* contact list on gradient — light treatment */
.cp-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.cp-list li {
  display: grid; grid-template-columns: 22px 84px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.cp-ico { width: 22px; height: 22px; display: grid; place-items: center; color: rgba(255,255,255,0.85); }
.cp-ico svg { width: 100%; height: 100%; }
.cp-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.cp-list a, .cp-list li > span:not(.cp-k):not(.cp-ico) {
  font-size: 15px; color: #fff; word-break: break-word;
}
.cp-list a { transition: color .2s; }
.cp-list a:hover { color: rgba(255,255,255,0.7); }

/* aside note on gradient */
.cp-aside-note {
  padding: 16px 18px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r);
  font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.55;
  max-width: 42ch;
}
.cp-aside-note b {
  display: block; margin-bottom: 5px;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}

/* ----- RIGHT panel: clean white with form ----- */
.cp-right {
  background: var(--paper);
  padding: clamp(120px, 15vh, 168px) clamp(28px, 5vw, 80px) clamp(56px, 8vw, 88px);
  display: flex; align-items: center;
}
.cp-right-inner {
  width: 100%; max-width: 540px; margin-right: auto;
}

/* form sits on white — minimal, no card */
.cp-form { padding: 0; background: transparent; border: none; box-shadow: none; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cp-field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2);
}
.cp-field label .opt { color: var(--faint); letter-spacing: 0; text-transform: none; font-weight: 400; }
.cp-field label .req { color: var(--accent-2); margin-left: 2px; }
.cp-field input, .cp-field textarea, .cp-field select {
  font-family: var(--body); font-size: 14.5px; color: var(--ink); width: 100%;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.cp-field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.cp-field input::placeholder, .cp-field textarea::placeholder { color: var(--faint); }
/* native select arrow */
.cp-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5 6 6.5 11 1.5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px 8px;
  padding-right: 36px; cursor: pointer;
}
.cp-field select:invalid { color: var(--faint); }
.cp-field select option { color: var(--ink); }
.cp-field input:focus, .cp-field textarea:focus, .cp-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak);
}
.cp-submit { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.cp-submit .btn { padding: 12px 20px; }
.cp-note {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--faint); margin: 0;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* ---- TABLET / LARGE PHONE: ≤ 1080px ---- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .nav-cta .btn-call { display: none; }
}

/* ---- TABLET: ≤ 1000px ---- */
@media (max-width: 1000px) {
  /* services explorer collapses to single column */
  .svc-x { grid-template-columns: 1fr; }
  .svc-tabs { border-right: none; border-bottom: 1px solid var(--line); }
  /* essential eight explorer same */
  .e8x { grid-template-columns: 1fr; }
  .e8x-tabs { border-right: none; border-bottom: 1px solid var(--line); }
  /* approach timeline two-up */
  .journey { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .jstep:nth-child(2) .js-rail { display: none; }
  /* hero arcs scale down */
  .hero-arcs { width: 92vw; opacity: 0.7; }
  /* footer goes 2-col with brand spanning */
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  /* contact page split stacks */
  .cp { grid-template-columns: 1fr; min-height: 0; }
  .cp-left, .cp-right { padding-top: clamp(100px, 13vh, 140px); padding-bottom: clamp(48px, 6vw, 72px); }
  .cp-left-inner, .cp-right-inner { max-width: 560px; margin: 0 auto; }
}

/* ---- TABLET / SMALL DESKTOP: ≤ 900px — switch to hamburger nav ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: 14px; }
}

/* ---- PHONE: ≤ 720px ---- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --pad: clamp(18px, 5vw, 32px); }

  /* nav */
  .nav-inner { padding: 14px var(--pad); gap: 12px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 13px; }
  .brand-mark { width: 36px; height: 32px; }
  .brand-name { font-size: 18px; }

  /* hero */
  .hero { min-height: 80vh; padding-block: clamp(96px, 22vw, 132px) clamp(28px, 7vw, 48px); }
  .hero h1 { font-size: clamp(28px, 9vw, 44px); max-width: 18ch; }
  .hero-sub { font-size: clamp(14.5px, 4vw, 17px); margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero .btn-primary { padding: 13px 20px; font-size: 15px; }

  /* partners marquee — show fewer logos in view */
  .logo-ph { height: 40px; padding: 0 18px; font-size: 13px; }
  .logo-ph .lm { height: 18px; }

  /* services tabs become more compact */
  .svc-tab { padding: 12px 18px; gap: 10px; }
  .st-label { font-size: 14px; }
  .svc-panels { padding: clamp(22px, 5vw, 32px); }
  .svc-panel h3 { font-size: clamp(20px, 6.5vw, 26px); }

  /* approach journey collapses to single column */
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .js-rail { display: none; }
  .js-dot { width: 12px; height: 12px; }

  /* e8 tabs tighter */
  .e8x-tabs .e8x-tab { padding: 11px 16px; gap: 12px; }
  .e8t-label { font-size: 13.5px; }
  .e8x-panels { padding: clamp(22px, 5vw, 32px); }
  .e8x-panel h3 { font-size: clamp(20px, 6vw, 26px); }

  /* who we serve: stack, swap vertical divider for horizontal */
  .serve-pair { grid-template-columns: 1fr; gap: 32px; }
  .serve-pair::before {
    left: 0; right: 0; top: 50%; bottom: auto;
    width: 100%; height: 1px; transform: none;
  }
  .sp-tag { font-size: clamp(18px, 5.5vw, 22px); }

  /* cta */
  .cta h2 { font-size: clamp(28px, 8vw, 40px); }
  .cta p { font-size: 16px; }
  .cta-actions { gap: 10px; }
  .cta-contact { gap: 24px; }

  /* footer single col */
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot { padding-block: clamp(40px, 8vw, 64px) 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* contact page */
  .cp-left, .cp-right { padding-left: var(--pad); padding-right: var(--pad); }
  .cp-row { grid-template-columns: 1fr; gap: 0; }
  .cp-list li { grid-template-columns: 20px 70px 1fr; gap: 10px; padding: 12px 0; }
  .cp-head h1 { font-size: clamp(26px, 8vw, 34px); }

  /* mobile menu — full screen overlay text */
  .mobile-menu a { font-size: clamp(28px, 8vw, 40px); }
}

/* ---- SMALL PHONE: ≤ 480px ---- */
@media (max-width: 480px) {
  /* hide the orange Book a consult in the nav at very narrow widths, keep only menu */
  .nav-cta .btn-primary { display: none; }
  .nav-inner { gap: 10px; }
  /* hero typography tighter */
  .hero h1 { font-size: clamp(26px, 9vw, 36px); }
  /* services panel actions stack */
  .sp-actions { gap: 14px; }
  .sp-actions .btn { width: 100%; justify-content: center; }
  /* footer social row centers */
  .foot-social { gap: 8px; }
  /* contact form button full width */
  .cp-submit .btn { width: 100%; justify-content: center; }
  .cp-submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .cp-note { text-align: center; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad);
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 9vw, 48px); letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
