:root {
  --ink: #0b1220;
  --ink-2: #111827;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --line: rgba(11, 18, 32, 0.1);
  --line-strong: rgba(11, 18, 32, 0.16);
  --text: #0b1220;
  --muted: #475569;
  --faint: #64748b;
  --paper: #0b1220;
  --accent: #38bdf8;
  --accent-rgb: 56, 189, 248;
  --accent-2: #a78bfa;
  --accent-2-rgb: 167, 139, 250;
  --accent-3: #f472b6;
  --accent-3-rgb: 244, 114, 182;
  --danger: #e11d48;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(167, 139, 250, 0.08) 38%, rgba(244, 114, 182, 0.06) 72%, #f8fafc 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(96%, 1100px);
  min-height: 58px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 18, 32, 0.05);
  border-radius: 9999px;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(11, 18, 32, 0.08);
  box-shadow: 0 24px 46px -22px rgba(15, 23, 42, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
}

.site-header .brand-mark {
  gap: 8px;
  font-weight: 400;
}

.site-header .brand-mark span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(56, 189, 248, 0.18));
}

.site-header .brand-logo {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 18px;
  color: #ffffff !important;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  border-radius: 9999px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  isolation: isolate;
}

section,
.site-footer {
  padding-inline: clamp(22px, 5vw, 76px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.76fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: min(760px, calc(100svh - 160px));
  padding-top: clamp(34px, 5vh, 58px);
  padding-bottom: clamp(22px, 3vh, 40px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 78% 42%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 45%, rgba(248, 250, 252, 0.7) 100%);
  opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-signal {
  position: absolute;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  transform-origin: left center;
  opacity: 0.62;
}

.hero-signal-a {
  top: 28%;
  right: -6%;
  width: 58%;
  transform: rotate(-12deg);
  animation: signal-drift 6s ease-in-out infinite;
}

.hero-signal-b {
  right: -9%;
  bottom: 24%;
  width: 52%;
  transform: rotate(10deg);
  animation: signal-drift 7.5s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.diagram-label,
.visual-header,
.model-index,
.briefing-form label,
.briefing-form-label,
.footer-links {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.05vw, 4.05rem);
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  margin-bottom: 20px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.78rem, 2.85vw, 3.05rem);
  line-height: 1.05;
  font-weight: 700;
}

h3 {
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
}

.gradient-text {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

.no-break {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  border-radius: 9999px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-color: transparent;
  box-shadow: 0 16px 28px -16px rgba(139, 92, 246, 0.62);
}

.button-primary:hover {
  box-shadow: 0 18px 34px -15px rgba(139, 92, 246, 0.72);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.button-secondary:hover {
  border-color: rgba(11, 18, 32, 0.26);
  background: #ffffff;
}

.support-line {
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.06) 46%, rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-visual .visual-header {
  margin-bottom: 16px;
}

.hero-visual .diagram-label {
  padding: 10px 12px;
}

.hero-visual .flow-row {
  padding: 14px 12px 10px;
}

.hero-visual .flow-row span {
  min-height: 42px;
  padding: 8px;
  font-size: 0.78rem;
}

.hero-visual .return-line {
  margin: 0 12px 12px;
  padding: 8px 10px;
}

.hero-visual .break-line {
  margin: 12px 0;
  padding: 12px 14px;
}

.hero-visual .split-model {
  padding: 12px;
}

.hero-visual .split-model div {
  min-height: 82px;
  padding: 12px;
}

.hero-visual .split-model strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.hero-visual::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  transform: translate(8px, 8px);
}

.robot-visual {
  display: grid;
  place-items: center;
  min-height: clamp(470px, 50vw, 700px);
  padding: 0;
  opacity: 1;
  transform: none;
  filter: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  isolation: isolate;
}

.robot-visual[data-reveal],
.robot-visual[data-reveal="scale"],
.robot-visual[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.robot-visual::before {
  display: none;
}

.robot-visual::after {
  position: absolute;
  inset: 8% -5% 3% 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 52% 36%, rgba(56, 189, 248, 0.22), transparent 36%),
    radial-gradient(circle at 64% 58%, rgba(167, 139, 250, 0.13), transparent 42%);
  filter: blur(18px);
  opacity: 0.76;
}

.robot-canvas,
.robot-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.robot-canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 360ms ease;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.robot-visual.is-ready .robot-canvas {
  opacity: 1 !important;
  animation: robot-idle-bob 5.8s ease-in-out infinite;
}

.robot-fallback-image {
  z-index: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter:
    drop-shadow(0 34px 70px rgba(15, 23, 42, 0.16))
    drop-shadow(0 0 38px rgba(56, 189, 248, 0.15));
  -webkit-mask-image: radial-gradient(ellipse 48% 58% at 51% 48%, #000 48%, rgba(0, 0, 0, 0.78) 63%, transparent 84%);
  mask-image: radial-gradient(ellipse 48% 58% at 51% 48%, #000 48%, rgba(0, 0, 0, 0.78) 63%, transparent 84%);
  transition: opacity 320ms ease;
}

.robot-visual.is-ready .robot-fallback-image {
  opacity: 0 !important;
}

.robot-visual.is-unavailable .robot-fallback-image {
  opacity: 0.94 !important;
}

@media (min-width: 1121px) {
  .robot-visual {
    position: absolute;
    top: -36px;
    right: -8px;
    bottom: -36px;
    width: min(52vw, 860px);
    min-height: auto;
    max-width: none;
    margin: 0;
  }

  .robot-visual::after {
    inset: 0 -4% 0 0;
  }
}

.visual-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.72rem;
}

.loop-stage {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.diagram-label {
  margin: 0;
  padding: 13px 14px;
  color: var(--accent-2);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1.35fr 18px 1.25fr;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 14px;
}

.flow-row span,
.split-model div,
.loop-node,
.layered-model div,
.focus-grid article,
.briefing-list article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
}

.flow-row span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.flow-row i,
.loop-arrow {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.flow-row i::after,
.loop-arrow::after {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: auto;
  content: "";
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-3px) rotate(45deg);
}

.return-line {
  margin: 0 14px 16px;
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: center;
  border: 1px dashed rgba(71, 85, 105, 0.25);
  border-radius: 9999px;
}

.break-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(244, 114, 182, 0.24);
  background: rgba(244, 114, 182, 0.08);
  border-radius: 8px;
}

.break-line span {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.break-line strong {
  color: var(--paper);
  font-size: 0.92rem;
}

.split-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 14px;
}

.split-model div {
  min-height: 112px;
  padding: 14px;
}

.split-model span,
.model-cards h3 span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.split-model strong {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1;
}

.setup-section,
.difference-section,
.wage-loop-section,
.thesis-section,
.model-section,
.machine-section,
.human-section,
.positioning-section,
.lab-section,
.cta-section {
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(34px, 7vw, 74px);
}

.section-heading.narrow {
  display: block;
  max-width: 920px;
}

.section-heading p,
.copy-stack p,
.pattern-copy p,
.two-line-thesis p,
.machine-copy p,
.cta-copy p,
.model-close {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px 24px 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  transition: background 180ms ease, transform 180ms ease;
}

.timeline article:last-child {
  border-right: 0;
}

.timeline article:hover {
  background: #ffffff;
  transform: translateY(-4px);
}

.timeline span {
  display: inline-block;
  margin-bottom: 62px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.timeline h3 {
  margin-bottom: 12px;
}

.timeline p,
.briefing-list p,
.focus-grid article {
  margin: 0;
  color: var(--muted);
}

.pattern-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-top: 32px;
}

.pattern-copy p {
  max-width: 870px;
  margin-bottom: 0;
}

.pattern-copy strong {
  color: var(--accent);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 8vw, 116px);
}

.copy-stack p {
  margin-bottom: 20px;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.copy-stack strong {
  color: var(--paper);
}

.wage-loop-section {
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.1), rgba(56, 189, 248, 0.04) 42%, transparent),
    rgba(255, 255, 255, 0.48);
}

.wage-loop {
  display: grid;
  grid-template-columns: minmax(100px, 0.9fr) 42px minmax(100px, 0.9fr) 42px minmax(160px, 1.2fr) 42px minmax(160px, 1.2fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.loop-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 14px;
  color: var(--paper);
  font-weight: 800;
  text-align: center;
}

.loop-node-muted {
  grid-column: 5 / 8;
  min-height: 58px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.loop-arrow-return {
  grid-column: 2 / 5;
  grid-row: 2;
  background: linear-gradient(90deg, transparent, var(--accent-2));
  transform: rotate(180deg);
}

.two-line-thesis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) minmax(240px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.two-line-thesis p {
  margin-bottom: 0;
}

.two-line-thesis div,
.two-line-thesis strong {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.two-line-thesis span {
  color: var(--paper);
  font-weight: 800;
}

.two-line-thesis strong {
  color: var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.thesis-panel {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(167, 139, 250, 0.08) 42%, rgba(244, 114, 182, 0.06)),
    rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

blockquote {
  margin: clamp(34px, 6vw, 64px) 0 0;
  color: var(--paper);
  font-size: clamp(1.55rem, 3.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.model-cards article {
  position: relative;
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.05) 48%, rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.model-cards article::after {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(56, 189, 248, 0.18);
  background:
    linear-gradient(90deg, transparent 49%, rgba(56, 189, 248, 0.2) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(167, 139, 250, 0.18) 50%, transparent 51%);
  opacity: 0.6;
  transform: rotate(12deg);
}

.model-cards article:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.38);
}

.model-index {
  display: inline-block;
  margin-bottom: clamp(52px, 8vw, 92px);
  color: var(--accent-2);
  font-size: 0.78rem;
}

.model-cards h3 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
}

.model-cards h3 span {
  margin-top: 12px;
  color: var(--accent);
}

.model-cards p {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
}

.model-close {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--paper);
  font-weight: 700;
}

.machine-section {
  background: rgba(255, 255, 255, 0.46);
}

.machine-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.66fr);
  gap: clamp(34px, 8vw, 116px);
  align-items: center;
}

.machine-copy {
  max-width: 880px;
}

.layered-model {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.layered-model div {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--paper);
  font-weight: 800;
}

.layered-model div:nth-of-type(3) {
  border-color: rgba(56, 189, 248, 0.44);
  background: rgba(56, 189, 248, 0.1);
}

.layered-model span {
  width: 1px;
  height: 24px;
  margin-inline: auto;
  background: linear-gradient(var(--accent), transparent);
}

.human-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 0.74fr);
  gap: clamp(32px, 7vw, 98px);
  align-items: center;
}

.signal-map {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border-radius: 8px;
}

.signal-map img {
  width: 100%;
}

.positioning-section {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.5);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-color: rgba(56, 189, 248, 0.5) rgba(11, 18, 32, 0.06);
}

.focus-grid article {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 22px;
  border-width: 0 1px 0 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.08) 100%),
    rgba(255, 255, 255, 0.72);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.25;
  transition: background 180ms ease, color 180ms ease;
}

.focus-grid article:last-child {
  border-right: 0;
}

.focus-grid article:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--ink);
}

.briefing-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 7vw, 82px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.briefing-list article {
  min-height: 210px;
  padding: 24px;
  border-width: 0 1px 1px 0;
}

.briefing-list span {
  display: block;
  margin-bottom: 72px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(56, 189, 248, 0.08) 42%, rgba(244, 114, 182, 0.06)),
    rgba(255, 255, 255, 0.56);
}

.cta-copy {
  max-width: 860px;
}

.cta-copy p {
  max-width: 680px;
}

.briefing-form {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.briefing-form label,
.briefing-form-label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.briefing-form-label {
  margin-top: 0;
  text-transform: uppercase;
}

.ghl-briefing-form {
  overflow: hidden;
}

.ghl-form-shell {
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.06)),
    rgba(248, 250, 252, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ghl-form-frame {
  display: block;
  min-height: 520px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.briefing-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  outline: 0;
}

.briefing-form input:focus {
  border-color: rgba(56, 189, 248, 0.65);
}

.briefing-form p {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.briefing-form .briefing-form-label {
  margin: 0 0 18px;
  color: var(--accent);
}

.form-thanks {
  padding: 12px 14px;
  color: var(--text) !important;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
}

.form-thanks[hidden] {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 128px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.72rem;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 84px) clamp(22px, 5vw, 76px) clamp(64px, 8vw, 108px);
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-document h1 {
  max-width: 780px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-updated {
  margin-bottom: clamp(26px, 5vw, 46px);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.legal-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section ul {
  padding-left: 1.15rem;
  margin: 0;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--accent);
  font-weight: 700;
}

/* The section wrapper no longer hides its own content — each child element
   inside choreographs its own scroll-driven reveal (see [data-reveal]). */
.section-reveal {
  position: relative;
}

/* ===========================================================================
   Cinematic scroll system — progress, depth, and choreographed reveals
   that bring you along for the story as you move down the page.
   ========================================================================= */

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
}

/* Top scroll-progress meter */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
  background: rgba(11, 18, 32, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.42);
  will-change: transform;
}

/* Slow drifting ambient light behind everything */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(56, 189, 248, 0.13), transparent 34%),
    linear-gradient(300deg, transparent 52%, rgba(167, 139, 250, 0.12)),
    linear-gradient(180deg, rgba(244, 114, 182, 0.05), transparent 42%);
  opacity: 0.68;
  animation: ambient-float 22s ease-in-out infinite alternate;
}

.site-shell {
  position: relative;
  z-index: 1;
}

@keyframes ambient-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -3%, 0) scale(1.08);
  }
}

/* --- Reveal primitives ----------------------------------------------------
   Elements start dropped, faded and softly blurred, then snap into focus on
   a long Apple-style ease. Stagger comes from --rev (set per-sibling in JS). */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.16, 0.84, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 0.84, 0.3, 1),
    filter 1.05s cubic-bezier(0.16, 0.84, 0.3, 1);
  transition-delay: calc(var(--rev, 0) * 85ms);
  will-change: opacity, transform, filter;
}

[data-reveal="up"] {
  transform: translate3d(0, 54px, 0);
}

[data-reveal="left"] {
  transform: translate3d(-44px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(44px, 0, 0);
}

[data-reveal="scale"] {
  transform: scale(0.93) translate3d(0, 24px, 0);
  filter: blur(10px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Headline lines rise out from a clipped mask, one after another */
.hero-title {
  overflow: visible;
}

.hero-title .line {
  display: block;
  overflow: visible;
  padding-bottom: 0.05em;
}

[data-reveal="line"] {
  display: block;
  opacity: 0;
  transform: translate3d(0, 112%, 0);
  filter: none;
  transition:
    opacity 1.05s cubic-bezier(0.16, 0.9, 0.28, 1),
    transform 1.15s cubic-bezier(0.16, 0.9, 0.28, 1);
  transition-delay: calc(0.12s + var(--rev, 0) * 0.13s);
  will-change: transform;
}

[data-reveal="line"].is-visible {
  opacity: 1;
  transform: none;
}

/* Scroll cue under the hero */
.scroll-cue {
  position: absolute;
  left: clamp(22px, 5vw, 76px);
  bottom: clamp(14px, 3vh, 30px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 200ms ease;
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--accent), transparent);
  overflow: hidden;
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--accent);
  animation: cue-trail 2.1s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes cue-trail {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* Active nav chip */
.site-nav a.is-active:not(.nav-cta) {
  color: var(--text);
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.16, 0.84, 0.3, 1);
}

.site-nav a.is-active:not(.nav-cta)::after {
  transform: scaleX(1);
}

/* Smooth horizontal travel for the positioning gallery */
.focus-grid {
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

.focus-grid article {
  scroll-snap-align: start;
}

@keyframes signal-drift {
  0%,
  100% {
    opacity: 0.22;
    translate: -12px 0;
  }
  50% {
    opacity: 0.74;
    translate: 14px 0;
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes robot-idle-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero::before {
    background:
      radial-gradient(circle at 50% 72%, rgba(56, 189, 248, 0.16), transparent 38%),
      linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 62%, rgba(248, 250, 252, 0.96) 100%);
  }

  .robot-visual {
    min-height: clamp(460px, 54svh, 640px);
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .timeline,
  .briefing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .section-heading,
  .split-layout,
  .machine-layout,
  .human-grid,
  .two-line-thesis,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .wage-loop {
    grid-template-columns: 1fr;
  }

  .loop-arrow,
  .loop-arrow-return {
    width: 1px;
    height: 30px;
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .loop-arrow-return {
    grid-column: auto;
    grid-row: auto;
    background: linear-gradient(90deg, var(--accent-2), transparent);
  }

  .loop-node-muted {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .scroll-cue {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 9px 14px 9px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 18, 32, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 46px -24px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    padding: 13px 16px;
    border-bottom: 0;
  }

  section,
  .site-footer {
    padding-inline: 18px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 0;
  }

  .robot-visual {
    min-height: clamp(500px, 58svh, 650px);
    margin-top: 18px;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .no-break {
    white-space: normal;
  }

  .flow-row,
  .split-model,
  .model-cards,
  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .flow-row i {
    width: 1px;
    height: 20px;
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .break-line,
  .pattern-copy {
    grid-template-columns: 1fr;
  }

  .timeline,
  .briefing-list {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article {
    min-height: 220px;
  }

  .timeline span,
  .briefing-list span,
  .model-index {
    margin-bottom: 38px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .focus-grid article {
    min-height: 120px;
    border-width: 0 0 1px;
  }

  .site-footer {
    justify-items: start;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .site-header .brand-mark {
    gap: 8px;
  }

  .site-header .brand-mark span {
    font-size: 1.05rem;
  }

  .site-header .brand-logo {
    width: 28px;
    height: 28px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .thesis-panel,
  .briefing-form,
  .layered-model,
  .signal-map {
    margin-inline: -1px;
  }

  .robot-visual {
    min-height: clamp(470px, 58svh, 580px);
    margin-top: 14px;
    margin-bottom: -16px;
  }

  blockquote {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }

  [data-reveal],
  [data-reveal="up"],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="scale"],
  [data-reveal="line"] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .ambient-glow,
  .scroll-cue i::after {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }
}
