/*
  CoHeroes website concept
  - No external UI libraries
  - No icon font dependency
  - Geometric SVG icon system
  - Responsive, accessible, and motion-aware
*/

:root {
  --ink: #061a3a;
  --ink-2: #0a2c5f;
  --blue: #1259d6;
  --blue-bright: #2f7cff;
  --blue-soft: #79a8ff;
  --cyan: #6ae6ff;
  --paper: #f8fbff;
  --paper-2: #edf4ff;
  --white: #ffffff;
  --muted: #5c6e8a;
  --muted-dark: #a9bad4;
  --line: rgba(8, 42, 90, 0.12);
  --line-dark: rgba(170, 204, 255, 0.18);
  --shadow: 0 30px 90px rgba(3, 31, 73, 0.14);
  --shadow-soft: 0 18px 45px rgba(6, 36, 83, 0.09);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: min(1180px, calc(100vw - 40px));
  --header-height: 82px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: rgba(47, 124, 255, .22); }

.sr-only {
  position: absolute;
  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;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { transform: translateY(0); }

.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}
.section-kicker.light { color: #83b4ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  letter-spacing: -.045em;
  line-height: .98;
}
h2 {
  margin-bottom: 28px;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 650;
}
p { color: var(--muted); }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(248, 251, 255, .82);
  box-shadow: 0 1px 0 rgba(7, 36, 78, .08);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-shell {
  width: var(--container);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -.035em;
}
.brand picture, .brand img { flex: none; }
.brand img { width: 42px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a:not(.nav-cta) {
  position: relative;
  color: #29415f;
  font-size: .91rem;
  font-weight: 550;
}
.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transition: right .3s var(--ease);
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { right: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 18px;
  color: white;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(4, 26, 58, .18);
  transition: transform .25s var(--ease), background .25s ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--blue); }
.menu-toggle { display: none; }

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: .93rem;
  font-weight: 750;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
  overflow: hidden;
}
.button::before {
  content: "";
  position: absolute;
  width: 130%;
  height: 190%;
  left: -145%;
  top: -45%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .7s var(--ease);
}
.button:hover::before { left: 110%; }
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--ink), #0a3b82 68%, #1259d6);
  box-shadow: 0 18px 42px rgba(4, 35, 84, .24);
}
.button-primary:hover { box-shadow: 0 22px 50px rgba(18, 89, 214, .28); }
.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button-quiet:hover { background: rgba(255,255,255,.8); }
.play-glyph {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,89,214,.28);
  border-radius: 50%;
}
.play-glyph span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--blue);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: white;
  font-weight: 720;
}
.text-link span { color: var(--blue-soft); transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }

/* Hero */
.hero {
  position: relative;
  min-height: 930px;
  padding-top: calc(var(--header-height) + 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 28%, rgba(60, 130, 255, .15), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(106, 230, 255, .11), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 72%, #edf4ff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18,89,214,.2), transparent);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(5,43,94,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,43,94,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 70% 32%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 62% at 70% 32%, black 0%, transparent 78%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1460px, calc(100vw - clamp(40px, 7vw, 120px)));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr);
  align-items: center;
  gap: clamp(54px, 4.5vw, 92px);
}
.hero-copy {
  min-width: 0;
  padding-bottom: 110px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 27px;
  padding: 8px 13px 8px 10px;
  color: #345278;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(11, 58, 123, .1);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(11, 47, 97, .06);
  backdrop-filter: blur(10px);
}
.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(18,89,214,.09);
}
.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(18,89,214,.32);
  border-radius: inherit;
  animation: beacon 2s ease-out infinite;
}
@keyframes beacon { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  max-width: 760px;
  margin-bottom: 29px;
  font-size: clamp(4.2rem, 6.45vw, 7.25rem);
  font-weight: 690;
  letter-spacing: -.068em;
  overflow-wrap: normal;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(102deg, #0b56cf 8%, #1f73ff 58%, #53b8e9 110%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}
.hero-thesis {
  max-width: 620px;
  margin-bottom: 34px;
  color: #2d4566;
  font-size: .98rem;
}
.hero-thesis strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  color: #526781;
  font-size: .78rem;
  font-weight: 630;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(18,89,214,.1);
}

/* Hero intelligence constellation */
.intelligence-stage {
  position: relative;
  min-width: 0;
  justify-self: end;
  width: min(620px, 42vw, 100%);
  aspect-ratio: 1;
  margin-top: -12px;
  border-radius: 50%;
  isolation: isolate;
}
#signal-canvas, .stage-grid, .stage-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
#signal-canvas { z-index: -1; }
.stage-grid {
  z-index: -3;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(23,95,213,.18) 1px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, black 0 44%, transparent 74%);
  mask-image: radial-gradient(circle, black 0 44%, transparent 74%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift { to { transform: rotate(8deg) scale(1.02); } }
.stage-ring {
  z-index: -2;
  margin: auto;
  border: 1px solid rgba(29, 104, 225, .18);
  border-radius: 50%;
}
.ring-one { inset: 16%; border-style: dashed; animation: spin 34s linear infinite; }
.ring-two { inset: 29%; border-color: rgba(29,104,225,.23); animation: spin-reverse 25s linear infinite; }
.ring-three { inset: 41%; border-color: rgba(29,104,225,.16); }
.ring-one::before, .ring-two::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  left: -4px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(47,124,255,.72);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
.stage-core {
  position: absolute;
  z-index: 3;
  inset: 31%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(49,119,232,.2);
  border-radius: 50%;
  box-shadow: 0 30px 90px rgba(5,47,111,.2), inset 0 0 0 10px rgba(255,255,255,.34);
  backdrop-filter: blur(17px);
}
.stage-core::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(18,89,214,.11);
  border-radius: inherit;
}
.stage-core picture {
  display: block;
  width: 76%;
  line-height: 0;
}
.stage-core img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 14px 19px rgba(2, 28, 65, .18));
}
.core-halo {
  position: absolute;
  inset: -28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55,130,255,.2), transparent 66%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.1); opacity: .72; } }
.core-caption {
  position: absolute;
  left: 50%;
  bottom: -41px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: #49617f;
  font-size: .64rem;
  font-weight: 770;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.core-caption span {
  width: 6px;
  height: 6px;
  background: #36d7b7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(54,215,183,.12);
}
.orbit-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #174b9d;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(24,90,194,.16);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(5,44,100,.13), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .35s var(--ease), color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.orbit-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.6), transparent 45%);
  pointer-events: none;
}
.orbit-node:hover, .orbit-node.active {
  color: white;
  background: linear-gradient(145deg, #0b2d63, #1260dc);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 20px 55px rgba(18,89,214,.28), 0 0 0 7px rgba(18,89,214,.08);
  transform: translateY(-6px) scale(1.04);
}
.node-icon { width: 39px; height: 39px; }
.node-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: #45617f;
  font-size: .63rem;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.orbit-node.active .node-label, .orbit-node:hover .node-label { color: var(--blue); }
.node-assist { left: 4%; top: 19%; }
.node-analyze { right: 6%; top: 18%; }
.node-understand { left: 1%; bottom: 21%; }
.node-automate { right: 2%; bottom: 21%; }
.node-coordinate { left: 50%; bottom: 1%; transform: translateX(-50%); }
.node-coordinate:hover, .node-coordinate.active { transform: translateX(-50%) translateY(-6px) scale(1.04); }
.stage-readout {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 330px;
  padding: 11px 15px 11px 11px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(18,89,214,.11);
  border-radius: 15px;
  box-shadow: 0 12px 40px rgba(7,43,95,.08);
  backdrop-filter: blur(12px);
}
.readout-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  font-size: .66rem;
  font-weight: 800;
}
.stage-readout > span:last-child { display: grid; }
.stage-readout strong { font-size: .76rem; letter-spacing: -.01em; }
.stage-readout small { color: var(--muted); font-size: .66rem; }
.signal-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(16,75,164,.08);
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(12px);
}
.signal-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: clamp(24px, 3vw, 52px);
  row-gap: 10px;
  width: 100%;
  max-width: 1120px;
  color: #365476;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  transform: none;
  animation: none;
}
.signal-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  white-space: nowrap;
}
.signal-item:not(:first-child)::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(18,89,214,.08);
}

/* Company intro */
.section-intro { padding: 95px 0; background: white; }
.intro-grid {
  display: grid;
  grid-template-columns: .55fr 1.4fr .65fr;
  gap: 55px;
  align-items: start;
}
.intro-copy h2 { max-width: 800px; font-size: clamp(3rem, 5.5vw, 6.2rem); }
.intro-copy p { max-width: 760px; font-size: 1.15rem; }
.intro-side { padding-top: 24px; border-top: 1px solid var(--line); }
.side-number {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 4.1rem;
  font-weight: 320;
  line-height: .8;
}
.intro-side p { font-size: .88rem; line-height: 1.65; }

/* Capability cards */
.capabilities-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(73,144,255,.1), transparent 24%),
    linear-gradient(180deg, #f0f6ff 0%, #f8fbff 100%);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .65fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 65px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 9px; font-size: 1rem; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card {
  position: relative;
  min-height: 430px;
  padding: 29px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(8,47,107,.1);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 45px rgba(5,44,100,.055);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  backdrop-filter: blur(12px);
}
.capability-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -105px;
  top: -110px;
  background: radial-gradient(circle, rgba(56,127,245,.15), transparent 67%);
  transition: transform .5s var(--ease), opacity .4s ease;
}
.capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(61,134,255,.12), transparent 40%);
  transition: opacity .25s ease;
  pointer-events: none;
}
.capability-card:hover {
  transform: translateY(-8px);
  border-color: rgba(18,89,214,.24);
  box-shadow: 0 26px 70px rgba(5,44,100,.12);
}
.capability-card:hover::after { opacity: 1; }
.capability-card:hover::before { transform: scale(1.2); }
.card-featured {
  grid-column: span 2;
  color: white;
  background: linear-gradient(145deg, #061c3f, #07306c 62%, #0a50b5);
  border-color: rgba(119,174,255,.28);
  box-shadow: 0 28px 70px rgba(4,30,70,.24);
}
.card-featured::before { background: radial-gradient(circle, rgba(92,171,255,.32), transparent 68%); }
.card-featured::after { background: radial-gradient(550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(114,197,255,.16), transparent 44%); }
.card-featured p { color: #b9cce8; max-width: 720px; }
.card-featured .card-topline, .card-featured .card-footer { color: #a9c4eb; }
.card-featured .card-status { color: #cce0ff; border-color: rgba(255,255,255,.14); }
.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  color: #7487a1;
  font-size: .69rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card-status { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }
.abstract-icon {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  margin-bottom: 34px;
  color: var(--blue);
}
.abstract-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(82,150,255,.13), rgba(255,255,255,.1));
  transform: rotate(8deg);
  transition: transform .45s var(--ease);
}
.capability-card:hover .abstract-icon::before { transform: rotate(-5deg) scale(1.05); }
.abstract-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.abstract-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon-agentic img { transform: scale(1.08); filter: drop-shadow(0 9px 17px rgba(22, 91, 205, .16)); animation: agentic-breathe 4.8s ease-in-out infinite; }
.capability-card:hover .icon-agentic img { animation-duration: 2.5s; }
@keyframes agentic-breathe { 0%, 100% { transform: scale(1.05) rotate(-1deg); } 50% { transform: scale(1.12) rotate(1deg); } }
.card-featured .abstract-icon { color: #7fc3ff; }
.card-featured .abstract-icon::before { background: linear-gradient(145deg, rgba(95,176,255,.2), rgba(255,255,255,.04)); }
.abstract-icon .ghost-path { opacity: .24; stroke-dasharray: 3 5; }
.abstract-icon .pulse-line { stroke-dasharray: 4 5; animation: dash 4s linear infinite; }
.abstract-icon .agent-core { fill: currentColor; stroke: none; filter: drop-shadow(0 0 8px currentColor); }
@keyframes dash { to { stroke-dashoffset: -36; } }
.capability-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
  font-weight: 650;
  line-height: 1.05;
}
.capability-card p { position: relative; z-index: 2; margin-bottom: 30px; font-size: .97rem; line-height: 1.65; }
.card-footer, .outcome-line {
  position: absolute;
  z-index: 2;
  left: 29px;
  right: 29px;
  bottom: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #71849d;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.outcome-line {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d0e1f8;
  border-color: rgba(255,255,255,.12);
  text-transform: none;
  letter-spacing: 0;
  font-size: .77rem;
}
.outcome-line span { color: #7fb5ff; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.outcome-line i { flex: 1; max-width: 36px; height: 1px; background: rgba(255,255,255,.2); }

/* Portal journey */
.portal-section {
  color: white;
  background:
    radial-gradient(circle at 83% 35%, rgba(29,97,216,.28), transparent 32%),
    linear-gradient(135deg, #03142f 0%, #041d42 54%, #06285a 100%);
  overflow: hidden;
}
.portal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(circle, rgba(139,190,255,.4) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 65%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 65%, transparent 100%);
}
.portal-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.portal-orb-one { width: 460px; height: 460px; right: -200px; top: -190px; border: 1px solid rgba(102,169,255,.16); box-shadow: inset 0 0 100px rgba(43,115,237,.09); }
.portal-orb-two { width: 240px; height: 240px; left: -130px; bottom: -90px; border: 1px solid rgba(102,169,255,.13); }
.portal-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; gap: 100px; align-items: center; }
.portal-copy h2 { max-width: 690px; }
.portal-copy h2 span { color: #7fb1ff; }
.portal-copy p { max-width: 610px; color: #aabbd3; font-size: 1.08rem; }
.journey { position: relative; display: grid; gap: 12px; padding-left: 35px; }
.journey-line { position: absolute; left: 8px; top: 36px; bottom: 36px; width: 1px; background: rgba(134,178,242,.19); }
.journey-line span { display: block; width: 1px; height: 8%; background: linear-gradient(#5ca0ff, #6de8ff); box-shadow: 0 0 14px rgba(80,155,255,.7); transition: height .5s var(--ease); }
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: center;
  gap: 18px;
  min-height: 113px;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(157,195,244,.11);
  border-radius: 18px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.journey-step:hover, .journey-step.active {
  transform: translateX(7px);
  background: rgba(47,124,255,.12);
  border-color: rgba(111,169,255,.28);
}
.step-index { color: #6da9ff; font-size: .7rem; font-weight: 820; letter-spacing: .13em; }
.step-copy { display: grid; gap: 5px; }
.step-copy strong { font-size: 1.02rem; letter-spacing: -.02em; }
.step-copy small { color: #9caec7; font-size: .78rem; line-height: 1.5; }
.step-mark { position: relative; width: 17px; height: 17px; border: 1px solid rgba(141,188,255,.35); border-radius: 50%; }
.step-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #6bb2ff; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.journey-step.active .step-mark::after { opacity: 1; transform: scale(1); box-shadow: 0 0 12px rgba(107,178,255,.8); }

/* Capability engine */
.engine-section { background: white; }
.engine-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 95px; align-items: center; }
.engine-visual { position: relative; }
.engine-visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background: radial-gradient(circle, rgba(70,142,255,.16), transparent 65%);
}
.engine-shell {
  position: relative;
  padding: 18px;
  background: linear-gradient(155deg, #071c3c, #0b326e);
  border: 1px solid rgba(126,178,255,.28);
  border-radius: 29px;
  box-shadow: 0 40px 100px rgba(4, 31, 72, .25);
  overflow: hidden;
}
.engine-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 13%, rgba(68,145,255,.28), transparent 29%),
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.engine-header, .engine-command, .engine-flow, .engine-audit { position: relative; z-index: 1; }
.engine-header {
  display: flex;
  justify-content: space-between;
  padding: 4px 5px 17px;
  color: #8097b9;
  font-size: .66rem;
  font-weight: 730;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.engine-live { display: inline-flex; align-items: center; gap: 8px; }
.engine-live i { width: 6px; height: 6px; background: #55e7c4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85,231,196,.11); }
.engine-command {
  display: flex;
  align-items: center;
  min-height: 118px;
  padding: 24px;
  color: white;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(157,196,255,.14);
  border-radius: 19px;
  font-size: 1.22rem;
  line-height: 1.45;
}
.command-prompt { margin-right: 13px; color: #65abff; font-size: 2rem; font-weight: 300; }
.command-cursor { width: 2px; height: 23px; margin-left: 5px; background: #70c9ff; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.engine-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.flow-node {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(144,187,249,.1);
  border-radius: 16px;
}
.flow-node.focus { background: linear-gradient(145deg, rgba(35,107,229,.34), rgba(67,154,255,.12)); border-color: rgba(115,178,255,.33); }
.flow-node span { color: #7d9ac1; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.flow-node strong { color: white; font-size: .78rem; line-height: 1.25; }
.flow-connector { display: flex; gap: 3px; }
.flow-connector i { width: 3px; height: 3px; background: #5da5ff; border-radius: 50%; animation: connector-pulse 1.5s ease-in-out infinite; }
.flow-connector i:nth-child(2) { animation-delay: .2s; }
.flow-connector i:nth-child(3) { animation-delay: .4s; }
@keyframes connector-pulse { 50% { opacity: .2; transform: scale(.6); } }
.engine-audit { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: #85a3c9; font-size: .61rem; }
.engine-audit span { display: inline-flex; align-items: center; gap: 7px; }
.engine-audit span::before { content: ""; width: 5px; height: 5px; background: #4fd7b8; border-radius: 50%; }
.engine-copy h2 { font-size: clamp(3.2rem, 5.3vw, 5.9rem); }
.engine-copy h2 span { color: var(--blue); }
.engine-copy > p { max-width: 650px; font-size: 1.04rem; }
.engine-tabs { margin-top: 36px; border-top: 1px solid var(--line); }
.engine-tab {
  display: grid;
  grid-template-columns: 32px 110px 1fr;
  gap: 16px;
  width: 100%;
  min-height: 81px;
  align-items: center;
  padding: 14px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .3s var(--ease), background .3s ease;
}
.engine-tab:hover, .engine-tab.active { padding-left: 13px; padding-right: 13px; background: rgba(41,112,224,.055); }
.engine-tab span { color: #8a9bb1; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.engine-tab strong { font-size: .91rem; }
.engine-tab small { color: var(--muted); font-size: .76rem; }
.engine-tab.active strong { color: var(--blue); }

/* Trust */
.trust-section {
  color: white;
  background: #03142f;
  overflow: hidden;
}
.trust-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 100%, rgba(42,118,239,.24), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(38,104,217,.18), transparent 29%);
}
.trust-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .55fr; gap: 80px; align-items: end; margin-bottom: 60px; }
.trust-heading h2 { max-width: 900px; margin: 0; }
.trust-heading p { color: #9bacc5; margin-bottom: 8px; }
.trust-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.trust-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  transition: background .3s ease;
}
.trust-card:hover { background: rgba(255,255,255,.035); }
.trust-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  bottom: -100px;
  border: 1px solid rgba(94,161,255,.14);
  border-radius: 50%;
  transition: transform .5s var(--ease);
}
.trust-card:hover::after { transform: scale(1.25); }
.trust-number { position: absolute; top: 28px; right: 28px; color: #627895; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.trust-symbol {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 35px 0 56px;
  border: 1px solid rgba(107,169,255,.3);
  border-radius: 22px;
  transform: rotate(45deg);
}
.trust-symbol span { position: absolute; inset: 17px; border: 1px solid #65a7ff; border-radius: 8px; }
.trust-symbol::before, .trust-symbol::after { content: ""; position: absolute; background: #6cb2ff; border-radius: 50%; box-shadow: 0 0 12px rgba(108,178,255,.7); }
.trust-symbol::before { width: 5px; height: 5px; left: -3px; top: 50%; }
.trust-symbol::after { width: 5px; height: 5px; right: -3px; top: 50%; }
.symbol-control { border-radius: 50%; }
.symbol-control span { border-radius: 50%; }
.symbol-trace { border-radius: 5px 30px 5px 30px; }
.symbol-deploy { transform: rotate(0); border-radius: 50% 50% 12px 12px; }
.trust-card h3 { margin-bottom: 17px; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.03em; }
.trust-card p { color: #95a8c2; font-size: .84rem; line-height: 1.7; }

/* Possibility */
.possibility-section { background: #f7faff; }
.possibility-shell {
  position: relative;
  min-height: 530px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  padding: 70px;
  color: white;
  background: linear-gradient(135deg, #061a3a, #0a3a7f 72%, #0f5dcc);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(4,37,86,.22);
  overflow: hidden;
}
.possibility-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(circle, rgba(129,185,255,.55) 1px, transparent 1px);
  background-size: 21px 21px;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, black 55%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 8%, black 55%, transparent 100%);
}
.possibility-copy { position: relative; z-index: 2; max-width: 720px; }
.possibility-copy h2 { font-size: clamp(3.4rem, 6vw, 6.5rem); }
.possibility-copy h2 span { color: #8bbaff; }
.possibility-copy p { max-width: 650px; color: #b5c6dd; font-size: 1.02rem; }
.possibility-orbit {
  position: relative;
  justify-self: center;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(140,189,255,.22);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.possibility-orbit::before, .possibility-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(140,189,255,.18); border-radius: 50%; }
.possibility-orbit::before { inset: 15%; }
.possibility-orbit::after { inset: 32%; }
.orbit-center {
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  animation: spin-reverse 30s linear infinite;
}
.orbit-center img { width: 70%; }
.satellite { position: absolute; width: 16px; height: 16px; background: #74b3ff; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 28px rgba(88,166,255,.8); }
.satellite-one { left: 12%; top: 17%; }
.satellite-two { right: -2%; top: 46%; width: 11px; height: 11px; }
.satellite-three { left: 30%; bottom: -1%; width: 12px; height: 12px; }
.satellite-four { left: 48%; top: 14%; width: 8px; height: 8px; }

/* Contact */
.contact-section { background: white; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.contact-copy h2 { font-size: clamp(3.2rem, 5.4vw, 5.7rem); }
.contact-copy > p { max-width: 590px; font-size: 1.05rem; }
.contact-note {
  max-width: 520px;
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding: 17px;
  color: #4e6787;
  background: var(--paper-2);
  border: 1px solid rgba(18,89,214,.11);
  border-radius: 14px;
  font-size: .78rem;
}
.contact-note span { color: var(--blue); }
.contact-form {
  padding: 34px;
  background: #f6f9fe;
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: var(--shadow-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 15px; }
.contact-form label > span { color: #334c6b; font-size: .7rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(8,46,101,.13);
  border-radius: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input { height: 52px; padding: 0 15px; }
.contact-form textarea { resize: vertical; min-height: 128px; padding: 14px 15px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(18,89,214,.55); box-shadow: 0 0 0 4px rgba(18,89,214,.08); }
.contact-form ::placeholder { color: #9aa9bc; }
.form-bottom { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.form-bottom p { max-width: 220px; margin: 0; font-size: .67rem; line-height: 1.45; }
.form-bottom p.success { color: #08745c; }

/* Footer */
.site-footer { padding: 68px 0 28px; color: white; background: #020f25; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 58px; border-bottom: 1px solid rgba(156,194,245,.12); }
.brand-footer { color: white; font-size: 1.35rem; }
.footer-brand p { margin: 14px 0 0; color: #7187a5; font-size: .66rem; font-weight: 760; letter-spacing: .22em; text-transform: uppercase; }
.footer-links { display: flex; gap: 100px; }
.footer-links > div { display: grid; gap: 10px; min-width: 130px; }
.footer-links strong { margin-bottom: 7px; color: #d9e7f8; font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a { color: #7f95b1; font-size: .78rem; transition: color .2s ease; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; color: #5e7391; font-size: .67rem; }

/* Story dialog */
.story-dialog {
  width: min(980px, calc(100vw - 34px));
  padding: 0;
  color: var(--ink);
  background: white;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 45px 130px rgba(0,17,42,.45);
  overflow: hidden;
}
.story-dialog::backdrop { background: rgba(1,12,30,.72); backdrop-filter: blur(8px); }
.story-dialog[open] { display: grid; grid-template-columns: .9fr 1.1fr; animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.dialog-close {
  position: absolute;
  z-index: 3;
  right: 15px;
  top: 15px;
  width: 38px;
  height: 38px;
  color: #4d6482;
  background: rgba(255,255,255,.83);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.dialog-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #051a3b, #0a438f);
  overflow: hidden;
}
.dialog-visual::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(circle, rgba(126,183,255,.7) 1px, transparent 1px); background-size: 18px 18px; }
.dialog-core { position: relative; z-index: 2; width: 150px; height: 150px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 80px rgba(57,139,255,.35); backdrop-filter: blur(12px); }
.dialog-core img { width: 75%; }
.dialog-intent, .dialog-outcome { position: absolute; z-index: 2; padding: 12px 15px; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font-size: .75rem; backdrop-filter: blur(8px); }
.dialog-intent { left: 24px; top: 50%; transform: translateY(-50%); }
.dialog-outcome { right: 24px; top: 50%; transform: translateY(-50%); }
.dialog-signal { position: absolute; z-index: 1; left: 22%; right: 22%; top: 50%; display: flex; justify-content: space-between; }
.dialog-signal i { width: 5px; height: 5px; background: #78bdff; border-radius: 50%; animation: connector-pulse 1.2s ease-in-out infinite; }
.dialog-copy { align-self: center; padding: 65px 55px; }
.dialog-copy h2 { font-size: clamp(2.5rem, 4.3vw, 4rem); }
.dialog-copy p { margin-bottom: 28px; }
.noscript { position: fixed; z-index: 999; left: 16px; right: 16px; bottom: 16px; padding: 13px; text-align: center; color: white; background: #7d2b21; border-radius: 12px; }

/* Reveal and focus */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(47,124,255,.5); outline-offset: 4px; }

/* Responsive */
@media (max-width: 1240px) {
  :root { --container: min(100% - 34px, 980px); }
  .hero { min-height: auto; padding-bottom: 160px; }
  .hero-grid { width: var(--container); grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding: 30px 0 10px; }
  .intelligence-stage { justify-self: center; width: min(650px, 82vw); margin-top: 0; }
  .intro-grid { grid-template-columns: .45fr 1.4fr; }
  .intro-side { grid-column: 2; display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 20px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: span 2; }
  .portal-grid, .engine-layout, .contact-grid { gap: 55px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .possibility-shell { padding: 55px; }
  .possibility-orbit { width: 290px; height: 290px; }
}

@media (max-width: 860px) {
  :root { --header-height: 70px; }
  .site-header { height: var(--header-height); }
  .brand img { width: 38px; height: 30px; }
  .menu-toggle {
    position: relative;
    z-index: 103;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255,255,255,.76);
    border: 1px solid var(--line);
    border-radius: 13px;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 102;
    display: grid;
    place-content: center;
    gap: 21px;
    text-align: center;
    background: rgba(247,250,255,.96);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav > a:not(.nav-cta) { font-size: 1.45rem; font-weight: 650; }
  .nav-cta { justify-self: center; margin-top: 15px; }
  .section { padding: 92px 0; }
  .section-heading, .trust-heading { grid-template-columns: 1fr; gap: 20px; }
  .portal-grid, .engine-layout, .contact-grid { grid-template-columns: 1fr; }
  .portal-copy { max-width: 720px; }
  .journey { margin-top: 30px; }
  .engine-visual { order: 2; }
  .trust-heading p { max-width: 650px; }
  .possibility-shell { grid-template-columns: 1fr; gap: 45px; }
  .possibility-orbit { justify-self: start; }
  .contact-form { padding: 25px; }
}

@media (max-width: 650px) {
  :root { --container: calc(100vw - 28px); }
  h2 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
  .hero { padding-top: calc(var(--header-height) + 48px); padding-bottom: 118px; }
  .hero-copy { padding-top: 20px; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 10px 17px; }
  .intelligence-stage { width: 100%; margin-top: 24px; }
  .stage-readout { top: -6%; transform: translateX(-50%) scale(.88); }
  .orbit-node { width: 59px; height: 59px; border-radius: 18px; }
  .node-icon { width: 31px; height: 31px; }
  .node-label { font-size: .5rem; }
  .node-assist { left: 0; }
  .node-analyze { right: 0; }
  .node-understand { left: -1%; }
  .node-automate { right: -1%; }
  .core-caption { display: none; }
  .signal-strip { min-height: 74px; padding: 13px 12px; }
  .signal-track { column-gap: 18px; row-gap: 8px; font-size: .66rem; letter-spacing: .13em; }
  .signal-item { gap: 18px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-grid .section-kicker { margin-bottom: 0; }
  .intro-side { grid-column: auto; grid-template-columns: 70px 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; }
  .capability-card { min-height: 430px; padding: 24px; }
  .card-footer, .outcome-line { left: 24px; right: 24px; }
  .outcome-line { flex-wrap: wrap; }
  .portal-grid { gap: 30px; }
  .journey { padding-left: 25px; }
  .journey-step { grid-template-columns: 38px 1fr 16px; gap: 10px; min-height: 118px; padding: 15px; }
  .engine-shell { padding: 12px; border-radius: 21px; }
  .engine-command { min-height: 105px; padding: 18px; font-size: .97rem; }
  .engine-flow { grid-template-columns: 1fr; }
  .flow-connector { justify-content: center; transform: rotate(90deg); }
  .flow-node { min-height: 78px; text-align: center; }
  .engine-audit { flex-direction: column; }
  .engine-tab { grid-template-columns: 26px 82px 1fr; gap: 9px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { min-height: 320px; }
  .possibility-shell { min-height: auto; padding: 38px 24px; border-radius: 24px; }
  .possibility-orbit { width: 235px; height: 235px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-bottom .button { width: 100%; }
  .form-bottom p { max-width: none; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { gap: 45px; }
  .story-dialog[open] { grid-template-columns: 1fr; }
  .dialog-visual { min-height: 280px; }
  .dialog-copy { padding: 38px 25px; }
  .dialog-intent { left: 12px; }
  .dialog-outcome { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .signal-track { animation: none; transform: none; }
}


/* Hero layout guard: the headline and visual use independent grid tracks,
   a wider hero container, and an earlier stacking breakpoint so they never overlap. */

/* --------------------------------------------------------------------------
   Hero composition refinement (v5)
   Keeps the full message and capability constellation inside the first
   desktop viewport, closes the horizontal gap, and prevents orbit clipping.
   -------------------------------------------------------------------------- */

/* The original shared width rule kept width:100% on inset rings. That made
   the circles overflow their stage. Let each ring size itself from its inset. */
.stage-ring {
  width: auto;
  height: auto;
}

@media (min-width: 1241px) {
  .hero {
    min-height: max(820px, 100svh);
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 72px;
  }

  .hero-grid {
    width: min(1540px, calc(100vw - clamp(56px, 7vw, 126px)));
    grid-template-columns: minmax(650px, .98fr) minmax(520px, 1.02fr);
    gap: clamp(12px, 1.2vw, 22px);
    align-items: center;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    max-width: 740px;
    margin-bottom: 20px;
    font-size: clamp(4.6rem, 5.25vw, 5.95rem);
    line-height: .95;
  }

  .hero-lead {
    max-width: 610px;
    margin-bottom: 12px;
    font-size: clamp(1.02rem, 1.15vw, 1.16rem);
    line-height: 1.55;
  }

  .hero-thesis {
    margin-bottom: 22px;
  }

  .hero-proof {
    gap: 16px;
    margin-top: 20px;
  }

  .intelligence-stage {
    justify-self: start;
    width: clamp(520px, 32vw, 575px);
    margin: 0 0 0 -18px;
  }

  .signal-strip {
    min-height: 70px;
  }

  .hero::after {
    bottom: 70px;
  }
}

/* Compact desktop/laptop view: everything remains visible at 768-900px tall. */
@media (min-width: 1241px) and (max-height: 900px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(650px, .98fr) minmax(500px, 1.02fr);
    gap: clamp(12px, 1.15vw, 20px);
  }

  .eyebrow {
    margin-bottom: 12px;
    padding: 6px 11px 6px 9px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(4.25rem, 4.75vw, 5.25rem);
    line-height: .93;
  }

  .hero-lead {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-thesis {
    margin-bottom: 18px;
    font-size: .94rem;
  }

  .hero-actions .button {
    min-height: 50px;
  }

  .hero-proof {
    margin-top: 15px;
  }

  .intelligence-stage {
    width: clamp(520px, 32vw, 575px);
    margin-left: -20px;
  }

  .signal-strip {
    min-height: 64px;
    padding-block: 12px;
  }

  .hero::after {
    bottom: 64px;
  }
}
@media (min-width: 1760px) {
  .intelligence-stage {
    margin-left: -58px;
  }
}


/* --------------------------------------------------------------------------
   Mobile headline stability (v6)
   Prevents mobile/landscape text inflation and keeps both headline lines
   readable without glyph or line collisions at every responsive width.
   -------------------------------------------------------------------------- */

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

.hero-title-line {
  display: block;
  max-width: 100%;
}

.hero-title-line + .hero-title-line {
  margin-top: .055em;
}

@media (max-width: 860px) {
  .hero h1 {
    max-width: 100%;
    margin-bottom: 25px;
    font-size: clamp(3.1rem, 7.9vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero-title-line + .hero-title-line {
    margin-top: .08em;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    font-size: clamp(3rem, 13.7vw, 3.75rem);
    line-height: 1.07;
    letter-spacing: -.022em;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(2.85rem, 13.5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.018em;
  }
}
