/* ==========================================================================
   NAPS · front-end prototype stylesheet
   Sections: 1 tokens · 2 base · 3 type & utilities · 4 buttons · 5 header ·
             6 mega menu · 7 mobile menu · 8 hero · 9 marquee · 10 section head ·
             11 services & frame · 12 footer · 13 motion states · 14 responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* NAPS blue universe: logo navy, the mark's azure, and one sharp action blue */
  --navy-950: #000d1c;
  --navy-900: #001c38;      /* logo navy */
  --navy-850: #052340;
  --navy-800: #0b2c4e;
  --steel-600: #2c3e57;     /* logo gradient top */
  --azure-500: #1b75bc;     /* mark */
  --azure-300: #58ccff;     /* mark highlight */
  --blue: #0b5fff;          /* action blue (buttons, links, accents) */
  --blue-600: #004de6;
  --blue-700: #003dbd;
  --blue-50: #eef4ff;

  --ink: #0a1a2f;
  --ink-2: #1c2c42;
  --text: #4a586b;
  --muted: #7d8999;
  --line: #e3e8ef;
  --line-strong: #cbd4df;
  --paper: #f4f6f9;
  --white: #ffffff;

  --on-dark: rgba(255, 255, 255, .96);
  --on-dark-2: rgba(255, 255, 255, .74);
  --on-dark-3: rgba(255, 255, 255, .52);
  --line-dark: rgba(255, 255, 255, .14);

  --font-sans: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1440px;
  --gutter: clamp(20px, 3.8vw, 56px);
  --header-h: 84px;
  --trust-h: 104px;
  --radius: 4px;
  --radius-lg: 8px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-lg: 0 30px 80px -30px rgba(0, 28, 56, .35), 0 12px 24px -12px rgba(0, 28, 56, .12);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' on;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible, .hero :focus-visible, .mobile-menu :focus-visible { outline-color: var(--azure-300); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. Type & utilities --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.4; font-weight: 450;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__index { color: var(--blue); font-weight: 500; }
.eyebrow__index::after {
  content: ''; display: inline-block; width: 28px; height: 1px; margin-left: 12px;
  background: currentColor; opacity: .5; vertical-align: middle;
}
.eyebrow--light { color: var(--on-dark-2); }
.eyebrow--light .eyebrow__index { color: var(--azure-300); }
.eyebrow__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

.section-title {
  font-size: clamp(38px, 4.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -.034em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text);
  max-width: 470px;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 16px; color: var(--ink);
  position: relative; padding-bottom: 4px;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 28px; bottom: 0; height: 1px;
  background: currentColor; transform-origin: left; transition: transform .5s var(--ease-out), opacity .3s;
  opacity: .25;
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--blue); transition: transform .45s var(--ease-out); }
.link-arrow:hover::after { opacity: 1; }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon { width: 20px; height: 20px; flex: none; }

/* 4. Buttons ------------------------------------------------------------ */
.btn {
  --h: 54px;
  display: inline-flex; align-items: stretch;
  height: var(--h);
  border-radius: var(--radius);
  font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -.005em;
  overflow: hidden; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s, box-shadow .35s;
  isolation: isolate;
}
.btn__label { display: flex; align-items: center; padding: 0 22px; }
.btn__icon {
  width: var(--h); display: grid; place-items: center; flex: none;
  position: relative; overflow: hidden;
}
.btn__icon .icon { width: 19px; height: 19px; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary .btn__icon { background: rgba(0, 18, 64, .16); }
.btn--primary:hover { background: var(--blue-600); }
.btn--primary:active { background: var(--blue-700); }
.btn--ghost-light {
  color: #fff; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost-light .btn__icon { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--sm { --h: 44px; font-size: 15px; }
.btn--sm .btn__label { padding: 0 18px; }
.btn--sm .btn__icon .icon { width: 17px; height: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--block .btn__label { flex: 1; }

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--on-dark);
  transition: transform .6s var(--ease-out), color .35s, opacity 1s var(--ease-out);
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.site-header::after { /* soft top shade for legibility over video before scrolling */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 13, 28, .5), rgba(0, 13, 28, 0));
  transition: opacity .35s; z-index: -1;
}
.site-header[data-tone="light"], .site-header.is-solid, .site-header.is-mega { color: var(--ink); }
.site-header[data-tone="light"]::before, .site-header.is-solid::before, .site-header.is-mega::before { opacity: 1; }
.site-header[data-tone="light"]::after, .site-header.is-solid::after, .site-header.is-mega::after { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-mega::before { background: #fff; }
.site-header.is-menu { color: var(--on-dark); }
.site-header.is-menu::before, .site-header.is-menu::after { opacity: 0 !important; }
.site-header.is-menu .logo--light { opacity: 1 !important; }
.site-header.is-menu .logo--dark { opacity: 0 !important; }

.site-header__bar {
  position: relative; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.site-header__logo { position: relative; display: block; width: 116px; height: 28px; flex: none; }
.site-header__logo .logo { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.logo--dark { opacity: 0; }
.site-header[data-tone="light"] .logo--light, .site-header.is-solid .logo--light, .site-header.is-mega .logo--light { opacity: 0; }
.site-header[data-tone="light"] .logo--dark, .site-header.is-solid .logo--dark, .site-header.is-mega .logo--dark { opacity: 1; }

.primary-nav { margin-left: clamp(24px, 4vw, 64px); }
.primary-nav__list { display: flex; align-items: center; gap: 2px; }
.primary-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: var(--header-h); padding: 0 13px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.005em;
  opacity: .92; transition: opacity .25s;
}
.primary-nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 24px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.primary-nav__link:hover, .primary-nav__link[aria-expanded="true"] { opacity: 1; }
.primary-nav__link:hover::after, .primary-nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.primary-nav__link[aria-expanded="true"]::after { background: var(--blue); }
.icon--chev { width: 15px; height: 15px; opacity: .7; transition: transform .4s var(--ease-out); }
.primary-nav__link[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }

.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 10px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em; border-radius: var(--radius);
  opacity: .92; transition: opacity .25s, background-color .25s;
}
.lang__toggle:hover { opacity: 1; background: rgba(127, 140, 160, .12); }
.icon--globe { width: 17px; height: 17px; }
.lang__toggle[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 196px;
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 26, 47, .06);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; transition: background-color .2s;
}
.lang__menu a:hover { background: var(--paper); }
.lang__code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 22px; }
.lang__menu a[aria-current="true"] .lang__code { color: var(--blue); }
.lang__menu a[aria-current="true"]::after {
  content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--radius); }
.burger__line {
  position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.burger__line:nth-child(1) { top: 17px; }
.burger__line:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* 6. Mega menu ---------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  height: 0; overflow: hidden; background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line) inset;
  transition: height .55s var(--ease-out);
}
.site-header.is-mega .mega { box-shadow: 0 1px 0 var(--line) inset, 0 40px 60px -40px rgba(0, 28, 56, .3); }
.mega__panel {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease-out), transform .55s var(--ease-out), visibility 0s .35s;
}
.mega__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.mega__grid {
  display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(32px, 4vw, 72px);
  padding-top: 44px; padding-bottom: 52px;
}
.mega__intro { display: flex; flex-direction: column; gap: 18px; padding-right: 8px; }
.mega__tagline { font-size: 24px; line-height: 1.18; letter-spacing: -.02em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.mega__intro .link-arrow { margin-top: auto; align-self: flex-start; }
.mega__links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; align-content: start; }
.mega__links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega__link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 15px 0 16px; border-top: 1px solid var(--line);
  transition: border-color .3s;
}
.mega__link-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; transition: color .25s; }
.mega__link-icon { width: 18px; height: 18px; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .45s var(--ease-out); }
.mega__link-desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.mega__link:hover { border-color: var(--ink); }
.mega__link:hover .mega__link-title { color: var(--blue); }
.mega__link:hover .mega__link-icon { opacity: 1; transform: none; }
.mega__feature {
  display: grid; grid-template-rows: auto 1fr; gap: 16px; align-self: start;
}
.mega__feature-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--navy-900); }
.mega__feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mega__feature:hover .mega__feature-media img { transform: scale(1.05); }
.mega__feature-body { display: flex; flex-direction: column; gap: 6px; }
.mega__feature-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.mega__feature-title { font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.mega__feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.mega__feature-link .icon { width: 16px; height: 16px; color: var(--blue); transition: transform .45s var(--ease-out); }
.mega__feature:hover .mega__feature-link .icon { transform: translateX(4px); }

.mega-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 13, 28, .42);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.mega-backdrop.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }

/* 7. Mobile menu -------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--navy-900); color: var(--on-dark);
  padding-top: var(--header-h);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 8px var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.mobile-menu__list { border-top: 1px solid var(--line-dark); }
.mm-item { border-bottom: 1px solid var(--line-dark); }
.mm-toggle, .mm-link {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; text-align: left;
  font-size: 24px; font-weight: 500; letter-spacing: -.02em;
}
.mm-toggle__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--azure-300); width: 22px; }
.mm-toggle__label { flex: 1; }
.mm-toggle__icon { width: 22px; height: 22px; opacity: .7; transition: transform .45s var(--ease-out); }
.mm-toggle[aria-expanded="true"] .mm-toggle__icon { transform: rotate(45deg); }
.mm-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.mm-panel > .mm-sub { overflow: hidden; }
.mm-item.is-open .mm-panel { grid-template-rows: 1fr; }
.mm-sub { padding-left: 38px; }
.mm-sub li:last-child { padding-bottom: 18px; }
.mm-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 17px; color: var(--on-dark-2); }
.mm-sub a:hover { color: #fff; }
.mm-sub__all { color: var(--azure-300) !important; }
.mm-sub__all .icon { width: 17px; height: 17px; }
.mobile-menu__foot { margin-top: auto; padding-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.mm-lang { display: flex; gap: 8px; }
.mm-lang a { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; padding: 8px 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-2); }
.mm-lang a[aria-current="true"] { background: #fff; color: var(--navy-900); box-shadow: none; }
.mm-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--on-dark-2); }

/* 8. Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 720px; max-height: 1240px;
  color: var(--on-dark); background: var(--navy-950);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 13, 28, .82) 0%, rgba(0, 13, 28, .5) 38%, rgba(0, 13, 28, .12) 70%, rgba(0, 13, 28, .05) 100%),
    linear-gradient(0deg, rgba(0, 13, 28, .9) 0%, rgba(0, 13, 28, .35) 30%, rgba(0, 13, 28, 0) 55%);
}
.hero__body {
  position: relative; height: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-bottom: calc(var(--trust-h) + clamp(44px, 7vh, 84px));
}
.hero__content { max-width: 1000px; }
.hero__eyebrow { margin-bottom: clamp(20px, 3vh, 30px); flex-wrap: wrap; row-gap: 6px; }
.hero__title {
  font-size: clamp(46px, 6.7vw, 112px);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 500;
  color: #fff;
  max-width: 10.4em;
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__lead {
  margin-top: clamp(22px, 3.2vh, 32px);
  max-width: 560px;
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55;
  color: var(--on-dark-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4.4vh, 44px); }

.hero__chapters { width: 290px; flex: none; padding-bottom: 6px; }
.hero__chapter-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hero__chapter-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--on-dark-3); }
.hero__chapter-count [data-chapter-index] { color: #fff; }
.hero__chapter-label { font-size: 16px; font-weight: 500; color: #fff; letter-spacing: -.01em; min-height: 1.4em; }
.hero__chapter-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hero__chapter-bars li { height: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero__chapter-bars span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__chapter-bars li.is-done span { transform: scaleX(1); }

.hero__trust {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--trust-h);
  border-top: 1px solid var(--line-dark);
}
.hero__trust-inner { height: 100%; display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); }
.hero__trust-label {
  flex: none; max-width: 190px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-3);
}

/* 9. Marquee ------------------------------------------------------------ */
.marquee {
  position: relative; flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex; align-items: center; flex: none;
  gap: clamp(48px, 5vw, 80px); padding-right: clamp(48px, 5vw, 80px);
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item img {
  height: var(--h, 26px); width: auto; max-width: none;
  filter: brightness(0) invert(1); opacity: .72;
  transition: opacity .3s;
}
.marquee__item img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* 10. Section head ------------------------------------------------------ */
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px clamp(40px, 6vw, 120px); align-items: end;
  margin-bottom: clamp(56px, 7vw, 112px);
}
.section-head__main { display: flex; flex-direction: column; gap: 26px; }
.section-head .section-title { max-width: 15ch; }
.section-head .section-lead { justify-self: end; }

/* 11. Services & frame -------------------------------------------------- */
.services { position: relative; background: #fff; padding: clamp(96px, 11vw, 176px) 0 clamp(72px, 9vw, 150px); }
.services__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px); align-items: stretch;
}
.services__stage { position: relative; }
.services__sticky {
  position: sticky; top: calc(var(--header-h) + 28px);
  height: calc(100vh - var(--header-h) - 56px); height: calc(100svh - var(--header-h) - 56px);
  min-height: 520px; max-height: 900px;
}

.frame { position: relative; margin: 0; border-radius: var(--radius); background: var(--navy-900); }
.frame--stage { height: 100%; }
.frame__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.frame--stage .frame__video {
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out);
}
.frame--stage .frame__video.is-active { opacity: 1; transform: none; }
.frame::after { /* caption legibility */
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 13, 28, .62), rgba(0, 13, 28, 0));
}
.frame__ticks { /* technical-drawing corner marks */
  position: absolute; inset: -12px; pointer-events: none; z-index: 2;
  --c: rgba(10, 26, 47, .38); --s: 14px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px var(--s) no-repeat;
}
.frame__caption {
  position: absolute; left: 22px; bottom: 20px; z-index: 3;
  display: flex; align-items: baseline; gap: 14px; color: #fff;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.frame__caption--stage { left: 28px; bottom: 26px; }
.frame__fig { color: var(--on-dark-2); }
.frame__title { font-family: var(--font-sans); font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-transform: none; }
.frame__progress { position: absolute; right: 28px; bottom: 32px; z-index: 3; display: flex; gap: 6px; }
.frame__progress li { width: 22px; height: 2px; background: rgba(255, 255, 255, .3); transition: background-color .5s; }
.frame__progress li.is-active { background: #fff; }

.services__list { position: relative; }
.svc {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 76vh; min-height: 76svh;
  padding: clamp(40px, 6vh, 72px) 0;
  border-top: 1px solid var(--line);
  transition: opacity .6s var(--ease-out);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__media-mobile { display: none; }
.svc__head { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc__index { color: var(--blue); font-weight: 500; }
.svc__rule { width: 40px; height: 1px; background: var(--line-strong); flex: none; }
.svc__spec { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc__title {
  margin-top: 22px;
  font-size: clamp(40px, 4.2vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 500; color: var(--ink);
}
.svc__title a { transition: color .3s; }
.svc__title a:hover { color: var(--blue); }
.svc__tagline { margin-top: 20px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.35; color: var(--ink-2); letter-spacing: -.012em; max-width: 30ch; text-wrap: balance; }
.svc__text { margin-top: 14px; font-size: 16.5px; line-height: 1.62; color: var(--text); max-width: 52ch; }
.svc__links { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; border-top: 1px solid var(--line); }
.svc__links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc__links li { border-bottom: 1px solid var(--line); }
.svc__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;
  transition: color .25s;
}
.svc__link span { transition: transform .5s var(--ease-out); }
.svc__link .icon { width: 18px; height: 18px; color: var(--line-strong); transition: color .25s, transform .5s var(--ease-out); }
.svc__link:hover { color: var(--blue); }
.svc__link:hover span { transform: translateX(6px); }
.svc__link:hover .icon { color: var(--blue); transform: translateX(2px); }
.svc__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2);
  padding: 9px 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-strong);
}
.svc__more { margin-top: 30px; align-self: flex-start; }
.services.is-enhanced .svc { opacity: .3; }
.services.is-enhanced .svc.is-active { opacity: 1; }

/* 12. Footer ------------------------------------------------------------ */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--on-dark);
  padding-top: clamp(84px, 10vw, 150px);
}
.site-footer__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 80% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
}
.site-footer::before { /* azure glow, top right */
  content: ''; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(27, 117, 188, .28), rgba(27, 117, 188, 0));
  pointer-events: none;
}
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px clamp(48px, 7vw, 140px); align-items: end;
  padding-bottom: clamp(64px, 8vw, 110px);
}
.footer-cta { display: flex; flex-direction: column; gap: 26px; }
.footer-cta__title { font-size: clamp(38px, 4.4vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 500; color: #fff; max-width: 13ch; text-wrap: balance; }
.footer-cta__text { max-width: 52ch; color: var(--on-dark-2); font-size: 17px; }
.footer-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.footer-cta__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: #fff; }
.footer-cta__phone .icon { width: 18px; height: 18px; color: var(--azure-300); }
.footer-cta__phone span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.footer-cta__phone:hover span { background-size: 100% 1px; }

.newsletter {
  position: relative;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.newsletter__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.newsletter__kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--azure-300); }
.newsletter__title { font-size: 28px; line-height: 1.1; letter-spacing: -.025em; font-weight: 500; color: #fff; }
.newsletter__text { color: var(--on-dark-2); font-size: 16px; max-width: 40ch; }
.newsletter__field {
  display: flex; align-items: stretch; height: 54px;
  border-radius: var(--radius); background: rgba(0, 13, 28, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: box-shadow .3s;
}
.newsletter__field:focus-within { box-shadow: inset 0 0 0 1px var(--azure-300), 0 0 0 4px rgba(88, 204, 255, .12); }
.newsletter__field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff;
  font: inherit; font-size: 16px; padding: 0 18px;
}
.newsletter__field input::placeholder { color: var(--on-dark-3); }
.newsletter__btn { border-radius: 0 var(--radius) var(--radius) 0; height: 100%; --h: 54px; }
.newsletter__error { margin-top: 10px; font-size: 14px; color: #ff9b9b; }
.newsletter__fine { margin-top: 14px; font-size: 13.5px; color: var(--on-dark-3); }
.newsletter__fine a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.newsletter__done {
  position: absolute; inset: 0; border-radius: inherit; padding: inherit;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  background: var(--navy-850); box-shadow: inset 0 0 0 1px rgba(88, 204, 255, .35);
  color: var(--on-dark-2); font-size: 17px;
}
.newsletter__done[hidden] { display: none; }
.newsletter__done strong { display: block; color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 4px; }
.newsletter__done-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }

.footer-main {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.6fr) minmax(0, 1.15fr);
  gap: 48px clamp(32px, 4vw, 72px);
  padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-brand__logo img { width: 120px; height: auto; }
.footer-brand__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-2); max-width: 34ch; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--on-dark-2); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--azure-300); }
.footer-contact a:hover { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3);
}
.footer-col__title a:hover { color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col li a {
  display: inline-block; padding: 5px 0; font-size: 15px; line-height: 1.4; color: var(--on-dark-2);
  background: linear-gradient(currentColor, currentColor) left 90% / 0 1px no-repeat;
  transition: color .25s, background-size .45s var(--ease-out);
}
.footer-col li a:hover { color: #fff; background-size: 100% 1px; }
.footer-downloads ul { border-top: 1px solid var(--line-dark); }
.dl {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'title icon' 'meta icon';
  column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  transition: border-color .3s;
}
.dl__title { grid-area: title; font-size: 15px; font-weight: 500; color: #fff; }
.dl__meta { grid-area: meta; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--on-dark-3); margin-top: 3px; }
.dl__icon { grid-area: icon; align-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .3s, box-shadow .3s; }
.dl__icon .icon { width: 17px; height: 17px; transition: transform .45s var(--ease-out); }
.dl:hover .dl__icon { background: var(--blue); box-shadow: none; }
.dl:hover .dl__icon .icon { transform: translateY(2px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-3);
}
.footer-bottom__legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.footer-bottom__links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; }
.footer-bottom__links a, .footer-bottom__cookie { color: var(--on-dark-2); transition: color .25s; font-size: 14px; }
.footer-bottom__links a:hover, .footer-bottom__cookie:hover { color: #fff; }
.footer-bottom__social { width: 36px; height: 36px; display: grid !important; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); }
.footer-bottom__social .icon { width: 17px; height: 17px; }
.footer-bottom__social:hover { background: rgba(255, 255, 255, .08); }
.footer-wordmark {
  padding-inline: var(--gutter); margin-top: clamp(12px, 2vw, 24px);
  height: clamp(70px, 17vw, 260px); overflow: hidden;
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
}
.footer-wordmark img { width: 100%; height: auto; opacity: .07; }

/* 13. Motion states ----------------------------------------------------- */
/* Hidden before the intro plays; .motion-fallback (set after 3 s if JS never starts) reveals everything. */
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-eyebrow],
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-lead],
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-actions],
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-chapters],
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-trust] { opacity: 0; }
.js:not(.motion-fallback):not(.reduced-motion) [data-hero-title] { visibility: hidden; }
.js:not(.is-ready):not(.motion-fallback):not(.reduced-motion) .site-header { opacity: 0; }

/* 14. Responsive -------------------------------------------------------- */
@media (max-width: 1280px) {
  .primary-nav { margin-left: 18px; }
  .primary-nav__link { padding: 0 10px; font-size: 15px; }
  .primary-nav__link::after { left: 10px; right: 10px; }
  .mega__grid { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(220px, 270px); }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-nav { grid-column: 1 / -1; order: 3; }
  .footer-downloads { order: 2; }
}
@media (max-width: 1120px) {
  .primary-nav, .lang { display: none; }
  .burger { display: block; }
  .mega, .mega-backdrop { display: none; }
  .hero__chapters { width: 240px; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; --trust-h: 96px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .section-lead { justify-self: start; }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .services__stage { display: none; }
  .services.is-enhanced .svc { opacity: 1; }
  .svc { min-height: 0; padding: 44px 0 52px; }
  .svc:first-child { border-top: 0; padding-top: 0; }
  .svc__media-mobile { display: block; margin-bottom: 30px; }
  .svc__media-mobile .frame { aspect-ratio: 4 / 3; overflow: hidden; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero__chapters { display: none; }
}
@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .hero__body { padding-bottom: calc(var(--trust-h) + 36px); }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 13, 28, .6) 0%, rgba(0, 13, 28, .25) 100%),
      linear-gradient(0deg, rgba(0, 13, 28, .92) 0%, rgba(0, 13, 28, .5) 42%, rgba(0, 13, 28, .1) 75%);
  }
  .hide-sm { display: none !important; }
  .hero__title { max-width: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn__label { flex: 1; }
  .hero__trust-label { display: none; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .site-header__cta { display: none; }
  .svc__links--two { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; order: 2; }
  .footer-downloads { order: 3; }
  .hero__eyebrow { font-size: 11.5px; letter-spacing: .08em; gap: 9px; }
  .br-lg { display: none; }
  .newsletter__field { height: auto; flex-direction: column; background: transparent; box-shadow: none; gap: 10px; }
  .newsletter__field input { flex: none; height: 54px; border-radius: var(--radius); background: rgba(0, 13, 28, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .newsletter__field:focus-within { box-shadow: none; }
  .newsletter__field input:focus { box-shadow: inset 0 0 0 1px var(--azure-300); }
  .newsletter__btn { flex: none; height: 54px; border-radius: var(--radius); }
  .newsletter__btn .btn__label { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .hero__title { font-size: 44px; }
  .svc__spec { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}
