@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
}

:root {
  --bg: #070708;
  --ink: #f3eee6;
  --muted: #a8a095;
  --amber: #e8a54b;
  --card: rgba(12, 12, 14, 0.82);
  --card-solid: #0c0c0e;
  --line: rgba(243, 238, 230, 0.12);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
body { min-height: 100%; line-height: 1.5; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; color: var(--muted); }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  background: var(--amber);
  color: #14110c;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.stage-slot {
  position: absolute;
  right: -8%;
  top: 50%;
  height: 118vh;
  transform: translateY(-52%);
}
.stage-media {
  position: relative;
  height: 100%;
  transform-origin: 62% 48%;
}
.stage-media picture,
.stage-media img.poster {
  height: 118vh;
  width: auto;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.stage-media video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) contrast(1.05);
}
.stage-media video.is-playing { opacity: 1; }
.stage .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,8,0.94) 0%, rgba(7,7,8,0.78) 38%, rgba(7,7,8,0.35) 68%, rgba(7,7,8,0.55) 100%),
    linear-gradient(180deg, rgba(7,7,8,0.55) 0%, transparent 28%, transparent 70%, rgba(7,7,8,0.88) 100%);
}
.scrim-deep {
  background: rgba(7, 7, 8, 0.5);
  opacity: 0;
}
.shell { position: relative; z-index: 1; }
.media-credit {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

body.page-inner { background: var(--bg); }
body.page-inner .shell { background: var(--bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mark {
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mark:hover { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  height: 1px;
  width: 0;
  background: var(--amber);
  pointer-events: none;
  transform-origin: left center;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--ink);
  background: transparent;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: rgba(232, 165, 75, 0.12); }
.btn.solid {
  background: var(--amber);
  color: #14110c;
  border-color: var(--amber);
  font-weight: 600;
}
.btn.solid:hover { filter: brightness(1.06); background: var(--amber); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 2.5rem 3rem;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero--page { min-height: auto; padding-top: 3rem; padding-bottom: 2rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1.1rem;
  max-width: 14ch;
  letter-spacing: -0.02em;
}
.hero--page h1 { max-width: 18ch; }
.hero .lede,
.prose {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.hero .lede { margin-bottom: 1.75rem; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.mask-line { overflow: hidden; }

.stack {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  max-width: 40rem;
}
.card.wide, .grid-3 .card, .split-2 .card { max-width: none; }
.card h2, .card h3, .section-block h2, #grok-bot > h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.card h3 { font-size: 1.1rem; }
.card p { margin: 0 0 0.75rem; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }
.card .cta { margin-top: 1.1rem; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.badge-inline {
  display: inline-block;
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 165, 75, 0.45);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
body.page-companions .badge-inline::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(232, 165, 75, 0.0);
  pointer-events: none;
}
html.js-motion body.page-companions .badge-inline::after {
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  50% { opacity: 1; box-shadow: 0 0 18px rgba(232, 165, 75, 0.45); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.chips li {
  margin: 0;
  color: var(--ink);
  border: 1px solid rgba(232, 165, 75, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.6rem;
  border-radius: 99px;
}
.chip-rule {
  display: block;
  width: 7.5rem;
  height: 2px;
  margin: 0.7rem 0 0;
  background: var(--amber);
  transform-origin: left center;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.split-2 { grid-template-columns: 1fr 1fr; }
.lane, .tilt-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  overflow: hidden;
  transform-style: preserve-3d;
}
.lanes { perspective: 900px; }
.lane:hover, .tilt-card:hover { border-color: rgba(232, 165, 75, 0.35); }
.lane strong { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.lane span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.lane::after, .tilt-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(243, 238, 230, 0.09) 50%, transparent 58%);
  opacity: 0;
  transform: translateX(-18%);
  pointer-events: none;
}
html.js-motion .lane.is-tilting::after,
html.js-motion .tilt-card.is-tilting::after {
  opacity: 1;
  transform: translateX(12%);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.section-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem 2.5rem;
}
.section-block h2 { font-size: 1.25rem; }
#grok-bot > h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 18ch;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.path-wrap { position: relative; }
.path-line {
  display: block;
  width: 100%;
  height: 10px;
  margin: 0 0 0.85rem;
}
.path-line-base { stroke: rgba(243, 238, 230, 0.16); stroke-width: 2; }
.path-line-draw { stroke: var(--amber); stroke-width: 2; }
.tier-card { position: relative; }
.tier-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(232, 165, 75, 0.85);
  opacity: 0;
  pointer-events: none;
}

.engine-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.5rem 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.15rem 1.25rem;
}
.panel h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.panel .caption, .fine, .footnote, .honesty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.engine-connector {
  position: relative;
  min-height: 48px;
}
.conn-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(232, 165, 75, 0.75);
}
.conn-dot {
  position: absolute;
  top: calc(50% - 3px);
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.roster-stage {
  position: relative;
  height: 320px;
  margin: 0.5rem 0 0.25rem;
}
.bot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.72);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}
.bot.center {
  left: 50%;
  top: 50%;
  border-color: rgba(232, 165, 75, 0.7);
  color: var(--amber);
  font-weight: 600;
  z-index: 1;
}
.bot.b1 { left: 50%; top: 16%; }
.bot.b2 { left: 84%; top: 40%; }
.bot.b3 { left: 72%; top: 80%; }
.bot.b4 { left: 28%; top: 80%; }
.bot.b5 { left: 16%; top: 40%; }
.spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 1px;
  background: rgba(243, 238, 230, 0.16);
  transform-origin: left center;
  transform: rotate(var(--a));
}
.spoke i {
  position: absolute;
  left: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
}
html.js-motion .roster.is-live .spoke i {
  animation: to-centre 2.3s linear infinite;
}
.spoke.s2 i { animation-delay: 0.3s; }
.spoke.s3 i { animation-delay: 0.6s; }
.spoke.s4 i { animation-delay: 0.9s; }
.spoke.s5 i { animation-delay: 1.2s; }
@keyframes to-centre {
  0% { transform: translateX(106px); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}
.rule-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.rule-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
}
.ask {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14110c;
  background: var(--amber);
  padding: 0.18rem 0.35rem;
  border-radius: 2px;
  font-weight: 600;
}
.approval-mock, .gov-card {
  border: 1px solid rgba(232, 165, 75, 0.4);
  border-radius: 4px;
  padding: 0.85rem 0.9rem;
  background: rgba(20, 17, 12, 0.72);
  margin-top: 0.75rem;
}
.gov-card h3 { margin: 0 0 0.2rem; }
.gov-card ul { margin: 0.4rem 0 0.7rem; }
.stamp {
  display: inline-block;
  border: 1px dashed var(--amber);
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.28rem 0.45rem;
  transform: rotate(-2deg);
}
.compare-wrap { overflow-x: auto; margin: 0.5rem 0 0.75rem; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.compare caption {
  text-align: left;
  caption-side: top;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.7rem;
  vertical-align: top;
  text-align: left;
  color: var(--muted);
  font-weight: 400;
}
.compare th {
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.compare td:first-child { color: var(--ink); font-weight: 600; width: 18%; }
.compare tbody th {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  width: 26%;
}
.table-title { margin: 2.6rem 0 0.35rem; }

.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;
}

.metrics {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 1.4rem 1.2rem 1.5rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.metric-label { color: var(--muted); font-size: 0.9rem; line-height: 1.45; max-width: 22ch; }

.chart {
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}
.chart figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.chart-rows { display: grid; gap: 0.9rem; }
.chart-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 5.5rem;
  align-items: center;
  gap: 1rem;
}
.chart-label { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.chart-value {
  color: var(--ink);
  font-size: 0.92rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 165, 75, 0.45), var(--amber));
  box-shadow: 0 0 18px rgba(232, 165, 75, 0.35);
  transform-origin: left center;
}
.chart-axis {
  display: grid;
  grid-template-columns: 6.5rem 1fr 5.5rem;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.axis-track { position: relative; height: 1rem; }
.axis-track span {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
}
.axis-track span:first-child { transform: none; }
.axis-track span:last-child { transform: translateX(-100%); }

.steps-wrap { position: relative; }
.steps-wrap .rail {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  bottom: 1.6rem;
  width: 1px;
  background: var(--line);
}
.rail-fill {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: top center;
  transform: scaleY(1);
}

@media (max-width: 860px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .chart-row { grid-template-columns: 5rem 1fr 4.5rem; gap: 0.7rem; }
  .chart-axis { grid-template-columns: 5rem 1fr 4.5rem; gap: 0.7rem; }
}
.col-kw { position: relative; background: rgba(232, 165, 75, 0.03); }
.col-kw .edge {
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--amber);
  transform-origin: top center;
}
.compare tbody tr:hover .col-kw { background: rgba(232, 165, 75, 0.1); }
.resell { color: var(--muted); font-size: 0.92rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  background: var(--card-solid);
  z-index: 1;
}
.draw-list { list-style: none; padding: 0; }
.draw-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
}
.tick { flex: 0 0 auto; margin-top: 0.15rem; }
.tick path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-line { font-size: 1.05rem; color: var(--ink); }

.teaser {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
}
.teaser .radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(232,165,75,0.08) 0%, transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 55%, transparent 0deg 8deg, rgba(232,165,75,0.04) 8deg 9deg);
  pointer-events: none;
}
.teaser .core {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #050506;
  box-shadow:
    0 0 0 1px rgba(243,238,230,0.08),
    0 0 40px 8px rgba(232,165,75,0.06),
    inset 0 0 20px rgba(0,0,0,0.9);
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(243,238,230,0.08), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}
html.js-motion .teaser .sweep { animation: sweep 6s linear infinite; }
html.js-motion .teaser.is-paused .sweep { animation-play-state: paused; }
@keyframes sweep {
  from { transform: translateX(-160%); }
  to { transform: translateX(420%); }
}
.teaser-banner {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 7.5rem;
  font-weight: 600;
}
.teaser h2, .teaser p, .teaser .cta { position: relative; z-index: 1; max-width: 28rem; }
.teaser .cta { margin-top: 1.25rem; }
.teaser h2 { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 600; }
.teaser p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.bench-line {
  display: block;
  width: 6.5rem;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--amber);
  transform-origin: left center;
}

.form-card { max-width: 36rem; }
.form-group { margin-bottom: 1rem; position: relative; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-group.float { padding-top: 0.9rem; }
.form-group.float label {
  position: absolute;
  left: 0.75rem;
  top: 1.55rem;
  margin: 0;
  pointer-events: none;
  background: transparent;
}
.form-group.float input::placeholder,
.form-group.float textarea::placeholder { color: transparent; }
html.js-motion .form-group.float label { transition: transform 0.15s ease, color 0.15s ease; }
.form-group.float input:focus + label,
.form-group.float input:not(:placeholder-shown) + label,
.form-group.float textarea:focus + label,
.form-group.float textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.86);
  transform-origin: left center;
  color: var(--amber);
}
.form-group .req { color: var(--amber); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(7,7,8,0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: 3px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(232, 165, 75, 0.75);
  box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.22);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea { border-color: #d56b5d; }
html.js-motion .form-group.is-invalid input,
html.js-motion .form-group.is-invalid select,
html.js-motion .form-group.is-invalid textarea {
  animation: field-shake 0.28s ease;
}
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}
.form-submit-block { margin-top: 0.25rem; }
.form-submit-block .btn { margin-bottom: 0.85rem; }
.form-ai-notice {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.form-ai-notice .placeholder-link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.form-privacy {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(232, 165, 75, 0.4);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(232, 165, 75, 0.08);
  margin-bottom: 1rem;
}
.form-success.is-visible { display: flex; }
.form-success p { margin: 0; color: var(--ink); }
.check { width: 22px; height: 22px; flex: 0 0 auto; }
.check path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
html.js-motion .form-success .check path { stroke-dashoffset: 24; }
html.js-motion .form-success.is-visible .check path { animation: draw-check 0.35s ease forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.contact-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.contact-meta a { color: var(--amber); }
.grok-line { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.88rem; }
.grok-line a { color: var(--amber); }
.grok-line .arrow { display: inline-block; }
.grok-line a:hover .arrow { transform: translateX(4px); }
.inline-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.noscript-note { color: var(--muted); font-size: 0.85rem; }

.close {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2.5rem 4rem;
}
.close .card { max-width: 32rem; }
.close .card h2 { font-size: 1.15rem; }
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.legal-line {
  flex-basis: 100%;
  margin: 0.85rem 0 0;
  max-width: 62ch;
  line-height: 1.45;
  color: var(--muted);
}
.credit-line {
  margin: 0.35rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.72rem;
}

[id] { scroll-margin-top: 5.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage video { display: none !important; }
  .hero-motion, .reveal { transform: none !important; opacity: 1 !important; }
  .sweep, .badge-inline::after, .spoke i, .check path { animation: none !important; }
  .form-group.float label { transition: none; }
}

@media (max-width: 860px) {
  .site-header { padding: 1rem 1.25rem; flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-indicator { display: none; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem;
  }
  .nav-links.is-open { display: flex; }
  .site-header .btn.solid.header-cta { display: none; }
  .hero, .stack, .close, .section-block, .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero { min-height: 60vh; padding-top: 2.5rem; }
  .lanes, .grid-3, .split-2, .engine-split { grid-template-columns: 1fr; }
  .engine-connector { height: 28px; }
  .stage-slot { right: -40%; height: 100vh; }
  .stage-media picture, .stage-media img.poster { height: 100vh; opacity: 0.9; }
  .stage .scrim {
    background:
      linear-gradient(180deg, rgba(7,7,8,0.94) 0%, rgba(7,7,8,0.9) 46%, rgba(7,7,8,0.78) 72%, rgba(7,7,8,0.94) 100%);
  }
  .stage-media picture, .stage-media img.poster { opacity: 0.55; }
  body.home .stage { position: absolute; height: 100vh; }
  .path-line { display: none; }
}

@media (min-width: 861px) {
  body.home:not(.reduce-motion) .stage { position: fixed; }
}

/* K-bots emblem (Agents page) */
.kbots-emblem { margin: 2rem auto 2.25rem; max-width: min(440px, 82vw); text-align: center; }
.kbots-emblem img { display: block; width: 100%; height: auto; border-radius: 28px; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(243, 238, 230, 0.18); }
.kbots-emblem figcaption { margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.kbots-cta { text-align: center; margin: 0 auto 2.5rem; max-width: 40rem; }
.kbots-line { color: var(--ink); font-size: 1.05rem; margin-bottom: 1rem; }
.kbots-cta .cta-row { justify-content: center; }

/* Agents page: calm restructure */
.page-agents .hero--calm { padding-top: 5rem; padding-bottom: 4rem; }
.page-agents .hero--calm .lede { max-width: 42rem; font-size: 1.15rem; line-height: 1.7; }
.page-agents .section-calm { padding-top: 5.5rem; padding-bottom: 5.5rem; border-top: 1px solid var(--line); }
.page-agents .section-calm h2 { letter-spacing: -0.015em; max-width: 24ch; margin-bottom: 1.5rem; }
.page-agents .section-calm .prose { max-width: 40rem; line-height: 1.75; }
.overview-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .overview-split { grid-template-columns: 1.1fr 1fr; } }
.overview-split .kbots-emblem { margin: 0 auto; }
.page-agents .kbots-line { font-size: 1.25rem; line-height: 1.55; max-width: 36rem; color: var(--ink); margin-bottom: 1rem; }
.page-agents #offer .grid-3 { margin: 3rem 0 4rem; }
.page-agents .offer-lists { margin-top: 3.5rem; }
.page-agents #how-it-works .metrics { margin: 2rem 0 3.5rem; }
.page-agents .closing { text-align: left; padding-bottom: 7rem; }
/* Agents: consistent section headings, top-aligned overview */
.page-agents .section-calm > h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; max-width: none; width: 100%; margin-bottom: 1.5rem; }
.page-agents .section-calm .prose, .page-agents .section-calm .kbots-line { font-size: 1.05rem; }
.page-agents .section-calm .kbots-line { font-size: 1.2rem; }
.overview-split { align-items: start; }
