/* ==========================================================================
   InfinitiO² — Blueprint v0.1 build
   Stage 1: foundation — base, header, navigation drawer, hero rotator,
   view scaffold, footer. Later stages append component sections.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — licences in /fonts) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--io2-deep);
  color: var(--io2-mist);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--io2-white);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); font-weight: 700; }
h2 { font-size: var(--h2); font-weight: 700; }
h3 { font-size: var(--h3); font-weight: 600; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--io2-cyan-soft); }
a:hover { color: var(--io2-white); }

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

.c {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Eyebrow — short uppercase data label, IBM Plex Mono */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--io2-cyan);
  margin: 0 0 1.1rem;
}

/* ---------- Focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--io2-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  top: 10px;
  z-index: 100;
  background: var(--io2-cyan);
  color: var(--io2-deep);
  font-family: var(--font-head);
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--io2-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn--primary {
  background: var(--io2-cyan);
  color: var(--io2-deep);
}
.btn--primary:hover { background: var(--io2-cyan-soft); color: var(--io2-deep); }
.btn--ghost {
  background: transparent;
  color: var(--io2-white);
  border-color: rgba(215, 225, 232, .38);
}
.btn--ghost:hover { border-color: var(--io2-cyan); color: var(--io2-cyan-soft); }

/* ---------- Header (§6.1) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-solid,
html:not(.js) .site-header {
  background: rgba(5, 15, 28, 0.96);
  box-shadow: 0 1px 0 rgba(60, 199, 216, .12);
}
.site-header .c {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: clamp(180px, 16vw, 250px); /* §4 logo: min 250px desktop, 180px mobile */
  display: block;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.4rem);
}
.primary-nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--io2-mist);
  text-decoration: none;
  padding: .85rem .35rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:not(.btn):hover { color: var(--io2-white); }
.primary-nav a[aria-current="page"] {
  color: var(--io2-white);
  border-bottom-color: var(--io2-cyan);
}
.primary-nav .btn { margin-left: .6rem; }

/* Drawer toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 225, 232, .3);
  border-radius: 4px;
  background: rgba(5, 15, 28, .6);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--io2-white);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer (§3: compact drawer, CTA fixed at the bottom) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 11, 22, .97);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h-mobile) + 1rem) var(--gutter) 1.2rem;
}
.drawer[hidden] { display: none; }
.drawer nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
}
.drawer nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--io2-white);
  text-decoration: none;
  padding: .9rem .2rem;
  border-bottom: 1px solid rgba(87, 112, 132, .25);
}
.drawer nav a[aria-current="page"] { color: var(--io2-cyan-soft); }
.drawer .drawer-cta {
  margin-top: auto;
  padding-top: 1rem;
}
.drawer .drawer-cta .btn { width: 100%; }
.drawer-close {
  position: absolute;
  top: 12px;
  right: var(--gutter);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 225, 232, .3);
  border-radius: 4px;
  background: transparent;
  color: var(--io2-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  .site-header { height: var(--header-h-mobile); }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { width: 180px; }
}

/* ---------- Hero rotator (Blueprint §6.2 · Banner Implementation Prompt v0.2) ---------- */
.hero {
  position: relative;
  --hero-min: 760px;
  background: var(--io2-deep);
  overflow: hidden;
  isolation: isolate;
}

.slide {
  display: flex;
  align-items: center;
  min-height: var(--hero-min);
}
.slide[hidden] { display: none; }

.slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--op-d, center);
}

/* v0.2 protective overlay — full-bleed slides */
.slide--full .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, .96) 0%, rgba(3, 11, 22, .80) 34%, rgba(3, 11, 22, .36) 70%, rgba(3, 11, 22, .20) 100%),
    linear-gradient(180deg, rgba(3, 11, 22, .18), rgba(3, 11, 22, .76));
}

/* Split composition — portrait artwork panel right, fading into navy at its
   left edge (v0.2: copy 44% / artwork 56%; no stretching or severe cropping) */
.slide--split .slide-media {
  left: auto;
  width: 56%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 240px);
  mask-image: linear-gradient(90deg, transparent 0, #000 240px);
}
.slide--split .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, .58), rgba(3, 11, 22, .10) 45%, rgba(3, 11, 22, .26) 100%),
    linear-gradient(180deg, rgba(3, 11, 22, .24), rgba(3, 11, 22, .58));
}

.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 9.5rem;
}
.hero-copy { max-width: 620px; } /* §6.2 / v0.2 text-safe region */
.slide--split .hero-copy { max-width: min(620px, 46%); }

.slide-kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--io2-cyan-soft);
  margin: 0 0 .9rem;
}
.slide h2 {
  font-size: var(--h1);
  font-weight: 800;
  margin-bottom: .45em;
}
.slide .lead {
  font-size: var(--body-lg);
  color: var(--io2-mist);
  margin-bottom: 1.8rem;
}
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* Controls — shared, overlaying the hero base */
.hero-ctrl {
  position: relative;
  z-index: 2;
  margin-top: -7.5rem;
  padding-bottom: 2.4rem;
}
.rotator-controls {
  display: flex;
  align-items: center;
  gap: .55rem;
}
html:not(.js) .hero-ctrl { display: none; }
.rc-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(215, 225, 232, .32);
  background: rgba(5, 15, 28, .55);
  color: var(--io2-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rc-btn:hover { border-color: var(--io2-cyan); color: var(--io2-cyan-soft); }
.rc-btn svg { width: 16px; height: 16px; fill: currentColor; }
.rc-dots {
  display: flex;
  gap: .3rem;
  margin-inline: .35rem;
}
.rc-dot {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.rc-dot::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: rgba(215, 225, 232, .35);
  transition: background var(--t-fast) var(--ease);
}
.rc-dot:hover::before { background: var(--io2-cyan-soft); }
.rc-dot[aria-current="true"]::before { background: var(--io2-cyan); }

/* No-JS fallback links */
.hero-fallback { padding-bottom: 2.5rem; position: relative; z-index: 2; }
.hero-fallback p { margin: .2rem 0; }
html.js .hero-fallback { display: none; }

/* Tablet */
@media (max-width: 1180px) {
  .hero { --hero-min: 680px; }
}

/* Stack split slides; mobile treatment (v0.2: copy first, artwork panel beneath) */
@media (max-width: 920px) {
  .slide-inner { padding-top: calc(var(--header-h-mobile) + 1.8rem); }
  .slide--split { flex-direction: column; align-items: stretch; }
  .slide--split .slide-inner { padding-bottom: 2rem; }
  .slide--split .hero-copy { max-width: 620px; }
  .slide--split .slide-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 236px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 26px), transparent);
  }
  .slide--split .slide-media img { object-position: var(--op-m, var(--op-d, center)); }
  .hero.hero--on-split .hero-ctrl { margin-top: .9rem; }
}
@media (max-width: 720px) {
  .hero { --hero-min: 620px; }
  .slide--full .slide-inner { padding-bottom: 8.5rem; }
}

/* ---------- View scaffold ---------- */
.view[hidden] { display: none; }

.page-head {
  padding: calc(var(--header-h) + 4.5rem) 0 3.5rem;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(13, 43, 73, .55), transparent 70%),
    var(--io2-navy-950);
}
@media (max-width: 920px) {
  .page-head { padding-top: calc(var(--header-h-mobile) + 3.5rem); }
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--alt { background: var(--io2-navy-950); }

/* Stage placeholder band — build scaffolding, removed before launch (§14) */
.stage-note {
  border: 1px dashed rgba(87, 112, 132, .55);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  max-width: 760px;
}
.stage-note .eyebrow { color: var(--io2-slate); margin-bottom: .4rem; }
.stage-note p { margin: 0; color: var(--io2-slate); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(60, 199, 216, .14);
  background: var(--io2-navy-950);
  padding: 3rem 0 2.2rem;
  font-size: .9rem;
}
.site-footer .c {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.5rem;
}
.site-footer .brand img { width: 170px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.4rem;
}
.footer-nav a {
  color: var(--io2-mist);
  text-decoration: none;
  padding: .6rem 0;
}
.footer-nav a:hover { color: var(--io2-white); }
.footer-meta {
  flex-basis: 100%;
  color: var(--io2-slate);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.6rem;
}
.footer-meta p { margin: 0; }
.build-tag { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }

/* ==========================================================================
   Stage 2 — §6.3 positioning · §6.4 offerings · §6.5 Mission Capability Engine
   ========================================================================== */

/* ---------- §6.3 Executive positioning strip ---------- */
.positioning h2 { max-width: 18ch; }
.pos-lead { font-size: var(--body-lg); max-width: 56ch; }
.pos-points {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.pos-points li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--io2-white);
  display: flex;
  align-items: center;
  gap: .7rem;
}
/* small assurance marker — the one sanctioned use of warm gold (§4) */
.pos-points li::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--io2-warm);
  flex-shrink: 0;
}

/* ---------- Arrow link ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  color: var(--io2-cyan-soft);
  text-decoration: none;
}
.arrow-link .al-arrow { transition: transform var(--t-fast) var(--ease); }
.arrow-link:hover { color: var(--io2-white); }
.arrow-link:hover .al-arrow { transform: translateX(4px); }

/* ---------- §6.4 Offering cards ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}
@media (max-width: 980px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--io2-navy-900), var(--io2-navy-950));
  border: 1px solid rgba(87, 112, 132, .32);
  border-radius: 8px;
  padding: 1.8rem 1.8rem 1.5rem;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.offer-card:hover,
.offer-card:focus-within {
  border-color: rgba(60, 199, 216, .55);
  transform: translateY(-3px);
}
.offer-card h3 { margin-bottom: .2em; }
.oc-tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--io2-cyan-soft);
  margin-bottom: .8em;
}
.oc-body { color: var(--io2-mist); flex-grow: 1; }
.offer-card .arrow-link { margin-top: 1rem; }

/* Offering-card photos: concept crops from the supplied hero asset (§5 status
   applies). The §6.4 restrained line reveal survives as a cyan baseline draw. */
.oc-photo {
  margin: -1.8rem -1.8rem 1.5rem;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(60, 199, 216, .28);
}
.oc-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.oc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 22, .16), rgba(5, 15, 28, .4));
}
.oc-photo::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--io2-cyan);
  z-index: 1;
  transition: width .7s var(--ease);
}
.offer-card:hover .oc-photo::before,
.offer-card:focus-within .oc-photo::before { width: 100%; }

/* Offering-card patterns (§8): static base, restrained line reveal on hover/focus
   (retained for reuse on offering sub-pages) */
.oc-pattern { margin-bottom: 1.5rem; }
.oc-pattern svg { width: 100%; max-width: 240px; height: auto; display: block; }
.oc-pattern path, .oc-pattern circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pat-base path { stroke: rgba(87, 112, 132, .55); stroke-width: 1.5; }
.pat-nodes circle { stroke: var(--io2-slate); stroke-width: 1.5; fill: var(--io2-navy-950); }
.pat-ticks path { stroke: var(--io2-warm); stroke-width: 1.6; }
.pat-end { fill: var(--io2-cyan); stroke: none; }
.pat-head { stroke: var(--io2-cyan); stroke-width: 2; }
.pat-live path {
  stroke: var(--io2-cyan);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .9s var(--ease);
}
.pat-live path:nth-child(2) { transition-delay: .08s; }
.pat-live path:nth-child(3) { transition-delay: .16s; }
.pat-live path:nth-child(4) { transition-delay: .24s; }
.offer-card:hover .pat-live path,
.offer-card:focus-within .pat-live path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .pat-live { display: none; } /* static pattern only */
}

/* ---------- §6.5 Mission Capability Engine ---------- */
.engine-lead { font-size: var(--body-lg); max-width: 58ch; }
.engine-figure { margin: 3rem 0 0; }
.engine-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
}

.engine-svg { width: 100%; height: auto; display: block; }

/* connections */
.en-conn {
  fill: none;
  stroke: rgba(87, 112, 132, .38);
  stroke-width: 1.2;
  transition: stroke var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.en-conn--hub { stroke: rgba(87, 112, 132, .26); }
.en-conn.lit { stroke: var(--io2-cyan); stroke-width: 2; }
.engine-svg.has-active .en-conn:not(.lit) { opacity: .3; }

/* operating-cycle arcs */
.en-arc {
  fill: none;
  stroke: rgba(139, 225, 234, .4);
  stroke-width: 2;
  transition: stroke var(--t-fast) var(--ease);
}
.en-arc.lit { stroke: var(--io2-cyan); stroke-width: 3; }
.en-arrow { fill: none; stroke: rgba(139, 225, 234, .5); stroke-width: 2; }
.en-arc-lbl {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--io2-cyan-soft);
}

/* hub */
.en-hub { cursor: pointer; outline: none; }
.en-hub-ring { fill: none; stroke: rgba(60, 199, 216, .5); stroke-width: 1.5; }
.en-hub-core { fill: var(--io2-navy-900); stroke: rgba(60, 199, 216, .25); }
.en-hub:hover .en-hub-ring, .en-hub:focus-visible .en-hub-ring { stroke: var(--io2-cyan); stroke-width: 2.5; }
.en-hub-lbl {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: .18em;
  fill: var(--io2-white);
}

/* nodes */
.en-node { cursor: pointer; outline: none; }
.en-hit { fill: transparent; }
.en-dot {
  fill: var(--io2-navy-800);
  stroke: var(--io2-slate);
  stroke-width: 2;
  transition: fill var(--t-fast) var(--ease), stroke var(--t-fast) var(--ease);
}
.en-lbl {
  font-family: var(--font-mono);
  font-size: 16px;
  fill: var(--io2-mist);
  transition: fill var(--t-fast) var(--ease);
}
.en-node:hover .en-dot { stroke: var(--io2-cyan-soft); }
.en-node:focus-visible .en-dot { stroke: var(--io2-cyan); stroke-width: 4; }
.en-node.is-active .en-dot { fill: var(--io2-cyan); stroke: var(--io2-cyan); }
.en-node.is-active .en-lbl { fill: var(--io2-white); }
.en-node.is-linked .en-dot { stroke: var(--io2-cyan-soft); }
.engine-svg.has-active .en-node:not(.is-active):not(.is-linked) { opacity: .45; }
.engine-svg.has-active .en-node:not(.is-active):not(.is-linked):hover,
.engine-svg.has-active .en-node:not(.is-active):not(.is-linked):focus-visible { opacity: 1; }

/* detail panel */
.engine-panel {
  border: 1px solid rgba(87, 112, 132, .32);
  border-radius: 8px;
  background: var(--io2-navy-900);
  padding: 1.7rem 1.8rem;
  min-height: 300px;
}
.engine-panel h3 { margin-bottom: .4em; }
.ep-hint { color: var(--io2-slate); font-size: .95rem; }
.ep-links-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--io2-slate);
  margin: 1.2rem 0 .5rem;
}
.ep-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.ep-links button {
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--io2-mist);
  background: rgba(13, 43, 73, .55);
  border: 1px solid rgba(87, 112, 132, .4);
  border-radius: 999px;
  padding: .45rem .9rem;
  min-height: 36px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ep-links button:hover { border-color: var(--io2-cyan); color: var(--io2-white); }

/* accordions — the no-JS / mobile representation */
.engine-accordions { margin-top: 2rem; }
.engine-acc {
  border: 1px solid rgba(87, 112, 132, .32);
  border-radius: 6px;
  background: var(--io2-navy-900);
}
.engine-acc + .engine-acc { margin-top: .6rem; }
.engine-acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 1rem 3rem 1rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--io2-white);
  position: relative;
  min-height: 44px;
}
.engine-acc summary::-webkit-details-marker { display: none; }
.engine-acc summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--io2-cyan);
}
.engine-acc[open] summary::after { content: "\2212"; }
.engine-acc summary .eyebrow { margin: 0; font-size: .68rem; color: var(--io2-slate); }
.engine-acc ul {
  list-style: none;
  margin: 0;
  padding: .2rem 1.2rem 1.1rem;
}
.engine-acc li {
  padding: .5rem 0;
  border-top: 1px solid rgba(87, 112, 132, .22);
  color: var(--io2-mist);
}

.engine-caption {
  margin-top: 2.2rem;
  font-size: var(--body-lg);
  color: var(--io2-white);
  max-width: 48ch;
}

/* responsive behaviour: diagram on wide screens, accordions on mobile (§6.5) */
@media (min-width: 901px) {
  html.js .engine-accordions { display: none; }
}
@media (max-width: 900px) {
  .engine-wrap { display: none; }
}


/* ==========================================================================
   Stage 3 — §6.6–6.11 homepage completion
   ========================================================================== */

/* §6.6 Mission Support band */
.ms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.ms-copy h2 { max-width: 16ch; }
.ms-cta { margin-top: .8rem; }
.cap-list {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.cap-list li {
  border: 1px solid rgba(87, 112, 132, .32);
  border-left: 3px solid var(--io2-cyan);
  border-radius: 4px;
  background: var(--io2-navy-900);
  padding: .85rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--io2-white);
}
@media (max-width: 920px) {
  .ms-grid { grid-template-columns: 1fr; }
  .cap-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .cap-list { grid-template-columns: 1fr; } }

/* §6.7 Assurance pathway */
.assurance-band h2 { max-width: 22ch; }
.ea-leads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin-bottom: 2.8rem;
}
.ea-leads .lead { max-width: 52ch; }
@media (max-width: 920px) { .ea-leads { grid-template-columns: 1fr; } }

.pathway {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: stage;
}
.pw-stage {
  position: relative;
  border-top: 2px solid rgba(60, 199, 216, .45);
  padding-top: 1.1rem;
}
/* connected pathway: node on the line, connector implied by the shared rule */
.pw-stage::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--io2-navy-950);
  border: 2px solid var(--io2-cyan);
}
.pw-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--io2-cyan);
  letter-spacing: .18em;
}
.pw-name {
  font-size: 1.15rem;
  margin: .25rem 0 .35rem;
}
.pw-stage p { font-size: .92rem; color: var(--io2-mist); margin: 0; }
@media (max-width: 920px) {
  .pathway {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 2px solid rgba(60, 199, 216, .45);
    padding-left: 1.4rem;
  }
  .pw-stage { border-top: 0; padding: .9rem 0; }
  .pw-stage::before { top: 1.15rem; left: calc(-1.4rem - 7px); }
}

.framework-note {
  margin: 0 0 2.2rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--io2-warm);
  background: rgba(13, 43, 73, .35);
  max-width: 760px;
}
.framework-note p { margin: 0; font-size: .92rem; color: var(--io2-mist); }

/* §6.8 Strategy to Outcomes */
.strategy-band h2 { max-width: 20ch; }
.so-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-top: 2.4rem;
}
.so-col h3 {
  color: var(--io2-cyan-soft);
  border-bottom: 1px solid rgba(87, 112, 132, .4);
  padding-bottom: .5rem;
}
.so-col ul { list-style: none; margin: 0; padding: 0; }
.so-col li {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(87, 112, 132, .18);
  color: var(--io2-mist);
}
.so-flow { display: block; width: 100%; height: auto; margin: 2.2rem 0 1.6rem; }
.sof-line { fill: none; stroke: rgba(60, 199, 216, .4); stroke-width: 2; }
.sof-out { fill: none; stroke: var(--io2-cyan); stroke-width: 3; }
.sof-node { fill: var(--io2-cyan-soft); }
.so-close { font-size: var(--body-lg); color: var(--io2-white); max-width: 52ch; }
@media (max-width: 720px) {
  .so-grid { grid-template-columns: 1fr; }
  .so-flow { display: none; } /* continuity graphic is decorative; columns stack */
}

/* §6.9 Why InfinitiO² */
.why-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.why-list li {
  border: 1px solid rgba(87, 112, 132, .3);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--io2-navy-900), var(--io2-navy-950));
  padding: 1.3rem 1.4rem;
  color: var(--io2-mist);
}
.why-list strong {
  display: block;
  font-family: var(--font-head);
  color: var(--io2-white);
  font-size: 1.08rem;
  margin-bottom: .3rem;
}

/* §6.10 Industries */
.industry-grid {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.industry-grid li {
  border: 1px solid rgba(87, 112, 132, .3);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--io2-mist);
  background: rgba(7, 26, 46, .5);
}
@media (max-width: 920px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industry-grid { grid-template-columns: 1fr; } }

/* §6.11 Final conversion */
.convert-band { text-align: center; }
.convert-inner { max-width: 760px; }
.convert-inner h2 { margin-inline: auto; max-width: 22ch; }
.convert-inner .lead { margin: 0 auto 2rem; }
.btn--lg { min-height: 56px; padding: 1rem 2.2rem; font-size: 1.05rem; }
.convert-micro {
  margin: 1.4rem auto 0;
  font-size: .9rem;
  color: var(--io2-slate);
  max-width: 48ch;
}

/* ==========================================================================
   Stage 4 — offering pages
   ========================================================================== */

/* Progressive enhancement: without JavaScript, all views render stacked */
html:not(.js) .view[hidden] { display: block; }

/* Page heroes reuse the banner media treatment in a compact shell */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--io2-deep);
  display: flex;
  align-items: center;
  min-height: 560px;
}
.page-hero--full .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, .96) 0%, rgba(3, 11, 22, .80) 34%, rgba(3, 11, 22, .36) 70%, rgba(3, 11, 22, .20) 100%),
    linear-gradient(180deg, rgba(3, 11, 22, .18), rgba(3, 11, 22, .76));
}
.page-hero--split .slide-media {
  left: auto;
  width: 56%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 240px);
  mask-image: linear-gradient(90deg, transparent 0, #000 240px);
}
.page-hero--split .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, .58), rgba(3, 11, 22, .10) 45%, rgba(3, 11, 22, .26) 100%),
    linear-gradient(180deg, rgba(3, 11, 22, .24), rgba(3, 11, 22, .58));
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3.5rem;
}
.page-hero-inner .lead { max-width: 620px; }
.page-hero--split .page-hero-inner > * { max-width: min(620px, 46%); }
.page-hero h1 { max-width: 16ch; }
.page-hero .slide-actions { margin-top: 1.6rem; }
@media (max-width: 920px) {
  .page-hero { min-height: 0; }
  .page-hero-inner { padding-top: calc(var(--header-h-mobile) + 2.4rem); }
  .page-hero--split { flex-direction: column; align-items: stretch; }
  .page-hero--split .page-hero-inner > * { max-width: 620px; }
  .page-hero--split .slide-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 220px;
    order: 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 26px), transparent);
  }
  .page-hero--split .slide-media img { object-position: var(--op-m, var(--op-d, center)); }
}

/* Shared page components */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin-top: 1.2rem;
}
.two-col p { max-width: 54ch; }
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.impact {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--h3);
  line-height: 1.25;
  color: var(--io2-cyan-soft);
  max-width: 30ch;
  margin: 2.2rem 0 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--io2-cyan);
  text-wrap: balance;
}
.impact--tight { margin-top: 0; font-size: 1.3rem; }

.sect-intro { margin-bottom: 2.4rem; }
.section h2 { max-width: 24ch; }

.support-line {
  margin: 1.8rem 0 0;
  color: var(--io2-slate);
  font-size: .95rem;
  max-width: 64ch;
}

.cap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-top: 1.4rem;
}
.cap-card {
  border: 1px solid rgba(87, 112, 132, .3);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--io2-navy-900), var(--io2-navy-950));
  padding: 1.25rem 1.3rem;
}
.cap-card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.cc-tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--io2-cyan-soft);
  font-size: .92rem;
  margin-bottom: .5em;
}
.cap-card p:last-child { margin: 0; font-size: .92rem; color: var(--io2-mist); }
@media (max-width: 1180px) { .cap-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-cards { grid-template-columns: 1fr; } }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-top: .6rem;
}
.phase-card {
  border: 1px solid rgba(60, 199, 216, .3);
  border-top: 3px solid var(--io2-cyan);
  border-radius: 6px;
  background: var(--io2-navy-900);
  padding: 1.2rem 1.3rem;
}
.phase-card h3 { font-size: 1.2rem; margin: .2em 0 .35em; }
.phase-card p:last-child { margin: 0; font-size: .92rem; }
@media (max-width: 920px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phase-grid { grid-template-columns: 1fr; } }

.outcome-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 2.5rem;
  max-width: 980px;
}
.outcome-list li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--io2-mist);
}
.outcome-list li::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--io2-cyan);
  flex-shrink: 0;
  transform: translateY(-4px);
}
@media (max-width: 720px) { .outcome-list { grid-template-columns: 1fr; } }

.chip-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip-list li {
  border: 1px solid rgba(87, 112, 132, .4);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .9rem;
  color: var(--io2-mist);
  background: rgba(7, 26, 46, .5);
}
.chip-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--io2-slate);
  margin: 2rem 0 0;
}

.q-list {
  margin: .6rem 0 0;
  padding-left: 1.3rem;
  max-width: 62ch;
}
.q-list li { padding: .35rem 0; color: var(--io2-white); font-family: var(--font-head); font-weight: 600; }

.so-col--deep ul { margin-top: .4rem; }
.so-col--deep li { padding: .7rem 0; }
.so-col--deep strong {
  display: block;
  font-family: var(--font-head);
  color: var(--io2-white);
  margin-bottom: .15rem;
}
.so-col--deep li p { margin: 0; font-size: .92rem; }

.ninety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: .8rem;
}
.ninety-card {
  border: 1px solid rgba(87, 112, 132, .3);
  border-radius: 6px;
  background: var(--io2-navy-900);
  padding: 1.2rem 1.3rem;
}
.ninety-card h3 { font-size: 1.1rem; margin: .25em 0 .6em; }
.ninety-card ul { list-style: none; margin: 0; padding: 0; }
.ninety-card li {
  padding: .4rem 0;
  border-top: 1px solid rgba(87, 112, 132, .2);
  font-size: .92rem;
  color: var(--io2-mist);
}
@media (max-width: 920px) { .ninety-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Stage 5 — About, Contact, Privacy
   ========================================================================== */

.anchor-quote {
  margin: 2.2rem 0 0;
  padding: 0;
  border: 0;
}
.anchor-quote p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--h3);
  line-height: 1.3;
  color: var(--io2-cyan-soft);
  max-width: 28ch;
  padding-left: 1.2rem;
  border-left: 3px solid var(--io2-cyan);
  margin: 0;
  text-wrap: balance;
}

.contact-wrap { max-width: 860px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.6rem;
}
.ff { display: flex; flex-direction: column; gap: .4rem; }
.ff--full { grid-column: 1 / -1; }
.ff label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--io2-white);
  font-size: .95rem;
}
.ff .opt { color: var(--io2-slate); font-weight: 400; }
.ff input[type="text"], .ff input[type="email"], .ff input[type="tel"],
.ff select, .ff textarea {
  background: var(--io2-navy-900);
  border: 1px solid rgba(87, 112, 132, .5);
  border-radius: 4px;
  color: var(--io2-white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem .9rem;
  min-height: 48px;
  width: 100%;
}
.ff textarea { resize: vertical; min-height: 130px; }
.ff input:focus-visible, .ff select:focus-visible, .ff textarea:focus-visible {
  outline: 2px solid var(--io2-cyan);
  outline-offset: 1px;
}
.ff.is-invalid input, .ff.is-invalid select, .ff.is-invalid textarea {
  border-color: var(--io2-error);
}
.ferr { color: var(--io2-error); font-size: .88rem; margin: 0; }

.ff--consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .7rem;
  align-items: start;
}
.ff--consent input {
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  accent-color: var(--io2-cyan);
}
.ff--consent label { font-weight: 400; color: var(--io2-mist); }
.ff--consent .ferr { grid-column: 2; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-alert {
  grid-column: 1 / -1;
  border: 1px solid var(--io2-error);
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(228, 111, 111, .08);
  padding: 1rem 1.2rem;
}
.fa-title { font-size: 1.05rem; margin-bottom: .4em; color: var(--io2-white); }
.form-alert ul { margin: 0; padding-left: 1.2rem; }
.form-alert a { color: var(--io2-error); }
.form-alert a:hover { color: var(--io2-white); }

.form-success {
  border: 1px solid rgba(60, 199, 216, .5);
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(60, 199, 216, .07);
  padding: 1.4rem 1.6rem;
}
.fs-msg { margin: 0; font-size: var(--body-lg); color: var(--io2-white); }

.form-note { margin-top: 2rem; max-width: none; }

@media (max-width: 720px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Privacy statement */
.pp { max-width: 70ch; }
.pp h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; max-width: none; }
.pp h2:first-child { margin-top: 0; }
.pp-updated {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--io2-slate);
  margin-top: 1rem;
}

/* ==========================================================================
   Hero: shared video background, equal-height text-only slide transitions
   ========================================================================== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--io2-deep) url("../media/hero-bg-poster.jpg") center / cover no-repeat;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 22, .96) 0%, rgba(3, 11, 22, .80) 34%, rgba(3, 11, 22, .36) 70%, rgba(3, 11, 22, .20) 100%),
    linear-gradient(180deg, rgba(3, 11, 22, .18), rgba(3, 11, 22, .76));
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none; } /* poster frame remains */
}

/* All hero slides share one grid cell: the banner keeps the height of the
   tallest slide, so nothing moves between transitions — only the text. */
.hero [data-slides] { display: grid; }
.hero .slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hero .slide.is-active {
  visibility: visible;
  opacity: 1;
}
.hero .slide .slide-media { display: none; } /* shared background only */

/* ==========================================================================
   Page hero artwork: show each poster whole (no cropping of its built-in
   text), scaled to fit its panel. Added for the production release.
   ========================================================================== */
.page-hero { min-height: min(86vh, 820px); }
.page-hero--split .slide-media {
  top: var(--header-h);
  bottom: 0;
  width: 50%;
  padding: 1.5rem 2rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: none;
  mask-image: none;
}
.page-hero--split .slide-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}
.page-hero--split .slide-media::after { display: none; }
.page-hero--split .page-hero-inner > * { max-width: min(620px, 46%); }

@media (max-width: 920px) {
  .page-hero { min-height: 0; }
  .page-hero--split .slide-media {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    padding: 0 16px 2rem;
    order: 2;
  }
  .page-hero--split .slide-media img {
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
  }
  .page-hero--split .page-hero-inner > * { max-width: 620px; }
}

/* Headings focused by the page router need no visible ring */
h1[tabindex="-1"]:focus { outline: none; }
