:root {
  --navy-950: #020b17;
  --navy-900: #04162d;
  --navy-800: #082342;
  --ink: #071126;
  --muted: #617087;
  --blue: #0768ff;
  --blue-dark: #0455d5;
  --blue-soft: #eaf2ff;
  --surface: #f5f8fc;
  --white: #ffffff;
  --line: #dce3ed;
  --shadow: 0 22px 70px rgba(4, 22, 45, 0.13);
  --radius-sm: 10px;
  --radius: 18px;
  --container: 1390px;
  --header-height: 96px;
  --ease: cubic-bezier(.2,.65,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow--centred { text-align: center; }
.eyebrow--light { color: #7eb3ff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .nav-link:focus-visible, .service-card:focus-visible, .text-link:focus-visible, .video-toggle:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid rgba(71, 151, 255, .72);
  outline-offset: 4px;
}
.button--primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(7, 104, 255, .28);
}
.button--primary:hover { background: var(--blue-dark); }
.button--outline {
  color: var(--ink);
  background: var(--white);
  border-color: #cdd6e3;
}
.button--outline:hover { border-color: var(--blue); }
.button--large { min-height: 58px; padding-inline: 30px; }

.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--white);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled {
  position: fixed;
  height: 78px;
  background: rgba(2, 13, 28, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { position: relative; z-index: 80; flex: 0 0 auto; }
.brand img { width: 236px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 52px; }
.nav-list { display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: rgba(255,255,255,.93);
  background: none;
  border: 0;
  font-size: .98rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.nav-link:hover { color: #79b2ff; }
.chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.nav-menu-button[aria-expanded="true"] .chevron { transform: rotate(225deg) translate(-1px, -1px); }
.nav-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: -22px;
  width: 260px;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(220, 227, 237, .8);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-menu a {
  display: block;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 650;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--blue); background: var(--blue-soft); outline: 0; }
.nav-item.is-open .nav-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-contact { min-width: 158px; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}
.hero__video, .hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; object-position: 68% center; }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(1,13,29,.98) 0%, rgba(2,19,40,.96) 28%, rgba(3,24,48,.72) 51%, rgba(2,15,31,.38) 77%, rgba(1,10,22,.36) 100%),
    linear-gradient(180deg, rgba(0,6,15,.42) 0%, rgba(0,7,17,.06) 55%, rgba(0,9,22,.35) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 720px;
  padding-top: var(--header-height);
}
.hero__content { width: min(760px, 64vw); padding: 70px 0 45px; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.6rem, 5.8vw, 6.35rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.052em;
}
.hero p {
  max-width: 590px;
  margin: 34px 0 36px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.55;
}
.video-toggle {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(3, 17, 34, .65);
  border: 1px solid rgba(255,255,255,.33);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.video-toggle svg { width: 20px; fill: currentColor; }
.video-toggle__play { display: none; }
.video-toggle.is-paused .video-toggle__pause { display: none; }
.video-toggle.is-paused .video-toggle__play { display: block; }

.client-strip { padding: 48px 0 54px; background: var(--white); }
.client-strip .eyebrow { margin-bottom: 30px; }
.client-logos { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b7c2d2 transparent; }
.client-logos img { width: min(1050px, 100%); min-width: 780px; margin-inline: auto; }

.services {
  padding: 44px 0 110px;
  background: linear-gradient(180deg, #f7f9fc 0%, #f0f5fb 100%);
  border-top: 1px solid #edf0f5;
}
.section-heading { margin-bottom: 42px; }
.section-heading--centred { text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.heading-rule { display: block; width: 48px; height: 3px; margin: 18px auto 0; background: var(--blue); }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(3, 21, 43, .1);
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-7px); box-shadow: 0 22px 42px rgba(3, 21, 43, .2); }
.service-card__image, .service-card__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-card__image { object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__image { transform: scale(1.07); }
.service-card__shade {
  background: linear-gradient(180deg, rgba(1,11,23,.03) 0%, rgba(1,11,23,.22) 38%, rgba(1,11,23,.95) 74%, #020b17 100%);
}
.service-card__content { position: absolute; z-index: 2; inset: auto 18px 20px; min-height: 108px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 9px;
  box-shadow: 0 9px 24px rgba(7,104,255,.35);
}
.service-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title { display: block; padding-right: 25px; font-size: 1.08rem; font-weight: 750; line-height: 1.25; }
.service-card__arrow { position: absolute; right: 0; bottom: 0; font-size: 1.45rem; transition: transform .25s var(--ease); }
.service-card:hover .service-card__arrow { transform: translateX(5px); }

.insights { padding: 115px 0 130px; background: var(--white); }
.insights__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.insights__header h2 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(2.6rem, 4.6vw, 5.25rem);
  line-height: 1.01;
  letter-spacing: -.052em;
}
.insights-grid { display: grid; grid-template-columns: 1.52fr 1fr; grid-template-rows: repeat(2, minmax(255px, auto)); gap: 24px; }
.insight-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.insight-card:hover { transform: translateY(-4px); border-color: #b9c8db; box-shadow: 0 18px 45px rgba(4,22,45,.08); }
.insight-card--featured { display: grid; grid-template-columns: minmax(260px, .96fr) 1.08fr; grid-row: 1 / span 2; min-height: 590px; }
.insight-card__media { min-height: 100%; overflow: hidden; background: #dbe6f4; }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.035); }
.insight-card__body { display: flex; flex-direction: column; padding: clamp(30px, 4vw, 52px); }
.insight-card__body h3 { margin: 0 0 20px; font-size: clamp(1.45rem, 2.15vw, 2.15rem); line-height: 1.12; letter-spacing: -.025em; }
.insight-card__body > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.58; }
.insight-card--compact .insight-card__body { height: 100%; padding: 36px 42px; }
.insight-card--compact .insight-card__body h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); }
.text-link { align-self: flex-start; margin-top: auto; padding-top: 30px; font-weight: 800; }
.text-link:hover { color: var(--blue); }

.closing-cta { position: relative; overflow: hidden; padding: 82px 0; color: var(--white); background: linear-gradient(115deg, #04162d 0%, #072b57 65%, #093e79 100%); }
.closing-cta::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(99,169,255,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(99,169,255,.035), 0 0 0 110px rgba(99,169,255,.025);
}
.closing-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.closing-cta h2 { margin: 0; max-width: 780px; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }

.site-footer { padding: 76px 0 28px; color: rgba(255,255,255,.72); background: var(--navy-950); }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 70px; }
.footer__brand img { width: 210px; margin-bottom: 25px; }
.footer__brand p { max-width: 430px; margin: 0; line-height: 1.6; }
.footer__heading { margin: 0 0 20px; color: var(--white); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer__grid a:hover, .footer__button:hover { color: var(--white); }
.footer__button { padding: 0; color: #78b2ff; background: none; border: 0; font-weight: 750; cursor: pointer; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 65px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom div { display: flex; gap: 25px; }

.contact-dialog {
  width: min(720px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}
.contact-dialog::backdrop { background: rgba(1, 9, 20, .78); backdrop-filter: blur(6px); }
.dialog__panel { position: relative; overflow-y: auto; max-height: calc(100dvh - 30px); padding: clamp(30px, 6vw, 58px); background: var(--white); border-radius: var(--radius); }
.dialog__close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; padding: 0; color: var(--muted); background: var(--surface); border: 0; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.dialog__panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.04em; }
.dialog__intro { margin: 18px 0 32px; color: var(--muted); line-height: 1.6; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: .92rem; font-weight: 750; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 15px; color: var(--ink); background: #fbfcfe; border: 1px solid #cfd8e5; border-radius: 8px; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,104,255,.1); }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-status { min-height: 1.4em; margin: 0; color: #116c3a; font-weight: 700; }

@media (hover: hover) and (min-width: 961px) {
  .nav-item--has-menu:hover .nav-menu { visibility: visible; opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .site-nav { gap: 28px; }
  .nav-list { gap: 22px; }
  .brand img { width: 205px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card:nth-child(4), .service-card:nth-child(5) { min-height: 310px; }
}

@media (max-width: 960px) {
  :root { --header-height: 80px; }
  .container { width: min(calc(100% - 34px), var(--container)); }
  .brand img { width: 190px; }
  .menu-toggle {
    position: relative;
    z-index: 80;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    padding: 0;
    color: var(--white);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    cursor: pointer;
  }
  .menu-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open::before { content: ""; position: fixed; z-index: 40; inset: 0; background: rgba(0, 7, 17, .58); backdrop-filter: blur(3px); }
  .site-nav {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(430px, 88vw);
    height: 100dvh;
    padding: 110px 26px 32px;
    overflow-y: auto;
    color: var(--white);
    background: #04162d;
    box-shadow: -28px 0 70px rgba(0,0,0,.3);
    transform: translateX(105%);
    transition: transform .35s var(--ease);
  }
  body.nav-open .site-nav { transform: translateX(0); }
  .nav-list { display: block; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-list > li:not(.nav-item) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-link { justify-content: space-between; width: 100%; padding: 18px 4px; font-size: 1.08rem; }
  .nav-menu { position: static; display: none; visibility: visible; width: auto; padding: 0 0 14px 12px; opacity: 1; transform: none; color: rgba(255,255,255,.82); background: transparent; border: 0; box-shadow: none; }
  .nav-item.is-open .nav-menu { display: block; }
  .nav-menu a { padding: 10px 0; }
  .nav-menu a:hover, .nav-menu a:focus-visible { color: #7eb3ff; background: transparent; }
  .nav-contact { margin-top: auto; min-height: 56px; }
  .hero, .hero__inner { min-height: 650px; }
  .hero__content { width: 78vw; padding-top: 75px; }
  .hero h1 { font-size: clamp(3.35rem, 9vw, 5.2rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .insights__header { align-items: flex-start; flex-direction: column; }
  .insights__header h2 br { display: none; }
  .insights-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .insight-card--featured { grid-template-columns: .92fr 1.08fr; grid-row: auto; min-height: 530px; }
  .closing-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero, .hero__inner { min-height: 610px; }
  .hero__video { object-position: 72% center; }
  .hero__overlay { background: linear-gradient(90deg, rgba(1,13,29,.98) 0%, rgba(2,19,40,.92) 67%, rgba(2,15,31,.55) 100%); }
  .hero__content { width: 94%; padding-top: 65px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.15rem); }
  .hero p { margin: 27px 0 30px; font-size: 1.05rem; }
  .video-toggle { right: 18px; bottom: 18px; }
  .client-strip { padding-block: 38px 42px; }
  .client-logos img { min-width: 690px; }
  .services { padding: 38px 0 82px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { min-height: 285px; }
  .insights { padding: 82px 0 92px; }
  .insights__header h2 { font-size: clamp(2.55rem, 12vw, 3.75rem); }
  .insight-card--featured { display: block; min-height: 0; }
  .insight-card__media { height: 350px; min-height: 0; }
  .insight-card__body, .insight-card--compact .insight-card__body { padding: 28px 25px; }
  .insight-card--compact { min-height: 270px; }
  .closing-cta { padding: 68px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 45px; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__video { display: none; }
  .hero { background: var(--navy-900) url("assets/hero-poster.jpg") 70% center / cover no-repeat; }
  .video-toggle { display: none; }
}
