/* JetOps website. Colors, fonts and radii come from tokens.css. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; }

::selection { background: var(--accent-strong); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1240px, 100% - 64px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Keeps the gradient continuous when a phrase wraps onto two lines. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
}

.kicker {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  /* Rounded corners at half a pill: a quarter of the button's height. */
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-strong-hover); }
.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.36); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-xl { height: 58px; padding: 0 32px; font-size: 18px; border-radius: 14px; }
.btn:active { transform: scale(0.98); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 8, 20, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s;
}
.nav.is-scrolled,
.nav.is-open { background: rgba(3, 8, 20, 0.92); }

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 64px;
  /* No right padding: the Sign in block runs to the edge. */
  padding: 0 0 0 clamp(20px, 3vw, 44px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.brand-mark { width: 30px; height: 30px; flex: none; }

.nav-links {
  display: flex;
  gap: clamp(22px, 2.8vw, 44px);
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 247, 252, 0.8);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

.nav-actions {
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
}

/* Sign in: a solid blue block, the full height of the bar, flush right.
   It also covers the bar's bottom line. */
.nav-signin {
  align-self: stretch;
  height: auto;
  margin-bottom: -1px;
  padding: 0 clamp(22px, 2.6vw, 38px);
  border: 0;
  border-radius: 0;
  font-size: 16px;
}
.nav-signin:active { transform: none; }
.nav-signin:focus-visible { outline-color: #fff; outline-offset: -5px; border-radius: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(245, 247, 252, 0.88);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Three-line menu icon that turns into a cross when the menu is open. */
.nav-toggle-icon { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, top 0.3s, opacity 0.2s;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5.25px; }
.nav-toggle-icon span:nth-child(3) { top: 10.5px; }
.nav.is-open .nav-toggle-icon span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-icon span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

.nav-panel {
  padding: 8px clamp(20px, 3vw, 44px) 32px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-panel > a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
@media (max-width: 980px) {
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}
@media (max-width: 380px) {
  .nav-toggle-label { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 clamp(28px, 4.5vh, 52px);
  overflow: hidden;
}
/* The words sit centred in the space above the Powered by logos. */
.hero-content { margin-block: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
  animation: hero-settle 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: none; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 5, 13, 0.85) 0%, rgba(2, 5, 13, 0.55) 38%, rgba(2, 5, 13, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 20, 0.5) 16%, rgba(3, 8, 20, 0) 38%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.6) 0%, rgba(3, 8, 20, 0) 18%);
}

.hero h1 {
  margin-top: 18px;
  max-width: 8.6em;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-sub {
  margin-top: 30px;
  max-width: 31em;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: rgba(234, 240, 252, 0.84);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 44px;
}

/* Powered by: the logos along the bottom of the hero, in white at 70%. */
.powered { margin-top: clamp(44px, 7vh, 84px); text-align: center; }
.powered-label {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(234, 240, 252, 0.6);
}
.powered-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px clamp(30px, 4.2vw, 60px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.powered-logos img { display: block; width: auto; opacity: 0.7; }
.logo-datacloud { height: 34px; }
.logo-openai { height: 28px; }
.logo-faa { height: 44px; }
.logo-cognee { height: 20px; }
.logo-anthropic { height: 14px; }

@media (max-width: 760px) {
  .hero { padding-bottom: 36px; }
  .hero-content { margin-bottom: 0; }
  .powered-logos { gap: 18px 28px; }
  .logo-datacloud { height: 28px; }
  .logo-openai { height: 23px; }
  .logo-faa { height: 36px; }
  .logo-cognee { height: 17px; }
  .logo-anthropic { height: 12px; }
  .hero-media img { object-position: 84% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 20, 0.92) 30%, rgba(3, 8, 20, 0.35) 58%, rgba(3, 8, 20, 0.1) 75%),
      linear-gradient(180deg, rgba(3, 8, 20, 0.6) 0%, rgba(3, 8, 20, 0) 20%);
  }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(110px, 13vw, 180px);
}

.section-head {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.display {
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.section-head > .section-title:first-child { margin-top: 0; }

.section-lead {
  margin: 28px auto 0;
  max-width: 760px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--text-muted);
}
.section-lead.center { text-align: center; margin-top: 64px; }

/* Section backgrounds. Dark sections use deep navy gradients, darker toward
   the edges. Light sections (theme-light) use Apple's off-white, which
   tokens.css supplies along with dark text and white cards. */
.hive {
  background:
    radial-gradient(60% 40% at 50% 8%, rgba(18, 46, 110, 0.4) 0%, rgba(3, 8, 20, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--navy-850) 45%, var(--bg) 100%);
}
/* The animated brain (drawn by brain.js) fills a full-width stage behind
   the hive mind heading and the super intelligence page's title. It fades
   out at the top and bottom of the stage, and a soft shade behind the words
   keeps them easy to read. */
.hive { padding-top: 0; }
.brain-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 100svh, 1100px);
  padding-block: 64px;
  overflow: hidden;
}
.brain {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
}
.brain-copy { position: relative; text-align: center; }
.brain-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(1180px, 130%);
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(3, 8, 20, 0.72) 0%, rgba(3, 8, 20, 0.5) 50%, rgba(3, 8, 20, 0) 100%);
  pointer-events: none;
}
.brain-copy .section-lead { color: rgba(225, 232, 245, 0.86); text-shadow: 0 1px 20px rgba(3, 8, 20, 0.9); }
@media (max-width: 640px) {
  .brain-stage { min-height: 640px; }
  .brain-copy::before { opacity: 0.7; }
  .brain-copy .section-title,
  .brain-copy h1 { text-shadow: 0 2px 24px rgba(3, 8, 20, 0.8); }
  /* Gradient words are see-through text, so a shadow would dull them. */
  .brain-copy .grad { text-shadow: none; }
}
.hive .bento { margin-top: 0; }
.theme-light { color: var(--text); }
.statement {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(0, 113, 227, 0.07) 0%, rgba(0, 113, 227, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%);
}
.intelligence {
  background:
    radial-gradient(55% 45% at 50% 30%, rgba(0, 113, 227, 0.07) 0%, rgba(0, 113, 227, 0) 72%),
    var(--bg);
}
.compounding {
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(0, 113, 227, 0.07) 0%, rgba(0, 113, 227, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}
.invite {
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(0, 113, 227, 0.2) 0%, rgba(3, 8, 20, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--navy-950) 100%);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3.4vw, 48px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.card-title {
  margin-top: 12px;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.032em;
}
.card-title-xl {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.kicker + .card-title-xl { margin-top: 12px; }

.card-text {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
}

.card-center { text-align: center; padding-block: clamp(44px, 5vw, 64px); }
.card-center .card-text { margin-inline: auto; max-width: 20em; }

.trio {
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
}
@media (min-width: 900px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}

/* Bento grid of departments */
.bento {
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-4,
  .bento .span-6 { grid-column: 1 / -1; }
}
@media (min-width: 1068px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-6 { grid-column: 1 / -1; }
}

.bento .card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
@media (min-width: 720px) {
  .bento .card { min-height: 400px; }
}

.card-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(41, 151, 255, 0.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(41, 151, 255, 0.22), rgba(41, 151, 255, 0.06));
  color: #7cc0ff;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cards with a photograph behind the words */
.card-photo {
  min-height: 560px !important;
  padding: 0;
  background: var(--navy-900);
}
.card-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-photo:hover .card-photo-img { transform: scale(1.03); }
.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.92) 0%, rgba(3, 8, 20, 0.6) 34%, rgba(3, 8, 20, 0.05) 70%);
  pointer-events: none;
}
.card-photo .card-body {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 3.4vw, 48px);
}
.card-photo .card-text { margin-top: 16px !important; padding-top: 0 !important; color: rgba(225, 232, 248, 0.86); max-width: 30em; }

/* Leadership: the wide card */
.card-wide {
  display: grid !important;
  gap: 32px;
  align-items: center;
  min-height: 0 !important;
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(41, 151, 255, 0.18) 0%, rgba(41, 151, 255, 0) 70%),
    var(--card-bg);
}
.card-wide .card-text { margin-top: 16px !important; padding-top: 0 !important; }
@media (min-width: 1068px) {
  .card-wide { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.ask {
  display: grid;
  gap: 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.ask-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-faint);
}

/* Five stages of intelligence */
.stages {
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
}
@media (min-width: 860px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage-final { grid-column: 1 / -1; }
}
.stage { min-height: 0; }
.stage-num {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #22407f;
}
.stage-final {
  min-height: 0;
  background:
    radial-gradient(70% 140% at 0% 100%, rgba(41, 151, 255, 0.24) 0%, rgba(41, 151, 255, 0) 65%),
    radial-gradient(50% 120% at 100% 0%, rgba(124, 134, 255, 0.2) 0%, rgba(124, 134, 255, 0) 65%),
    var(--card-bg);
  border-color: rgba(120, 170, 255, 0.28);
}
.stage-final .stage-num {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stage-final .card-text { max-width: 40em; font-size: clamp(18px, 1.5vw, 21px); }
.theme-light .stage:not(.stage-final) .stage-num { color: #c9d5ec; }
.theme-light .stage-final {
  background:
    radial-gradient(70% 140% at 0% 100%, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0) 65%),
    radial-gradient(50% 120% at 100% 0%, rgba(91, 91, 214, 0.1) 0%, rgba(91, 91, 214, 0) 65%),
    var(--card-bg);
  border-color: rgba(0, 113, 227, 0.18);
}

/* Full-bleed photograph section */
.operators {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  min-height: 92svh;
  padding: 140px 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.operators-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.operators-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.operators-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(3, 8, 20, 0.96) 0%, rgba(3, 8, 20, 0.7) 32%, rgba(3, 8, 20, 0.1) 70%),
    linear-gradient(180deg, var(--navy-950) 0%, rgba(2, 5, 13, 0) 22%);
}
.operators-content { text-align: center; }
.operators-content .section-lead { color: rgba(225, 232, 248, 0.86); }

/* What every trip teaches it */
.lesson {
  display: grid;
  align-content: end;
  gap: 6px;
}
@media (min-width: 900px) {
  .lesson { min-height: 300px; }
}
.lesson-lead {
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.lesson-rest {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* ---------- Invite only ---------- */

.invite-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 32px;
  margin-top: 44px;
}

/* A text link that leads on from a section, centred under it. */
.more-link { margin-top: clamp(48px, 6vw, 72px); text-align: center; }

/* ---------- Super intelligence page ---------- */

.si-hero {
  position: relative;
  padding-top: 64px;
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 32%, rgba(18, 46, 110, 0.5) 0%, rgba(3, 8, 20, 0) 70%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--bg) 100%);
}
.si-hero .brain-stage { min-height: clamp(640px, calc(100svh - 64px), 1040px); }
@media (max-width: 640px) {
  .si-hero .brain-stage { min-height: 640px; }
}
.si-hero h1 {
  margin: 14px auto 0;
  max-width: 11em;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.042em;
}

/* Section backgrounds: dark ones in deep navy, light ones in off-white. */
.si-define {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(0, 113, 227, 0.07) 0%, rgba(0, 113, 227, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%);
}
.si-forms {
  background:
    radial-gradient(60% 45% at 50% 10%, rgba(18, 46, 110, 0.42) 0%, rgba(3, 8, 20, 0) 70%),
    var(--bg);
}
.si-rsi,
.si-advantage {
  background:
    radial-gradient(55% 45% at 50% 30%, rgba(0, 113, 227, 0.07) 0%, rgba(0, 113, 227, 0) 72%),
    var(--bg);
}
.si-problem {
  background:
    radial-gradient(55% 45% at 50% 45%, rgba(25, 60, 140, 0.3) 0%, rgba(3, 8, 20, 0) 72%),
    var(--navy-950);
}
.si-ontology {
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}
.si-plan {
  background:
    radial-gradient(60% 40% at 50% 8%, rgba(18, 46, 110, 0.4) 0%, rgba(3, 8, 20, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--navy-850) 50%, var(--bg) 100%);
}

/* The card that matters most in a row. */
.card-feature {
  background:
    radial-gradient(70% 120% at 0% 100%, rgba(41, 151, 255, 0.24) 0%, rgba(41, 151, 255, 0) 65%),
    radial-gradient(50% 100% at 100% 0%, rgba(124, 134, 255, 0.2) 0%, rgba(124, 134, 255, 0) 65%),
    var(--card-bg);
  border-color: rgba(120, 170, 255, 0.28);
}
.theme-light .card-feature {
  background:
    radial-gradient(70% 120% at 0% 100%, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0) 65%),
    radial-gradient(50% 100% at 100% 0%, rgba(91, 91, 214, 0.1) 0%, rgba(91, 91, 214, 0) 65%),
    var(--card-bg);
  border-color: rgba(0, 113, 227, 0.18);
}

/* Recursive self-improvement: the words beside the loop */
.rsi-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
}
@media (min-width: 980px) {
  .rsi-grid { grid-template-columns: 1fr 1fr; }
}
.prose p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
}
.prose p + p { margin-top: 22px; }
.prose strong { color: var(--text); font-weight: 700; }

.loop { margin: 0; }
.loop svg { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.loop-ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.loop-chevron { fill: none; stroke: var(--text-faint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.loop-node { fill: var(--accent); }
.loop-label { fill: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.loop-center { fill: var(--text); font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.loop-sub { fill: var(--text-muted); font-size: 20px; font-weight: 600; }
.loop-dot { fill: var(--accent); }
.loop-dot-glow { opacity: 0.2; }

/* The fragmented stack: loose, unconnected pieces */
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 920px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}
.stack-chips li {
  padding: 14px 22px;
  border: 1px dashed rgba(150, 180, 255, 0.32);
  border-radius: 14px;
  background: rgba(10, 22, 50, 0.6);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  color: var(--text-muted);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
}
.stack-chips li:nth-child(3n+1) { --r: -2.5deg; --y: 6px; }
.stack-chips li:nth-child(4n+2) { --r: 2deg; --y: -8px; }
.stack-chips li:nth-child(5n+3) { --r: -1deg; --y: 10px; }
.stack-chips li:nth-child(7n) { --r: 3deg; --y: -4px; }
.problem-close { margin-top: clamp(64px, 8vw, 104px); }

/* One ontology: every part of the operation on one map, breathing */
.onto { max-width: 1000px; margin: clamp(48px, 6vw, 72px) auto 0; }
.onto-map { display: block; width: 100%; height: auto; overflow: visible; }
.onto-links line { stroke: var(--line-strong); stroke-width: 1.5; }
.onto-spokes line {
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: 0.75;
  animation: onto-flow 1.4s linear infinite;
}
@keyframes onto-flow { to { stroke-dashoffset: -24; } }
.onto-core { fill: var(--accent-strong); }
.onto-core-text { fill: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.onto-breath {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: onto-breathe 4s ease-in-out infinite;
}
@keyframes onto-breathe {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.32); opacity: 0.04; }
}
.onto-nodes rect {
  fill: var(--surface);
  stroke: var(--card-border);
  stroke-width: 1.5;
  filter: drop-shadow(0 10px 18px rgba(10, 25, 60, 0.12));
}
.onto-nodes text { fill: var(--text); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.onto-list { display: none; }
@media (max-width: 700px) {
  .onto-map { display: none; }
  .onto-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .onto-list li {
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loop-dot { display: none; }
  .onto-spokes line,
  .onto-breath { animation: none; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy-950);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 64px;
}
.footer-tag { margin-top: 14px; font-size: 17px; color: var(--text-muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Motion ---------- */

/* Only blocks below the first screen start hidden (set by main.js), so
   nothing is ever invisible without JavaScript. */
.reveal {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-pending { opacity: 0; transform: translateY(32px); }

/* Scroll effects, driven by main.js, which adds .scroll-fx to the page only
   when motion is allowed. --sheet runs from 0 (a rounded card) to 1 (the
   full width). The inset stays inside the page margin so cards are never
   cut. */
.scroll-fx .section.theme-light {
  --sheet-edge: max(24px, min(72px, calc((100vw - 1240px) / 2 - 16px)));
  clip-path: inset(0 calc((1 - var(--sheet, 1)) * var(--sheet-edge))
    round calc((1 - var(--sheet, 1)) * clamp(28px, 3.4vw, 56px)));
}
@media (max-width: 640px) {
  .scroll-fx .section.theme-light { --sheet-edge: 14px; }
}
.scroll-fx [data-words] .word {
  opacity: 0.18;
  transition: opacity 0.45s ease;
}
.scroll-fx [data-words] .word.is-lit { opacity: 1; }
.scroll-fx .card-photo-img,
.scroll-fx .operators-media img { will-change: scale; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; }
  .card-photo-img { transition: none; }
}
