/* ═══════════════════════════════════════════════════════════
   SECURE BLUE — Mission Assurance
   Deep-navy cinematic single page. No frameworks.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #05080f;
  --bg-raise:  #0a1120;
  --surface:   #0d1526;
  --line:      rgba(0, 217, 255, .14);
  --cyan:      #00d9ff;
  --blue:      #1860f0;
  --text:      #e8eef7;
  --muted:     #8fa3bf;
  --grad:      linear-gradient(100deg, var(--cyan), var(--blue));
  --font-d:    "Space Grotesk", system-ui, sans-serif;
  --font-b:    "Inter", system-ui, sans-serif;
  --nav-h:     76px;
  --ease:      cubic-bezier(.22, .8, .28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(0, 217, 255, .25); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 999px;
  padding: .72em 1.7em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.btn--lg { padding: .95em 2.2em; font-size: 16px; }
.btn--primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 4px 24px rgba(0, 180, 255, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(0, 190, 255, .45); }
.btn--ghost {
  color: var(--text);
  border-color: rgba(232, 238, 247, .22);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 clamp(1.2rem, 4vw, 3.2rem);
  z-index: 50;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.is-solid {
  background: rgba(5, 8, 15, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .3s;
}
.nav__links a:hover { color: var(--text); }

/* ── Section dots (right edge, every chapter) ────────────── */
.sectionnav {
  position: fixed;
  right: 1.3rem;
  top: 50%;
  translate: 0 -50%;
  z-index: 45;
  display: grid;
  gap: .85rem;
  justify-items: center;
}
.sectionnav button {
  position: relative;
  width: 11px; height: 11px;
  padding: 0;
  border: 1.5px solid rgba(232, 238, 247, .35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.sectionnav button:hover { border-color: var(--cyan); transform: scale(1.25); }
.sectionnav button.is-active {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 217, 255, .6);
}
.sectionnav button::after {          /* label on hover */
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  font: 500 12px var(--font-d);
  letter-spacing: .08em;
  color: var(--text);
  background: rgba(10, 17, 32, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .35em .8em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.sectionnav button:hover::after,
.sectionnav button:focus-visible::after { opacity: 1; }

/* ── LinkedIn branding ───────────────────────────────────── */
.li-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.li-link .li-icon { flex: 0 0 auto; border-radius: 4px; }
.footer__social {
  display: inline-flex;
  border-radius: 6px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.footer__social:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 102, 194, .5); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero::after {                       /* vignette to seat the type */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90rem 50rem at 50% 115%, rgba(24, 96, 240, .16), transparent 60%),
    radial-gradient(60rem 35rem at 50% -20%, rgba(0, 217, 255, .07), transparent 65%);
}
.hero__inner {
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 6rem;
  max-width: 1000px;
  will-change: transform, opacity;
}
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  max-width: 620px;
  margin: 0 auto 2.6rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(232, 238, 247, .3);
  border-radius: 999px;
  display: block;
}
.hero__scrollcue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 9px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--cyan);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ── Chapter 2 · pinned scrub ────────────────────────────── */
.scrub__track { height: 380vh; position: relative; }
.scrub__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--nav-h) clamp(1.2rem, 4vw, 3rem) 0;
  overflow: hidden;
}
.scrub__viz { display: grid; place-items: center; }
.scrub__viz svg {
  width: min(44vw, 58svh);
  max-width: 480px;
  overflow: visible;
  filter: drop-shadow(0 0 44px rgba(0, 190, 255, .16));
}
#fragments polygon { will-change: transform, opacity; }
.scrub__copy { position: relative; }
.scrub__panels { position: relative; min-height: 16em; }
.scrub__panel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.scrub__panel.is-active { opacity: 1; transform: none; }
.scrub__panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 1.1rem; }
.scrub__panel p { color: var(--muted); max-width: 46ch; }
.scrub__progress { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.scrub__dot {                  /* clickable — jumps the scrub to that step */
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1.1em;
  border: 1px solid rgba(232, 238, 247, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font: 500 13px var(--font-d);
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.scrub__dot i {
  font-style: normal;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .65;
}
.scrub__dot:hover { border-color: rgba(0, 217, 255, .5); color: var(--text); }
.scrub__dot.is-active {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0, 217, 255, .08);
}
.scrub__dot.is-active i { opacity: 1; }

/* ── IRAP explained ──────────────────────────────────────── */
.irap {
  padding: clamp(5rem, 13vh, 10rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(70rem 30rem at 50% 0%, rgba(24, 96, 240, .09), transparent 70%);
}
.irap__inner { max-width: 1140px; margin: 0 auto; }
.irap__head { text-align: center; max-width: 800px; margin: 0 auto; }
.irap__head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; }
.irap__lede { color: var(--muted); max-width: 62ch; font-size: 1.05rem; margin: 0 auto; }
.irap__icon {
  display: block;
  width: 42px; height: 42px;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.irap__icon svg { width: 100%; height: 100%; }
.irap__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 3.2rem 0;
  counter-reset: none;
}
.irap__steps li {
  position: relative;
  padding: 1.7rem 1.5rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.irap__steps li:hover { transform: translateY(-5px); border-color: rgba(0, 217, 255, .4); }
.irap__steps li::before {                   /* gradient top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: .55;
}
.irap__steps li:not(:last-child)::after {   /* connector arrow */
  content: "→";
  position: absolute;
  bottom: 1.2rem; right: .9rem;
  color: rgba(0, 217, 255, .4);
  font-family: var(--font-d);
}
.irap__num {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .5;
}
.irap__steps h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.irap__steps p { color: var(--muted); font-size: .92rem; }
.irap__foot {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.irap__quote {
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding: .4rem 0 .4rem clamp(1.2rem, 3vw, 2rem);
  align-self: center;
}
.irap__quote p {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.irap__quote cite {
  font-style: normal;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-d);
}
.irap__beyond {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(120deg, rgba(0, 217, 255, .06), rgba(24, 96, 240, .05));
}
.irap__beyond h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.irap__beyond p { color: var(--muted); font-size: .96rem; margin-bottom: 1.3rem; }
.irap__guide {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 1px solid rgba(0, 217, 255, .35);
  transition: color .3s, border-color .3s;
}
.irap__guide:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Chapter 5 · services ────────────────────────────────── */
.services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(var(--bg) 0%, var(--bg-raise) 30%, var(--bg-raise) 70%, var(--bg) 100%);
}
.services__rain {              /* binary rain — sits behind the cards */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .7;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.services__head { max-width: 1140px; margin: 0 auto 3.5rem; }
.services__head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.services__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.2rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.7rem;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
  overflow: hidden;
}
.card::before {                      /* top glow line */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .45s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, .4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 217, 255, .08);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.22rem; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ── Chapter 6 · credentials ─────────────────────────────── */
.creds { padding: clamp(5rem, 11vh, 8rem) clamp(1.2rem, 4vw, 3rem); }
.creds__head { max-width: 1140px; margin: 0 auto 2.8rem; }
.creds__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.1rem; }
.creds__lede { color: var(--muted); max-width: 56ch; }
.creds__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.creds__badge {
  display: grid;
  gap: .9rem;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(0, 217, 255, .3);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(150deg, rgba(0, 217, 255, .08), rgba(24, 96, 240, .06));
}
.creds__badge img { width: 120px; background: #fff; border-radius: 10px; padding: .55rem .7rem; }
.creds__badge span {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
}
.creds__certs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
}
.creds__certs li {
  display: grid;
  gap: .2rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .35s, transform .35s var(--ease);
}
.creds__certs li:hover { border-color: rgba(0, 217, 255, .4); transform: translateY(-4px); }
.creds__certs strong { font-family: var(--font-d); font-size: 1.08rem; letter-spacing: .01em; }
.creds__certs span { color: var(--muted); font-size: .85rem; }

/* ── Chapter 7 · contact ─────────────────────────────────── */
.contact {
  padding: clamp(5rem, 13vh, 10rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(80rem 45rem at 85% 110%, rgba(24, 96, 240, .14), transparent 60%);
}
.contact__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; }
.contact__lede { color: var(--muted); max-width: 44ch; margin-bottom: 2.2rem; }
.contact__details { list-style: none; display: grid; gap: .85rem; }
.contact__details li { color: var(--muted); }
.contact__details a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 217, 255, .35);
  transition: color .3s, border-color .3s;
}
.contact__details a:hover { color: var(--cyan); border-color: var(--cyan); }
.contact__details .li-link { border-bottom: 0; }
.linklike {                    /* button styled as a link (email reveal) */
  font: 500 17px var(--font-b);
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 217, 255, .35);
  padding: 0 0 1px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.linklike:hover { color: var(--cyan); border-color: var(--cyan); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.contact__form h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.contact__form label {
  display: grid;
  gap: .45rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__form input,
.contact__form textarea {
  font: 400 16px var(--font-b);
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(232, 238, 247, .14);
  border-radius: 10px;
  padding: .8em .95em;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, .15);
}
.form__note { color: var(--muted); font-size: .82rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 3rem 1.5rem 3.4rem; }
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: .8rem;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.footer img { width: 110px; opacity: .85; }

/* ── Reveal-on-scroll ────────────────────────────────────── */
/* Gated on html.js (set by main.js) so content is NEVER hidden
   if JavaScript fails to load or crashes. */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal[data-d="1"] { transition-delay: .12s; }
html.js .reveal[data-d="2"] { transition-delay: .24s; }
html.js .reveal[data-d="3"] { transition-delay: .36s; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .sectionnav { display: none; }       /* too tight on small screens */
  .scrub__track { height: 320vh; }
  .scrub__stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.1fr) auto;
    text-align: center;
    padding-top: calc(var(--nav-h) + .5rem);
    gap: .5rem;
  }
  .scrub__viz svg { width: min(62vw, 34svh); }
  .scrub__panel p { margin: 0 auto; }
  .scrub__panels { min-height: 15em; }
  .scrub__progress { justify-content: center; }
  .contact__inner { grid-template-columns: 1fr; }
  .irap__foot { grid-template-columns: 1fr; }
  .creds__grid { grid-template-columns: 1fr; }
  .creds__badge { justify-self: start; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .principal__stats { grid-template-columns: 1fr 1fr; }
  .hero__title br { display: none; }   /* wrap naturally on narrow screens */
}

/* ══ v2 sections ═════════════════════════════════════════ */

/* ── Clickable capability cards + modal ──────────────────── */
.services__lede { color: var(--muted); margin-top: 1.1rem; font-size: .98rem; }
.card[data-cap] { cursor: pointer; }
.card__more {
  display: inline-block;
  margin-top: 1rem;
  font: 600 13px var(--font-d);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card__tag {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font: 600 11px var(--font-d);
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #04121f;
  background: var(--grad);
  padding: .3em .85em;
  border-radius: 999px;
}
.card--flag {
  background:
    linear-gradient(150deg, rgba(0, 217, 255, .1), rgba(24, 96, 240, .07) 60%, transparent),
    var(--surface);
  border-color: rgba(0, 217, 255, .35);
}
.cap-dialog {
  margin: auto;
  width: min(92vw, 620px);
  max-height: 85svh;
  border: 1px solid rgba(0, 217, 255, .3);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--bg-raise);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.cap-dialog::backdrop {
  background: rgba(3, 5, 10, .7);
  backdrop-filter: blur(6px);
}
.cap-dialog__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.cap-dialog__close:hover { border-color: var(--cyan); color: var(--text); }
.cap-dialog__body h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  padding-right: 2.4rem;
}
.cap-dialog__body p { color: var(--muted); margin-bottom: 1rem; }
.cap-dialog__body ul {
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 1.2rem 0 1.4rem;
}
.cap-dialog__body li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: .95rem;
}
.cap-dialog__body li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 8px; height: 8px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cap-dialog__body .btn { margin-top: .6rem; }

/* ── Principal / boutique ────────────────────────────────── */
.principal { padding: clamp(5rem, 13vh, 10rem) clamp(1.2rem, 4vw, 3rem); }
.principal__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.principal h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.5rem; }
.principal__copy p { color: var(--muted); margin-bottom: 1.3rem; max-width: 58ch; }
.principal__copy .btn { margin-top: .6rem; }
.principal__side { display: grid; gap: 1.2rem; }
.principal__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.principal__stats li {
  display: grid;
  gap: .15rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0, 217, 255, .28);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(0, 217, 255, .07), rgba(24, 96, 240, .05));
}
.principal__stats strong {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.principal__stats span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.principal__points {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.principal__points li {
  display: grid;
  gap: .2rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(0, 217, 255, .04), transparent 60%);
  transition: border-color .35s, transform .35s var(--ease);
}
.principal__points li:hover { border-color: rgba(0, 217, 255, .4); transform: translateX(6px); }
.principal__points strong { font-family: var(--font-d); font-size: 1.05rem; }
.principal__points span { color: var(--muted); font-size: .9rem; }

/* ── Spotlight (training) ────────────────────────────────── */
.spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(var(--bg) 0%, var(--bg-raise) 40%, var(--bg-raise) 60%, var(--bg) 100%);
}
.spotlight::before {           /* fibre-optic backdrop */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/fibre.jpg") center / cover no-repeat;
  opacity: .13;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.spotlight__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.spotlight h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.3rem; }
.spotlight__copy > p { color: var(--muted); margin-bottom: 1.4rem; max-width: 58ch; }
.spotlight__list {
  list-style: none;
  display: grid;
  gap: .7rem;
  margin-bottom: 2rem;
}
.spotlight__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: .98rem;
}
.spotlight__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 9px; height: 9px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Orbit visual */
.orbit {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.orbit__ring {
  position: absolute;
  border: 1px dashed rgba(0, 217, 255, .28);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orbit__ring--1 { inset: 8%; animation-duration: 46s; }
.orbit__ring--2 { inset: 22%; animation-duration: 34s; animation-direction: reverse; }
.orbit__ring--3 { inset: 36%; animation-duration: 26s; }
@keyframes spin { to { rotate: 360deg; } }
.orbit__core {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(0, 217, 255, .35);
  box-shadow: 0 0 60px rgba(0, 190, 255, .22);
}
.orbit__sat {
  position: absolute;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
  padding: .35em .8em;
  border: 1px solid rgba(0, 217, 255, .35);
  border-radius: 999px;
  background: rgba(5, 8, 15, .85);
}
.orbit__sat--1 { top: 4%; left: 50%; translate: -50% 0; }
.orbit__sat--2 { bottom: 14%; left: 4%; }
.orbit__sat--3 { bottom: 14%; right: 4%; }

/* ── Software / terminal ─────────────────────────────────── */
.software {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 13vh, 10rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(60rem 30rem at 15% 20%, rgba(0, 217, 255, .06), transparent 65%);
}
.software::before {            /* server-rack backdrop, right side */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/racks.jpg") 80% center / cover no-repeat;
  opacity: .1;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
.software__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.software h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.3rem; }
.software__copy p { color: var(--muted); margin-bottom: 1.3rem; max-width: 56ch; }
.software__copy .btn { margin-top: .5rem; }
.terminal {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070c17;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 217, 255, .05);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, .6);
}
.terminal__bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(143, 163, 191, .25);
}
.terminal__bar span:first-child { background: rgba(0, 217, 255, .55); }
.terminal__bar em {
  margin-left: .6rem;
  font: 500 12px var(--font-d);
  font-style: normal;
  letter-spacing: .08em;
  color: var(--muted);
}
.terminal__body {
  margin: 0;
  padding: 1.3rem 1.4rem 1.6rem;
  font: 400 13.5px/1.75 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #9fd8ff;
  min-height: 15em;
  white-space: pre-wrap;
}
.terminal__body .t-cmd { color: var(--text); }
.terminal__body .t-ok { color: #38e8a4; }
.terminal__body .t-dim { color: var(--muted); }
.terminal__cursor {
  display: inline-block;
  width: .6em; height: 1.15em;
  vertical-align: -0.2em;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Sectors ─────────────────────────────────────────────── */
.sectors {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem);
}
.sectors__bg {                 /* Earth at night — national-scale backdrop */
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/earth-night.jpg") center 30% / cover no-repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.sector__icon {
  width: 40px; height: 40px;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.sector__icon svg { width: 100%; height: 100%; }
.sectors__head { max-width: 1140px; margin: 0 auto 3rem; }
.sectors__head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.sectors__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.sector {
  position: relative;
  display: grid;
  gap: .35rem;
  align-content: start;
  padding: 1.5rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s;
}
.sector:hover { transform: translateY(-5px); border-color: rgba(0, 217, 255, .4); }
.sector strong { font-family: var(--font-d); font-size: 1.08rem; }
.sector span { color: var(--muted); font-size: .9rem; }
.sector--lead {
  grid-row: span 2;
  align-content: center;
  gap: .6rem;
  background:
    linear-gradient(150deg, rgba(0, 217, 255, .1), rgba(24, 96, 240, .08) 60%, transparent),
    var(--surface);
  border-color: rgba(0, 217, 255, .3);
}
.sector--lead strong { font-size: 1.35rem; }
.sector--lead em {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font: 600 11px var(--font-d);
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #04121f;
  background: var(--grad);
  padding: .3em .85em;
  border-radius: 999px;
}

/* ── v2 responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .principal__inner,
  .spotlight__inner,
  .software__inner { grid-template-columns: 1fr; }
  .spotlight__viz { order: 2; }
  .sector--lead { grid-row: auto; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scrollcue span { animation: none; }
  .btn, .card { transition: none; }
  .scrub__track { height: auto; }
  .scrub__stage { position: static; height: auto; padding-top: 3rem; }
  .scrub__panels { min-height: 0; display: grid; gap: 2.5rem; }
  .scrub__panel { position: static; opacity: 1; transform: none; transition: none; pointer-events: auto; }
  .scrub__progress { display: none; }
  .services__rain { display: none; }
  .orbit__ring { animation: none; }
  .terminal__cursor { animation: none; }
  .principal__points li:hover, .sector:hover,
  .irap__steps li:hover, .creds__certs li:hover { transform: none; }
}
