/* =========================================================
   Astira AI Cortex — stylesheet
   Dark concept site. Typography: Playfair Display + Lato
   (self-hosted, see css/fonts.css).
   ========================================================= */

:root {
  --bg: #070915;
  --bg-2: #0a0e1d;
  --bg-3: #0d1322;
  --card: #121a2c;
  --card-2: #171f30;
  --line: rgba(142, 160, 220, .16);
  --line-strong: rgba(142, 160, 220, .32);
  --text: #f3f5fb;
  --text-soft: #c7cde0;
  --text-muted: #9aa4bf;
  --teal: #5fd3c8;
  --blue: #5b8def;
  --purple: #8b6fe8;
  --coral: #e8a07a;
  --photo-bg: #141c30;
  --panel-bg: rgba(14, 20, 36, .97);
  --panel-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --grad: linear-gradient(90deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
  --grad-btn: linear-gradient(90deg, #5fd3c8 0%, #5b8def 100%);
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: identical to the main Astira site (astira-website/css/main.css) */
  --fs-xs: 12px;                        /* eyebrows, uppercase labels, captions */
  --fs-sm: 14px;                        /* meta, notes, navigation */
  --fs-md: 16px;                        /* body copy, lists, buttons */
  --fs-lg: 18px;                        /* lead / intro copy */
  --fs-h4: clamp(20px, 1.5vw, 22px);    /* card and list titles */
  --fs-h3: clamp(22px, 1.8vw, 26px);    /* sub-headings */
  --fs-h2s: clamp(28px, 2.6vw, 36px);   /* section headings (compact) */
  --fs-h2: clamp(32px, 3.2vw, 46px);    /* section headings */
  --fs-h1: clamp(36px, 3.7vw, 52px);    /* page titles */
  --fs-stat: clamp(56px, 5.6vw, 80px);  /* big numbers */

  --container: 1246px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 92px;
  --radius: 14px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-md); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.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; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: #06202a; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-soft); }
.muted { color: var(--text-muted); }
.tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 7.5vw, 116px); }
.section--divider { border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.two-col__intro { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.two-col__intro h2 { margin-top: 26px; max-width: 9em; }
.two-col__intro .link-more { margin-top: auto; padding-top: 48px; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col__intro .link-more { padding-top: 24px; order: 3; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: var(--fs-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-grad { background: var(--grad-btn); color: #06202a; box-shadow: 0 10px 30px rgba(91,141,239,.25); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(91,141,239,.35); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(142,160,220,.6); background: rgba(255,255,255,.05); }
.btn-pill-sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-sm); font-weight: 400; border: 1px solid rgba(95,211,200,.28); background: #2c6b74; color: #fff; }
.btn-pill-sm:hover { background: #357d87; }
.link-more {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  font-size: var(--fs-md); font-weight: 700; color: var(--text-soft); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); min-width: 250px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-more .icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .25s var(--ease); }
.link-more:hover { color: var(--text); border-color: var(--teal); }
.link-more:hover .icon { transform: translateX(3px); }
.link-caps { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.link-caps .icon { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .25s var(--ease); }
.link-caps:hover { color: var(--teal); }
.link-caps:hover .icon { transform: translateX(3px); }
.icon { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); border-bottom: 1px solid rgba(142,160,220,.1); background: linear-gradient(180deg, rgba(7,9,21,.75), rgba(7,9,21,0)); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* The AI Cortex logo (astira-graphic-standards-v1): its star and wordmark are drawn at exactly the size of
   the main site's logo (54 px tall there for the Capital Partners lockup = 57 px for this slightly taller
   lockup). White wordmark on dark, two-colour on light. */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 57px; width: auto; max-width: none; }
.logo-on-light { display: none; }
[data-theme="light"] .logo-on-dark { display: none; }
[data-theme="light"] .logo-on-light { display: block; }
.brand-pill { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(95,211,200,.45); padding: 5px 9px; border-radius: 4px; background: rgba(95,211,200,.06); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: var(--fs-sm); color: var(--text-soft); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"], .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); }
.nav-toggle .icon { width: 20px; height: 20px; }
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: rgba(7,9,21,.98); padding: 24px var(--gutter); display: none; flex-direction: column; }
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--nav-h) - 24px); }
.mobile-menu__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.mobile-menu__close .icon { width: 20px; height: 20px; }
.mobile-menu__links { display: grid; gap: 6px; margin-top: 32px; font-family: var(--serif); font-size: var(--fs-h2s); }
.mobile-menu__links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__actions { margin-top: auto; display: grid; gap: 12px; padding-bottom: 24px; }
body.menu-open { overflow: hidden; }
/* the logo is wide: the back button steps aside first, then the section links move into the menu (as on the main site) */
@media (max-width: 1240px) { .nav__right .btn-pill-sm { display: none; } }
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --nav-h: 76px; }
  .brand img { height: min(47px, calc((100vw - 2 * var(--gutter) - 64px) * .1675)); }   /* 44 px on the main site */
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  min-height: clamp(640px, 52.8vw, 800px); padding: calc(var(--nav-h) + clamp(48px, 6vw, 88px)) 0 clamp(96px, 12vw, 180px);
  display: flex; align-items: center;
  /* the hero's blue glow now sits on the page background, beneath the neuron layer (see .neuro-bg) */
}
/* Hero lines: drawn live by js/lines.js on this canvas, behind the hero copy. Each page has its own
   ribbon of lines (data-wave); the soft glow the designer's canvas painted under it is a CSS gradient
   here, so the light travelling along the lines never lights the sky. */
.hero__lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.page-index .hero__lines {
  background: radial-gradient(36% 73% at 64% 83%, rgba(99,95,212,.15), rgba(99,95,212,.11) 45%, rgba(99,95,212,0) 100%) no-repeat;
}
.hero--sub .hero__lines {
  background:
    radial-gradient(32% 85% at 14% 81%, rgba(103,111,233,.13), rgba(103,111,233,.08) 45%, rgba(103,111,233,0) 100%) no-repeat,
    radial-gradient(30% 70% at 86% 86%, rgba(139,111,232,.08), rgba(139,111,232,0) 100%) no-repeat;
}
@media (max-width: 760px) {
  .page-index .hero__lines { background: radial-gradient(45% 22% at 64% 79%, rgba(79,70,164,.12), rgba(79,70,164,0) 100%) no-repeat; }
  .hero--sub .hero__lines { background: radial-gradient(40% 28% at 14% 79%, rgba(98,90,206,.12), rgba(98,90,206,0) 100%) no-repeat; }
}
.hero__glow { position: absolute; z-index: -1; inset: auto 0 -40% 0; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(91,141,239,.22), rgba(7,9,21,0) 70%); pointer-events: none; }
.hero .container { position: relative; }
.hero .eyebrow { justify-content: center; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12,18,36,.6); backdrop-filter: blur(6px); }
.hero h1 { margin-top: 28px; line-height: 1.14; }
.hero .lead { margin: 24px auto 0; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
/* phones: centred, with the two buttons stacked full width, as in the latest Figma phone frames */
@media (max-width: 760px) {
  .hero .hero__actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero .hero__actions .btn { width: min(100%, 280px); justify-content: center; }
}

/* ---------- Decorative arcs ---------- */
.arcs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.arcs svg { position: absolute; width: 1600px; height: 1600px; opacity: .9; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; padding: 28px 28px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(27,36,58,.9) 0%, rgba(14,20,36,.95) 100%);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.35);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden; min-height: 230px;
}
.card::before { content: ""; position: absolute; top: 0; left: 24px; width: 64px; height: 2px; background: var(--grad); border-radius: 2px; opacity: .9; }
.card:hover { transform: translateY(-3px); border-color: rgba(142,160,220,.35); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.card__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(95,211,200,.35); background: radial-gradient(circle at 50% 50%, rgba(95,211,200,.14), rgba(95,211,200,0) 70%); color: #9fe6de; box-shadow: 0 0 24px rgba(95,211,200,.18); }
.card__icon .icon { width: 22px; height: 22px; }
.card h3 { margin-top: 26px; font-size: var(--fs-h4); }
.card p { margin-top: 12px; font-size: var(--fs-md); line-height: 1.6; color: var(--text-soft); }
.card--underline::before { display: none; }
.card--underline::after { content: ""; position: absolute; left: 28px; bottom: 26px; width: 44px; height: 2px; background: var(--grad); border-radius: 2px; }
.card--underline { padding-bottom: 54px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: linear-gradient(90deg, rgba(95,211,200,.5), rgba(91,141,239,.5), rgba(139,111,232,.5)); }
.step { position: relative; }
.step__icon { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #8fd8e2; border: 1px solid rgba(91,141,239,.55); background: radial-gradient(circle at 50% 40%, #1b2d55 0%, #0e1730 70%); box-shadow: 0 0 0 6px rgba(7,9,21,1), 0 0 30px rgba(91,141,239,.25); }
.step__icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
/* the icons follow the line's colour: teal -> blue -> violet, then the accent on the last step */
.step:nth-child(1) .step__icon { color: #7fe0d6; } .step:nth-child(2) .step__icon { color: #86c2f2; } .step:nth-child(3) .step__icon { color: #a3aef8; }
.step--accent .step__icon { color: #f2b896; border-color: rgba(232,160,122,.75); box-shadow: 0 0 0 6px rgba(7,9,21,1), 0 0 30px rgba(232,160,122,.3); }
.step h3 { margin-top: 36px; font-size: var(--fs-h3); }
.step .tag { display: block; margin-top: 10px; }
.step p { margin-top: 12px; font-size: var(--fs-md); line-height: 1.6; color: var(--text-soft); max-width: 26ch; }
.steps + .link-more { margin-top: 44px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Assets ---------- */
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.asset { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(27,36,58,.9), rgba(14,20,36,.95)); box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: transform .35s var(--ease), border-color .35s var(--ease); display: flex; flex-direction: column; }
.asset::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .85; z-index: 1; }
.asset:hover { transform: translateY(-3px); border-color: rgba(142,160,220,.35); }
.asset__media { position: relative; aspect-ratio: 400 / 185; overflow: hidden; }
.asset__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .6s var(--ease); }
.asset:hover .asset__media img { transform: scale(1.04); }
.asset__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,21,0) 40%, rgba(14,20,36,.95) 100%); }
.asset__body { padding: 6px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.asset h3 { font-size: var(--fs-h3); }
.asset .tag { display: block; margin-top: 10px; }
.asset p { margin-top: 14px; font-size: var(--fs-md); line-height: 1.6; color: var(--text-soft); }
.asset .link-caps { margin-top: auto; padding-top: 22px; }
.assets + .link-more { margin-top: 36px; }
@media (max-width: 900px) { .assets { grid-template-columns: 1fr; } .asset__media { aspect-ratio: 16 / 7; } }

/* ---------- Contact CTA ---------- */
.cta { position: relative; isolation: isolate; text-align: center; padding: clamp(72px, 8vw, 112px) 0 clamp(80px, 9vw, 128px); overflow: hidden; }
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 60%, rgba(91,141,239,.18), rgba(7,9,21,0) 70%); }
.cta h2 { margin: 28px auto 0; font-size: var(--fs-h2); max-width: 16em; }
.cta .lead { margin: 18px auto 0; max-width: 620px; }
.cta .lead:empty { display: none; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #05070f; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.site-footer .brand img { height: 53px; }   /* 50 px on the main site */
.footer-tagline { margin-top: 24px; font-size: var(--fs-md); color: var(--text-soft); }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); justify-content: end; gap: 14px 64px; font-size: var(--fs-md); color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }
.footer-back .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.btn .icon, .link-more .icon, .link-caps .icon { display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } .footer-links { justify-content: start; gap: 14px 40px; } .site-footer .brand img { height: min(53px, calc((100vw - 2 * var(--gutter)) * .1675)); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card, .asset, .btn, .asset__media img { transition: none; } }


/* =========================================================
   Revised design (Oct 2026): neural page background, sub-pages
   ========================================================= */
/* Living neuron layer (js/neurons.js): fixed behind every page, content scrolls over it.
   100lvh keeps it steady while a phone's address bar slides in and out. */
.neuro-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.neuro-bg canvas { display: block; width: 100%; height: 100%; }
main, .site-footer { position: relative; z-index: 1; }
/* The hero's blue glow lives on the page background so the neurons fire on top of it, as on the portal sign-in page */
body.neural { background: radial-gradient(60vw 450px at 50% 150px, rgba(28,44,92,.55) 0%, rgba(7,9,21,0) 70%) no-repeat, var(--bg); }
/* Overview, as in the latest Figma: a dark top, teal haze low on the left (where the wave enters),
   violet haze right of centre. Still beneath the neuron layer. */
body.neural.page-index { background:
  radial-gradient(40vw 340px at 6% 500px, rgba(40,140,150,.24), rgba(7,9,21,0) 72%) no-repeat,
  radial-gradient(52vw 330px at 76% 440px, rgba(80,70,200,.18), rgba(7,9,21,0) 72%) no-repeat,
  var(--bg); }
.page-index .hero__glow { display: none; }
@media (max-width: 760px) {
  body.neural.page-index { background:
    radial-gradient(70vw 230px at 8% 650px, rgba(40,140,150,.2), rgba(7,9,21,0) 70%) no-repeat,
    radial-gradient(80vw 280px at 88% 520px, rgba(80,70,200,.16), rgba(7,9,21,0) 70%) no-repeat,
    var(--bg); }
}
.site-header { background: linear-gradient(180deg, rgba(7,9,21,.85), rgba(7,9,21,0)); }
.eyebrow--pill { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12,18,36,.6); }
.eyebrow--dot { display: inline-flex; }
.mt { margin-top: 26px; } .mt-sm { margin-top: 16px; } .mt-lg { margin-top: clamp(40px, 5vw, 64px); }
h2 .grad, h1 .grad { font-weight: 400; }
.subhead { font-size: var(--fs-h3); margin-top: clamp(32px, 4vw, 48px); }
.subhead + .muted.small { margin-top: 6px; margin-bottom: 16px; }
.small { font-size: var(--fs-sm); }
.caption { margin-top: 18px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* Sub-page hero: shorter, no pill */
/* Figma: 1440 x 560 with the copy centred below the nav; the lines' design box (0.389 x the width) fills it */
.hero--sub { min-height: clamp(480px, 38.9vw, 600px); padding-bottom: clamp(40px, 3.4vw, 56px); }
@media (max-width: 760px) {
  /* phone frames in Figma: Overview hero 390 x 781, sub-page heroes 390 x 530, scaled with the screen
     so each page's lines sit in the hero the same way */
  .hero:not(.hero--sub) { min-height: 200vw; align-items: flex-start; padding-top: calc(var(--nav-h) + 72px); }
  .hero--sub { min-height: 135.7vw; padding-bottom: 48px; }
}
.hero--sub h1 { margin-top: 0; font-size: var(--fs-h1); }
.hero--sub .lead { max-width: 640px; }
.hero__actions--left { justify-content: flex-start; margin-top: 26px; }

/* "On this page" bar in the Assets hero: jumps to the platform, the models and the modules */
.jumpbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.jumpbar a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.02);
  color: var(--text-soft); font-size: var(--fs-sm);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.jumpbar a:hover { border-color: rgba(95,211,200,.55); color: var(--text); background: rgba(255,255,255,.05); }
.jumpbar__arrow { width: 14px; height: 14px; transform: rotate(90deg); color: var(--teal); }
[data-theme="light"] .jumpbar a { background: rgba(255,255,255,.65); }
[data-theme="light"] .jumpbar a:hover { border-color: rgba(0,126,123,.5); background: #fff; }
@media (max-width: 760px) { .jumpbar { gap: 8px; margin-top: 22px; } .jumpbar a { min-height: 36px; padding: 0 13px; } }

/* Card variants */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card--sub { min-height: 0; padding: 30px 30px 32px; }
.card--sub::before { display: none; }
.card--sub h3 { margin-top: 0; font-size: var(--fs-h4); }
.card--sub .tag { display: block; margin-top: 8px; }
.card--sub p { margin-top: 12px; }
.card--sub .link-caps { margin-top: 16px; }
/* cards whose link sits at the foot: links line up across a row */
.card--foot { display: flex; flex-direction: column; }
.card--foot .link-caps { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.card--slim { min-height: 0; padding: 26px 30px 28px; }
.card--slim::before { display: none; }
.card--slim h3 { margin-top: 0; font-size: var(--fs-h4); }
.card--slim p { margin-top: 8px; font-size: var(--fs-md); }
.card--wide { grid-column: 1 / -1; }
.card--note { min-height: 0; padding: 18px 24px; margin-top: 20px; }
.card--note::before { display: none; }
.card--note p { margin: 0; font-size: var(--fs-md); }
.card--row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tag--accent { color: #8fb4ff; }
.dot-sep { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: .8; margin: 10px 0 2px; }
.banner-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px); aspect-ratio: 1246 / 230; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); }
.frame { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(14,20,36,.4); }
.frame .cards { gap: 14px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.strip__item { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(27,36,58,.9), rgba(14,20,36,.95)); display: grid; gap: 4px; }
.strip__item strong { font-family: var(--serif); font-weight: 400; font-size: var(--fs-lg); }
.strip__item span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li { font-size: var(--fs-xs); padding: 7px 11px; border-radius: 6px; background: rgba(95,211,200,.1); border: 1px solid rgba(95,211,200,.25); color: var(--text-soft); }
.bullets { display: grid; gap: 8px; margin-top: 12px; font-size: var(--fs-md); color: var(--text-soft); }
.bullets li { padding-left: 16px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-soft); }

/* Steps with descriptions (How it works) */
.steps--detail .step p { max-width: none; }
.steps--detail .step h3 { margin-top: 30px; }
#phases .lead { margin-top: 14px; }

/* Phase tabs */
.phase-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.phase-tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14,20,36,.6); color: var(--text-soft); transition: background .25s var(--ease), border-color .25s var(--ease); }
.phase-tab strong { display: block; font-size: var(--fs-md); color: var(--text); }
.phase-tab small { display: block; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.phase-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex: none; }
.phase-tab[aria-selected="true"] { background: linear-gradient(90deg, rgba(95,211,200,.22), rgba(91,141,239,.18)); border-color: rgba(95,211,200,.5); }
.phase-tab[aria-selected="true"] .phase-tab__dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.phase-panel[hidden] { display: none; }
.phase-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 14px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(14,20,36,.6); }
.phase-panel p { font-size: var(--fs-md); color: var(--text-soft); }
.chip-entry { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.chip-entry .icon { width: 14px; height: 14px; }
@media (max-width: 760px) { .phase-tabs { grid-template-columns: 1fr; } .phase-panel { grid-template-columns: 1fr; } }

/* People cards (Our approach): the main site's format — square photo, name, title.
   One grid: the Astira team first, then the AI partners from a fresh row (.person--row-start).
   Photos stay greyscale until hovered, focused or tapped. The details (role in Astira AI Cortex,
   or a partner's background) open in a panel beside the photo on hover, click, tap or Enter, so the
   face stays in view (to the left for cards near the right edge: .person--flip, set by js/cortex.js).
   On phones they open underneath the card instead, and a photo turns colour as it scrolls past
   the middle of the screen. */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.person { position: relative; }
.person--row-start { grid-column-start: 1; }
.person__photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--photo-bg); display: grid; place-items: center; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) brightness(.9); transition: filter .5s var(--ease), transform .7s var(--ease); }
.photo-to-come { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); border: 1px dashed var(--line-strong); padding: 10px 12px; text-align: center; line-height: 1.5; }
.person__name { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.25; }
.person__name .icon { width: 16px; height: 16px; flex: none; color: var(--text-muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.person__title { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-muted); }
.person__more {
  position: absolute; z-index: 4; top: 0; left: calc(100% + 14px); width: 100%; min-width: 240px;
  pointer-events: none; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.person--flip .person__more { left: auto; right: calc(100% + 14px); transform: translateX(8px); }
.person__more-inner {
  position: relative; padding: 18px 20px 20px; border-radius: var(--radius);
  background: var(--panel-bg); border: 1px solid var(--line-strong); box-shadow: var(--panel-shadow);
}
.person__more-inner::before {   /* the little pointer towards the photo */
  content: ""; position: absolute; top: 26px; left: -7px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--panel-bg); border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.person--flip .person__more-inner::before { left: auto; right: -7px; transform: rotate(-135deg); }
.person__more .tag { display: block; }
.person__more p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.6; color: var(--text); }
.person__btn { position: absolute; inset: 0; z-index: 2; width: 100%; border-radius: var(--radius); cursor: pointer; }
.person__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.person.is-open, .person:has(.person__btn:focus-visible) { z-index: 5; }
.person.is-open .person__photo img, .person.in-view .person__photo img { filter: none; }
.person.is-open .person__more { opacity: 1; transform: none; }
.person.is-open .person__name .icon { transform: rotate(45deg); color: var(--teal); }
.person:has(.person__btn:focus-visible) .person__photo img { filter: none; }
.person:has(.person__btn:focus-visible) .person__more { opacity: 1; transform: none; }
@media (hover: hover) {
  .person:hover { z-index: 5; }
  .person:hover .person__photo img { filter: none; transform: scale(1.03); }
  .person:hover .person__more { opacity: 1; transform: none; }
  .person:hover .person__name .icon { transform: rotate(45deg); color: var(--teal); }
}
@media (max-width: 1024px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .person__more, .person--flip .person__more { position: static; width: auto; min-width: 0; display: none; opacity: 1; transform: none; transition: none; }
  .person__more-inner { padding: 10px 0 0; background: none; border: 0; box-shadow: none; }
  .person__more-inner::before { display: none; }
  .person.is-open .person__more { display: block; }
}
@media (prefers-reduced-motion: reduce) { .person__photo img, .person__more, .person__name .icon { transition: none; } .person:hover .person__photo img { transform: none; } }

/* SLM cards */
.slm { position: relative; padding: 30px 30px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(27,36,58,.9), rgba(14,20,36,.95)); }
.slm h3.mono { font-size: var(--fs-h4); }
.slm .tag { display: block; margin-top: 8px; }
.slm p { margin-top: 12px; font-size: var(--fs-md); color: var(--text-soft); }
.slm .tag + .chips { margin-top: 8px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.specs > div { padding: 10px 12px; border-radius: 8px; background: rgba(7,9,21,.5); border: 1px solid var(--line); }
.specs dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.specs dd { margin: 4px 0 0; font-size: var(--fs-md); color: var(--text); }
.module .powered { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.module .powered code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(95,211,200,.35); color: #9fe6de; }
.module-group { margin-top: clamp(28px, 3.5vw, 44px); }
.module-group:first-of-type { margin-top: 0; }
/* status labels on models and modules, as on the Cortex portal: Live, Beta, Coming soon (dimmed) */
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.mod-head h3, .card--slim .mod-head h3 { flex: 1 1 auto; min-width: 0; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-top: 2px; padding: 4px 10px 4px 9px; border-radius: 999px; border: 1px solid; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: #6fe0d3; border-color: rgba(95,211,200,.4); background: rgba(95,211,200,.08); }
.status--beta { color: #f0c878; border-color: rgba(240,200,120,.42); background: rgba(240,200,120,.08); }
.status--soon { color: var(--text-muted); border-color: var(--line); background: rgba(255,255,255,.02); }
.is-soon > * { opacity: .58; }
.module__btn, .module__plus { display: none; }
.zone__btn, .zone__plus, .zone-detail { display: none; }   /* phones only: see the block at the end of the file */
.slm__btn, .slm__plus { display: none; }
.slm__more > .tag { margin-top: 16px; }
.slm h3.mono { white-space: nowrap; }
.slm .mod-head { flex-wrap: wrap; gap: 8px 14px; }
#models .lead { margin-top: 14px; max-width: 760px; }

/* Screenshot placeholders (Contact) */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(27,36,58,.9), rgba(14,20,36,.95)); }
.shot__img { aspect-ratio: 16 / 7; display: grid; place-items: center; background: radial-gradient(60% 80% at 50% 50%, rgba(28,44,92,.5), rgba(7,9,21,.6)); border-bottom: 1px solid var(--line); }
.shot__ph { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.shot__ph .icon { width: 16px; height: 16px; }
.shot figcaption { padding: 18px 22px 22px; }
.shot h3 { font-size: var(--fs-h4); }
.shot p { margin-top: 8px; font-size: var(--fs-md); color: var(--text-soft); }

/* "See Astira AI Cortex at work" (Contact): one portal screen per row, alternating sides; click to enlarge */
#work-title + .lead { margin-top: 14px; max-width: 640px; }
.features { display: grid; gap: clamp(56px, 7vw, 104px); margin-top: clamp(36px, 4.5vw, 60px); }
.section--screens { padding-top: clamp(32px, 3.5vw, 56px); }   /* Demo: the hero introduces the screens */
.section--screens .features { margin-top: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.feature:nth-child(even) .feature__shot { order: 2; }
.feature__shot { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(124,150,214,.22); background: #05070f;
  box-shadow: 0 34px 80px -34px rgba(0,0,0,.85), 0 0 70px -24px rgba(91,141,239,.45); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.feature__shot img { display: block; width: 100%; height: auto; }
.feature__shot:hover { transform: translateY(-4px); border-color: rgba(95,211,200,.4); box-shadow: 0 40px 90px -34px rgba(0,0,0,.9), 0 0 90px -20px rgba(95,211,200,.45); }
.feature__shot:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.feature__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,9,21,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #dfe6f5; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.feature__zoom .icon { width: 14px; height: 14px; stroke-width: 2; }
.feature__shot:hover .feature__zoom, .feature__shot:focus-visible .feature__zoom { opacity: 1; transform: none; }
@media (hover: none) { .feature__zoom { opacity: 1; transform: none; } }
.feature__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.feature__meta .status { margin-top: 0; }
.feature__text h3 { margin-top: 18px; font-size: var(--fs-h3); }
.feature__text .tag--accent { display: block; margin-top: 8px; }
.feature__text p { margin-top: 16px; font-size: var(--fs-md); line-height: 1.65; color: var(--text-soft); }
.feature__text .bullets { margin-top: 18px; }
@media (max-width: 900px) { .feature, .feature:nth-child(even) { grid-template-columns: 1fr; } .feature:nth-child(even) .feature__shot { order: 0; } }
@media (prefers-reduced-motion: reduce) { .feature__shot, .feature__zoom { transition: none; } .feature__shot:hover { transform: none; } }

/* lightbox for the screens (a native <dialog>; Esc, the close button or a click outside closes it) */
.lightbox { width: auto; max-width: min(1680px, 94vw); max-height: 94vh; padding: 0; border: 1px solid rgba(124,150,214,.25); border-radius: 14px; background: #05070f; color: #e7ecf7; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.lightbox::backdrop { background: rgba(3,5,12,.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 58px); margin: 0 auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-top: 1px solid rgba(124,150,214,.18); }
.lightbox__cap { margin: 0; font-size: var(--fs-sm); color: #b9c3d9; }
.lightbox__close { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #e7ecf7; cursor: pointer; }
.lightbox__close:hover { border-color: var(--teal); color: var(--teal); }
.lightbox__close .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
.two-col--even { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
address { font-style: normal; }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .shots, .cards--3, .strip { grid-template-columns: 1fr; } .cards--2 { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr 1fr; } }
/* Tablets: the platform diagram keeps its 3 x 2 zones over a row of four (phones: the block at the end) */
@media (min-width: 761px) and (max-width: 900px) {
  #platform .frame .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #platform .frame .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  #platform .frame { padding: 14px; }
  #platform .zone { padding: 20px 18px 22px; }
  #platform .zone h3 { font-size: var(--fs-lg); }
  #platform .zone p { font-size: var(--fs-sm); line-height: 1.55; }
  #platform .strip__item { padding: 12px 12px; }
}


/* =========================================================
   Light / dark switch (bottom right, as on the astiracortex.ai portal)
   and the light theme. The choice is set on <html data-theme> before the
   first paint and remembered in the browser (js/cortex.js).
   ========================================================= */
.theme-switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--switch-bg); border: 1px solid var(--line-strong);
  box-shadow: var(--switch-shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.theme-switch:hover { border-color: var(--teal); transform: translateY(-1px); }
.theme-switch svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.theme-switch circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-switch path { fill: currentColor; }
[data-theme="light"] .theme-switch svg { transform: rotate(180deg); }
@media (max-width: 760px) { .theme-switch { right: 14px; bottom: 14px; } }
@media print { .theme-switch { display: none; } }
:root { --switch-bg: rgba(12, 18, 36, .72); --switch-shadow: 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark; }

/* ---------- light theme: palette from the AI Cortex logo's light spectrum ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4fb;
  --bg-2: #e9eef8;
  --bg-3: #e2e8f5;
  --card: #ffffff;
  --card-2: #f6f8fd;
  --line: rgba(0, 30, 107, .13);
  --line-strong: rgba(0, 30, 107, .24);
  --text: #09162f;
  --text-soft: #2c374b;
  --text-muted: #556077;
  --teal: #007e7b;
  --blue: #2563c4;
  --purple: #6240b7;
  --coral: #c8642c;
  --grad: linear-gradient(90deg, #007e7b 0%, #2563c4 52%, #6240b7 100%);
  --grad-btn: linear-gradient(90deg, #007e7b 0%, #2563c4 100%);
  --photo-bg: #dfe5f2;
  --panel-bg: rgba(255, 255, 255, .98);
  --panel-shadow: 0 18px 40px rgba(0, 30, 107, .16);
  --switch-bg: rgba(255, 255, 255, .85);
  --switch-shadow: 0 8px 22px rgba(0, 30, 107, .16);
}
[data-theme="light"] body.neural { background: radial-gradient(60vw 450px at 50% 150px, rgba(37,99,196,.10) 0%, rgba(241,244,251,0) 70%) no-repeat, var(--bg); }
[data-theme="light"] body.neural.page-index { background:
  radial-gradient(40vw 340px at 6% 500px, rgba(0,126,123,.12), rgba(241,244,251,0) 72%) no-repeat,
  radial-gradient(52vw 330px at 76% 440px, rgba(98,64,183,.10), rgba(241,244,251,0) 72%) no-repeat,
  var(--bg); }
@media (max-width: 760px) {
  [data-theme="light"] body.neural.page-index { background:
    radial-gradient(70vw 230px at 8% 650px, rgba(0,126,123,.11), rgba(241,244,251,0) 70%) no-repeat,
    radial-gradient(80vw 280px at 88% 520px, rgba(98,64,183,.09), rgba(241,244,251,0) 70%) no-repeat,
    var(--bg); }
}
[data-theme="light"] .site-header { border-bottom-color: rgba(0,30,107,.10); background: linear-gradient(180deg, rgba(241,244,251,.94), rgba(241,244,251,0)); }
[data-theme="light"] .mobile-menu { background: rgba(241,244,251,.98); }
[data-theme="light"] .btn-grad { color: #f4f8ff; box-shadow: 0 10px 28px rgba(37,99,196,.22); }
[data-theme="light"] .btn-grad:hover { box-shadow: 0 14px 34px rgba(37,99,196,.30); }
[data-theme="light"] .btn-ghost { background: rgba(255,255,255,.65); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(0,30,107,.42); background: #fff; }
[data-theme="light"] .btn-pill-sm { border-color: transparent; background: #007178; }
[data-theme="light"] .btn-pill-sm:hover { background: #0a5f66; }
[data-theme="light"] .hero .eyebrow, [data-theme="light"] .eyebrow--pill { background: rgba(255,255,255,.72); }
[data-theme="light"] .hero__glow { background: radial-gradient(50% 50% at 50% 50%, rgba(37,99,196,.10), rgba(241,244,251,0) 70%); }
[data-theme="light"] .page-index .hero__lines { background: radial-gradient(36% 73% at 64% 83%, rgba(98,64,183,.08), rgba(98,64,183,0) 100%) no-repeat; }
[data-theme="light"] .hero--sub .hero__lines { background: radial-gradient(32% 85% at 14% 81%, rgba(37,99,196,.07), rgba(37,99,196,0) 100%) no-repeat; }
[data-theme="light"] .card, [data-theme="light"] .asset, [data-theme="light"] .slm, [data-theme="light"] .shot, [data-theme="light"] .strip__item {
  background: linear-gradient(160deg, #ffffff 0%, #f5f7fd 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 44px rgba(0,30,107,.08);
}
[data-theme="light"] .card:hover { border-color: rgba(0,30,107,.26); box-shadow: 0 24px 54px rgba(0,30,107,.12); }
[data-theme="light"] .asset:hover { border-color: rgba(0,30,107,.26); }
[data-theme="light"] .card__icon { border-color: rgba(0,126,123,.35); background: radial-gradient(circle at 50% 50%, rgba(0,126,123,.12), rgba(0,126,123,0) 70%); color: #007e7b; box-shadow: 0 0 22px rgba(0,126,123,.12); }
[data-theme="light"] .steps::before { background: linear-gradient(90deg, rgba(0,126,123,.45), rgba(37,99,196,.45), rgba(98,64,183,.45)); }
[data-theme="light"] .step__icon { border-color: rgba(37,99,196,.45); background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef2fb 70%); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(37,99,196,.14); }
[data-theme="light"] .step:nth-child(1) .step__icon { color: #007e7b; } [data-theme="light"] .step:nth-child(2) .step__icon { color: #1f6fb5; } [data-theme="light"] .step:nth-child(3) .step__icon { color: #4b4fc0; }
[data-theme="light"] .step--accent .step__icon { color: #b8581f; border-color: rgba(200,100,44,.65); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(200,100,44,.18); }
[data-theme="light"] .asset__media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(245,247,253,.96) 100%); }
[data-theme="light"] .asset__media img { filter: none; }
[data-theme="light"] .cta__glow { background: radial-gradient(50% 60% at 50% 60%, rgba(37,99,196,.09), rgba(241,244,251,0) 70%); }
[data-theme="light"] .site-footer { background: #e6ebf6; }
[data-theme="light"] .tag--accent { color: #2563c4; }
[data-theme="light"] .frame { background: rgba(255,255,255,.6); }
[data-theme="light"] .chips li { background: rgba(0,126,123,.07); border-color: rgba(0,126,123,.28); }
[data-theme="light"] .phase-tab { background: rgba(255,255,255,.72); }
[data-theme="light"] .phase-tab[aria-selected="true"] { background: linear-gradient(90deg, rgba(0,126,123,.14), rgba(37,99,196,.10)); border-color: rgba(0,126,123,.45); }
[data-theme="light"] .phase-panel { background: rgba(255,255,255,.72); }
[data-theme="light"] .specs > div { background: rgba(0,30,107,.04); }
[data-theme="light"] .module .powered code { border-color: rgba(0,126,123,.35); color: #007e7b; }
[data-theme="light"] .status--live { color: #007e7b; border-color: rgba(0,126,123,.4); background: rgba(0,126,123,.06); }
[data-theme="light"] .status--beta { color: #9a5f00; border-color: rgba(154,95,0,.4); background: rgba(154,95,0,.06); }
[data-theme="light"] .status--soon { background: transparent; }
[data-theme="light"] .feature__shot { border-color: rgba(0,30,107,.14); box-shadow: 0 30px 70px -30px rgba(9,22,47,.45), 0 0 60px -26px rgba(37,99,196,.35); }
[data-theme="light"] .feature__shot:hover { border-color: rgba(0,126,123,.35); }
[data-theme="light"] .shot__img { background: radial-gradient(60% 80% at 50% 50%, rgba(37,99,196,.08), rgba(241,244,251,.7)); }
[data-theme="light"] .person__photo img { filter: grayscale(1) brightness(.98); }
[data-theme="light"] .person.is-open .person__photo img, [data-theme="light"] .person.in-view .person__photo img { filter: none; }
@media (hover: hover) { [data-theme="light"] .person:hover .person__photo img { filter: none; } }
[data-theme="light"] .skip-link { color: #fff; }

/* ---------- Phones: the high-level view; the full detail stays on larger screens ----------
   Assets: the specific tools (AI modules) become one compact list per group, name and status only;
   the platform diagram keeps its desktop shape with names only (a tap on a zone shows its line).
   Demo: each screen keeps its picture, name and one-line description. */
@media (max-width: 760px) {
  #modules .cards { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(14,20,36,.55); }
  #modules .card.module { display: block; min-height: 0; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
  #modules .card.module:first-child { border-top: 0; }
  #modules .card.module:hover { transform: none; box-shadow: none; }
  #modules .module .mod-head { align-items: center; }
  #modules .module h3 { font-size: var(--fs-md); line-height: 1.35; }
  #modules .module .mod-head { gap: 10px; }
  #modules .module__more { display: none; }
  #modules .module.is-open .module__more { display: block; padding: 2px 26px 4px 0; }
  #modules .module.is-open .module__more .dot-sep { display: none; }
  #modules .module.is-open .module__more p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.55; }
  #modules .module.is-open .module__more .powered { margin-top: 10px; padding-top: 10px; }
  #modules .module__plus { display: block; flex: none; width: 16px; height: 16px; color: var(--text-muted); transition: transform .3s var(--ease), color .3s var(--ease); }
  #modules .module.is-open .module__plus { transform: rotate(45deg); color: var(--teal); }
  #modules .module.is-open { background: rgba(91,141,239,.06); }
  #modules .module__btn { display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #modules .module__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
  /* small language models: the same compact list, each row the model, its domain and status; a tap opens
     the description and the modules it powers */
  #models .cards { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(14,20,36,.55); }
  #models .slm { padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
  #models .slm:first-child { border-top: 0; }
  #models .slm .mod-head { align-items: center; flex-wrap: nowrap; gap: 10px; }
  #models .slm h3.mono { font-size: var(--fs-md); line-height: 1.35; }
  #models .slm > .tag { margin-top: 3px; font-size: 11px; }
  #models .slm__more { display: none; }
  #models .slm.is-open .slm__more { display: block; padding: 2px 26px 4px 0; }
  #models .slm.is-open .slm__more p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.55; }
  #models .slm.is-open .slm__more > .tag { margin-top: 10px; }
  #models .slm__plus { display: block; flex: none; width: 16px; height: 16px; color: var(--text-muted); transition: transform .3s var(--ease), color .3s var(--ease); }
  #models .slm.is-open .slm__plus { transform: rotate(45deg); color: var(--teal); }
  #models .slm.is-open { background: rgba(91,141,239,.06); }
  #models .slm__btn { display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #models .slm__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
  [data-theme="light"] #models .cards { background: rgba(255,255,255,.7); }
  [data-theme="light"] #models .slm { background: transparent; box-shadow: none; }
  [data-theme="light"] #models .slm.is-open { background: rgba(37,99,196,.05); }
  #modules .module-group { margin-top: 30px; }
  #modules .module-group .subhead + .muted.small { margin-bottom: 12px; }
  /* platform diagram: same shape as on desktop (3 x 2 zones over the row of four), names only;
     a tap on a zone shows its line in .zone-detail under the grid (js/cortex.js) */
  #platform .frame { padding: 10px; }
  #platform .frame .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  #platform .zone { min-height: 68px; padding: 12px 10px 20px; border-radius: 12px; }
  #platform .zone:hover { transform: none; }
  #platform .zone h3 { font-size: var(--fs-sm); line-height: 1.3; }
  #platform .zone .tag, #platform .zone p, #platform .strip__item span {
    position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  #platform .zone__plus { display: block; position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; color: var(--text-muted); transition: transform .3s var(--ease), color .3s var(--ease); }
  #platform .zone.is-active { border-color: rgba(95,211,200,.6); box-shadow: inset 0 0 0 1px rgba(95,211,200,.3); }
  #platform .zone.is-active .zone__plus { transform: rotate(45deg); color: var(--teal); }
  #platform .zone__btn { display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #platform .zone__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 12px; }
  #platform .zone-detail:not([hidden]) { display: block; margin-top: 8px; padding: 12px 14px 13px; border: 1px solid rgba(95,211,200,.3); border-radius: 12px; background: rgba(14,20,36,.85); }
  #platform .zone-detail .tag { display: block; font-size: 11px; letter-spacing: .12em; line-height: 1.5; }
  #platform .zone-detail p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-soft); }
  #platform .frame .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  #platform .strip__item { padding: 10px 4px; text-align: center; }
  #platform .strip__item strong { font-size: var(--fs-sm); }
  #platform .frame .caption { margin-top: 10px; font-size: 10px; line-height: 1.5; letter-spacing: .1em; }
  #platform .caption__src { display: none; }
  [data-theme="light"] #platform .zone.is-active { border-color: rgba(0,126,123,.55); box-shadow: inset 0 0 0 1px rgba(0,126,123,.22); }
  [data-theme="light"] #platform .zone-detail:not([hidden]) { background: rgba(255,255,255,.92); border-color: rgba(0,126,123,.3); }
  .feature__text .bullets { display: none; }
  [data-theme="light"] #modules .cards { background: rgba(255,255,255,.7); }
  [data-theme="light"] #modules .card.module { background: transparent; box-shadow: none; }
  [data-theme="light"] #modules .module.is-open { background: rgba(37,99,196,.05); }
}

/* Responsive containment for footer links, team details and asset labels. */
.footer-grid > * { min-width: 0; }
@media (max-width: 480px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .footer-links a { overflow-wrap: anywhere; }
}
@media (max-width: 1100px) {
  .person__more, .person--flip .person__more { position: static; width: auto; min-width: 0; display: none; opacity: 1; transform: none; transition: none; }
  .person__more-inner { padding: 10px 0 0; background: none; border: 0; box-shadow: none; }
  .person__more-inner::before { display: none; }
  .person.is-open .person__more { display: block; }
  .person__more .tag, .person__more p { overflow-wrap: anywhere; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #modules .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mod-head { flex-wrap: wrap; }
.mod-head h3, .card--slim .mod-head h3 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #platform .frame .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #platform .zone h3 { overflow-wrap: anywhere; }
  #models .slm .mod-head { flex-wrap: wrap; }
  #models .slm h3.mono { white-space: normal; overflow-wrap: anywhere; }
}

/* Keep all menu destinations reachable in landscape and at high zoom. */
.mobile-menu { overflow-y: auto; }

/* Overview card graphics imported from supplied v35. */
:root { --ig-bg-1: #12203f; --ig-bg-2: #080d1c; --ig-line: rgba(142,160,220,.32); --ig-faint: rgba(142,160,220,.16);
        --ig-text: rgba(222,228,244,.94); --ig-soma: #f2f7ff; --ig-node: rgba(170,186,230,.5); }
.asset__media--ig { background: radial-gradient(120% 130% at 50% 45%, var(--ig-bg-1) 0%, var(--ig-bg-2) 100%); }
.asset__media--ig::after { background: linear-gradient(180deg, rgba(7,9,21,0) 84%, rgba(14,20,36,.5) 100%); }
.ig { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ig .syn { fill: none; stroke: var(--ig-line); stroke-width: 1.1; }
.ig .syn-faint { stroke: var(--ig-faint); }
.ig .ring { fill: none; stroke: var(--ig-faint); stroke-dasharray: 2 5; }
.ig .dend { fill: none; stroke-width: 1; stroke-linecap: round; opacity: .72; }
.ig .dend-a { stroke: var(--teal); } .ig .dend-b { stroke: var(--blue); } .ig .dend-c { stroke: var(--purple); }
.ig .halo { animation: ig-glow 4.8s ease-in-out infinite alternate; }
.ig .node { fill: var(--ig-node); }
.ig .junction { fill: var(--ig-soma); stroke: var(--blue); stroke-width: 1; }
.ig .axon-glow { fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: round; opacity: .14; }
.ig .pulse { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 6 200; stroke-dashoffset: 6;
             animation: ig-flow 3.6s cubic-bezier(.4, 0, .6, 1) infinite; }
.ig .pulse-a { stroke: var(--teal); } .ig .pulse-b { stroke: var(--blue); } .ig .pulse-c { stroke: var(--purple); }
.ig .pulse-axon { stroke: var(--ig-soma); stroke-width: 3; }
.ig .lbl { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; fill: var(--ig-text); }
.asset:hover .ig .halo { animation-duration: 2.2s; }
@media (max-width: 600px) { .ig .lbl { font-size: 13.5px; } }   /* phones: the drawing is smaller, the labels a little larger */
@keyframes ig-glow { from { opacity: .45; } to { opacity: 1; } }
@keyframes ig-flow { 0% { stroke-dashoffset: 6; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ig .pulse { animation: none; opacity: 0; } .ig .halo { animation: none; opacity: .85; } }

[data-theme="light"] { --ig-bg-1: #f7f9fe; --ig-bg-2: #e3e9f6; --ig-line: rgba(0,30,107,.22); --ig-faint: rgba(0,30,107,.11);
                       --ig-text: #22304b; --ig-soma: #ffffff; --ig-node: rgba(37,60,120,.38); }
[data-theme="light"] .asset__media--ig::after { background: linear-gradient(180deg, rgba(255,255,255,0) 84%, rgba(245,247,253,.55) 100%); }
[data-theme="light"] .ig .pulse-axon { stroke: var(--teal); }
